]> andersk Git - libyaml.git/blob - configure
debian: Clean doxygen-generated documentation with dh_doxygen
[libyaml.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for yaml 0.1.7.
4 #
5 # Report bugs to <https://bitbucket.org/xi/libyaml/issues/new>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138   # into an infinite loop, continuously re-executing ourselves.
139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140     _as_can_reexec=no; export _as_can_reexec;
141     # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149   *v*x* | *x*v* ) as_opts=-vx ;;
150   *v* ) as_opts=-v ;;
151   *x* ) as_opts=-x ;;
152   * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159   fi
160   # We don't want this to propagate to other subprocesses.
161           { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164   emulate sh
165   NULLCMD=:
166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167   # is contrary to our usage.  Disable this feature.
168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
169   setopt NO_GLOB_SUBST
170 else
171   case \`(set -o) 2>/dev/null\` in #(
172   *posix*) :
173     set -o posix ;; #(
174   *) :
175      ;;
176 esac
177 fi
178 "
179   as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193   exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206     PATH=/empty FPATH=/empty; export PATH FPATH
207     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210   if (eval "$as_required") 2>/dev/null; then :
211   as_have_required=yes
212 else
213   as_have_required=no
214 fi
215   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222   IFS=$as_save_IFS
223   test -z "$as_dir" && as_dir=.
224   as_found=:
225   case $as_dir in #(
226          /*)
227            for as_base in sh bash ksh sh5; do
228              # Try only shells that exist, to save several forks.
229              as_shell=$as_dir/$as_base
230              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   CONFIG_SHELL=$as_shell as_have_required=yes
233                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234   break 2
235 fi
236 fi
237            done;;
238        esac
239   as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243   CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248       if test "x$CONFIG_SHELL" != x; then :
249   export CONFIG_SHELL
250              # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258   *v*x* | *x*v* ) as_opts=-vx ;;
259   *v* ) as_opts=-v ;;
260   *x* ) as_opts=-x ;;
261   * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270     if test x$as_have_required = xno; then :
271   $as_echo "$0: This script requires a shell more modern than all"
272   $as_echo "$0: the shells that I found on your system."
273   if test x${ZSH_VERSION+set} = xset ; then
274     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276   else
277     $as_echo "$0: Please tell bug-autoconf@gnu.org and https://bitbucket.org/xi/libyaml/issues/new about
278 $0: your system, including any error possibly output before
279 $0: this message. Then install a modern shell, or manually
280 $0: run the script under such a shell if you do have one."
281   fi
282   exit 1
283 fi
284 fi
285 fi
286 SHELL=${CONFIG_SHELL-/bin/sh}
287 export SHELL
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
291
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
299 {
300   { eval $1=; unset $1;}
301 }
302 as_unset=as_fn_unset
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309   return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317   set +e
318   as_fn_set_status $1
319   exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328   case $as_dir in #(
329   -*) as_dir=./$as_dir;;
330   esac
331   test -d "$as_dir" || eval $as_mkdir_p || {
332     as_dirs=
333     while :; do
334       case $as_dir in #(
335       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336       *) as_qdir=$as_dir;;
337       esac
338       as_dirs="'$as_qdir' $as_dirs"
339       as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341          X"$as_dir" : 'X\(//\)[^/]' \| \
342          X"$as_dir" : 'X\(//\)$' \| \
343          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
345     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346             s//\1/
347             q
348           }
349           /^X\(\/\/\)[^/].*/{
350             s//\1/
351             q
352           }
353           /^X\(\/\/\)$/{
354             s//\1/
355             q
356           }
357           /^X\(\/\).*/{
358             s//\1/
359             q
360           }
361           s/.*/./; q'`
362       test -d "$as_dir" && break
363     done
364     test -z "$as_dirs" || eval "mkdir $as_dirs"
365   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375   test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384   eval 'as_fn_append ()
385   {
386     eval $1+=\$2
387   }'
388 else
389   as_fn_append ()
390   {
391     eval $1=\$$1\$2
392   }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401   eval 'as_fn_arith ()
402   {
403     as_val=$(( $* ))
404   }'
405 else
406   as_fn_arith ()
407   {
408     as_val=`expr "$@" || test $? -eq 1`
409   }
410 fi # as_fn_arith
411
412
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
419 {
420   as_status=$1; test $as_status -eq 0 && as_status=1
421   if test "$4"; then
422     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424   fi
425   $as_echo "$as_me: error: $2" >&2
426   as_fn_exit $as_status
427 } # as_fn_error
428
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430    test "X`expr 00001 : '.*\(...\)'`" = X001; then
431   as_expr=expr
432 else
433   as_expr=false
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437   as_basename=basename
438 else
439   as_basename=false
440 fi
441
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443   as_dirname=dirname
444 else
445   as_dirname=false
446 fi
447
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450          X"$0" : 'X\(//\)$' \| \
451          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 $as_echo X/"$0" |
453     sed '/^.*\/\([^/][^/]*\)\/*$/{
454             s//\1/
455             q
456           }
457           /^X\/\(\/\/\)$/{
458             s//\1/
459             q
460           }
461           /^X\/\(\/\).*/{
462             s//\1/
463             q
464           }
465           s/.*/./; q'`
466
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475   as_lineno_1=$LINENO as_lineno_1a=$LINENO
476   as_lineno_2=$LINENO as_lineno_2a=$LINENO
477   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
480   sed -n '
481     p
482     /[$]LINENO/=
483   ' <$as_myself |
484     sed '
485       s/[$]LINENO.*/&-/
486       t lineno
487       b
488       :lineno
489       N
490       :loop
491       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492       t loop
493       s/-\n.*//
494     ' >$as_me.lineno &&
495   chmod +x "$as_me.lineno" ||
496     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497
498   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499   # already done that, so ensure we don't try to do so again and fall
500   # in an infinite loop.  This has already happened in practice.
501   _as_can_reexec=no; export _as_can_reexec
502   # Don't try to exec as it changes $[0], causing all sort of problems
503   # (the dirname of $[0] is not the place where we might find the
504   # original and so on.  Autoconf is especially sensitive to this).
505   . "./$as_me.lineno"
506   # Exit status is that of the last command.
507   exit
508 }
509
510 ECHO_C= ECHO_N= ECHO_T=
511 case `echo -n x` in #(((((
512 -n*)
513   case `echo 'xy\c'` in
514   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
515   xy)  ECHO_C='\c';;
516   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
517        ECHO_T=' ';;
518   esac;;
519 *)
520   ECHO_N='-n';;
521 esac
522
523 rm -f conf$$ conf$$.exe conf$$.file
524 if test -d conf$$.dir; then
525   rm -f conf$$.dir/conf$$.file
526 else
527   rm -f conf$$.dir
528   mkdir conf$$.dir 2>/dev/null
529 fi
530 if (echo >conf$$.file) 2>/dev/null; then
531   if ln -s conf$$.file conf$$ 2>/dev/null; then
532     as_ln_s='ln -s'
533     # ... but there are two gotchas:
534     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536     # In both cases, we have to default to `cp -pR'.
537     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538       as_ln_s='cp -pR'
539   elif ln conf$$.file conf$$ 2>/dev/null; then
540     as_ln_s=ln
541   else
542     as_ln_s='cp -pR'
543   fi
544 else
545   as_ln_s='cp -pR'
546 fi
547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548 rmdir conf$$.dir 2>/dev/null
549
550 if mkdir -p . 2>/dev/null; then
551   as_mkdir_p='mkdir -p "$as_dir"'
552 else
553   test -d ./-p && rmdir ./-p
554   as_mkdir_p=false
555 fi
556
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
559
560 # Sed expression to map a string onto a valid CPP name.
561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562
563 # Sed expression to map a string onto a valid variable name.
564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565
566 SHELL=${CONFIG_SHELL-/bin/sh}
567
568
569 test -n "$DJDIR" || exec 7<&0 </dev/null
570 exec 6>&1
571
572 # Name of the host.
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574 # so uname gets run too.
575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577 #
578 # Initializations.
579 #
580 ac_default_prefix=/usr/local
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
588
589 # Identity of this package.
590 PACKAGE_NAME='yaml'
591 PACKAGE_TARNAME='yaml'
592 PACKAGE_VERSION='0.1.7'
593 PACKAGE_STRING='yaml 0.1.7'
594 PACKAGE_BUGREPORT='https://bitbucket.org/xi/libyaml/issues/new'
595 PACKAGE_URL=''
596
597 # Factoring default headers for most tests.
598 ac_includes_default="\
599 #include <stdio.h>
600 #ifdef HAVE_SYS_TYPES_H
601 # include <sys/types.h>
602 #endif
603 #ifdef HAVE_SYS_STAT_H
604 # include <sys/stat.h>
605 #endif
606 #ifdef STDC_HEADERS
607 # include <stdlib.h>
608 # include <stddef.h>
609 #else
610 # ifdef HAVE_STDLIB_H
611 #  include <stdlib.h>
612 # endif
613 #endif
614 #ifdef HAVE_STRING_H
615 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
616 #  include <memory.h>
617 # endif
618 # include <string.h>
619 #endif
620 #ifdef HAVE_STRINGS_H
621 # include <strings.h>
622 #endif
623 #ifdef HAVE_INTTYPES_H
624 # include <inttypes.h>
625 #endif
626 #ifdef HAVE_STDINT_H
627 # include <stdint.h>
628 #endif
629 #ifdef HAVE_UNISTD_H
630 # include <unistd.h>
631 #endif"
632
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 DOXYGEN_FALSE
638 DOXYGEN_TRUE
639 DOXYGEN
640 OTOOL64
641 OTOOL
642 LIPO
643 NMEDIT
644 DSYMUTIL
645 MANIFEST_TOOL
646 RANLIB
647 ac_ct_AR
648 AR
649 DLLTOOL
650 OBJDUMP
651 NM
652 ac_ct_DUMPBIN
653 DUMPBIN
654 LD
655 FGREP
656 EGREP
657 GREP
658 SED
659 host_os
660 host_vendor
661 host_cpu
662 host
663 build_os
664 build_vendor
665 build_cpu
666 build
667 LIBTOOL
668 LN_S
669 CPP
670 am__fastdepCC_FALSE
671 am__fastdepCC_TRUE
672 CCDEPMODE
673 am__nodep
674 AMDEPBACKSLASH
675 AMDEP_FALSE
676 AMDEP_TRUE
677 am__quote
678 am__include
679 DEPDIR
680 OBJEXT
681 EXEEXT
682 ac_ct_CC
683 CPPFLAGS
684 LDFLAGS
685 CFLAGS
686 CC
687 YAML_LT_AGE
688 YAML_LT_REVISION
689 YAML_LT_CURRENT
690 YAML_LT_RELEASE
691 AM_BACKSLASH
692 AM_DEFAULT_VERBOSITY
693 AM_DEFAULT_V
694 AM_V
695 am__untar
696 am__tar
697 AMTAR
698 am__leading_dot
699 SET_MAKE
700 AWK
701 mkdir_p
702 MKDIR_P
703 INSTALL_STRIP_PROGRAM
704 STRIP
705 install_sh
706 MAKEINFO
707 AUTOHEADER
708 AUTOMAKE
709 AUTOCONF
710 ACLOCAL
711 VERSION
712 PACKAGE
713 CYGPATH_W
714 am__isrc
715 INSTALL_DATA
716 INSTALL_SCRIPT
717 INSTALL_PROGRAM
718 target_alias
719 host_alias
720 build_alias
721 LIBS
722 ECHO_T
723 ECHO_N
724 ECHO_C
725 DEFS
726 mandir
727 localedir
728 libdir
729 psdir
730 pdfdir
731 dvidir
732 htmldir
733 infodir
734 docdir
735 oldincludedir
736 includedir
737 localstatedir
738 sharedstatedir
739 sysconfdir
740 datadir
741 datarootdir
742 libexecdir
743 sbindir
744 bindir
745 program_transform_name
746 prefix
747 exec_prefix
748 PACKAGE_URL
749 PACKAGE_BUGREPORT
750 PACKAGE_STRING
751 PACKAGE_VERSION
752 PACKAGE_TARNAME
753 PACKAGE_NAME
754 PATH_SEPARATOR
755 SHELL'
756 ac_subst_files=''
757 ac_user_opts='
758 enable_option_checking
759 enable_silent_rules
760 enable_dependency_tracking
761 enable_shared
762 enable_static
763 with_pic
764 enable_fast_install
765 with_gnu_ld
766 with_sysroot
767 enable_libtool_lock
768 '
769       ac_precious_vars='build_alias
770 host_alias
771 target_alias
772 CC
773 CFLAGS
774 LDFLAGS
775 LIBS
776 CPPFLAGS
777 CPP'
778
779
780 # Initialize some variables set by options.
781 ac_init_help=
782 ac_init_version=false
783 ac_unrecognized_opts=
784 ac_unrecognized_sep=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
787 cache_file=/dev/null
788 exec_prefix=NONE
789 no_create=
790 no_recursion=
791 prefix=NONE
792 program_prefix=NONE
793 program_suffix=NONE
794 program_transform_name=s,x,x,
795 silent=
796 site=
797 srcdir=
798 verbose=
799 x_includes=NONE
800 x_libraries=NONE
801
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir='${exec_prefix}/bin'
809 sbindir='${exec_prefix}/sbin'
810 libexecdir='${exec_prefix}/libexec'
811 datarootdir='${prefix}/share'
812 datadir='${datarootdir}'
813 sysconfdir='${prefix}/etc'
814 sharedstatedir='${prefix}/com'
815 localstatedir='${prefix}/var'
816 includedir='${prefix}/include'
817 oldincludedir='/usr/include'
818 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir='${datarootdir}/info'
820 htmldir='${docdir}'
821 dvidir='${docdir}'
822 pdfdir='${docdir}'
823 psdir='${docdir}'
824 libdir='${exec_prefix}/lib'
825 localedir='${datarootdir}/locale'
826 mandir='${datarootdir}/man'
827
828 ac_prev=
829 ac_dashdash=
830 for ac_option
831 do
832   # If the previous option needs an argument, assign it.
833   if test -n "$ac_prev"; then
834     eval $ac_prev=\$ac_option
835     ac_prev=
836     continue
837   fi
838
839   case $ac_option in
840   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
841   *=)   ac_optarg= ;;
842   *)    ac_optarg=yes ;;
843   esac
844
845   # Accept the important Cygnus configure options, so we can diagnose typos.
846
847   case $ac_dashdash$ac_option in
848   --)
849     ac_dashdash=yes ;;
850
851   -bindir | --bindir | --bindi | --bind | --bin | --bi)
852     ac_prev=bindir ;;
853   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
854     bindir=$ac_optarg ;;
855
856   -build | --build | --buil | --bui | --bu)
857     ac_prev=build_alias ;;
858   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859     build_alias=$ac_optarg ;;
860
861   -cache-file | --cache-file | --cache-fil | --cache-fi \
862   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863     ac_prev=cache_file ;;
864   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866     cache_file=$ac_optarg ;;
867
868   --config-cache | -C)
869     cache_file=config.cache ;;
870
871   -datadir | --datadir | --datadi | --datad)
872     ac_prev=datadir ;;
873   -datadir=* | --datadir=* | --datadi=* | --datad=*)
874     datadir=$ac_optarg ;;
875
876   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877   | --dataroo | --dataro | --datar)
878     ac_prev=datarootdir ;;
879   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881     datarootdir=$ac_optarg ;;
882
883   -disable-* | --disable-*)
884     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885     # Reject names that are not valid shell variable names.
886     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887       as_fn_error $? "invalid feature name: $ac_useropt"
888     ac_useropt_orig=$ac_useropt
889     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890     case $ac_user_opts in
891       *"
892 "enable_$ac_useropt"
893 "*) ;;
894       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895          ac_unrecognized_sep=', ';;
896     esac
897     eval enable_$ac_useropt=no ;;
898
899   -docdir | --docdir | --docdi | --doc | --do)
900     ac_prev=docdir ;;
901   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
902     docdir=$ac_optarg ;;
903
904   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
905     ac_prev=dvidir ;;
906   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
907     dvidir=$ac_optarg ;;
908
909   -enable-* | --enable-*)
910     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911     # Reject names that are not valid shell variable names.
912     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
913       as_fn_error $? "invalid feature name: $ac_useropt"
914     ac_useropt_orig=$ac_useropt
915     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916     case $ac_user_opts in
917       *"
918 "enable_$ac_useropt"
919 "*) ;;
920       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921          ac_unrecognized_sep=', ';;
922     esac
923     eval enable_$ac_useropt=\$ac_optarg ;;
924
925   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927   | --exec | --exe | --ex)
928     ac_prev=exec_prefix ;;
929   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931   | --exec=* | --exe=* | --ex=*)
932     exec_prefix=$ac_optarg ;;
933
934   -gas | --gas | --ga | --g)
935     # Obsolete; use --with-gas.
936     with_gas=yes ;;
937
938   -help | --help | --hel | --he | -h)
939     ac_init_help=long ;;
940   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
941     ac_init_help=recursive ;;
942   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
943     ac_init_help=short ;;
944
945   -host | --host | --hos | --ho)
946     ac_prev=host_alias ;;
947   -host=* | --host=* | --hos=* | --ho=*)
948     host_alias=$ac_optarg ;;
949
950   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
951     ac_prev=htmldir ;;
952   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
953   | --ht=*)
954     htmldir=$ac_optarg ;;
955
956   -includedir | --includedir | --includedi | --included | --include \
957   | --includ | --inclu | --incl | --inc)
958     ac_prev=includedir ;;
959   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960   | --includ=* | --inclu=* | --incl=* | --inc=*)
961     includedir=$ac_optarg ;;
962
963   -infodir | --infodir | --infodi | --infod | --info | --inf)
964     ac_prev=infodir ;;
965   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966     infodir=$ac_optarg ;;
967
968   -libdir | --libdir | --libdi | --libd)
969     ac_prev=libdir ;;
970   -libdir=* | --libdir=* | --libdi=* | --libd=*)
971     libdir=$ac_optarg ;;
972
973   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974   | --libexe | --libex | --libe)
975     ac_prev=libexecdir ;;
976   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977   | --libexe=* | --libex=* | --libe=*)
978     libexecdir=$ac_optarg ;;
979
980   -localedir | --localedir | --localedi | --localed | --locale)
981     ac_prev=localedir ;;
982   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983     localedir=$ac_optarg ;;
984
985   -localstatedir | --localstatedir | --localstatedi | --localstated \
986   | --localstate | --localstat | --localsta | --localst | --locals)
987     ac_prev=localstatedir ;;
988   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990     localstatedir=$ac_optarg ;;
991
992   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
993     ac_prev=mandir ;;
994   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
995     mandir=$ac_optarg ;;
996
997   -nfp | --nfp | --nf)
998     # Obsolete; use --without-fp.
999     with_fp=no ;;
1000
1001   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002   | --no-cr | --no-c | -n)
1003     no_create=yes ;;
1004
1005   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1007     no_recursion=yes ;;
1008
1009   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011   | --oldin | --oldi | --old | --ol | --o)
1012     ac_prev=oldincludedir ;;
1013   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016     oldincludedir=$ac_optarg ;;
1017
1018   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1019     ac_prev=prefix ;;
1020   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021     prefix=$ac_optarg ;;
1022
1023   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024   | --program-pre | --program-pr | --program-p)
1025     ac_prev=program_prefix ;;
1026   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028     program_prefix=$ac_optarg ;;
1029
1030   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031   | --program-suf | --program-su | --program-s)
1032     ac_prev=program_suffix ;;
1033   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035     program_suffix=$ac_optarg ;;
1036
1037   -program-transform-name | --program-transform-name \
1038   | --program-transform-nam | --program-transform-na \
1039   | --program-transform-n | --program-transform- \
1040   | --program-transform | --program-transfor \
1041   | --program-transfo | --program-transf \
1042   | --program-trans | --program-tran \
1043   | --progr-tra | --program-tr | --program-t)
1044     ac_prev=program_transform_name ;;
1045   -program-transform-name=* | --program-transform-name=* \
1046   | --program-transform-nam=* | --program-transform-na=* \
1047   | --program-transform-n=* | --program-transform-=* \
1048   | --program-transform=* | --program-transfor=* \
1049   | --program-transfo=* | --program-transf=* \
1050   | --program-trans=* | --program-tran=* \
1051   | --progr-tra=* | --program-tr=* | --program-t=*)
1052     program_transform_name=$ac_optarg ;;
1053
1054   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1055     ac_prev=pdfdir ;;
1056   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057     pdfdir=$ac_optarg ;;
1058
1059   -psdir | --psdir | --psdi | --psd | --ps)
1060     ac_prev=psdir ;;
1061   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1062     psdir=$ac_optarg ;;
1063
1064   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065   | -silent | --silent | --silen | --sile | --sil)
1066     silent=yes ;;
1067
1068   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1069     ac_prev=sbindir ;;
1070   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1071   | --sbi=* | --sb=*)
1072     sbindir=$ac_optarg ;;
1073
1074   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076   | --sharedst | --shareds | --shared | --share | --shar \
1077   | --sha | --sh)
1078     ac_prev=sharedstatedir ;;
1079   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1082   | --sha=* | --sh=*)
1083     sharedstatedir=$ac_optarg ;;
1084
1085   -site | --site | --sit)
1086     ac_prev=site ;;
1087   -site=* | --site=* | --sit=*)
1088     site=$ac_optarg ;;
1089
1090   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1091     ac_prev=srcdir ;;
1092   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093     srcdir=$ac_optarg ;;
1094
1095   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096   | --syscon | --sysco | --sysc | --sys | --sy)
1097     ac_prev=sysconfdir ;;
1098   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100     sysconfdir=$ac_optarg ;;
1101
1102   -target | --target | --targe | --targ | --tar | --ta | --t)
1103     ac_prev=target_alias ;;
1104   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105     target_alias=$ac_optarg ;;
1106
1107   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1108     verbose=yes ;;
1109
1110   -version | --version | --versio | --versi | --vers | -V)
1111     ac_init_version=: ;;
1112
1113   -with-* | --with-*)
1114     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115     # Reject names that are not valid shell variable names.
1116     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117       as_fn_error $? "invalid package name: $ac_useropt"
1118     ac_useropt_orig=$ac_useropt
1119     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120     case $ac_user_opts in
1121       *"
1122 "with_$ac_useropt"
1123 "*) ;;
1124       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125          ac_unrecognized_sep=', ';;
1126     esac
1127     eval with_$ac_useropt=\$ac_optarg ;;
1128
1129   -without-* | --without-*)
1130     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131     # Reject names that are not valid shell variable names.
1132     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1133       as_fn_error $? "invalid package name: $ac_useropt"
1134     ac_useropt_orig=$ac_useropt
1135     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136     case $ac_user_opts in
1137       *"
1138 "with_$ac_useropt"
1139 "*) ;;
1140       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141          ac_unrecognized_sep=', ';;
1142     esac
1143     eval with_$ac_useropt=no ;;
1144
1145   --x)
1146     # Obsolete; use --with-x.
1147     with_x=yes ;;
1148
1149   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150   | --x-incl | --x-inc | --x-in | --x-i)
1151     ac_prev=x_includes ;;
1152   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154     x_includes=$ac_optarg ;;
1155
1156   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158     ac_prev=x_libraries ;;
1159   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161     x_libraries=$ac_optarg ;;
1162
1163   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1165     ;;
1166
1167   *=*)
1168     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1169     # Reject names that are not valid shell variable names.
1170     case $ac_envvar in #(
1171       '' | [0-9]* | *[!_$as_cr_alnum]* )
1172       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1173     esac
1174     eval $ac_envvar=\$ac_optarg
1175     export $ac_envvar ;;
1176
1177   *)
1178     # FIXME: should be removed in autoconf 3.0.
1179     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1181       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183     ;;
1184
1185   esac
1186 done
1187
1188 if test -n "$ac_prev"; then
1189   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1190   as_fn_error $? "missing argument to $ac_option"
1191 fi
1192
1193 if test -n "$ac_unrecognized_opts"; then
1194   case $enable_option_checking in
1195     no) ;;
1196     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1197     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1198   esac
1199 fi
1200
1201 # Check all directory arguments for consistency.
1202 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203                 datadir sysconfdir sharedstatedir localstatedir includedir \
1204                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205                 libdir localedir mandir
1206 do
1207   eval ac_val=\$$ac_var
1208   # Remove trailing slashes.
1209   case $ac_val in
1210     */ )
1211       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212       eval $ac_var=\$ac_val;;
1213   esac
1214   # Be sure to have absolute directory names.
1215   case $ac_val in
1216     [\\/$]* | ?:[\\/]* )  continue;;
1217     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1218   esac
1219   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1220 done
1221
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1228
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231   if test "x$build_alias" = x; then
1232     cross_compiling=maybe
1233   elif test "x$build_alias" != "x$host_alias"; then
1234     cross_compiling=yes
1235   fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247   as_fn_error $? "working directory cannot be determined"
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249   as_fn_error $? "pwd does not report name of working directory"
1250
1251
1252 # Find the source files, if location was not specified.
1253 if test -z "$srcdir"; then
1254   ac_srcdir_defaulted=yes
1255   # Try the directory containing this script, then the parent directory.
1256   ac_confdir=`$as_dirname -- "$as_myself" ||
1257 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1258          X"$as_myself" : 'X\(//\)[^/]' \| \
1259          X"$as_myself" : 'X\(//\)$' \| \
1260          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1261 $as_echo X"$as_myself" |
1262     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1263             s//\1/
1264             q
1265           }
1266           /^X\(\/\/\)[^/].*/{
1267             s//\1/
1268             q
1269           }
1270           /^X\(\/\/\)$/{
1271             s//\1/
1272             q
1273           }
1274           /^X\(\/\).*/{
1275             s//\1/
1276             q
1277           }
1278           s/.*/./; q'`
1279   srcdir=$ac_confdir
1280   if test ! -r "$srcdir/$ac_unique_file"; then
1281     srcdir=..
1282   fi
1283 else
1284   ac_srcdir_defaulted=no
1285 fi
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1287   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1288   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1289 fi
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1291 ac_abs_confdir=`(
1292         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1293         pwd)`
1294 # When building in place, set srcdir=.
1295 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296   srcdir=.
1297 fi
1298 # Remove unnecessary trailing slashes from srcdir.
1299 # Double slashes in file names in object file debugging info
1300 # mess up M-x gdb in Emacs.
1301 case $srcdir in
1302 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1303 esac
1304 for ac_var in $ac_precious_vars; do
1305   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1306   eval ac_env_${ac_var}_value=\$${ac_var}
1307   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1308   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1309 done
1310
1311 #
1312 # Report the --help message.
1313 #
1314 if test "$ac_init_help" = "long"; then
1315   # Omit some internal or obsolete options to make the list less imposing.
1316   # This message is too long to be a string in the A/UX 3.1 sh.
1317   cat <<_ACEOF
1318 \`configure' configures yaml 0.1.7 to adapt to many kinds of systems.
1319
1320 Usage: $0 [OPTION]... [VAR=VALUE]...
1321
1322 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1323 VAR=VALUE.  See below for descriptions of some of the useful variables.
1324
1325 Defaults for the options are specified in brackets.
1326
1327 Configuration:
1328   -h, --help              display this help and exit
1329       --help=short        display options specific to this package
1330       --help=recursive    display the short help of all the included packages
1331   -V, --version           display version information and exit
1332   -q, --quiet, --silent   do not print \`checking ...' messages
1333       --cache-file=FILE   cache test results in FILE [disabled]
1334   -C, --config-cache      alias for \`--cache-file=config.cache'
1335   -n, --no-create         do not create output files
1336       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1337
1338 Installation directories:
1339   --prefix=PREFIX         install architecture-independent files in PREFIX
1340                           [$ac_default_prefix]
1341   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1342                           [PREFIX]
1343
1344 By default, \`make install' will install all the files in
1345 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1346 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1347 for instance \`--prefix=\$HOME'.
1348
1349 For better control, use the options below.
1350
1351 Fine tuning of the installation directories:
1352   --bindir=DIR            user executables [EPREFIX/bin]
1353   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1354   --libexecdir=DIR        program executables [EPREFIX/libexec]
1355   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1356   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1357   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1358   --libdir=DIR            object code libraries [EPREFIX/lib]
1359   --includedir=DIR        C header files [PREFIX/include]
1360   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1361   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1362   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1363   --infodir=DIR           info documentation [DATAROOTDIR/info]
1364   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1365   --mandir=DIR            man documentation [DATAROOTDIR/man]
1366   --docdir=DIR            documentation root [DATAROOTDIR/doc/yaml]
1367   --htmldir=DIR           html documentation [DOCDIR]
1368   --dvidir=DIR            dvi documentation [DOCDIR]
1369   --pdfdir=DIR            pdf documentation [DOCDIR]
1370   --psdir=DIR             ps documentation [DOCDIR]
1371 _ACEOF
1372
1373   cat <<\_ACEOF
1374
1375 Program names:
1376   --program-prefix=PREFIX            prepend PREFIX to installed program names
1377   --program-suffix=SUFFIX            append SUFFIX to installed program names
1378   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1379
1380 System types:
1381   --build=BUILD     configure for building on BUILD [guessed]
1382   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387   case $ac_init_help in
1388      short | recursive ) echo "Configuration of yaml 0.1.7:";;
1389    esac
1390   cat <<\_ACEOF
1391
1392 Optional Features:
1393   --disable-option-checking  ignore unrecognized --enable/--with options
1394   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1395   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1396   --enable-silent-rules   less verbose build output (undo: "make V=1")
1397   --disable-silent-rules  verbose build output (undo: "make V=0")
1398   --enable-dependency-tracking
1399                           do not reject slow dependency extractors
1400   --disable-dependency-tracking
1401                           speeds up one-time build
1402   --enable-shared[=PKGS]  build shared libraries [default=yes]
1403   --enable-static[=PKGS]  build static libraries [default=yes]
1404   --enable-fast-install[=PKGS]
1405                           optimize for fast installation [default=yes]
1406   --disable-libtool-lock  avoid locking (might break parallel builds)
1407
1408 Optional Packages:
1409   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1410   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1411   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1412                           both]
1413   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1414   --with-sysroot=DIR Search for dependent libraries within DIR
1415                         (or the compiler's sysroot if not specified).
1416
1417 Some influential environment variables:
1418   CC          C compiler command
1419   CFLAGS      C compiler flags
1420   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1421               nonstandard directory <lib dir>
1422   LIBS        libraries to pass to the linker, e.g. -l<library>
1423   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1424               you have headers in a nonstandard directory <include dir>
1425   CPP         C preprocessor
1426
1427 Use these variables to override the choices made by `configure' or to help
1428 it to find libraries and programs with nonstandard names/locations.
1429
1430 Report bugs to <https://bitbucket.org/xi/libyaml/issues/new>.
1431 _ACEOF
1432 ac_status=$?
1433 fi
1434
1435 if test "$ac_init_help" = "recursive"; then
1436   # If there are subdirs, report their specific --help.
1437   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1438     test -d "$ac_dir" ||
1439       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1440       continue
1441     ac_builddir=.
1442
1443 case "$ac_dir" in
1444 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 *)
1446   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1447   # A ".." for each directory in $ac_dir_suffix.
1448   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1449   case $ac_top_builddir_sub in
1450   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1452   esac ;;
1453 esac
1454 ac_abs_top_builddir=$ac_pwd
1455 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1456 # for backward compatibility:
1457 ac_top_builddir=$ac_top_build_prefix
1458
1459 case $srcdir in
1460   .)  # We are building in place.
1461     ac_srcdir=.
1462     ac_top_srcdir=$ac_top_builddir_sub
1463     ac_abs_top_srcdir=$ac_pwd ;;
1464   [\\/]* | ?:[\\/]* )  # Absolute name.
1465     ac_srcdir=$srcdir$ac_dir_suffix;
1466     ac_top_srcdir=$srcdir
1467     ac_abs_top_srcdir=$srcdir ;;
1468   *) # Relative name.
1469     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1470     ac_top_srcdir=$ac_top_build_prefix$srcdir
1471     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1472 esac
1473 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1474
1475     cd "$ac_dir" || { ac_status=$?; continue; }
1476     # Check for guested configure.
1477     if test -f "$ac_srcdir/configure.gnu"; then
1478       echo &&
1479       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1480     elif test -f "$ac_srcdir/configure"; then
1481       echo &&
1482       $SHELL "$ac_srcdir/configure" --help=recursive
1483     else
1484       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1485     fi || ac_status=$?
1486     cd "$ac_pwd" || { ac_status=$?; break; }
1487   done
1488 fi
1489
1490 test -n "$ac_init_help" && exit $ac_status
1491 if $ac_init_version; then
1492   cat <<\_ACEOF
1493 yaml configure 0.1.7
1494 generated by GNU Autoconf 2.69
1495
1496 Copyright (C) 2012 Free Software Foundation, Inc.
1497 This configure script is free software; the Free Software Foundation
1498 gives unlimited permission to copy, distribute and modify it.
1499 _ACEOF
1500   exit
1501 fi
1502
1503 ## ------------------------ ##
1504 ## Autoconf initialization. ##
1505 ## ------------------------ ##
1506
1507 # ac_fn_c_try_compile LINENO
1508 # --------------------------
1509 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1510 ac_fn_c_try_compile ()
1511 {
1512   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513   rm -f conftest.$ac_objext
1514   if { { ac_try="$ac_compile"
1515 case "(($ac_try" in
1516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517   *) ac_try_echo=$ac_try;;
1518 esac
1519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520 $as_echo "$ac_try_echo"; } >&5
1521   (eval "$ac_compile") 2>conftest.err
1522   ac_status=$?
1523   if test -s conftest.err; then
1524     grep -v '^ *+' conftest.err >conftest.er1
1525     cat conftest.er1 >&5
1526     mv -f conftest.er1 conftest.err
1527   fi
1528   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529   test $ac_status = 0; } && {
1530          test -z "$ac_c_werror_flag" ||
1531          test ! -s conftest.err
1532        } && test -s conftest.$ac_objext; then :
1533   ac_retval=0
1534 else
1535   $as_echo "$as_me: failed program was:" >&5
1536 sed 's/^/| /' conftest.$ac_ext >&5
1537
1538         ac_retval=1
1539 fi
1540   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1541   as_fn_set_status $ac_retval
1542
1543 } # ac_fn_c_try_compile
1544
1545 # ac_fn_c_try_cpp LINENO
1546 # ----------------------
1547 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_cpp ()
1549 {
1550   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551   if { { ac_try="$ac_cpp conftest.$ac_ext"
1552 case "(($ac_try" in
1553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554   *) ac_try_echo=$ac_try;;
1555 esac
1556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557 $as_echo "$ac_try_echo"; } >&5
1558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1559   ac_status=$?
1560   if test -s conftest.err; then
1561     grep -v '^ *+' conftest.err >conftest.er1
1562     cat conftest.er1 >&5
1563     mv -f conftest.er1 conftest.err
1564   fi
1565   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566   test $ac_status = 0; } > conftest.i && {
1567          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1568          test ! -s conftest.err
1569        }; then :
1570   ac_retval=0
1571 else
1572   $as_echo "$as_me: failed program was:" >&5
1573 sed 's/^/| /' conftest.$ac_ext >&5
1574
1575     ac_retval=1
1576 fi
1577   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578   as_fn_set_status $ac_retval
1579
1580 } # ac_fn_c_try_cpp
1581
1582 # ac_fn_c_try_link LINENO
1583 # -----------------------
1584 # Try to link conftest.$ac_ext, and return whether this succeeded.
1585 ac_fn_c_try_link ()
1586 {
1587   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588   rm -f conftest.$ac_objext conftest$ac_exeext
1589   if { { ac_try="$ac_link"
1590 case "(($ac_try" in
1591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592   *) ac_try_echo=$ac_try;;
1593 esac
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596   (eval "$ac_link") 2>conftest.err
1597   ac_status=$?
1598   if test -s conftest.err; then
1599     grep -v '^ *+' conftest.err >conftest.er1
1600     cat conftest.er1 >&5
1601     mv -f conftest.er1 conftest.err
1602   fi
1603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604   test $ac_status = 0; } && {
1605          test -z "$ac_c_werror_flag" ||
1606          test ! -s conftest.err
1607        } && test -s conftest$ac_exeext && {
1608          test "$cross_compiling" = yes ||
1609          test -x conftest$ac_exeext
1610        }; then :
1611   ac_retval=0
1612 else
1613   $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616         ac_retval=1
1617 fi
1618   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1619   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1620   # interfere with the next link command; also delete a directory that is
1621   # left behind by Apple's compiler.  We do this before executing the actions.
1622   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1623   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624   as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_link
1627
1628 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1629 # -------------------------------------------------------
1630 # Tests whether HEADER exists and can be compiled using the include files in
1631 # INCLUDES, setting the cache variable VAR accordingly.
1632 ac_fn_c_check_header_compile ()
1633 {
1634   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1636 $as_echo_n "checking for $2... " >&6; }
1637 if eval \${$3+:} false; then :
1638   $as_echo_n "(cached) " >&6
1639 else
1640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1641 /* end confdefs.h.  */
1642 $4
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_compile "$LINENO"; then :
1646   eval "$3=yes"
1647 else
1648   eval "$3=no"
1649 fi
1650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1651 fi
1652 eval ac_res=\$$3
1653                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1654 $as_echo "$ac_res" >&6; }
1655   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
1657 } # ac_fn_c_check_header_compile
1658
1659 # ac_fn_c_try_run LINENO
1660 # ----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1662 # that executables *can* be run.
1663 ac_fn_c_try_run ()
1664 {
1665   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666   if { { ac_try="$ac_link"
1667 case "(($ac_try" in
1668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669   *) ac_try_echo=$ac_try;;
1670 esac
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673   (eval "$ac_link") 2>&5
1674   ac_status=$?
1675   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1677   { { case "(($ac_try" in
1678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679   *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683   (eval "$ac_try") 2>&5
1684   ac_status=$?
1685   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686   test $ac_status = 0; }; }; then :
1687   ac_retval=0
1688 else
1689   $as_echo "$as_me: program exited with status $ac_status" >&5
1690        $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1692
1693        ac_retval=$ac_status
1694 fi
1695   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697   as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_run
1700
1701 # ac_fn_c_check_func LINENO FUNC VAR
1702 # ----------------------------------
1703 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1704 ac_fn_c_check_func ()
1705 {
1706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if eval \${$3+:} false; then :
1710   $as_echo_n "(cached) " >&6
1711 else
1712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713 /* end confdefs.h.  */
1714 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1715    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1716 #define $2 innocuous_$2
1717
1718 /* System header to define __stub macros and hopefully few prototypes,
1719     which can conflict with char $2 (); below.
1720     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1721     <limits.h> exists even on freestanding compilers.  */
1722
1723 #ifdef __STDC__
1724 # include <limits.h>
1725 #else
1726 # include <assert.h>
1727 #endif
1728
1729 #undef $2
1730
1731 /* Override any GCC internal prototype to avoid an error.
1732    Use char because int might match the return type of a GCC
1733    builtin and then its argument prototype would still apply.  */
1734 #ifdef __cplusplus
1735 extern "C"
1736 #endif
1737 char $2 ();
1738 /* The GNU C library defines this for functions which it implements
1739     to always fail with ENOSYS.  Some functions are actually named
1740     something starting with __ and the normal name is an alias.  */
1741 #if defined __stub_$2 || defined __stub___$2
1742 choke me
1743 #endif
1744
1745 int
1746 main ()
1747 {
1748 return $2 ();
1749   ;
1750   return 0;
1751 }
1752 _ACEOF
1753 if ac_fn_c_try_link "$LINENO"; then :
1754   eval "$3=yes"
1755 else
1756   eval "$3=no"
1757 fi
1758 rm -f core conftest.err conftest.$ac_objext \
1759     conftest$ac_exeext conftest.$ac_ext
1760 fi
1761 eval ac_res=\$$3
1762                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763 $as_echo "$ac_res" >&6; }
1764   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765
1766 } # ac_fn_c_check_func
1767
1768 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1769 # -------------------------------------------------------
1770 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1771 # the include files in INCLUDES and setting the cache variable VAR
1772 # accordingly.
1773 ac_fn_c_check_header_mongrel ()
1774 {
1775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776   if eval \${$3+:} false; then :
1777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780   $as_echo_n "(cached) " >&6
1781 fi
1782 eval ac_res=\$$3
1783                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 else
1786   # Is the header compilable?
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1788 $as_echo_n "checking $2 usability... " >&6; }
1789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790 /* end confdefs.h.  */
1791 $4
1792 #include <$2>
1793 _ACEOF
1794 if ac_fn_c_try_compile "$LINENO"; then :
1795   ac_header_compiler=yes
1796 else
1797   ac_header_compiler=no
1798 fi
1799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1801 $as_echo "$ac_header_compiler" >&6; }
1802
1803 # Is the header present?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1805 $as_echo_n "checking $2 presence... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h.  */
1808 #include <$2>
1809 _ACEOF
1810 if ac_fn_c_try_cpp "$LINENO"; then :
1811   ac_header_preproc=yes
1812 else
1813   ac_header_preproc=no
1814 fi
1815 rm -f conftest.err conftest.i conftest.$ac_ext
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1817 $as_echo "$ac_header_preproc" >&6; }
1818
1819 # So?  What about this header?
1820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1821   yes:no: )
1822     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1823 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1824     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1826     ;;
1827   no:yes:* )
1828     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1829 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1830     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1831 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1832     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1833 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1834     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1835 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1836     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1838 ( $as_echo "## ---------------------------------------------------------- ##
1839 ## Report this to https://bitbucket.org/xi/libyaml/issues/new ##
1840 ## ---------------------------------------------------------- ##"
1841      ) | sed "s/^/$as_me: WARNING:     /" >&2
1842     ;;
1843 esac
1844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if eval \${$3+:} false; then :
1847   $as_echo_n "(cached) " >&6
1848 else
1849   eval "$3=\$ac_header_compiler"
1850 fi
1851 eval ac_res=\$$3
1852                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853 $as_echo "$ac_res" >&6; }
1854 fi
1855   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1856
1857 } # ac_fn_c_check_header_mongrel
1858
1859 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1860 # -------------------------------------------
1861 # Tests whether TYPE exists after having included INCLUDES, setting cache
1862 # variable VAR accordingly.
1863 ac_fn_c_check_type ()
1864 {
1865   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1867 $as_echo_n "checking for $2... " >&6; }
1868 if eval \${$3+:} false; then :
1869   $as_echo_n "(cached) " >&6
1870 else
1871   eval "$3=no"
1872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873 /* end confdefs.h.  */
1874 $4
1875 int
1876 main ()
1877 {
1878 if (sizeof ($2))
1879          return 0;
1880   ;
1881   return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h.  */
1887 $4
1888 int
1889 main ()
1890 {
1891 if (sizeof (($2)))
1892             return 0;
1893   ;
1894   return 0;
1895 }
1896 _ACEOF
1897 if ac_fn_c_try_compile "$LINENO"; then :
1898
1899 else
1900   eval "$3=yes"
1901 fi
1902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903 fi
1904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1905 fi
1906 eval ac_res=\$$3
1907                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1909   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910
1911 } # ac_fn_c_check_type
1912 cat >config.log <<_ACEOF
1913 This file contains any messages produced by compilers while
1914 running configure, to aid debugging if configure makes a mistake.
1915
1916 It was created by yaml $as_me 0.1.7, which was
1917 generated by GNU Autoconf 2.69.  Invocation command line was
1918
1919   $ $0 $@
1920
1921 _ACEOF
1922 exec 5>>config.log
1923 {
1924 cat <<_ASUNAME
1925 ## --------- ##
1926 ## Platform. ##
1927 ## --------- ##
1928
1929 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1930 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1931 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1932 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1933 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1934
1935 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1936 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1937
1938 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1939 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1940 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1941 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1942 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1943 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1944 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1945
1946 _ASUNAME
1947
1948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 for as_dir in $PATH
1950 do
1951   IFS=$as_save_IFS
1952   test -z "$as_dir" && as_dir=.
1953     $as_echo "PATH: $as_dir"
1954   done
1955 IFS=$as_save_IFS
1956
1957 } >&5
1958
1959 cat >&5 <<_ACEOF
1960
1961
1962 ## ----------- ##
1963 ## Core tests. ##
1964 ## ----------- ##
1965
1966 _ACEOF
1967
1968
1969 # Keep a trace of the command line.
1970 # Strip out --no-create and --no-recursion so they do not pile up.
1971 # Strip out --silent because we don't want to record it for future runs.
1972 # Also quote any args containing shell meta-characters.
1973 # Make two passes to allow for proper duplicate-argument suppression.
1974 ac_configure_args=
1975 ac_configure_args0=
1976 ac_configure_args1=
1977 ac_must_keep_next=false
1978 for ac_pass in 1 2
1979 do
1980   for ac_arg
1981   do
1982     case $ac_arg in
1983     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1984     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1985     | -silent | --silent | --silen | --sile | --sil)
1986       continue ;;
1987     *\'*)
1988       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1989     esac
1990     case $ac_pass in
1991     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1992     2)
1993       as_fn_append ac_configure_args1 " '$ac_arg'"
1994       if test $ac_must_keep_next = true; then
1995         ac_must_keep_next=false # Got value, back to normal.
1996       else
1997         case $ac_arg in
1998           *=* | --config-cache | -C | -disable-* | --disable-* \
1999           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2000           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2001           | -with-* | --with-* | -without-* | --without-* | --x)
2002             case "$ac_configure_args0 " in
2003               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2004             esac
2005             ;;
2006           -* ) ac_must_keep_next=true ;;
2007         esac
2008       fi
2009       as_fn_append ac_configure_args " '$ac_arg'"
2010       ;;
2011     esac
2012   done
2013 done
2014 { ac_configure_args0=; unset ac_configure_args0;}
2015 { ac_configure_args1=; unset ac_configure_args1;}
2016
2017 # When interrupted or exit'd, cleanup temporary files, and complete
2018 # config.log.  We remove comments because anyway the quotes in there
2019 # would cause problems or look ugly.
2020 # WARNING: Use '\'' to represent an apostrophe within the trap.
2021 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2022 trap 'exit_status=$?
2023   # Save into config.log some information that might help in debugging.
2024   {
2025     echo
2026
2027     $as_echo "## ---------------- ##
2028 ## Cache variables. ##
2029 ## ---------------- ##"
2030     echo
2031     # The following way of writing the cache mishandles newlines in values,
2032 (
2033   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2034     eval ac_val=\$$ac_var
2035     case $ac_val in #(
2036     *${as_nl}*)
2037       case $ac_var in #(
2038       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2039 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2040       esac
2041       case $ac_var in #(
2042       _ | IFS | as_nl) ;; #(
2043       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2044       *) { eval $ac_var=; unset $ac_var;} ;;
2045       esac ;;
2046     esac
2047   done
2048   (set) 2>&1 |
2049     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2050     *${as_nl}ac_space=\ *)
2051       sed -n \
2052         "s/'\''/'\''\\\\'\'''\''/g;
2053           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2054       ;; #(
2055     *)
2056       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2057       ;;
2058     esac |
2059     sort
2060 )
2061     echo
2062
2063     $as_echo "## ----------------- ##
2064 ## Output variables. ##
2065 ## ----------------- ##"
2066     echo
2067     for ac_var in $ac_subst_vars
2068     do
2069       eval ac_val=\$$ac_var
2070       case $ac_val in
2071       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2072       esac
2073       $as_echo "$ac_var='\''$ac_val'\''"
2074     done | sort
2075     echo
2076
2077     if test -n "$ac_subst_files"; then
2078       $as_echo "## ------------------- ##
2079 ## File substitutions. ##
2080 ## ------------------- ##"
2081       echo
2082       for ac_var in $ac_subst_files
2083       do
2084         eval ac_val=\$$ac_var
2085         case $ac_val in
2086         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2087         esac
2088         $as_echo "$ac_var='\''$ac_val'\''"
2089       done | sort
2090       echo
2091     fi
2092
2093     if test -s confdefs.h; then
2094       $as_echo "## ----------- ##
2095 ## confdefs.h. ##
2096 ## ----------- ##"
2097       echo
2098       cat confdefs.h
2099       echo
2100     fi
2101     test "$ac_signal" != 0 &&
2102       $as_echo "$as_me: caught signal $ac_signal"
2103     $as_echo "$as_me: exit $exit_status"
2104   } >&5
2105   rm -f core *.core core.conftest.* &&
2106     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2107     exit $exit_status
2108 ' 0
2109 for ac_signal in 1 2 13 15; do
2110   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2111 done
2112 ac_signal=0
2113
2114 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2115 rm -f -r conftest* confdefs.h
2116
2117 $as_echo "/* confdefs.h */" > confdefs.h
2118
2119 # Predefined preprocessor variables.
2120
2121 cat >>confdefs.h <<_ACEOF
2122 #define PACKAGE_NAME "$PACKAGE_NAME"
2123 _ACEOF
2124
2125 cat >>confdefs.h <<_ACEOF
2126 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2127 _ACEOF
2128
2129 cat >>confdefs.h <<_ACEOF
2130 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2131 _ACEOF
2132
2133 cat >>confdefs.h <<_ACEOF
2134 #define PACKAGE_STRING "$PACKAGE_STRING"
2135 _ACEOF
2136
2137 cat >>confdefs.h <<_ACEOF
2138 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2139 _ACEOF
2140
2141 cat >>confdefs.h <<_ACEOF
2142 #define PACKAGE_URL "$PACKAGE_URL"
2143 _ACEOF
2144
2145
2146 # Let the site file select an alternate cache file if it wants to.
2147 # Prefer an explicitly selected file to automatically selected ones.
2148 ac_site_file1=NONE
2149 ac_site_file2=NONE
2150 if test -n "$CONFIG_SITE"; then
2151   # We do not want a PATH search for config.site.
2152   case $CONFIG_SITE in #((
2153     -*)  ac_site_file1=./$CONFIG_SITE;;
2154     */*) ac_site_file1=$CONFIG_SITE;;
2155     *)   ac_site_file1=./$CONFIG_SITE;;
2156   esac
2157 elif test "x$prefix" != xNONE; then
2158   ac_site_file1=$prefix/share/config.site
2159   ac_site_file2=$prefix/etc/config.site
2160 else
2161   ac_site_file1=$ac_default_prefix/share/config.site
2162   ac_site_file2=$ac_default_prefix/etc/config.site
2163 fi
2164 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2165 do
2166   test "x$ac_site_file" = xNONE && continue
2167   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2168     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2169 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2170     sed 's/^/| /' "$ac_site_file" >&5
2171     . "$ac_site_file" \
2172       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2174 as_fn_error $? "failed to load site script $ac_site_file
2175 See \`config.log' for more details" "$LINENO" 5; }
2176   fi
2177 done
2178
2179 if test -r "$cache_file"; then
2180   # Some versions of bash will fail to source /dev/null (special files
2181   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2182   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2183     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2184 $as_echo "$as_me: loading cache $cache_file" >&6;}
2185     case $cache_file in
2186       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2187       *)                      . "./$cache_file";;
2188     esac
2189   fi
2190 else
2191   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2192 $as_echo "$as_me: creating cache $cache_file" >&6;}
2193   >$cache_file
2194 fi
2195
2196 # Check that the precious variables saved in the cache have kept the same
2197 # value.
2198 ac_cache_corrupted=false
2199 for ac_var in $ac_precious_vars; do
2200   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2201   eval ac_new_set=\$ac_env_${ac_var}_set
2202   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2203   eval ac_new_val=\$ac_env_${ac_var}_value
2204   case $ac_old_set,$ac_new_set in
2205     set,)
2206       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2207 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2208       ac_cache_corrupted=: ;;
2209     ,set)
2210       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2211 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2212       ac_cache_corrupted=: ;;
2213     ,);;
2214     *)
2215       if test "x$ac_old_val" != "x$ac_new_val"; then
2216         # differences in whitespace do not lead to failure.
2217         ac_old_val_w=`echo x $ac_old_val`
2218         ac_new_val_w=`echo x $ac_new_val`
2219         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2220           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2221 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2222           ac_cache_corrupted=:
2223         else
2224           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2225 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2226           eval $ac_var=\$ac_old_val
2227         fi
2228         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2229 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2230         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2231 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2232       fi;;
2233   esac
2234   # Pass precious variables to config.status.
2235   if test "$ac_new_set" = set; then
2236     case $ac_new_val in
2237     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2238     *) ac_arg=$ac_var=$ac_new_val ;;
2239     esac
2240     case " $ac_configure_args " in
2241       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2242       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2243     esac
2244   fi
2245 done
2246 if $ac_cache_corrupted; then
2247   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2249   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2250 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2251   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2252 fi
2253 ## -------------------- ##
2254 ## Main body of script. ##
2255 ## -------------------- ##
2256
2257 ac_ext=c
2258 ac_cpp='$CPP $CPPFLAGS'
2259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262
2263
2264 ac_aux_dir=
2265 for ac_dir in config "$srcdir"/config; do
2266   if test -f "$ac_dir/install-sh"; then
2267     ac_aux_dir=$ac_dir
2268     ac_install_sh="$ac_aux_dir/install-sh -c"
2269     break
2270   elif test -f "$ac_dir/install.sh"; then
2271     ac_aux_dir=$ac_dir
2272     ac_install_sh="$ac_aux_dir/install.sh -c"
2273     break
2274   elif test -f "$ac_dir/shtool"; then
2275     ac_aux_dir=$ac_dir
2276     ac_install_sh="$ac_aux_dir/shtool install -c"
2277     break
2278   fi
2279 done
2280 if test -z "$ac_aux_dir"; then
2281   as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2282 fi
2283
2284 # These three variables are undocumented and unsupported,
2285 # and are intended to be withdrawn in a future Autoconf release.
2286 # They can cause serious problems if a builder's source tree is in a directory
2287 # whose full name contains unusual characters.
2288 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2289 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2290 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2291
2292
2293 ac_config_headers="$ac_config_headers config.h"
2294
2295 am__api_version='1.14'
2296
2297 # Find a good install program.  We prefer a C program (faster),
2298 # so one script is as good as another.  But avoid the broken or
2299 # incompatible versions:
2300 # SysV /etc/install, /usr/sbin/install
2301 # SunOS /usr/etc/install
2302 # IRIX /sbin/install
2303 # AIX /bin/install
2304 # AmigaOS /C/install, which installs bootblocks on floppy discs
2305 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2306 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2307 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2308 # OS/2's system install, which has a completely different semantic
2309 # ./install, which can be erroneously created by make from ./install.sh.
2310 # Reject install programs that cannot install multiple files.
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2312 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2313 if test -z "$INSTALL"; then
2314 if ${ac_cv_path_install+:} false; then :
2315   $as_echo_n "(cached) " >&6
2316 else
2317   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2319 do
2320   IFS=$as_save_IFS
2321   test -z "$as_dir" && as_dir=.
2322     # Account for people who put trailing slashes in PATH elements.
2323 case $as_dir/ in #((
2324   ./ | .// | /[cC]/* | \
2325   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2326   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2327   /usr/ucb/* ) ;;
2328   *)
2329     # OSF1 and SCO ODT 3.0 have their own names for install.
2330     # Don't use installbsd from OSF since it installs stuff as root
2331     # by default.
2332     for ac_prog in ginstall scoinst install; do
2333       for ac_exec_ext in '' $ac_executable_extensions; do
2334         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2335           if test $ac_prog = install &&
2336             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2337             # AIX install.  It has an incompatible calling convention.
2338             :
2339           elif test $ac_prog = install &&
2340             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2341             # program-specific install script used by HP pwplus--don't use.
2342             :
2343           else
2344             rm -rf conftest.one conftest.two conftest.dir
2345             echo one > conftest.one
2346             echo two > conftest.two
2347             mkdir conftest.dir
2348             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2349               test -s conftest.one && test -s conftest.two &&
2350               test -s conftest.dir/conftest.one &&
2351               test -s conftest.dir/conftest.two
2352             then
2353               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2354               break 3
2355             fi
2356           fi
2357         fi
2358       done
2359     done
2360     ;;
2361 esac
2362
2363   done
2364 IFS=$as_save_IFS
2365
2366 rm -rf conftest.one conftest.two conftest.dir
2367
2368 fi
2369   if test "${ac_cv_path_install+set}" = set; then
2370     INSTALL=$ac_cv_path_install
2371   else
2372     # As a last resort, use the slow shell script.  Don't cache a
2373     # value for INSTALL within a source directory, because that will
2374     # break other packages using the cache if that directory is
2375     # removed, or if the value is a relative name.
2376     INSTALL=$ac_install_sh
2377   fi
2378 fi
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2380 $as_echo "$INSTALL" >&6; }
2381
2382 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2383 # It thinks the first close brace ends the variable substitution.
2384 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2385
2386 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2387
2388 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2389
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2391 $as_echo_n "checking whether build environment is sane... " >&6; }
2392 # Reject unsafe characters in $srcdir or the absolute working directory
2393 # name.  Accept space and tab only in the latter.
2394 am_lf='
2395 '
2396 case `pwd` in
2397   *[\\\"\#\$\&\'\`$am_lf]*)
2398     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2399 esac
2400 case $srcdir in
2401   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2402     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2403 esac
2404
2405 # Do 'set' in a subshell so we don't clobber the current shell's
2406 # arguments.  Must try -L first in case configure is actually a
2407 # symlink; some systems play weird games with the mod time of symlinks
2408 # (eg FreeBSD returns the mod time of the symlink's containing
2409 # directory).
2410 if (
2411    am_has_slept=no
2412    for am_try in 1 2; do
2413      echo "timestamp, slept: $am_has_slept" > conftest.file
2414      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2415      if test "$*" = "X"; then
2416         # -L didn't work.
2417         set X `ls -t "$srcdir/configure" conftest.file`
2418      fi
2419      if test "$*" != "X $srcdir/configure conftest.file" \
2420         && test "$*" != "X conftest.file $srcdir/configure"; then
2421
2422         # If neither matched, then we have a broken ls.  This can happen
2423         # if, for instance, CONFIG_SHELL is bash and it inherits a
2424         # broken ls alias from the environment.  This has actually
2425         # happened.  Such a system could not be considered "sane".
2426         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2427   alias in your environment" "$LINENO" 5
2428      fi
2429      if test "$2" = conftest.file || test $am_try -eq 2; then
2430        break
2431      fi
2432      # Just in case.
2433      sleep 1
2434      am_has_slept=yes
2435    done
2436    test "$2" = conftest.file
2437    )
2438 then
2439    # Ok.
2440    :
2441 else
2442    as_fn_error $? "newly created file is older than distributed files!
2443 Check your system clock" "$LINENO" 5
2444 fi
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2446 $as_echo "yes" >&6; }
2447 # If we didn't sleep, we still need to ensure time stamps of config.status and
2448 # generated files are strictly newer.
2449 am_sleep_pid=
2450 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2451   ( sleep 1 ) &
2452   am_sleep_pid=$!
2453 fi
2454
2455 rm -f conftest.file
2456
2457 test "$program_prefix" != NONE &&
2458   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2459 # Use a double $ so make ignores it.
2460 test "$program_suffix" != NONE &&
2461   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2462 # Double any \ or $.
2463 # By default was `s,x,x', remove it if useless.
2464 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2465 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2466
2467 # expand $ac_aux_dir to an absolute path
2468 am_aux_dir=`cd $ac_aux_dir && pwd`
2469
2470 if test x"${MISSING+set}" != xset; then
2471   case $am_aux_dir in
2472   *\ * | *\     *)
2473     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2474   *)
2475     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2476   esac
2477 fi
2478 # Use eval to expand $SHELL
2479 if eval "$MISSING --is-lightweight"; then
2480   am_missing_run="$MISSING "
2481 else
2482   am_missing_run=
2483   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2484 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2485 fi
2486
2487 if test x"${install_sh}" != xset; then
2488   case $am_aux_dir in
2489   *\ * | *\     *)
2490     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2491   *)
2492     install_sh="\${SHELL} $am_aux_dir/install-sh"
2493   esac
2494 fi
2495
2496 # Installed binaries are usually stripped using 'strip' when the user
2497 # run "make install-strip".  However 'strip' might not be the right
2498 # tool to use in cross-compilation environments, therefore Automake
2499 # will honor the 'STRIP' environment variable to overrule this program.
2500 if test "$cross_compiling" != no; then
2501   if test -n "$ac_tool_prefix"; then
2502   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2503 set dummy ${ac_tool_prefix}strip; ac_word=$2
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2505 $as_echo_n "checking for $ac_word... " >&6; }
2506 if ${ac_cv_prog_STRIP+:} false; then :
2507   $as_echo_n "(cached) " >&6
2508 else
2509   if test -n "$STRIP"; then
2510   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2511 else
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513 for as_dir in $PATH
2514 do
2515   IFS=$as_save_IFS
2516   test -z "$as_dir" && as_dir=.
2517     for ac_exec_ext in '' $ac_executable_extensions; do
2518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2519     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2520     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2521     break 2
2522   fi
2523 done
2524   done
2525 IFS=$as_save_IFS
2526
2527 fi
2528 fi
2529 STRIP=$ac_cv_prog_STRIP
2530 if test -n "$STRIP"; then
2531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2532 $as_echo "$STRIP" >&6; }
2533 else
2534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2535 $as_echo "no" >&6; }
2536 fi
2537
2538
2539 fi
2540 if test -z "$ac_cv_prog_STRIP"; then
2541   ac_ct_STRIP=$STRIP
2542   # Extract the first word of "strip", so it can be a program name with args.
2543 set dummy strip; ac_word=$2
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2545 $as_echo_n "checking for $ac_word... " >&6; }
2546 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2547   $as_echo_n "(cached) " >&6
2548 else
2549   if test -n "$ac_ct_STRIP"; then
2550   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2551 else
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2553 for as_dir in $PATH
2554 do
2555   IFS=$as_save_IFS
2556   test -z "$as_dir" && as_dir=.
2557     for ac_exec_ext in '' $ac_executable_extensions; do
2558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559     ac_cv_prog_ac_ct_STRIP="strip"
2560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2561     break 2
2562   fi
2563 done
2564   done
2565 IFS=$as_save_IFS
2566
2567 fi
2568 fi
2569 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2570 if test -n "$ac_ct_STRIP"; then
2571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2572 $as_echo "$ac_ct_STRIP" >&6; }
2573 else
2574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2575 $as_echo "no" >&6; }
2576 fi
2577
2578   if test "x$ac_ct_STRIP" = x; then
2579     STRIP=":"
2580   else
2581     case $cross_compiling:$ac_tool_warned in
2582 yes:)
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2585 ac_tool_warned=yes ;;
2586 esac
2587     STRIP=$ac_ct_STRIP
2588   fi
2589 else
2590   STRIP="$ac_cv_prog_STRIP"
2591 fi
2592
2593 fi
2594 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2595
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2597 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2598 if test -z "$MKDIR_P"; then
2599   if ${ac_cv_path_mkdir+:} false; then :
2600   $as_echo_n "(cached) " >&6
2601 else
2602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2604 do
2605   IFS=$as_save_IFS
2606   test -z "$as_dir" && as_dir=.
2607     for ac_prog in mkdir gmkdir; do
2608          for ac_exec_ext in '' $ac_executable_extensions; do
2609            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2610            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2611              'mkdir (GNU coreutils) '* | \
2612              'mkdir (coreutils) '* | \
2613              'mkdir (fileutils) '4.1*)
2614                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2615                break 3;;
2616            esac
2617          done
2618        done
2619   done
2620 IFS=$as_save_IFS
2621
2622 fi
2623
2624   test -d ./--version && rmdir ./--version
2625   if test "${ac_cv_path_mkdir+set}" = set; then
2626     MKDIR_P="$ac_cv_path_mkdir -p"
2627   else
2628     # As a last resort, use the slow shell script.  Don't cache a
2629     # value for MKDIR_P within a source directory, because that will
2630     # break other packages using the cache if that directory is
2631     # removed, or if the value is a relative name.
2632     MKDIR_P="$ac_install_sh -d"
2633   fi
2634 fi
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2636 $as_echo "$MKDIR_P" >&6; }
2637
2638 for ac_prog in gawk mawk nawk awk
2639 do
2640   # Extract the first word of "$ac_prog", so it can be a program name with args.
2641 set dummy $ac_prog; ac_word=$2
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if ${ac_cv_prog_AWK+:} false; then :
2645   $as_echo_n "(cached) " >&6
2646 else
2647   if test -n "$AWK"; then
2648   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653   IFS=$as_save_IFS
2654   test -z "$as_dir" && as_dir=.
2655     for ac_exec_ext in '' $ac_executable_extensions; do
2656   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2657     ac_cv_prog_AWK="$ac_prog"
2658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2659     break 2
2660   fi
2661 done
2662   done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 AWK=$ac_cv_prog_AWK
2668 if test -n "$AWK"; then
2669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2670 $as_echo "$AWK" >&6; }
2671 else
2672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676
2677   test -n "$AWK" && break
2678 done
2679
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2681 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2682 set x ${MAKE-make}
2683 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2684 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2685   $as_echo_n "(cached) " >&6
2686 else
2687   cat >conftest.make <<\_ACEOF
2688 SHELL = /bin/sh
2689 all:
2690         @echo '@@@%%%=$(MAKE)=@@@%%%'
2691 _ACEOF
2692 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2693 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2694   *@@@%%%=?*=@@@%%%*)
2695     eval ac_cv_prog_make_${ac_make}_set=yes;;
2696   *)
2697     eval ac_cv_prog_make_${ac_make}_set=no;;
2698 esac
2699 rm -f conftest.make
2700 fi
2701 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2703 $as_echo "yes" >&6; }
2704   SET_MAKE=
2705 else
2706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2707 $as_echo "no" >&6; }
2708   SET_MAKE="MAKE=${MAKE-make}"
2709 fi
2710
2711 rm -rf .tst 2>/dev/null
2712 mkdir .tst 2>/dev/null
2713 if test -d .tst; then
2714   am__leading_dot=.
2715 else
2716   am__leading_dot=_
2717 fi
2718 rmdir .tst 2>/dev/null
2719
2720 # Check whether --enable-silent-rules was given.
2721 if test "${enable_silent_rules+set}" = set; then :
2722   enableval=$enable_silent_rules;
2723 fi
2724
2725 case $enable_silent_rules in # (((
2726   yes) AM_DEFAULT_VERBOSITY=0;;
2727    no) AM_DEFAULT_VERBOSITY=1;;
2728     *) AM_DEFAULT_VERBOSITY=1;;
2729 esac
2730 am_make=${MAKE-make}
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2732 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2733 if ${am_cv_make_support_nested_variables+:} false; then :
2734   $as_echo_n "(cached) " >&6
2735 else
2736   if $as_echo 'TRUE=$(BAR$(V))
2737 BAR0=false
2738 BAR1=true
2739 V=1
2740 am__doit:
2741         @$(TRUE)
2742 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2743   am_cv_make_support_nested_variables=yes
2744 else
2745   am_cv_make_support_nested_variables=no
2746 fi
2747 fi
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2749 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2750 if test $am_cv_make_support_nested_variables = yes; then
2751     AM_V='$(V)'
2752   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2753 else
2754   AM_V=$AM_DEFAULT_VERBOSITY
2755   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2756 fi
2757 AM_BACKSLASH='\'
2758
2759 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2760   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2761   # is not polluted with repeated "-I."
2762   am__isrc=' -I$(srcdir)'
2763   # test to see if srcdir already configured
2764   if test -f $srcdir/config.status; then
2765     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2766   fi
2767 fi
2768
2769 # test whether we have cygpath
2770 if test -z "$CYGPATH_W"; then
2771   if (cygpath --version) >/dev/null 2>/dev/null; then
2772     CYGPATH_W='cygpath -w'
2773   else
2774     CYGPATH_W=echo
2775   fi
2776 fi
2777
2778
2779 # Define the identity of the package.
2780  PACKAGE='yaml'
2781  VERSION='0.1.7'
2782
2783
2784 cat >>confdefs.h <<_ACEOF
2785 #define PACKAGE "$PACKAGE"
2786 _ACEOF
2787
2788
2789 cat >>confdefs.h <<_ACEOF
2790 #define VERSION "$VERSION"
2791 _ACEOF
2792
2793 # Some tools Automake needs.
2794
2795 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2796
2797
2798 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2799
2800
2801 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2802
2803
2804 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2805
2806
2807 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2808
2809 # For better backward compatibility.  To be removed once Automake 1.9.x
2810 # dies out for good.  For more background, see:
2811 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2812 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2813 mkdir_p='$(MKDIR_P)'
2814
2815 # We need awk for the "check" target.  The system "awk" is bad on
2816 # some platforms.
2817 # Always define AMTAR for backward compatibility.  Yes, it's still used
2818 # in the wild :-(  We should find a proper way to deprecate it ...
2819 AMTAR='$${TAR-tar}'
2820
2821
2822 # We'll loop over all known methods to create a tar archive until one works.
2823 _am_tools='gnutar  pax cpio none'
2824
2825 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2826
2827
2828
2829
2830
2831
2832 # POSIX will say in a future version that running "rm -f" with no argument
2833 # is OK; and we want to be able to make that assumption in our Makefile
2834 # recipes.  So use an aggressive probe to check that the usage we want is
2835 # actually supported "in the wild" to an acceptable degree.
2836 # See automake bug#10828.
2837 # To make any issue more visible, cause the running configure to be aborted
2838 # by default if the 'rm' program in use doesn't match our expectations; the
2839 # user can still override this though.
2840 if rm -f && rm -fr && rm -rf; then : OK; else
2841   cat >&2 <<'END'
2842 Oops!
2843
2844 Your 'rm' program seems unable to run without file operands specified
2845 on the command line, even when the '-f' option is present.  This is contrary
2846 to the behaviour of most rm programs out there, and not conforming with
2847 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2848
2849 Please tell bug-automake@gnu.org about your system, including the value
2850 of your $PATH and any error possibly output before this message.  This
2851 can help us improve future automake versions.
2852
2853 END
2854   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2855     echo 'Configuration will proceed anyway, since you have set the' >&2
2856     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2857     echo >&2
2858   else
2859     cat >&2 <<'END'
2860 Aborting the configuration process, to ensure you take notice of the issue.
2861
2862 You can download and install GNU coreutils to get an 'rm' implementation
2863 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2864
2865 If you want to complete the configuration process using your problematic
2866 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2867 to "yes", and re-run configure.
2868
2869 END
2870     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2871   fi
2872 fi
2873
2874 # Define macro variables for the package version numbers.
2875
2876 $as_echo "#define YAML_VERSION_MAJOR 0" >>confdefs.h
2877
2878
2879 $as_echo "#define YAML_VERSION_MINOR 1" >>confdefs.h
2880
2881
2882 $as_echo "#define YAML_VERSION_PATCH 7" >>confdefs.h
2883
2884
2885 $as_echo "#define YAML_VERSION_STRING \"0.1.7\"" >>confdefs.h
2886
2887
2888 # Define substitutions for the libtool version numbers.
2889 YAML_LT_RELEASE=0
2890 YAML_LT_CURRENT=2
2891 YAML_LT_REVISION=5
2892 YAML_LT_AGE=0
2893
2894
2895
2896
2897
2898 # Note: in order to update checks, run `autoscan` and look through "configure.scan".
2899
2900 # Checks for programs.
2901 ac_ext=c
2902 ac_cpp='$CPP $CPPFLAGS'
2903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2906 if test -n "$ac_tool_prefix"; then
2907   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2908 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if ${ac_cv_prog_CC+:} false; then :
2912   $as_echo_n "(cached) " >&6
2913 else
2914   if test -n "$CC"; then
2915   ac_cv_prog_CC="$CC" # Let the user override the test.
2916 else
2917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2918 for as_dir in $PATH
2919 do
2920   IFS=$as_save_IFS
2921   test -z "$as_dir" && as_dir=.
2922     for ac_exec_ext in '' $ac_executable_extensions; do
2923   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2924     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926     break 2
2927   fi
2928 done
2929   done
2930 IFS=$as_save_IFS
2931
2932 fi
2933 fi
2934 CC=$ac_cv_prog_CC
2935 if test -n "$CC"; then
2936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2937 $as_echo "$CC" >&6; }
2938 else
2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2941 fi
2942
2943
2944 fi
2945 if test -z "$ac_cv_prog_CC"; then
2946   ac_ct_CC=$CC
2947   # Extract the first word of "gcc", so it can be a program name with args.
2948 set dummy gcc; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2952   $as_echo_n "(cached) " >&6
2953 else
2954   if test -n "$ac_ct_CC"; then
2955   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960   IFS=$as_save_IFS
2961   test -z "$as_dir" && as_dir=.
2962     for ac_exec_ext in '' $ac_executable_extensions; do
2963   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964     ac_cv_prog_ac_ct_CC="gcc"
2965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966     break 2
2967   fi
2968 done
2969   done
2970 IFS=$as_save_IFS
2971
2972 fi
2973 fi
2974 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2975 if test -n "$ac_ct_CC"; then
2976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2977 $as_echo "$ac_ct_CC" >&6; }
2978 else
2979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 fi
2982
2983   if test "x$ac_ct_CC" = x; then
2984     CC=""
2985   else
2986     case $cross_compiling:$ac_tool_warned in
2987 yes:)
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2990 ac_tool_warned=yes ;;
2991 esac
2992     CC=$ac_ct_CC
2993   fi
2994 else
2995   CC="$ac_cv_prog_CC"
2996 fi
2997
2998 if test -z "$CC"; then
2999           if test -n "$ac_tool_prefix"; then
3000     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3001 set dummy ${ac_tool_prefix}cc; ac_word=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_CC+:} false; then :
3005   $as_echo_n "(cached) " >&6
3006 else
3007   if test -n "$CC"; then
3008   ac_cv_prog_CC="$CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013   IFS=$as_save_IFS
3014   test -z "$as_dir" && as_dir=.
3015     for ac_exec_ext in '' $ac_executable_extensions; do
3016   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017     ac_cv_prog_CC="${ac_tool_prefix}cc"
3018     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3019     break 2
3020   fi
3021 done
3022   done
3023 IFS=$as_save_IFS
3024
3025 fi
3026 fi
3027 CC=$ac_cv_prog_CC
3028 if test -n "$CC"; then
3029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3031 else
3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 fi
3035
3036
3037   fi
3038 fi
3039 if test -z "$CC"; then
3040   # Extract the first word of "cc", so it can be a program name with args.
3041 set dummy cc; ac_word=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_CC+:} false; then :
3045   $as_echo_n "(cached) " >&6
3046 else
3047   if test -n "$CC"; then
3048   ac_cv_prog_CC="$CC" # Let the user override the test.
3049 else
3050   ac_prog_rejected=no
3051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3052 for as_dir in $PATH
3053 do
3054   IFS=$as_save_IFS
3055   test -z "$as_dir" && as_dir=.
3056     for ac_exec_ext in '' $ac_executable_extensions; do
3057   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3058     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3059        ac_prog_rejected=yes
3060        continue
3061      fi
3062     ac_cv_prog_CC="cc"
3063     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064     break 2
3065   fi
3066 done
3067   done
3068 IFS=$as_save_IFS
3069
3070 if test $ac_prog_rejected = yes; then
3071   # We found a bogon in the path, so make sure we never use it.
3072   set dummy $ac_cv_prog_CC
3073   shift
3074   if test $# != 0; then
3075     # We chose a different compiler from the bogus one.
3076     # However, it has the same basename, so the bogon will be chosen
3077     # first if we set CC to just the basename; use the full file name.
3078     shift
3079     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3080   fi
3081 fi
3082 fi
3083 fi
3084 CC=$ac_cv_prog_CC
3085 if test -n "$CC"; then
3086   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3087 $as_echo "$CC" >&6; }
3088 else
3089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3091 fi
3092
3093
3094 fi
3095 if test -z "$CC"; then
3096   if test -n "$ac_tool_prefix"; then
3097   for ac_prog in cl.exe
3098   do
3099     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if ${ac_cv_prog_CC+:} false; then :
3104   $as_echo_n "(cached) " >&6
3105 else
3106   if test -n "$CC"; then
3107   ac_cv_prog_CC="$CC" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112   IFS=$as_save_IFS
3113   test -z "$as_dir" && as_dir=.
3114     for ac_exec_ext in '' $ac_executable_extensions; do
3115   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3117     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3118     break 2
3119   fi
3120 done
3121   done
3122 IFS=$as_save_IFS
3123
3124 fi
3125 fi
3126 CC=$ac_cv_prog_CC
3127 if test -n "$CC"; then
3128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129 $as_echo "$CC" >&6; }
3130 else
3131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3133 fi
3134
3135
3136     test -n "$CC" && break
3137   done
3138 fi
3139 if test -z "$CC"; then
3140   ac_ct_CC=$CC
3141   for ac_prog in cl.exe
3142 do
3143   # Extract the first word of "$ac_prog", so it can be a program name with args.
3144 set dummy $ac_prog; ac_word=$2
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3148   $as_echo_n "(cached) " >&6
3149 else
3150   if test -n "$ac_ct_CC"; then
3151   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3152 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH
3155 do
3156   IFS=$as_save_IFS
3157   test -z "$as_dir" && as_dir=.
3158     for ac_exec_ext in '' $ac_executable_extensions; do
3159   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3160     ac_cv_prog_ac_ct_CC="$ac_prog"
3161     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3162     break 2
3163   fi
3164 done
3165   done
3166 IFS=$as_save_IFS
3167
3168 fi
3169 fi
3170 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3171 if test -n "$ac_ct_CC"; then
3172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3173 $as_echo "$ac_ct_CC" >&6; }
3174 else
3175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3177 fi
3178
3179
3180   test -n "$ac_ct_CC" && break
3181 done
3182
3183   if test "x$ac_ct_CC" = x; then
3184     CC=""
3185   else
3186     case $cross_compiling:$ac_tool_warned in
3187 yes:)
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3190 ac_tool_warned=yes ;;
3191 esac
3192     CC=$ac_ct_CC
3193   fi
3194 fi
3195
3196 fi
3197
3198
3199 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201 as_fn_error $? "no acceptable C compiler found in \$PATH
3202 See \`config.log' for more details" "$LINENO" 5; }
3203
3204 # Provide some information about the compiler.
3205 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3206 set X $ac_compile
3207 ac_compiler=$2
3208 for ac_option in --version -v -V -qversion; do
3209   { { ac_try="$ac_compiler $ac_option >&5"
3210 case "(($ac_try" in
3211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3212   *) ac_try_echo=$ac_try;;
3213 esac
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3217   ac_status=$?
3218   if test -s conftest.err; then
3219     sed '10a\
3220 ... rest of stderr output deleted ...
3221          10q' conftest.err >conftest.er1
3222     cat conftest.er1 >&5
3223   fi
3224   rm -f conftest.er1 conftest.err
3225   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226   test $ac_status = 0; }
3227 done
3228
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h.  */
3231
3232 int
3233 main ()
3234 {
3235
3236   ;
3237   return 0;
3238 }
3239 _ACEOF
3240 ac_clean_files_save=$ac_clean_files
3241 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3242 # Try to create an executable without -o first, disregard a.out.
3243 # It will help us diagnose broken compilers, and finding out an intuition
3244 # of exeext.
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3246 $as_echo_n "checking whether the C compiler works... " >&6; }
3247 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3248
3249 # The possible output files:
3250 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3251
3252 ac_rmfiles=
3253 for ac_file in $ac_files
3254 do
3255   case $ac_file in
3256     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3257     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3258   esac
3259 done
3260 rm -f $ac_rmfiles
3261
3262 if { { ac_try="$ac_link_default"
3263 case "(($ac_try" in
3264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265   *) ac_try_echo=$ac_try;;
3266 esac
3267 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269   (eval "$ac_link_default") 2>&5
3270   ac_status=$?
3271   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272   test $ac_status = 0; }; then :
3273   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3274 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3275 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3276 # so that the user can short-circuit this test for compilers unknown to
3277 # Autoconf.
3278 for ac_file in $ac_files ''
3279 do
3280   test -f "$ac_file" || continue
3281   case $ac_file in
3282     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3283         ;;
3284     [ab].out )
3285         # We found the default executable, but exeext='' is most
3286         # certainly right.
3287         break;;
3288     *.* )
3289         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3290         then :; else
3291            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3292         fi
3293         # We set ac_cv_exeext here because the later test for it is not
3294         # safe: cross compilers may not add the suffix if given an `-o'
3295         # argument, so we may need to know it at that point already.
3296         # Even if this section looks crufty: it has the advantage of
3297         # actually working.
3298         break;;
3299     * )
3300         break;;
3301   esac
3302 done
3303 test "$ac_cv_exeext" = no && ac_cv_exeext=
3304
3305 else
3306   ac_file=''
3307 fi
3308 if test -z "$ac_file"; then :
3309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 $as_echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3313
3314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316 as_fn_error 77 "C compiler cannot create executables
3317 See \`config.log' for more details" "$LINENO" 5; }
3318 else
3319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320 $as_echo "yes" >&6; }
3321 fi
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3323 $as_echo_n "checking for C compiler default output file name... " >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3325 $as_echo "$ac_file" >&6; }
3326 ac_exeext=$ac_cv_exeext
3327
3328 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3329 ac_clean_files=$ac_clean_files_save
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3331 $as_echo_n "checking for suffix of executables... " >&6; }
3332 if { { ac_try="$ac_link"
3333 case "(($ac_try" in
3334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335   *) ac_try_echo=$ac_try;;
3336 esac
3337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 $as_echo "$ac_try_echo"; } >&5
3339   (eval "$ac_link") 2>&5
3340   ac_status=$?
3341   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342   test $ac_status = 0; }; then :
3343   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3344 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3345 # work properly (i.e., refer to `conftest.exe'), while it won't with
3346 # `rm'.
3347 for ac_file in conftest.exe conftest conftest.*; do
3348   test -f "$ac_file" || continue
3349   case $ac_file in
3350     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3351     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3352           break;;
3353     * ) break;;
3354   esac
3355 done
3356 else
3357   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3360 See \`config.log' for more details" "$LINENO" 5; }
3361 fi
3362 rm -f conftest conftest$ac_cv_exeext
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3364 $as_echo "$ac_cv_exeext" >&6; }
3365
3366 rm -f conftest.$ac_ext
3367 EXEEXT=$ac_cv_exeext
3368 ac_exeext=$EXEEXT
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h.  */
3371 #include <stdio.h>
3372 int
3373 main ()
3374 {
3375 FILE *f = fopen ("conftest.out", "w");
3376  return ferror (f) || fclose (f) != 0;
3377
3378   ;
3379   return 0;
3380 }
3381 _ACEOF
3382 ac_clean_files="$ac_clean_files conftest.out"
3383 # Check that the compiler produces executables we can run.  If not, either
3384 # the compiler is broken, or we cross compile.
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3386 $as_echo_n "checking whether we are cross compiling... " >&6; }
3387 if test "$cross_compiling" != yes; then
3388   { { ac_try="$ac_link"
3389 case "(($ac_try" in
3390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391   *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395   (eval "$ac_link") 2>&5
3396   ac_status=$?
3397   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398   test $ac_status = 0; }
3399   if { ac_try='./conftest$ac_cv_exeext'
3400   { { case "(($ac_try" in
3401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402   *) ac_try_echo=$ac_try;;
3403 esac
3404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406   (eval "$ac_try") 2>&5
3407   ac_status=$?
3408   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409   test $ac_status = 0; }; }; then
3410     cross_compiling=no
3411   else
3412     if test "$cross_compiling" = maybe; then
3413         cross_compiling=yes
3414     else
3415         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error $? "cannot run C compiled programs.
3418 If you meant to cross compile, use \`--host'.
3419 See \`config.log' for more details" "$LINENO" 5; }
3420     fi
3421   fi
3422 fi
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3424 $as_echo "$cross_compiling" >&6; }
3425
3426 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3427 ac_clean_files=$ac_clean_files_save
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3429 $as_echo_n "checking for suffix of object files... " >&6; }
3430 if ${ac_cv_objext+:} false; then :
3431   $as_echo_n "(cached) " >&6
3432 else
3433   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h.  */
3435
3436 int
3437 main ()
3438 {
3439
3440   ;
3441   return 0;
3442 }
3443 _ACEOF
3444 rm -f conftest.o conftest.obj
3445 if { { ac_try="$ac_compile"
3446 case "(($ac_try" in
3447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448   *) ac_try_echo=$ac_try;;
3449 esac
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452   (eval "$ac_compile") 2>&5
3453   ac_status=$?
3454   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455   test $ac_status = 0; }; then :
3456   for ac_file in conftest.o conftest.obj conftest.*; do
3457   test -f "$ac_file" || continue;
3458   case $ac_file in
3459     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3460     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3461        break;;
3462   esac
3463 done
3464 else
3465   $as_echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3467
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error $? "cannot compute suffix of object files: cannot compile
3471 See \`config.log' for more details" "$LINENO" 5; }
3472 fi
3473 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3474 fi
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3476 $as_echo "$ac_cv_objext" >&6; }
3477 OBJEXT=$ac_cv_objext
3478 ac_objext=$OBJEXT
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3480 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3481 if ${ac_cv_c_compiler_gnu+:} false; then :
3482   $as_echo_n "(cached) " >&6
3483 else
3484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h.  */
3486
3487 int
3488 main ()
3489 {
3490 #ifndef __GNUC__
3491        choke me
3492 #endif
3493
3494   ;
3495   return 0;
3496 }
3497 _ACEOF
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499   ac_compiler_gnu=yes
3500 else
3501   ac_compiler_gnu=no
3502 fi
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3505
3506 fi
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3508 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3509 if test $ac_compiler_gnu = yes; then
3510   GCC=yes
3511 else
3512   GCC=
3513 fi
3514 ac_test_CFLAGS=${CFLAGS+set}
3515 ac_save_CFLAGS=$CFLAGS
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3517 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3518 if ${ac_cv_prog_cc_g+:} false; then :
3519   $as_echo_n "(cached) " >&6
3520 else
3521   ac_save_c_werror_flag=$ac_c_werror_flag
3522    ac_c_werror_flag=yes
3523    ac_cv_prog_cc_g=no
3524    CFLAGS="-g"
3525    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h.  */
3527
3528 int
3529 main ()
3530 {
3531
3532   ;
3533   return 0;
3534 }
3535 _ACEOF
3536 if ac_fn_c_try_compile "$LINENO"; then :
3537   ac_cv_prog_cc_g=yes
3538 else
3539   CFLAGS=""
3540       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h.  */
3542
3543 int
3544 main ()
3545 {
3546
3547   ;
3548   return 0;
3549 }
3550 _ACEOF
3551 if ac_fn_c_try_compile "$LINENO"; then :
3552
3553 else
3554   ac_c_werror_flag=$ac_save_c_werror_flag
3555          CFLAGS="-g"
3556          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h.  */
3558
3559 int
3560 main ()
3561 {
3562
3563   ;
3564   return 0;
3565 }
3566 _ACEOF
3567 if ac_fn_c_try_compile "$LINENO"; then :
3568   ac_cv_prog_cc_g=yes
3569 fi
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 fi
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 fi
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575    ac_c_werror_flag=$ac_save_c_werror_flag
3576 fi
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3578 $as_echo "$ac_cv_prog_cc_g" >&6; }
3579 if test "$ac_test_CFLAGS" = set; then
3580   CFLAGS=$ac_save_CFLAGS
3581 elif test $ac_cv_prog_cc_g = yes; then
3582   if test "$GCC" = yes; then
3583     CFLAGS="-g -O2"
3584   else
3585     CFLAGS="-g"
3586   fi
3587 else
3588   if test "$GCC" = yes; then
3589     CFLAGS="-O2"
3590   else
3591     CFLAGS=
3592   fi
3593 fi
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3595 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3596 if ${ac_cv_prog_cc_c89+:} false; then :
3597   $as_echo_n "(cached) " >&6
3598 else
3599   ac_cv_prog_cc_c89=no
3600 ac_save_CC=$CC
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h.  */
3603 #include <stdarg.h>
3604 #include <stdio.h>
3605 struct stat;
3606 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3607 struct buf { int x; };
3608 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3609 static char *e (p, i)
3610      char **p;
3611      int i;
3612 {
3613   return p[i];
3614 }
3615 static char *f (char * (*g) (char **, int), char **p, ...)
3616 {
3617   char *s;
3618   va_list v;
3619   va_start (v,p);
3620   s = g (p, va_arg (v,int));
3621   va_end (v);
3622   return s;
3623 }
3624
3625 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3626    function prototypes and stuff, but not '\xHH' hex character constants.
3627    These don't provoke an error unfortunately, instead are silently treated
3628    as 'x'.  The following induces an error, until -std is added to get
3629    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3630    array size at least.  It's necessary to write '\x00'==0 to get something
3631    that's true only with -std.  */
3632 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3633
3634 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3635    inside strings and character constants.  */
3636 #define FOO(x) 'x'
3637 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3638
3639 int test (int i, double x);
3640 struct s1 {int (*f) (int a);};
3641 struct s2 {int (*f) (double a);};
3642 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3643 int argc;
3644 char **argv;
3645 int
3646 main ()
3647 {
3648 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3654         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3655 do
3656   CC="$ac_save_CC $ac_arg"
3657   if ac_fn_c_try_compile "$LINENO"; then :
3658   ac_cv_prog_cc_c89=$ac_arg
3659 fi
3660 rm -f core conftest.err conftest.$ac_objext
3661   test "x$ac_cv_prog_cc_c89" != "xno" && break
3662 done
3663 rm -f conftest.$ac_ext
3664 CC=$ac_save_CC
3665
3666 fi
3667 # AC_CACHE_VAL
3668 case "x$ac_cv_prog_cc_c89" in
3669   x)
3670     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3671 $as_echo "none needed" >&6; } ;;
3672   xno)
3673     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3674 $as_echo "unsupported" >&6; } ;;
3675   *)
3676     CC="$CC $ac_cv_prog_cc_c89"
3677     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3678 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3679 esac
3680 if test "x$ac_cv_prog_cc_c89" != xno; then :
3681
3682 fi
3683
3684 ac_ext=c
3685 ac_cpp='$CPP $CPPFLAGS'
3686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3689
3690 ac_ext=c
3691 ac_cpp='$CPP $CPPFLAGS'
3692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3696 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3697 if ${am_cv_prog_cc_c_o+:} false; then :
3698   $as_echo_n "(cached) " >&6
3699 else
3700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h.  */
3702
3703 int
3704 main ()
3705 {
3706
3707   ;
3708   return 0;
3709 }
3710 _ACEOF
3711   # Make sure it works both with $CC and with simple cc.
3712   # Following AC_PROG_CC_C_O, we do the test twice because some
3713   # compilers refuse to overwrite an existing .o file with -o,
3714   # though they will create one.
3715   am_cv_prog_cc_c_o=yes
3716   for am_i in 1 2; do
3717     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3718    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3719    ac_status=$?
3720    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721    (exit $ac_status); } \
3722          && test -f conftest2.$ac_objext; then
3723       : OK
3724     else
3725       am_cv_prog_cc_c_o=no
3726       break
3727     fi
3728   done
3729   rm -f core conftest*
3730   unset am_i
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3733 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3734 if test "$am_cv_prog_cc_c_o" != yes; then
3735    # Losing compiler, so override with the script.
3736    # FIXME: It is wrong to rewrite CC.
3737    # But if we don't then we get into trouble of one sort or another.
3738    # A longer-term fix would be to have automake use am__CC in this case,
3739    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3740    CC="$am_aux_dir/compile $CC"
3741 fi
3742 ac_ext=c
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3747
3748 DEPDIR="${am__leading_dot}deps"
3749
3750 ac_config_commands="$ac_config_commands depfiles"
3751
3752
3753 am_make=${MAKE-make}
3754 cat > confinc << 'END'
3755 am__doit:
3756         @echo this is the am__doit target
3757 .PHONY: am__doit
3758 END
3759 # If we don't find an include directive, just comment out the code.
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3761 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3762 am__include="#"
3763 am__quote=
3764 _am_result=none
3765 # First try GNU make style include.
3766 echo "include confinc" > confmf
3767 # Ignore all kinds of additional output from 'make'.
3768 case `$am_make -s -f confmf 2> /dev/null` in #(
3769 *the\ am__doit\ target*)
3770   am__include=include
3771   am__quote=
3772   _am_result=GNU
3773   ;;
3774 esac
3775 # Now try BSD make style include.
3776 if test "$am__include" = "#"; then
3777    echo '.include "confinc"' > confmf
3778    case `$am_make -s -f confmf 2> /dev/null` in #(
3779    *the\ am__doit\ target*)
3780      am__include=.include
3781      am__quote="\""
3782      _am_result=BSD
3783      ;;
3784    esac
3785 fi
3786
3787
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3789 $as_echo "$_am_result" >&6; }
3790 rm -f confinc confmf
3791
3792 # Check whether --enable-dependency-tracking was given.
3793 if test "${enable_dependency_tracking+set}" = set; then :
3794   enableval=$enable_dependency_tracking;
3795 fi
3796
3797 if test "x$enable_dependency_tracking" != xno; then
3798   am_depcomp="$ac_aux_dir/depcomp"
3799   AMDEPBACKSLASH='\'
3800   am__nodep='_no'
3801 fi
3802  if test "x$enable_dependency_tracking" != xno; then
3803   AMDEP_TRUE=
3804   AMDEP_FALSE='#'
3805 else
3806   AMDEP_TRUE='#'
3807   AMDEP_FALSE=
3808 fi
3809
3810
3811
3812 depcc="$CC"   am_compiler_list=
3813
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3815 $as_echo_n "checking dependency style of $depcc... " >&6; }
3816 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3817   $as_echo_n "(cached) " >&6
3818 else
3819   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3820   # We make a subdir and do the tests there.  Otherwise we can end up
3821   # making bogus files that we don't know about and never remove.  For
3822   # instance it was reported that on HP-UX the gcc test will end up
3823   # making a dummy file named 'D' -- because '-MD' means "put the output
3824   # in D".
3825   rm -rf conftest.dir
3826   mkdir conftest.dir
3827   # Copy depcomp to subdir because otherwise we won't find it if we're
3828   # using a relative directory.
3829   cp "$am_depcomp" conftest.dir
3830   cd conftest.dir
3831   # We will build objects and dependencies in a subdirectory because
3832   # it helps to detect inapplicable dependency modes.  For instance
3833   # both Tru64's cc and ICC support -MD to output dependencies as a
3834   # side effect of compilation, but ICC will put the dependencies in
3835   # the current directory while Tru64 will put them in the object
3836   # directory.
3837   mkdir sub
3838
3839   am_cv_CC_dependencies_compiler_type=none
3840   if test "$am_compiler_list" = ""; then
3841      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3842   fi
3843   am__universal=false
3844   case " $depcc " in #(
3845      *\ -arch\ *\ -arch\ *) am__universal=true ;;
3846      esac
3847
3848   for depmode in $am_compiler_list; do
3849     # Setup a source with many dependencies, because some compilers
3850     # like to wrap large dependency lists on column 80 (with \), and
3851     # we should not choose a depcomp mode which is confused by this.
3852     #
3853     # We need to recreate these files for each test, as the compiler may
3854     # overwrite some of them when testing with obscure command lines.
3855     # This happens at least with the AIX C compiler.
3856     : > sub/conftest.c
3857     for i in 1 2 3 4 5 6; do
3858       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3859       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3860       # Solaris 10 /bin/sh.
3861       echo '/* dummy */' > sub/conftst$i.h
3862     done
3863     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3864
3865     # We check with '-c' and '-o' for the sake of the "dashmstdout"
3866     # mode.  It turns out that the SunPro C++ compiler does not properly
3867     # handle '-M -o', and we need to detect this.  Also, some Intel
3868     # versions had trouble with output in subdirs.
3869     am__obj=sub/conftest.${OBJEXT-o}
3870     am__minus_obj="-o $am__obj"
3871     case $depmode in
3872     gcc)
3873       # This depmode causes a compiler race in universal mode.
3874       test "$am__universal" = false || continue
3875       ;;
3876     nosideeffect)
3877       # After this tag, mechanisms are not by side-effect, so they'll
3878       # only be used when explicitly requested.
3879       if test "x$enable_dependency_tracking" = xyes; then
3880         continue
3881       else
3882         break
3883       fi
3884       ;;
3885     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3886       # This compiler won't grok '-c -o', but also, the minuso test has
3887       # not run yet.  These depmodes are late enough in the game, and
3888       # so weak that their functioning should not be impacted.
3889       am__obj=conftest.${OBJEXT-o}
3890       am__minus_obj=
3891       ;;
3892     none) break ;;
3893     esac
3894     if depmode=$depmode \
3895        source=sub/conftest.c object=$am__obj \
3896        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3897        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3898          >/dev/null 2>conftest.err &&
3899        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3900        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3901        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3902        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3903       # icc doesn't choke on unknown options, it will just issue warnings
3904       # or remarks (even with -Werror).  So we grep stderr for any message
3905       # that says an option was ignored or not supported.
3906       # When given -MP, icc 7.0 and 7.1 complain thusly:
3907       #   icc: Command line warning: ignoring option '-M'; no argument required
3908       # The diagnosis changed in icc 8.0:
3909       #   icc: Command line remark: option '-MP' not supported
3910       if (grep 'ignoring option' conftest.err ||
3911           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3912         am_cv_CC_dependencies_compiler_type=$depmode
3913         break
3914       fi
3915     fi
3916   done
3917
3918   cd ..
3919   rm -rf conftest.dir
3920 else
3921   am_cv_CC_dependencies_compiler_type=none
3922 fi
3923
3924 fi
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3926 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3927 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3928
3929  if
3930   test "x$enable_dependency_tracking" != xno \
3931   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3932   am__fastdepCC_TRUE=
3933   am__fastdepCC_FALSE='#'
3934 else
3935   am__fastdepCC_TRUE='#'
3936   am__fastdepCC_FALSE=
3937 fi
3938
3939
3940 ac_ext=c
3941 ac_cpp='$CPP $CPPFLAGS'
3942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3946 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3947 # On Suns, sometimes $CPP names a directory.
3948 if test -n "$CPP" && test -d "$CPP"; then
3949   CPP=
3950 fi
3951 if test -z "$CPP"; then
3952   if ${ac_cv_prog_CPP+:} false; then :
3953   $as_echo_n "(cached) " >&6
3954 else
3955       # Double quotes because CPP needs to be expanded
3956     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3957     do
3958       ac_preproc_ok=false
3959 for ac_c_preproc_warn_flag in '' yes
3960 do
3961   # Use a header file that comes with gcc, so configuring glibc
3962   # with a fresh cross-compiler works.
3963   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3964   # <limits.h> exists even on freestanding compilers.
3965   # On the NeXT, cc -E runs the code through the compiler's parser,
3966   # not just through cpp. "Syntax error" is here to catch this case.
3967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h.  */
3969 #ifdef __STDC__
3970 # include <limits.h>
3971 #else
3972 # include <assert.h>
3973 #endif
3974                      Syntax error
3975 _ACEOF
3976 if ac_fn_c_try_cpp "$LINENO"; then :
3977
3978 else
3979   # Broken: fails on valid input.
3980 continue
3981 fi
3982 rm -f conftest.err conftest.i conftest.$ac_ext
3983
3984   # OK, works on sane cases.  Now check whether nonexistent headers
3985   # can be detected and how.
3986   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h.  */
3988 #include <ac_nonexistent.h>
3989 _ACEOF
3990 if ac_fn_c_try_cpp "$LINENO"; then :
3991   # Broken: success on invalid input.
3992 continue
3993 else
3994   # Passes both tests.
3995 ac_preproc_ok=:
3996 break
3997 fi
3998 rm -f conftest.err conftest.i conftest.$ac_ext
3999
4000 done
4001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4002 rm -f conftest.i conftest.err conftest.$ac_ext
4003 if $ac_preproc_ok; then :
4004   break
4005 fi
4006
4007     done
4008     ac_cv_prog_CPP=$CPP
4009
4010 fi
4011   CPP=$ac_cv_prog_CPP
4012 else
4013   ac_cv_prog_CPP=$CPP
4014 fi
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4016 $as_echo "$CPP" >&6; }
4017 ac_preproc_ok=false
4018 for ac_c_preproc_warn_flag in '' yes
4019 do
4020   # Use a header file that comes with gcc, so configuring glibc
4021   # with a fresh cross-compiler works.
4022   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023   # <limits.h> exists even on freestanding compilers.
4024   # On the NeXT, cc -E runs the code through the compiler's parser,
4025   # not just through cpp. "Syntax error" is here to catch this case.
4026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h.  */
4028 #ifdef __STDC__
4029 # include <limits.h>
4030 #else
4031 # include <assert.h>
4032 #endif
4033                      Syntax error
4034 _ACEOF
4035 if ac_fn_c_try_cpp "$LINENO"; then :
4036
4037 else
4038   # Broken: fails on valid input.
4039 continue
4040 fi
4041 rm -f conftest.err conftest.i conftest.$ac_ext
4042
4043   # OK, works on sane cases.  Now check whether nonexistent headers
4044   # can be detected and how.
4045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h.  */
4047 #include <ac_nonexistent.h>
4048 _ACEOF
4049 if ac_fn_c_try_cpp "$LINENO"; then :
4050   # Broken: success on invalid input.
4051 continue
4052 else
4053   # Passes both tests.
4054 ac_preproc_ok=:
4055 break
4056 fi
4057 rm -f conftest.err conftest.i conftest.$ac_ext
4058
4059 done
4060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4061 rm -f conftest.i conftest.err conftest.$ac_ext
4062 if $ac_preproc_ok; then :
4063
4064 else
4065   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4066 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4067 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4068 See \`config.log' for more details" "$LINENO" 5; }
4069 fi
4070
4071 ac_ext=c
4072 ac_cpp='$CPP $CPPFLAGS'
4073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4076
4077
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4079 $as_echo_n "checking whether ln -s works... " >&6; }
4080 LN_S=$as_ln_s
4081 if test "$LN_S" = "ln -s"; then
4082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4083 $as_echo "yes" >&6; }
4084 else
4085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4086 $as_echo "no, using $LN_S" >&6; }
4087 fi
4088
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4090 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4091 set x ${MAKE-make}
4092 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4093 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4094   $as_echo_n "(cached) " >&6
4095 else
4096   cat >conftest.make <<\_ACEOF
4097 SHELL = /bin/sh
4098 all:
4099         @echo '@@@%%%=$(MAKE)=@@@%%%'
4100 _ACEOF
4101 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4102 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4103   *@@@%%%=?*=@@@%%%*)
4104     eval ac_cv_prog_make_${ac_make}_set=yes;;
4105   *)
4106     eval ac_cv_prog_make_${ac_make}_set=no;;
4107 esac
4108 rm -f conftest.make
4109 fi
4110 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4111   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4112 $as_echo "yes" >&6; }
4113   SET_MAKE=
4114 else
4115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4117   SET_MAKE="MAKE=${MAKE-make}"
4118 fi
4119
4120 case `pwd` in
4121   *\ * | *\     *)
4122     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4123 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4124 esac
4125
4126
4127
4128 macro_version='2.4.2'
4129 macro_revision='1.3337'
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143 ltmain="$ac_aux_dir/ltmain.sh"
4144
4145 # Make sure we can run config.sub.
4146 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4147   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4148
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4150 $as_echo_n "checking build system type... " >&6; }
4151 if ${ac_cv_build+:} false; then :
4152   $as_echo_n "(cached) " >&6
4153 else
4154   ac_build_alias=$build_alias
4155 test "x$ac_build_alias" = x &&
4156   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4157 test "x$ac_build_alias" = x &&
4158   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4159 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4160   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4161
4162 fi
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4164 $as_echo "$ac_cv_build" >&6; }
4165 case $ac_cv_build in
4166 *-*-*) ;;
4167 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4168 esac
4169 build=$ac_cv_build
4170 ac_save_IFS=$IFS; IFS='-'
4171 set x $ac_cv_build
4172 shift
4173 build_cpu=$1
4174 build_vendor=$2
4175 shift; shift
4176 # Remember, the first character of IFS is used to create $*,
4177 # except with old shells:
4178 build_os=$*
4179 IFS=$ac_save_IFS
4180 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4181
4182
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4184 $as_echo_n "checking host system type... " >&6; }
4185 if ${ac_cv_host+:} false; then :
4186   $as_echo_n "(cached) " >&6
4187 else
4188   if test "x$host_alias" = x; then
4189   ac_cv_host=$ac_cv_build
4190 else
4191   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4192     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4193 fi
4194
4195 fi
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4197 $as_echo "$ac_cv_host" >&6; }
4198 case $ac_cv_host in
4199 *-*-*) ;;
4200 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4201 esac
4202 host=$ac_cv_host
4203 ac_save_IFS=$IFS; IFS='-'
4204 set x $ac_cv_host
4205 shift
4206 host_cpu=$1
4207 host_vendor=$2
4208 shift; shift
4209 # Remember, the first character of IFS is used to create $*,
4210 # except with old shells:
4211 host_os=$*
4212 IFS=$ac_save_IFS
4213 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4214
4215
4216 # Backslashify metacharacters that are still active within
4217 # double-quoted strings.
4218 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4219
4220 # Same as above, but do not quote variable references.
4221 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4222
4223 # Sed substitution to delay expansion of an escaped shell variable in a
4224 # double_quote_subst'ed string.
4225 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4226
4227 # Sed substitution to delay expansion of an escaped single quote.
4228 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4229
4230 # Sed substitution to avoid accidental globbing in evaled expressions
4231 no_glob_subst='s/\*/\\\*/g'
4232
4233 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4234 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4235 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4236
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4238 $as_echo_n "checking how to print strings... " >&6; }
4239 # Test print first, because it will be a builtin if present.
4240 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4241    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4242   ECHO='print -r --'
4243 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4244   ECHO='printf %s\n'
4245 else
4246   # Use this function as a fallback that always works.
4247   func_fallback_echo ()
4248   {
4249     eval 'cat <<_LTECHO_EOF
4250 $1
4251 _LTECHO_EOF'
4252   }
4253   ECHO='func_fallback_echo'
4254 fi
4255
4256 # func_echo_all arg...
4257 # Invoke $ECHO with all args, space-separated.
4258 func_echo_all ()
4259 {
4260     $ECHO ""
4261 }
4262
4263 case "$ECHO" in
4264   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4265 $as_echo "printf" >&6; } ;;
4266   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4267 $as_echo "print -r" >&6; } ;;
4268   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4269 $as_echo "cat" >&6; } ;;
4270 esac
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4286 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4287 if ${ac_cv_path_SED+:} false; then :
4288   $as_echo_n "(cached) " >&6
4289 else
4290             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4291      for ac_i in 1 2 3 4 5 6 7; do
4292        ac_script="$ac_script$as_nl$ac_script"
4293      done
4294      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4295      { ac_script=; unset ac_script;}
4296      if test -z "$SED"; then
4297   ac_path_SED_found=false
4298   # Loop through the user's path and test for each of PROGNAME-LIST
4299   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4300 for as_dir in $PATH
4301 do
4302   IFS=$as_save_IFS
4303   test -z "$as_dir" && as_dir=.
4304     for ac_prog in sed gsed; do
4305     for ac_exec_ext in '' $ac_executable_extensions; do
4306       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4307       as_fn_executable_p "$ac_path_SED" || continue
4308 # Check for GNU ac_path_SED and select it if it is found.
4309   # Check for GNU $ac_path_SED
4310 case `"$ac_path_SED" --version 2>&1` in
4311 *GNU*)
4312   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4313 *)
4314   ac_count=0
4315   $as_echo_n 0123456789 >"conftest.in"
4316   while :
4317   do
4318     cat "conftest.in" "conftest.in" >"conftest.tmp"
4319     mv "conftest.tmp" "conftest.in"
4320     cp "conftest.in" "conftest.nl"
4321     $as_echo '' >> "conftest.nl"
4322     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4323     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4324     as_fn_arith $ac_count + 1 && ac_count=$as_val
4325     if test $ac_count -gt ${ac_path_SED_max-0}; then
4326       # Best one so far, save it but keep looking for a better one
4327       ac_cv_path_SED="$ac_path_SED"
4328       ac_path_SED_max=$ac_count
4329     fi
4330     # 10*(2^10) chars as input seems more than enough
4331     test $ac_count -gt 10 && break
4332   done
4333   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4334 esac
4335
4336       $ac_path_SED_found && break 3
4337     done
4338   done
4339   done
4340 IFS=$as_save_IFS
4341   if test -z "$ac_cv_path_SED"; then
4342     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4343   fi
4344 else
4345   ac_cv_path_SED=$SED
4346 fi
4347
4348 fi
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4350 $as_echo "$ac_cv_path_SED" >&6; }
4351  SED="$ac_cv_path_SED"
4352   rm -f conftest.sed
4353
4354 test -z "$SED" && SED=sed
4355 Xsed="$SED -e 1s/^X//"
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4368 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4369 if ${ac_cv_path_GREP+:} false; then :
4370   $as_echo_n "(cached) " >&6
4371 else
4372   if test -z "$GREP"; then
4373   ac_path_GREP_found=false
4374   # Loop through the user's path and test for each of PROGNAME-LIST
4375   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4376 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4377 do
4378   IFS=$as_save_IFS
4379   test -z "$as_dir" && as_dir=.
4380     for ac_prog in grep ggrep; do
4381     for ac_exec_ext in '' $ac_executable_extensions; do
4382       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4383       as_fn_executable_p "$ac_path_GREP" || continue
4384 # Check for GNU ac_path_GREP and select it if it is found.
4385   # Check for GNU $ac_path_GREP
4386 case `"$ac_path_GREP" --version 2>&1` in
4387 *GNU*)
4388   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4389 *)
4390   ac_count=0
4391   $as_echo_n 0123456789 >"conftest.in"
4392   while :
4393   do
4394     cat "conftest.in" "conftest.in" >"conftest.tmp"
4395     mv "conftest.tmp" "conftest.in"
4396     cp "conftest.in" "conftest.nl"
4397     $as_echo 'GREP' >> "conftest.nl"
4398     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4399     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4400     as_fn_arith $ac_count + 1 && ac_count=$as_val
4401     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4402       # Best one so far, save it but keep looking for a better one
4403       ac_cv_path_GREP="$ac_path_GREP"
4404       ac_path_GREP_max=$ac_count
4405     fi
4406     # 10*(2^10) chars as input seems more than enough
4407     test $ac_count -gt 10 && break
4408   done
4409   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4410 esac
4411
4412       $ac_path_GREP_found && break 3
4413     done
4414   done
4415   done
4416 IFS=$as_save_IFS
4417   if test -z "$ac_cv_path_GREP"; then
4418     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4419   fi
4420 else
4421   ac_cv_path_GREP=$GREP
4422 fi
4423
4424 fi
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4426 $as_echo "$ac_cv_path_GREP" >&6; }
4427  GREP="$ac_cv_path_GREP"
4428
4429
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4431 $as_echo_n "checking for egrep... " >&6; }
4432 if ${ac_cv_path_EGREP+:} false; then :
4433   $as_echo_n "(cached) " >&6
4434 else
4435   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4436    then ac_cv_path_EGREP="$GREP -E"
4437    else
4438      if test -z "$EGREP"; then
4439   ac_path_EGREP_found=false
4440   # Loop through the user's path and test for each of PROGNAME-LIST
4441   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4443 do
4444   IFS=$as_save_IFS
4445   test -z "$as_dir" && as_dir=.
4446     for ac_prog in egrep; do
4447     for ac_exec_ext in '' $ac_executable_extensions; do
4448       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4449       as_fn_executable_p "$ac_path_EGREP" || continue
4450 # Check for GNU ac_path_EGREP and select it if it is found.
4451   # Check for GNU $ac_path_EGREP
4452 case `"$ac_path_EGREP" --version 2>&1` in
4453 *GNU*)
4454   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4455 *)
4456   ac_count=0
4457   $as_echo_n 0123456789 >"conftest.in"
4458   while :
4459   do
4460     cat "conftest.in" "conftest.in" >"conftest.tmp"
4461     mv "conftest.tmp" "conftest.in"
4462     cp "conftest.in" "conftest.nl"
4463     $as_echo 'EGREP' >> "conftest.nl"
4464     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4465     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4466     as_fn_arith $ac_count + 1 && ac_count=$as_val
4467     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4468       # Best one so far, save it but keep looking for a better one
4469       ac_cv_path_EGREP="$ac_path_EGREP"
4470       ac_path_EGREP_max=$ac_count
4471     fi
4472     # 10*(2^10) chars as input seems more than enough
4473     test $ac_count -gt 10 && break
4474   done
4475   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476 esac
4477
4478       $ac_path_EGREP_found && break 3
4479     done
4480   done
4481   done
4482 IFS=$as_save_IFS
4483   if test -z "$ac_cv_path_EGREP"; then
4484     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4485   fi
4486 else
4487   ac_cv_path_EGREP=$EGREP
4488 fi
4489
4490    fi
4491 fi
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4493 $as_echo "$ac_cv_path_EGREP" >&6; }
4494  EGREP="$ac_cv_path_EGREP"
4495
4496
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4498 $as_echo_n "checking for fgrep... " >&6; }
4499 if ${ac_cv_path_FGREP+:} false; then :
4500   $as_echo_n "(cached) " >&6
4501 else
4502   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4503    then ac_cv_path_FGREP="$GREP -F"
4504    else
4505      if test -z "$FGREP"; then
4506   ac_path_FGREP_found=false
4507   # Loop through the user's path and test for each of PROGNAME-LIST
4508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4510 do
4511   IFS=$as_save_IFS
4512   test -z "$as_dir" && as_dir=.
4513     for ac_prog in fgrep; do
4514     for ac_exec_ext in '' $ac_executable_extensions; do
4515       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4516       as_fn_executable_p "$ac_path_FGREP" || continue
4517 # Check for GNU ac_path_FGREP and select it if it is found.
4518   # Check for GNU $ac_path_FGREP
4519 case `"$ac_path_FGREP" --version 2>&1` in
4520 *GNU*)
4521   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4522 *)
4523   ac_count=0
4524   $as_echo_n 0123456789 >"conftest.in"
4525   while :
4526   do
4527     cat "conftest.in" "conftest.in" >"conftest.tmp"
4528     mv "conftest.tmp" "conftest.in"
4529     cp "conftest.in" "conftest.nl"
4530     $as_echo 'FGREP' >> "conftest.nl"
4531     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4532     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4533     as_fn_arith $ac_count + 1 && ac_count=$as_val
4534     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4535       # Best one so far, save it but keep looking for a better one
4536       ac_cv_path_FGREP="$ac_path_FGREP"
4537       ac_path_FGREP_max=$ac_count
4538     fi
4539     # 10*(2^10) chars as input seems more than enough
4540     test $ac_count -gt 10 && break
4541   done
4542   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4543 esac
4544
4545       $ac_path_FGREP_found && break 3
4546     done
4547   done
4548   done
4549 IFS=$as_save_IFS
4550   if test -z "$ac_cv_path_FGREP"; then
4551     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4552   fi
4553 else
4554   ac_cv_path_FGREP=$FGREP
4555 fi
4556
4557    fi
4558 fi
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4560 $as_echo "$ac_cv_path_FGREP" >&6; }
4561  FGREP="$ac_cv_path_FGREP"
4562
4563
4564 test -z "$GREP" && GREP=grep
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584 # Check whether --with-gnu-ld was given.
4585 if test "${with_gnu_ld+set}" = set; then :
4586   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4587 else
4588   with_gnu_ld=no
4589 fi
4590
4591 ac_prog=ld
4592 if test "$GCC" = yes; then
4593   # Check if gcc -print-prog-name=ld gives a path.
4594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4595 $as_echo_n "checking for ld used by $CC... " >&6; }
4596   case $host in
4597   *-*-mingw*)
4598     # gcc leaves a trailing carriage return which upsets mingw
4599     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4600   *)
4601     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4602   esac
4603   case $ac_prog in
4604     # Accept absolute paths.
4605     [\\/]* | ?:[\\/]*)
4606       re_direlt='/[^/][^/]*/\.\./'
4607       # Canonicalize the pathname of ld
4608       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4609       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4610         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4611       done
4612       test -z "$LD" && LD="$ac_prog"
4613       ;;
4614   "")
4615     # If it fails, then pretend we aren't using GCC.
4616     ac_prog=ld
4617     ;;
4618   *)
4619     # If it is relative, then search for the first ld in PATH.
4620     with_gnu_ld=unknown
4621     ;;
4622   esac
4623 elif test "$with_gnu_ld" = yes; then
4624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4625 $as_echo_n "checking for GNU ld... " >&6; }
4626 else
4627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4628 $as_echo_n "checking for non-GNU ld... " >&6; }
4629 fi
4630 if ${lt_cv_path_LD+:} false; then :
4631   $as_echo_n "(cached) " >&6
4632 else
4633   if test -z "$LD"; then
4634   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4635   for ac_dir in $PATH; do
4636     IFS="$lt_save_ifs"
4637     test -z "$ac_dir" && ac_dir=.
4638     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4639       lt_cv_path_LD="$ac_dir/$ac_prog"
4640       # Check to see if the program is GNU ld.  I'd rather use --version,
4641       # but apparently some variants of GNU ld only accept -v.
4642       # Break only if it was the GNU/non-GNU ld that we prefer.
4643       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4644       *GNU* | *'with BFD'*)
4645         test "$with_gnu_ld" != no && break
4646         ;;
4647       *)
4648         test "$with_gnu_ld" != yes && break
4649         ;;
4650       esac
4651     fi
4652   done
4653   IFS="$lt_save_ifs"
4654 else
4655   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4656 fi
4657 fi
4658
4659 LD="$lt_cv_path_LD"
4660 if test -n "$LD"; then
4661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4662 $as_echo "$LD" >&6; }
4663 else
4664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4665 $as_echo "no" >&6; }
4666 fi
4667 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4669 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4670 if ${lt_cv_prog_gnu_ld+:} false; then :
4671   $as_echo_n "(cached) " >&6
4672 else
4673   # I'd rather use --version here, but apparently some GNU lds only accept -v.
4674 case `$LD -v 2>&1 </dev/null` in
4675 *GNU* | *'with BFD'*)
4676   lt_cv_prog_gnu_ld=yes
4677   ;;
4678 *)
4679   lt_cv_prog_gnu_ld=no
4680   ;;
4681 esac
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4684 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4685 with_gnu_ld=$lt_cv_prog_gnu_ld
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4696 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4697 if ${lt_cv_path_NM+:} false; then :
4698   $as_echo_n "(cached) " >&6
4699 else
4700   if test -n "$NM"; then
4701   # Let the user override the test.
4702   lt_cv_path_NM="$NM"
4703 else
4704   lt_nm_to_check="${ac_tool_prefix}nm"
4705   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4706     lt_nm_to_check="$lt_nm_to_check nm"
4707   fi
4708   for lt_tmp_nm in $lt_nm_to_check; do
4709     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4710     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4711       IFS="$lt_save_ifs"
4712       test -z "$ac_dir" && ac_dir=.
4713       tmp_nm="$ac_dir/$lt_tmp_nm"
4714       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4715         # Check to see if the nm accepts a BSD-compat flag.
4716         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4717         #   nm: unknown option "B" ignored
4718         # Tru64's nm complains that /dev/null is an invalid object file
4719         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4720         */dev/null* | *'Invalid file or object type'*)
4721           lt_cv_path_NM="$tmp_nm -B"
4722           break
4723           ;;
4724         *)
4725           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4726           */dev/null*)
4727             lt_cv_path_NM="$tmp_nm -p"
4728             break
4729             ;;
4730           *)
4731             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4732             continue # so that we can try to find one that supports BSD flags
4733             ;;
4734           esac
4735           ;;
4736         esac
4737       fi
4738     done
4739     IFS="$lt_save_ifs"
4740   done
4741   : ${lt_cv_path_NM=no}
4742 fi
4743 fi
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4745 $as_echo "$lt_cv_path_NM" >&6; }
4746 if test "$lt_cv_path_NM" != "no"; then
4747   NM="$lt_cv_path_NM"
4748 else
4749   # Didn't find any BSD compatible name lister, look for dumpbin.
4750   if test -n "$DUMPBIN"; then :
4751     # Let the user override the test.
4752   else
4753     if test -n "$ac_tool_prefix"; then
4754   for ac_prog in dumpbin "link -dump"
4755   do
4756     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if ${ac_cv_prog_DUMPBIN+:} false; then :
4761   $as_echo_n "(cached) " >&6
4762 else
4763   if test -n "$DUMPBIN"; then
4764   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4768 do
4769   IFS=$as_save_IFS
4770   test -z "$as_dir" && as_dir=.
4771     for ac_exec_ext in '' $ac_executable_extensions; do
4772   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4773     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775     break 2
4776   fi
4777 done
4778   done
4779 IFS=$as_save_IFS
4780
4781 fi
4782 fi
4783 DUMPBIN=$ac_cv_prog_DUMPBIN
4784 if test -n "$DUMPBIN"; then
4785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4786 $as_echo "$DUMPBIN" >&6; }
4787 else
4788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4790 fi
4791
4792
4793     test -n "$DUMPBIN" && break
4794   done
4795 fi
4796 if test -z "$DUMPBIN"; then
4797   ac_ct_DUMPBIN=$DUMPBIN
4798   for ac_prog in dumpbin "link -dump"
4799 do
4800   # Extract the first word of "$ac_prog", so it can be a program name with args.
4801 set dummy $ac_prog; ac_word=$2
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4803 $as_echo_n "checking for $ac_word... " >&6; }
4804 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4805   $as_echo_n "(cached) " >&6
4806 else
4807   if test -n "$ac_ct_DUMPBIN"; then
4808   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4809 else
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811 for as_dir in $PATH
4812 do
4813   IFS=$as_save_IFS
4814   test -z "$as_dir" && as_dir=.
4815     for ac_exec_ext in '' $ac_executable_extensions; do
4816   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4817     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4818     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819     break 2
4820   fi
4821 done
4822   done
4823 IFS=$as_save_IFS
4824
4825 fi
4826 fi
4827 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4828 if test -n "$ac_ct_DUMPBIN"; then
4829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4830 $as_echo "$ac_ct_DUMPBIN" >&6; }
4831 else
4832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4833 $as_echo "no" >&6; }
4834 fi
4835
4836
4837   test -n "$ac_ct_DUMPBIN" && break
4838 done
4839
4840   if test "x$ac_ct_DUMPBIN" = x; then
4841     DUMPBIN=":"
4842   else
4843     case $cross_compiling:$ac_tool_warned in
4844 yes:)
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4847 ac_tool_warned=yes ;;
4848 esac
4849     DUMPBIN=$ac_ct_DUMPBIN
4850   fi
4851 fi
4852
4853     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4854     *COFF*)
4855       DUMPBIN="$DUMPBIN -symbols"
4856       ;;
4857     *)
4858       DUMPBIN=:
4859       ;;
4860     esac
4861   fi
4862
4863   if test "$DUMPBIN" != ":"; then
4864     NM="$DUMPBIN"
4865   fi
4866 fi
4867 test -z "$NM" && NM=nm
4868
4869
4870
4871
4872
4873
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4875 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4876 if ${lt_cv_nm_interface+:} false; then :
4877   $as_echo_n "(cached) " >&6
4878 else
4879   lt_cv_nm_interface="BSD nm"
4880   echo "int some_variable = 0;" > conftest.$ac_ext
4881   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4882   (eval "$ac_compile" 2>conftest.err)
4883   cat conftest.err >&5
4884   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4885   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4886   cat conftest.err >&5
4887   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4888   cat conftest.out >&5
4889   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4890     lt_cv_nm_interface="MS dumpbin"
4891   fi
4892   rm -f conftest*
4893 fi
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4895 $as_echo "$lt_cv_nm_interface" >&6; }
4896
4897 # find the maximum length of command line arguments
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4899 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4900 if ${lt_cv_sys_max_cmd_len+:} false; then :
4901   $as_echo_n "(cached) " >&6
4902 else
4903     i=0
4904   teststring="ABCD"
4905
4906   case $build_os in
4907   msdosdjgpp*)
4908     # On DJGPP, this test can blow up pretty badly due to problems in libc
4909     # (any single argument exceeding 2000 bytes causes a buffer overrun
4910     # during glob expansion).  Even if it were fixed, the result of this
4911     # check would be larger than it should be.
4912     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
4913     ;;
4914
4915   gnu*)
4916     # Under GNU Hurd, this test is not required because there is
4917     # no limit to the length of command line arguments.
4918     # Libtool will interpret -1 as no limit whatsoever
4919     lt_cv_sys_max_cmd_len=-1;
4920     ;;
4921
4922   cygwin* | mingw* | cegcc*)
4923     # On Win9x/ME, this test blows up -- it succeeds, but takes
4924     # about 5 minutes as the teststring grows exponentially.
4925     # Worse, since 9x/ME are not pre-emptively multitasking,
4926     # you end up with a "frozen" computer, even though with patience
4927     # the test eventually succeeds (with a max line length of 256k).
4928     # Instead, let's just punt: use the minimum linelength reported by
4929     # all of the supported platforms: 8192 (on NT/2K/XP).
4930     lt_cv_sys_max_cmd_len=8192;
4931     ;;
4932
4933   mint*)
4934     # On MiNT this can take a long time and run out of memory.
4935     lt_cv_sys_max_cmd_len=8192;
4936     ;;
4937
4938   amigaos*)
4939     # On AmigaOS with pdksh, this test takes hours, literally.
4940     # So we just punt and use a minimum line length of 8192.
4941     lt_cv_sys_max_cmd_len=8192;
4942     ;;
4943
4944   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4945     # This has been around since 386BSD, at least.  Likely further.
4946     if test -x /sbin/sysctl; then
4947       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4948     elif test -x /usr/sbin/sysctl; then
4949       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4950     else
4951       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
4952     fi
4953     # And add a safety zone
4954     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4955     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4956     ;;
4957
4958   interix*)
4959     # We know the value 262144 and hardcode it with a safety zone (like BSD)
4960     lt_cv_sys_max_cmd_len=196608
4961     ;;
4962
4963   os2*)
4964     # The test takes a long time on OS/2.
4965     lt_cv_sys_max_cmd_len=8192
4966     ;;
4967
4968   osf*)
4969     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4970     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4971     # nice to cause kernel panics so lets avoid the loop below.
4972     # First set a reasonable default.
4973     lt_cv_sys_max_cmd_len=16384
4974     #
4975     if test -x /sbin/sysconfig; then
4976       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4977         *1*) lt_cv_sys_max_cmd_len=-1 ;;
4978       esac
4979     fi
4980     ;;
4981   sco3.2v5*)
4982     lt_cv_sys_max_cmd_len=102400
4983     ;;
4984   sysv5* | sco5v6* | sysv4.2uw2*)
4985     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4986     if test -n "$kargmax"; then
4987       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
4988     else
4989       lt_cv_sys_max_cmd_len=32768
4990     fi
4991     ;;
4992   *)
4993     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4994     if test -n "$lt_cv_sys_max_cmd_len" && \
4995         test undefined != "$lt_cv_sys_max_cmd_len"; then
4996       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4997       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4998     else
4999       # Make teststring a little bigger before we do anything with it.
5000       # a 1K string should be a reasonable start.
5001       for i in 1 2 3 4 5 6 7 8 ; do
5002         teststring=$teststring$teststring
5003       done
5004       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5005       # If test is not a shell built-in, we'll probably end up computing a
5006       # maximum length that is only half of the actual maximum length, but
5007       # we can't tell.
5008       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5009                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5010               test $i != 17 # 1/2 MB should be enough
5011       do
5012         i=`expr $i + 1`
5013         teststring=$teststring$teststring
5014       done
5015       # Only check the string length outside the loop.
5016       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5017       teststring=
5018       # Add a significant safety factor because C++ compilers can tack on
5019       # massive amounts of additional arguments before passing them to the
5020       # linker.  It appears as though 1/2 is a usable value.
5021       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5022     fi
5023     ;;
5024   esac
5025
5026 fi
5027
5028 if test -n $lt_cv_sys_max_cmd_len ; then
5029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5030 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5031 else
5032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5033 $as_echo "none" >&6; }
5034 fi
5035 max_cmd_len=$lt_cv_sys_max_cmd_len
5036
5037
5038
5039
5040
5041
5042 : ${CP="cp -f"}
5043 : ${MV="mv -f"}
5044 : ${RM="rm -f"}
5045
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5047 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5048 # Try some XSI features
5049 xsi_shell=no
5050 ( _lt_dummy="a/b/c"
5051   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5052       = c,a/b,b/c, \
5053     && eval 'test $(( 1 + 1 )) -eq 2 \
5054     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5055   && xsi_shell=yes
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5057 $as_echo "$xsi_shell" >&6; }
5058
5059
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5061 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5062 lt_shell_append=no
5063 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5064     >/dev/null 2>&1 \
5065   && lt_shell_append=yes
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5067 $as_echo "$lt_shell_append" >&6; }
5068
5069
5070 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5071   lt_unset=unset
5072 else
5073   lt_unset=false
5074 fi
5075
5076
5077
5078
5079
5080 # test EBCDIC or ASCII
5081 case `echo X|tr X '\101'` in
5082  A) # ASCII based system
5083     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5084   lt_SP2NL='tr \040 \012'
5085   lt_NL2SP='tr \015\012 \040\040'
5086   ;;
5087  *) # EBCDIC based system
5088   lt_SP2NL='tr \100 \n'
5089   lt_NL2SP='tr \r\n \100\100'
5090   ;;
5091 esac
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5102 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5103 if ${lt_cv_to_host_file_cmd+:} false; then :
5104   $as_echo_n "(cached) " >&6
5105 else
5106   case $host in
5107   *-*-mingw* )
5108     case $build in
5109       *-*-mingw* ) # actually msys
5110         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5111         ;;
5112       *-*-cygwin* )
5113         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5114         ;;
5115       * ) # otherwise, assume *nix
5116         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5117         ;;
5118     esac
5119     ;;
5120   *-*-cygwin* )
5121     case $build in
5122       *-*-mingw* ) # actually msys
5123         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5124         ;;
5125       *-*-cygwin* )
5126         lt_cv_to_host_file_cmd=func_convert_file_noop
5127         ;;
5128       * ) # otherwise, assume *nix
5129         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5130         ;;
5131     esac
5132     ;;
5133   * ) # unhandled hosts (and "normal" native builds)
5134     lt_cv_to_host_file_cmd=func_convert_file_noop
5135     ;;
5136 esac
5137
5138 fi
5139
5140 to_host_file_cmd=$lt_cv_to_host_file_cmd
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5142 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5143
5144
5145
5146
5147
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5149 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5150 if ${lt_cv_to_tool_file_cmd+:} false; then :
5151   $as_echo_n "(cached) " >&6
5152 else
5153   #assume ordinary cross tools, or native build.
5154 lt_cv_to_tool_file_cmd=func_convert_file_noop
5155 case $host in
5156   *-*-mingw* )
5157     case $build in
5158       *-*-mingw* ) # actually msys
5159         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5160         ;;
5161     esac
5162     ;;
5163 esac
5164
5165 fi
5166
5167 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5169 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5170
5171
5172
5173
5174
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5176 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5177 if ${lt_cv_ld_reload_flag+:} false; then :
5178   $as_echo_n "(cached) " >&6
5179 else
5180   lt_cv_ld_reload_flag='-r'
5181 fi
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5183 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5184 reload_flag=$lt_cv_ld_reload_flag
5185 case $reload_flag in
5186 "" | " "*) ;;
5187 *) reload_flag=" $reload_flag" ;;
5188 esac
5189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5190 case $host_os in
5191   cygwin* | mingw* | pw32* | cegcc*)
5192     if test "$GCC" != yes; then
5193       reload_cmds=false
5194     fi
5195     ;;
5196   darwin*)
5197     if test "$GCC" = yes; then
5198       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5199     else
5200       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5201     fi
5202     ;;
5203 esac
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213 if test -n "$ac_tool_prefix"; then
5214   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5215 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if ${ac_cv_prog_OBJDUMP+:} false; then :
5219   $as_echo_n "(cached) " >&6
5220 else
5221   if test -n "$OBJDUMP"; then
5222   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5223 else
5224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   test -z "$as_dir" && as_dir=.
5229     for ac_exec_ext in '' $ac_executable_extensions; do
5230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233     break 2
5234   fi
5235 done
5236   done
5237 IFS=$as_save_IFS
5238
5239 fi
5240 fi
5241 OBJDUMP=$ac_cv_prog_OBJDUMP
5242 if test -n "$OBJDUMP"; then
5243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5244 $as_echo "$OBJDUMP" >&6; }
5245 else
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5247 $as_echo "no" >&6; }
5248 fi
5249
5250
5251 fi
5252 if test -z "$ac_cv_prog_OBJDUMP"; then
5253   ac_ct_OBJDUMP=$OBJDUMP
5254   # Extract the first word of "objdump", so it can be a program name with args.
5255 set dummy objdump; ac_word=$2
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5257 $as_echo_n "checking for $ac_word... " >&6; }
5258 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5259   $as_echo_n "(cached) " >&6
5260 else
5261   if test -n "$ac_ct_OBJDUMP"; then
5262   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5263 else
5264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5265 for as_dir in $PATH
5266 do
5267   IFS=$as_save_IFS
5268   test -z "$as_dir" && as_dir=.
5269     for ac_exec_ext in '' $ac_executable_extensions; do
5270   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5271     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273     break 2
5274   fi
5275 done
5276   done
5277 IFS=$as_save_IFS
5278
5279 fi
5280 fi
5281 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5282 if test -n "$ac_ct_OBJDUMP"; then
5283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5284 $as_echo "$ac_ct_OBJDUMP" >&6; }
5285 else
5286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5287 $as_echo "no" >&6; }
5288 fi
5289
5290   if test "x$ac_ct_OBJDUMP" = x; then
5291     OBJDUMP="false"
5292   else
5293     case $cross_compiling:$ac_tool_warned in
5294 yes:)
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5297 ac_tool_warned=yes ;;
5298 esac
5299     OBJDUMP=$ac_ct_OBJDUMP
5300   fi
5301 else
5302   OBJDUMP="$ac_cv_prog_OBJDUMP"
5303 fi
5304
5305 test -z "$OBJDUMP" && OBJDUMP=objdump
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5316 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5317 if ${lt_cv_deplibs_check_method+:} false; then :
5318   $as_echo_n "(cached) " >&6
5319 else
5320   lt_cv_file_magic_cmd='$MAGIC_CMD'
5321 lt_cv_file_magic_test_file=
5322 lt_cv_deplibs_check_method='unknown'
5323 # Need to set the preceding variable on all platforms that support
5324 # interlibrary dependencies.
5325 # 'none' -- dependencies not supported.
5326 # `unknown' -- same as none, but documents that we really don't know.
5327 # 'pass_all' -- all dependencies passed with no checks.
5328 # 'test_compile' -- check by making test program.
5329 # 'file_magic [[regex]]' -- check by looking for files in library path
5330 # which responds to the $file_magic_cmd with a given extended regex.
5331 # If you have `file' or equivalent on your system and you're not sure
5332 # whether `pass_all' will *always* work, you probably want this one.
5333
5334 case $host_os in
5335 aix[4-9]*)
5336   lt_cv_deplibs_check_method=pass_all
5337   ;;
5338
5339 beos*)
5340   lt_cv_deplibs_check_method=pass_all
5341   ;;
5342
5343 bsdi[45]*)
5344   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5345   lt_cv_file_magic_cmd='/usr/bin/file -L'
5346   lt_cv_file_magic_test_file=/shlib/libc.so
5347   ;;
5348
5349 cygwin*)
5350   # func_win32_libid is a shell function defined in ltmain.sh
5351   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5352   lt_cv_file_magic_cmd='func_win32_libid'
5353   ;;
5354
5355 mingw* | pw32*)
5356   # Base MSYS/MinGW do not provide the 'file' command needed by
5357   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5358   # unless we find 'file', for example because we are cross-compiling.
5359   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5360   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5361     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5362     lt_cv_file_magic_cmd='func_win32_libid'
5363   else
5364     # Keep this pattern in sync with the one in func_win32_libid.
5365     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5366     lt_cv_file_magic_cmd='$OBJDUMP -f'
5367   fi
5368   ;;
5369
5370 cegcc*)
5371   # use the weaker test based on 'objdump'. See mingw*.
5372   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5373   lt_cv_file_magic_cmd='$OBJDUMP -f'
5374   ;;
5375
5376 darwin* | rhapsody*)
5377   lt_cv_deplibs_check_method=pass_all
5378   ;;
5379
5380 freebsd* | dragonfly*)
5381   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5382     case $host_cpu in
5383     i*86 )
5384       # Not sure whether the presence of OpenBSD here was a mistake.
5385       # Let's accept both of them until this is cleared up.
5386       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5387       lt_cv_file_magic_cmd=/usr/bin/file
5388       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5389       ;;
5390     esac
5391   else
5392     lt_cv_deplibs_check_method=pass_all
5393   fi
5394   ;;
5395
5396 haiku*)
5397   lt_cv_deplibs_check_method=pass_all
5398   ;;
5399
5400 hpux10.20* | hpux11*)
5401   lt_cv_file_magic_cmd=/usr/bin/file
5402   case $host_cpu in
5403   ia64*)
5404     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5405     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5406     ;;
5407   hppa*64*)
5408     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5409     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5410     ;;
5411   *)
5412     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5413     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5414     ;;
5415   esac
5416   ;;
5417
5418 interix[3-9]*)
5419   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5420   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5421   ;;
5422
5423 irix5* | irix6* | nonstopux*)
5424   case $LD in
5425   *-32|*"-32 ") libmagic=32-bit;;
5426   *-n32|*"-n32 ") libmagic=N32;;
5427   *-64|*"-64 ") libmagic=64-bit;;
5428   *) libmagic=never-match;;
5429   esac
5430   lt_cv_deplibs_check_method=pass_all
5431   ;;
5432
5433 # This must be glibc/ELF.
5434 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5435   lt_cv_deplibs_check_method=pass_all
5436   ;;
5437
5438 netbsd* | netbsdelf*-gnu)
5439   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5440     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5441   else
5442     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5443   fi
5444   ;;
5445
5446 newos6*)
5447   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5448   lt_cv_file_magic_cmd=/usr/bin/file
5449   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5450   ;;
5451
5452 *nto* | *qnx*)
5453   lt_cv_deplibs_check_method=pass_all
5454   ;;
5455
5456 openbsd*)
5457   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5458     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5459   else
5460     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5461   fi
5462   ;;
5463
5464 osf3* | osf4* | osf5*)
5465   lt_cv_deplibs_check_method=pass_all
5466   ;;
5467
5468 rdos*)
5469   lt_cv_deplibs_check_method=pass_all
5470   ;;
5471
5472 solaris*)
5473   lt_cv_deplibs_check_method=pass_all
5474   ;;
5475
5476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5477   lt_cv_deplibs_check_method=pass_all
5478   ;;
5479
5480 sysv4 | sysv4.3*)
5481   case $host_vendor in
5482   motorola)
5483     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5484     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5485     ;;
5486   ncr)
5487     lt_cv_deplibs_check_method=pass_all
5488     ;;
5489   sequent)
5490     lt_cv_file_magic_cmd='/bin/file'
5491     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5492     ;;
5493   sni)
5494     lt_cv_file_magic_cmd='/bin/file'
5495     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5496     lt_cv_file_magic_test_file=/lib/libc.so
5497     ;;
5498   siemens)
5499     lt_cv_deplibs_check_method=pass_all
5500     ;;
5501   pc)
5502     lt_cv_deplibs_check_method=pass_all
5503     ;;
5504   esac
5505   ;;
5506
5507 tpf*)
5508   lt_cv_deplibs_check_method=pass_all
5509   ;;
5510 esac
5511
5512 fi
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5514 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5515
5516 file_magic_glob=
5517 want_nocaseglob=no
5518 if test "$build" = "$host"; then
5519   case $host_os in
5520   mingw* | pw32*)
5521     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5522       want_nocaseglob=yes
5523     else
5524       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5525     fi
5526     ;;
5527   esac
5528 fi
5529
5530 file_magic_cmd=$lt_cv_file_magic_cmd
5531 deplibs_check_method=$lt_cv_deplibs_check_method
5532 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555 if test -n "$ac_tool_prefix"; then
5556   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5557 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_DLLTOOL+:} false; then :
5561   $as_echo_n "(cached) " >&6
5562 else
5563   if test -n "$DLLTOOL"; then
5564   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5565 else
5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571     for ac_exec_ext in '' $ac_executable_extensions; do
5572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5573     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575     break 2
5576   fi
5577 done
5578   done
5579 IFS=$as_save_IFS
5580
5581 fi
5582 fi
5583 DLLTOOL=$ac_cv_prog_DLLTOOL
5584 if test -n "$DLLTOOL"; then
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5586 $as_echo "$DLLTOOL" >&6; }
5587 else
5588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5590 fi
5591
5592
5593 fi
5594 if test -z "$ac_cv_prog_DLLTOOL"; then
5595   ac_ct_DLLTOOL=$DLLTOOL
5596   # Extract the first word of "dlltool", so it can be a program name with args.
5597 set dummy dlltool; ac_word=$2
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; }
5600 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5601   $as_echo_n "(cached) " >&6
5602 else
5603   if test -n "$ac_ct_DLLTOOL"; then
5604   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5605 else
5606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5607 for as_dir in $PATH
5608 do
5609   IFS=$as_save_IFS
5610   test -z "$as_dir" && as_dir=.
5611     for ac_exec_ext in '' $ac_executable_extensions; do
5612   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5613     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5615     break 2
5616   fi
5617 done
5618   done
5619 IFS=$as_save_IFS
5620
5621 fi
5622 fi
5623 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5624 if test -n "$ac_ct_DLLTOOL"; then
5625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5626 $as_echo "$ac_ct_DLLTOOL" >&6; }
5627 else
5628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5629 $as_echo "no" >&6; }
5630 fi
5631
5632   if test "x$ac_ct_DLLTOOL" = x; then
5633     DLLTOOL="false"
5634   else
5635     case $cross_compiling:$ac_tool_warned in
5636 yes:)
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5639 ac_tool_warned=yes ;;
5640 esac
5641     DLLTOOL=$ac_ct_DLLTOOL
5642   fi
5643 else
5644   DLLTOOL="$ac_cv_prog_DLLTOOL"
5645 fi
5646
5647 test -z "$DLLTOOL" && DLLTOOL=dlltool
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5659 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5660 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5661   $as_echo_n "(cached) " >&6
5662 else
5663   lt_cv_sharedlib_from_linklib_cmd='unknown'
5664
5665 case $host_os in
5666 cygwin* | mingw* | pw32* | cegcc*)
5667   # two different shell functions defined in ltmain.sh
5668   # decide which to use based on capabilities of $DLLTOOL
5669   case `$DLLTOOL --help 2>&1` in
5670   *--identify-strict*)
5671     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5672     ;;
5673   *)
5674     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5675     ;;
5676   esac
5677   ;;
5678 *)
5679   # fallback: assume linklib IS sharedlib
5680   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5681   ;;
5682 esac
5683
5684 fi
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5686 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5687 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5688 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5689
5690
5691
5692
5693
5694
5695
5696
5697 if test -n "$ac_tool_prefix"; then
5698   for ac_prog in ar
5699   do
5700     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if ${ac_cv_prog_AR+:} false; then :
5705   $as_echo_n "(cached) " >&6
5706 else
5707   if test -n "$AR"; then
5708   ac_cv_prog_AR="$AR" # Let the user override the test.
5709 else
5710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711 for as_dir in $PATH
5712 do
5713   IFS=$as_save_IFS
5714   test -z "$as_dir" && as_dir=.
5715     for ac_exec_ext in '' $ac_executable_extensions; do
5716   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5717     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5718     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5719     break 2
5720   fi
5721 done
5722   done
5723 IFS=$as_save_IFS
5724
5725 fi
5726 fi
5727 AR=$ac_cv_prog_AR
5728 if test -n "$AR"; then
5729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5730 $as_echo "$AR" >&6; }
5731 else
5732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5734 fi
5735
5736
5737     test -n "$AR" && break
5738   done
5739 fi
5740 if test -z "$AR"; then
5741   ac_ct_AR=$AR
5742   for ac_prog in ar
5743 do
5744   # Extract the first word of "$ac_prog", so it can be a program name with args.
5745 set dummy $ac_prog; ac_word=$2
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747 $as_echo_n "checking for $ac_word... " >&6; }
5748 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5749   $as_echo_n "(cached) " >&6
5750 else
5751   if test -n "$ac_ct_AR"; then
5752   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5753 else
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 for as_dir in $PATH
5756 do
5757   IFS=$as_save_IFS
5758   test -z "$as_dir" && as_dir=.
5759     for ac_exec_ext in '' $ac_executable_extensions; do
5760   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5761     ac_cv_prog_ac_ct_AR="$ac_prog"
5762     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5763     break 2
5764   fi
5765 done
5766   done
5767 IFS=$as_save_IFS
5768
5769 fi
5770 fi
5771 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5772 if test -n "$ac_ct_AR"; then
5773   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5774 $as_echo "$ac_ct_AR" >&6; }
5775 else
5776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777 $as_echo "no" >&6; }
5778 fi
5779
5780
5781   test -n "$ac_ct_AR" && break
5782 done
5783
5784   if test "x$ac_ct_AR" = x; then
5785     AR="false"
5786   else
5787     case $cross_compiling:$ac_tool_warned in
5788 yes:)
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5791 ac_tool_warned=yes ;;
5792 esac
5793     AR=$ac_ct_AR
5794   fi
5795 fi
5796
5797 : ${AR=ar}
5798 : ${AR_FLAGS=cru}
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5811 $as_echo_n "checking for archiver @FILE support... " >&6; }
5812 if ${lt_cv_ar_at_file+:} false; then :
5813   $as_echo_n "(cached) " >&6
5814 else
5815   lt_cv_ar_at_file=no
5816    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h.  */
5818
5819 int
5820 main ()
5821 {
5822
5823   ;
5824   return 0;
5825 }
5826 _ACEOF
5827 if ac_fn_c_try_compile "$LINENO"; then :
5828   echo conftest.$ac_objext > conftest.lst
5829       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5830       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5831   (eval $lt_ar_try) 2>&5
5832   ac_status=$?
5833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5834   test $ac_status = 0; }
5835       if test "$ac_status" -eq 0; then
5836         # Ensure the archiver fails upon bogus file names.
5837         rm -f conftest.$ac_objext libconftest.a
5838         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5839   (eval $lt_ar_try) 2>&5
5840   ac_status=$?
5841   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5842   test $ac_status = 0; }
5843         if test "$ac_status" -ne 0; then
5844           lt_cv_ar_at_file=@
5845         fi
5846       fi
5847       rm -f conftest.* libconftest.a
5848
5849 fi
5850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5851
5852 fi
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5854 $as_echo "$lt_cv_ar_at_file" >&6; }
5855
5856 if test "x$lt_cv_ar_at_file" = xno; then
5857   archiver_list_spec=
5858 else
5859   archiver_list_spec=$lt_cv_ar_at_file
5860 fi
5861
5862
5863
5864
5865
5866
5867
5868 if test -n "$ac_tool_prefix"; then
5869   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5870 set dummy ${ac_tool_prefix}strip; ac_word=$2
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5872 $as_echo_n "checking for $ac_word... " >&6; }
5873 if ${ac_cv_prog_STRIP+:} false; then :
5874   $as_echo_n "(cached) " >&6
5875 else
5876   if test -n "$STRIP"; then
5877   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5878 else
5879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882   IFS=$as_save_IFS
5883   test -z "$as_dir" && as_dir=.
5884     for ac_exec_ext in '' $ac_executable_extensions; do
5885   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5886     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888     break 2
5889   fi
5890 done
5891   done
5892 IFS=$as_save_IFS
5893
5894 fi
5895 fi
5896 STRIP=$ac_cv_prog_STRIP
5897 if test -n "$STRIP"; then
5898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5899 $as_echo "$STRIP" >&6; }
5900 else
5901   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5902 $as_echo "no" >&6; }
5903 fi
5904
5905
5906 fi
5907 if test -z "$ac_cv_prog_STRIP"; then
5908   ac_ct_STRIP=$STRIP
5909   # Extract the first word of "strip", so it can be a program name with args.
5910 set dummy strip; ac_word=$2
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5912 $as_echo_n "checking for $ac_word... " >&6; }
5913 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5914   $as_echo_n "(cached) " >&6
5915 else
5916   if test -n "$ac_ct_STRIP"; then
5917   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5918 else
5919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 for as_dir in $PATH
5921 do
5922   IFS=$as_save_IFS
5923   test -z "$as_dir" && as_dir=.
5924     for ac_exec_ext in '' $ac_executable_extensions; do
5925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5926     ac_cv_prog_ac_ct_STRIP="strip"
5927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5928     break 2
5929   fi
5930 done
5931   done
5932 IFS=$as_save_IFS
5933
5934 fi
5935 fi
5936 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5937 if test -n "$ac_ct_STRIP"; then
5938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5939 $as_echo "$ac_ct_STRIP" >&6; }
5940 else
5941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5943 fi
5944
5945   if test "x$ac_ct_STRIP" = x; then
5946     STRIP=":"
5947   else
5948     case $cross_compiling:$ac_tool_warned in
5949 yes:)
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5952 ac_tool_warned=yes ;;
5953 esac
5954     STRIP=$ac_ct_STRIP
5955   fi
5956 else
5957   STRIP="$ac_cv_prog_STRIP"
5958 fi
5959
5960 test -z "$STRIP" && STRIP=:
5961
5962
5963
5964
5965
5966
5967 if test -n "$ac_tool_prefix"; then
5968   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5969 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if ${ac_cv_prog_RANLIB+:} false; then :
5973   $as_echo_n "(cached) " >&6
5974 else
5975   if test -n "$RANLIB"; then
5976   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981   IFS=$as_save_IFS
5982   test -z "$as_dir" && as_dir=.
5983     for ac_exec_ext in '' $ac_executable_extensions; do
5984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5985     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987     break 2
5988   fi
5989 done
5990   done
5991 IFS=$as_save_IFS
5992
5993 fi
5994 fi
5995 RANLIB=$ac_cv_prog_RANLIB
5996 if test -n "$RANLIB"; then
5997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5998 $as_echo "$RANLIB" >&6; }
5999 else
6000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6002 fi
6003
6004
6005 fi
6006 if test -z "$ac_cv_prog_RANLIB"; then
6007   ac_ct_RANLIB=$RANLIB
6008   # Extract the first word of "ranlib", so it can be a program name with args.
6009 set dummy ranlib; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6013   $as_echo_n "(cached) " >&6
6014 else
6015   if test -n "$ac_ct_RANLIB"; then
6016   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021   IFS=$as_save_IFS
6022   test -z "$as_dir" && as_dir=.
6023     for ac_exec_ext in '' $ac_executable_extensions; do
6024   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025     ac_cv_prog_ac_ct_RANLIB="ranlib"
6026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027     break 2
6028   fi
6029 done
6030   done
6031 IFS=$as_save_IFS
6032
6033 fi
6034 fi
6035 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6036 if test -n "$ac_ct_RANLIB"; then
6037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6038 $as_echo "$ac_ct_RANLIB" >&6; }
6039 else
6040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6042 fi
6043
6044   if test "x$ac_ct_RANLIB" = x; then
6045     RANLIB=":"
6046   else
6047     case $cross_compiling:$ac_tool_warned in
6048 yes:)
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6051 ac_tool_warned=yes ;;
6052 esac
6053     RANLIB=$ac_ct_RANLIB
6054   fi
6055 else
6056   RANLIB="$ac_cv_prog_RANLIB"
6057 fi
6058
6059 test -z "$RANLIB" && RANLIB=:
6060
6061
6062
6063
6064
6065
6066 # Determine commands to create old-style static archives.
6067 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6068 old_postinstall_cmds='chmod 644 $oldlib'
6069 old_postuninstall_cmds=
6070
6071 if test -n "$RANLIB"; then
6072   case $host_os in
6073   openbsd*)
6074     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6075     ;;
6076   *)
6077     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6078     ;;
6079   esac
6080   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6081 fi
6082
6083 case $host_os in
6084   darwin*)
6085     lock_old_archive_extraction=yes ;;
6086   *)
6087     lock_old_archive_extraction=no ;;
6088 esac
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128 # If no C compiler was specified, use CC.
6129 LTCC=${LTCC-"$CC"}
6130
6131 # If no C compiler flags were specified, use CFLAGS.
6132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6133
6134 # Allow CC to be a program name with arguments.
6135 compiler=$CC
6136
6137
6138 # Check for command to grab the raw symbol name followed by C symbol from nm.
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6140 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6141 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6142   $as_echo_n "(cached) " >&6
6143 else
6144
6145 # These are sane defaults that work on at least a few old systems.
6146 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6147
6148 # Character class describing NM global symbol codes.
6149 symcode='[BCDEGRST]'
6150
6151 # Regexp to match symbols that can be accessed directly from C.
6152 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6153
6154 # Define system-specific variables.
6155 case $host_os in
6156 aix*)
6157   symcode='[BCDT]'
6158   ;;
6159 cygwin* | mingw* | pw32* | cegcc*)
6160   symcode='[ABCDGISTW]'
6161   ;;
6162 hpux*)
6163   if test "$host_cpu" = ia64; then
6164     symcode='[ABCDEGRST]'
6165   fi
6166   ;;
6167 irix* | nonstopux*)
6168   symcode='[BCDEGRST]'
6169   ;;
6170 osf*)
6171   symcode='[BCDEGQRST]'
6172   ;;
6173 solaris*)
6174   symcode='[BDRT]'
6175   ;;
6176 sco3.2v5*)
6177   symcode='[DT]'
6178   ;;
6179 sysv4.2uw2*)
6180   symcode='[DT]'
6181   ;;
6182 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6183   symcode='[ABDT]'
6184   ;;
6185 sysv4)
6186   symcode='[DFNSTU]'
6187   ;;
6188 esac
6189
6190 # If we're using GNU nm, then use its standard symbol codes.
6191 case `$NM -V 2>&1` in
6192 *GNU* | *'with BFD'*)
6193   symcode='[ABCDGIRSTW]' ;;
6194 esac
6195
6196 # Transform an extracted symbol line into a proper C declaration.
6197 # Some systems (esp. on ia64) link data and code symbols differently,
6198 # so use this general approach.
6199 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6200
6201 # Transform an extracted symbol line into symbol name and symbol address
6202 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6203 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6204
6205 # Handle CRLF in mingw tool chain
6206 opt_cr=
6207 case $build_os in
6208 mingw*)
6209   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6210   ;;
6211 esac
6212
6213 # Try without a prefix underscore, then with it.
6214 for ac_symprfx in "" "_"; do
6215
6216   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6217   symxfrm="\\1 $ac_symprfx\\2 \\2"
6218
6219   # Write the raw and C identifiers.
6220   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6221     # Fake it for dumpbin and say T for any non-static function
6222     # and D for any global variable.
6223     # Also find C++ and __fastcall symbols from MSVC++,
6224     # which start with @ or ?.
6225     lt_cv_sys_global_symbol_pipe="$AWK '"\
6226 "     {last_section=section; section=\$ 3};"\
6227 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6228 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6229 "     \$ 0!~/External *\|/{next};"\
6230 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6231 "     {if(hide[section]) next};"\
6232 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6233 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6234 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6235 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6236 "     ' prfx=^$ac_symprfx"
6237   else
6238     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6239   fi
6240   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6241
6242   # Check to see that the pipe works correctly.
6243   pipe_works=no
6244
6245   rm -f conftest*
6246   cat > conftest.$ac_ext <<_LT_EOF
6247 #ifdef __cplusplus
6248 extern "C" {
6249 #endif
6250 char nm_test_var;
6251 void nm_test_func(void);
6252 void nm_test_func(void){}
6253 #ifdef __cplusplus
6254 }
6255 #endif
6256 int main(){nm_test_var='a';nm_test_func();return(0);}
6257 _LT_EOF
6258
6259   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6260   (eval $ac_compile) 2>&5
6261   ac_status=$?
6262   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6263   test $ac_status = 0; }; then
6264     # Now try to grab the symbols.
6265     nlist=conftest.nm
6266     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6267   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6268   ac_status=$?
6269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6270   test $ac_status = 0; } && test -s "$nlist"; then
6271       # Try sorting and uniquifying the output.
6272       if sort "$nlist" | uniq > "$nlist"T; then
6273         mv -f "$nlist"T "$nlist"
6274       else
6275         rm -f "$nlist"T
6276       fi
6277
6278       # Make sure that we snagged all the symbols we need.
6279       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6280         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6281           cat <<_LT_EOF > conftest.$ac_ext
6282 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6283 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6284 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6285    relocations are performed -- see ld's documentation on pseudo-relocs.  */
6286 # define LT_DLSYM_CONST
6287 #elif defined(__osf__)
6288 /* This system does not cope well with relocations in const data.  */
6289 # define LT_DLSYM_CONST
6290 #else
6291 # define LT_DLSYM_CONST const
6292 #endif
6293
6294 #ifdef __cplusplus
6295 extern "C" {
6296 #endif
6297
6298 _LT_EOF
6299           # Now generate the symbol file.
6300           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6301
6302           cat <<_LT_EOF >> conftest.$ac_ext
6303
6304 /* The mapping between symbol names and symbols.  */
6305 LT_DLSYM_CONST struct {
6306   const char *name;
6307   void       *address;
6308 }
6309 lt__PROGRAM__LTX_preloaded_symbols[] =
6310 {
6311   { "@PROGRAM@", (void *) 0 },
6312 _LT_EOF
6313           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6314           cat <<\_LT_EOF >> conftest.$ac_ext
6315   {0, (void *) 0}
6316 };
6317
6318 /* This works around a problem in FreeBSD linker */
6319 #ifdef FREEBSD_WORKAROUND
6320 static const void *lt_preloaded_setup() {
6321   return lt__PROGRAM__LTX_preloaded_symbols;
6322 }
6323 #endif
6324
6325 #ifdef __cplusplus
6326 }
6327 #endif
6328 _LT_EOF
6329           # Now try linking the two files.
6330           mv conftest.$ac_objext conftstm.$ac_objext
6331           lt_globsym_save_LIBS=$LIBS
6332           lt_globsym_save_CFLAGS=$CFLAGS
6333           LIBS="conftstm.$ac_objext"
6334           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6335           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6336   (eval $ac_link) 2>&5
6337   ac_status=$?
6338   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6339   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6340             pipe_works=yes
6341           fi
6342           LIBS=$lt_globsym_save_LIBS
6343           CFLAGS=$lt_globsym_save_CFLAGS
6344         else
6345           echo "cannot find nm_test_func in $nlist" >&5
6346         fi
6347       else
6348         echo "cannot find nm_test_var in $nlist" >&5
6349       fi
6350     else
6351       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6352     fi
6353   else
6354     echo "$progname: failed program was:" >&5
6355     cat conftest.$ac_ext >&5
6356   fi
6357   rm -rf conftest* conftst*
6358
6359   # Do not use the global_symbol_pipe unless it works.
6360   if test "$pipe_works" = yes; then
6361     break
6362   else
6363     lt_cv_sys_global_symbol_pipe=
6364   fi
6365 done
6366
6367 fi
6368
6369 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6370   lt_cv_sys_global_symbol_to_cdecl=
6371 fi
6372 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6374 $as_echo "failed" >&6; }
6375 else
6376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6377 $as_echo "ok" >&6; }
6378 fi
6379
6380 # Response file support.
6381 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6382   nm_file_list_spec='@'
6383 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6384   nm_file_list_spec='@'
6385 fi
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6414 $as_echo_n "checking for sysroot... " >&6; }
6415
6416 # Check whether --with-sysroot was given.
6417 if test "${with_sysroot+set}" = set; then :
6418   withval=$with_sysroot;
6419 else
6420   with_sysroot=no
6421 fi
6422
6423
6424 lt_sysroot=
6425 case ${with_sysroot} in #(
6426  yes)
6427    if test "$GCC" = yes; then
6428      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6429    fi
6430    ;; #(
6431  /*)
6432    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6433    ;; #(
6434  no|'')
6435    ;; #(
6436  *)
6437    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6438 $as_echo "${with_sysroot}" >&6; }
6439    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6440    ;;
6441 esac
6442
6443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6444 $as_echo "${lt_sysroot:-no}" >&6; }
6445
6446
6447
6448
6449
6450 # Check whether --enable-libtool-lock was given.
6451 if test "${enable_libtool_lock+set}" = set; then :
6452   enableval=$enable_libtool_lock;
6453 fi
6454
6455 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6456
6457 # Some flags need to be propagated to the compiler or linker for good
6458 # libtool support.
6459 case $host in
6460 ia64-*-hpux*)
6461   # Find out which ABI we are using.
6462   echo 'int i;' > conftest.$ac_ext
6463   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6464   (eval $ac_compile) 2>&5
6465   ac_status=$?
6466   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467   test $ac_status = 0; }; then
6468     case `/usr/bin/file conftest.$ac_objext` in
6469       *ELF-32*)
6470         HPUX_IA64_MODE="32"
6471         ;;
6472       *ELF-64*)
6473         HPUX_IA64_MODE="64"
6474         ;;
6475     esac
6476   fi
6477   rm -rf conftest*
6478   ;;
6479 *-*-irix6*)
6480   # Find out which ABI we are using.
6481   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6482   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6483   (eval $ac_compile) 2>&5
6484   ac_status=$?
6485   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6486   test $ac_status = 0; }; then
6487     if test "$lt_cv_prog_gnu_ld" = yes; then
6488       case `/usr/bin/file conftest.$ac_objext` in
6489         *32-bit*)
6490           LD="${LD-ld} -melf32bsmip"
6491           ;;
6492         *N32*)
6493           LD="${LD-ld} -melf32bmipn32"
6494           ;;
6495         *64-bit*)
6496           LD="${LD-ld} -melf64bmip"
6497         ;;
6498       esac
6499     else
6500       case `/usr/bin/file conftest.$ac_objext` in
6501         *32-bit*)
6502           LD="${LD-ld} -32"
6503           ;;
6504         *N32*)
6505           LD="${LD-ld} -n32"
6506           ;;
6507         *64-bit*)
6508           LD="${LD-ld} -64"
6509           ;;
6510       esac
6511     fi
6512   fi
6513   rm -rf conftest*
6514   ;;
6515
6516 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6517 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6518   # Find out which ABI we are using.
6519   echo 'int i;' > conftest.$ac_ext
6520   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6521   (eval $ac_compile) 2>&5
6522   ac_status=$?
6523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6524   test $ac_status = 0; }; then
6525     case `/usr/bin/file conftest.o` in
6526       *32-bit*)
6527         case $host in
6528           x86_64-*kfreebsd*-gnu)
6529             LD="${LD-ld} -m elf_i386_fbsd"
6530             ;;
6531           x86_64-*linux*)
6532             case `/usr/bin/file conftest.o` in
6533               *x86-64*)
6534                 LD="${LD-ld} -m elf32_x86_64"
6535                 ;;
6536               *)
6537                 LD="${LD-ld} -m elf_i386"
6538                 ;;
6539             esac
6540             ;;
6541           powerpc64le-*)
6542             LD="${LD-ld} -m elf32lppclinux"
6543             ;;
6544           powerpc64-*)
6545             LD="${LD-ld} -m elf32ppclinux"
6546             ;;
6547           s390x-*linux*)
6548             LD="${LD-ld} -m elf_s390"
6549             ;;
6550           sparc64-*linux*)
6551             LD="${LD-ld} -m elf32_sparc"
6552             ;;
6553         esac
6554         ;;
6555       *64-bit*)
6556         case $host in
6557           x86_64-*kfreebsd*-gnu)
6558             LD="${LD-ld} -m elf_x86_64_fbsd"
6559             ;;
6560           x86_64-*linux*)
6561             LD="${LD-ld} -m elf_x86_64"
6562             ;;
6563           powerpcle-*)
6564             LD="${LD-ld} -m elf64lppc"
6565             ;;
6566           powerpc-*)
6567             LD="${LD-ld} -m elf64ppc"
6568             ;;
6569           s390*-*linux*|s390*-*tpf*)
6570             LD="${LD-ld} -m elf64_s390"
6571             ;;
6572           sparc*-*linux*)
6573             LD="${LD-ld} -m elf64_sparc"
6574             ;;
6575         esac
6576         ;;
6577     esac
6578   fi
6579   rm -rf conftest*
6580   ;;
6581
6582 *-*-sco3.2v5*)
6583   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6584   SAVE_CFLAGS="$CFLAGS"
6585   CFLAGS="$CFLAGS -belf"
6586   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6587 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6588 if ${lt_cv_cc_needs_belf+:} false; then :
6589   $as_echo_n "(cached) " >&6
6590 else
6591   ac_ext=c
6592 ac_cpp='$CPP $CPPFLAGS'
6593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6596
6597      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h.  */
6599
6600 int
6601 main ()
6602 {
6603
6604   ;
6605   return 0;
6606 }
6607 _ACEOF
6608 if ac_fn_c_try_link "$LINENO"; then :
6609   lt_cv_cc_needs_belf=yes
6610 else
6611   lt_cv_cc_needs_belf=no
6612 fi
6613 rm -f core conftest.err conftest.$ac_objext \
6614     conftest$ac_exeext conftest.$ac_ext
6615      ac_ext=c
6616 ac_cpp='$CPP $CPPFLAGS'
6617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6620
6621 fi
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6623 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6624   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6625     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6626     CFLAGS="$SAVE_CFLAGS"
6627   fi
6628   ;;
6629 *-*solaris*)
6630   # Find out which ABI we are using.
6631   echo 'int i;' > conftest.$ac_ext
6632   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6633   (eval $ac_compile) 2>&5
6634   ac_status=$?
6635   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6636   test $ac_status = 0; }; then
6637     case `/usr/bin/file conftest.o` in
6638     *64-bit*)
6639       case $lt_cv_prog_gnu_ld in
6640       yes*)
6641         case $host in
6642         i?86-*-solaris*)
6643           LD="${LD-ld} -m elf_x86_64"
6644           ;;
6645         sparc*-*-solaris*)
6646           LD="${LD-ld} -m elf64_sparc"
6647           ;;
6648         esac
6649         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
6650         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6651           LD="${LD-ld}_sol2"
6652         fi
6653         ;;
6654       *)
6655         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6656           LD="${LD-ld} -64"
6657         fi
6658         ;;
6659       esac
6660       ;;
6661     esac
6662   fi
6663   rm -rf conftest*
6664   ;;
6665 esac
6666
6667 need_locks="$enable_libtool_lock"
6668
6669 if test -n "$ac_tool_prefix"; then
6670   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6671 set dummy ${ac_tool_prefix}mt; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6675   $as_echo_n "(cached) " >&6
6676 else
6677   if test -n "$MANIFEST_TOOL"; then
6678   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6682 do
6683   IFS=$as_save_IFS
6684   test -z "$as_dir" && as_dir=.
6685     for ac_exec_ext in '' $ac_executable_extensions; do
6686   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6687     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6688     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689     break 2
6690   fi
6691 done
6692   done
6693 IFS=$as_save_IFS
6694
6695 fi
6696 fi
6697 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6698 if test -n "$MANIFEST_TOOL"; then
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6700 $as_echo "$MANIFEST_TOOL" >&6; }
6701 else
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6704 fi
6705
6706
6707 fi
6708 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6709   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6710   # Extract the first word of "mt", so it can be a program name with args.
6711 set dummy mt; ac_word=$2
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6713 $as_echo_n "checking for $ac_word... " >&6; }
6714 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6715   $as_echo_n "(cached) " >&6
6716 else
6717   if test -n "$ac_ct_MANIFEST_TOOL"; then
6718   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6719 else
6720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6721 for as_dir in $PATH
6722 do
6723   IFS=$as_save_IFS
6724   test -z "$as_dir" && as_dir=.
6725     for ac_exec_ext in '' $ac_executable_extensions; do
6726   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6727     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6728     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6729     break 2
6730   fi
6731 done
6732   done
6733 IFS=$as_save_IFS
6734
6735 fi
6736 fi
6737 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6738 if test -n "$ac_ct_MANIFEST_TOOL"; then
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6740 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6741 else
6742   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6743 $as_echo "no" >&6; }
6744 fi
6745
6746   if test "x$ac_ct_MANIFEST_TOOL" = x; then
6747     MANIFEST_TOOL=":"
6748   else
6749     case $cross_compiling:$ac_tool_warned in
6750 yes:)
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6753 ac_tool_warned=yes ;;
6754 esac
6755     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6756   fi
6757 else
6758   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6759 fi
6760
6761 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6763 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6764 if ${lt_cv_path_mainfest_tool+:} false; then :
6765   $as_echo_n "(cached) " >&6
6766 else
6767   lt_cv_path_mainfest_tool=no
6768   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6769   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6770   cat conftest.err >&5
6771   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6772     lt_cv_path_mainfest_tool=yes
6773   fi
6774   rm -f conftest*
6775 fi
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6777 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6778 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6779   MANIFEST_TOOL=:
6780 fi
6781
6782
6783
6784
6785
6786
6787   case $host_os in
6788     rhapsody* | darwin*)
6789     if test -n "$ac_tool_prefix"; then
6790   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6791 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6793 $as_echo_n "checking for $ac_word... " >&6; }
6794 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6795   $as_echo_n "(cached) " >&6
6796 else
6797   if test -n "$DSYMUTIL"; then
6798   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6799 else
6800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 for as_dir in $PATH
6802 do
6803   IFS=$as_save_IFS
6804   test -z "$as_dir" && as_dir=.
6805     for ac_exec_ext in '' $ac_executable_extensions; do
6806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6807     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6809     break 2
6810   fi
6811 done
6812   done
6813 IFS=$as_save_IFS
6814
6815 fi
6816 fi
6817 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6818 if test -n "$DSYMUTIL"; then
6819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6820 $as_echo "$DSYMUTIL" >&6; }
6821 else
6822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6823 $as_echo "no" >&6; }
6824 fi
6825
6826
6827 fi
6828 if test -z "$ac_cv_prog_DSYMUTIL"; then
6829   ac_ct_DSYMUTIL=$DSYMUTIL
6830   # Extract the first word of "dsymutil", so it can be a program name with args.
6831 set dummy dsymutil; ac_word=$2
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6833 $as_echo_n "checking for $ac_word... " >&6; }
6834 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6835   $as_echo_n "(cached) " >&6
6836 else
6837   if test -n "$ac_ct_DSYMUTIL"; then
6838   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6839 else
6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 for as_dir in $PATH
6842 do
6843   IFS=$as_save_IFS
6844   test -z "$as_dir" && as_dir=.
6845     for ac_exec_ext in '' $ac_executable_extensions; do
6846   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6847     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6848     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849     break 2
6850   fi
6851 done
6852   done
6853 IFS=$as_save_IFS
6854
6855 fi
6856 fi
6857 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6858 if test -n "$ac_ct_DSYMUTIL"; then
6859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6860 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6861 else
6862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6863 $as_echo "no" >&6; }
6864 fi
6865
6866   if test "x$ac_ct_DSYMUTIL" = x; then
6867     DSYMUTIL=":"
6868   else
6869     case $cross_compiling:$ac_tool_warned in
6870 yes:)
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6873 ac_tool_warned=yes ;;
6874 esac
6875     DSYMUTIL=$ac_ct_DSYMUTIL
6876   fi
6877 else
6878   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6879 fi
6880
6881     if test -n "$ac_tool_prefix"; then
6882   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6883 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if ${ac_cv_prog_NMEDIT+:} false; then :
6887   $as_echo_n "(cached) " >&6
6888 else
6889   if test -n "$NMEDIT"; then
6890   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897     for ac_exec_ext in '' $ac_executable_extensions; do
6898   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6899     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904   done
6905 IFS=$as_save_IFS
6906
6907 fi
6908 fi
6909 NMEDIT=$ac_cv_prog_NMEDIT
6910 if test -n "$NMEDIT"; then
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6912 $as_echo "$NMEDIT" >&6; }
6913 else
6914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6916 fi
6917
6918
6919 fi
6920 if test -z "$ac_cv_prog_NMEDIT"; then
6921   ac_ct_NMEDIT=$NMEDIT
6922   # Extract the first word of "nmedit", so it can be a program name with args.
6923 set dummy nmedit; ac_word=$2
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6925 $as_echo_n "checking for $ac_word... " >&6; }
6926 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6927   $as_echo_n "(cached) " >&6
6928 else
6929   if test -n "$ac_ct_NMEDIT"; then
6930   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6931 else
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6933 for as_dir in $PATH
6934 do
6935   IFS=$as_save_IFS
6936   test -z "$as_dir" && as_dir=.
6937     for ac_exec_ext in '' $ac_executable_extensions; do
6938   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6939     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6940     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6941     break 2
6942   fi
6943 done
6944   done
6945 IFS=$as_save_IFS
6946
6947 fi
6948 fi
6949 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6950 if test -n "$ac_ct_NMEDIT"; then
6951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6952 $as_echo "$ac_ct_NMEDIT" >&6; }
6953 else
6954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6956 fi
6957
6958   if test "x$ac_ct_NMEDIT" = x; then
6959     NMEDIT=":"
6960   else
6961     case $cross_compiling:$ac_tool_warned in
6962 yes:)
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6965 ac_tool_warned=yes ;;
6966 esac
6967     NMEDIT=$ac_ct_NMEDIT
6968   fi
6969 else
6970   NMEDIT="$ac_cv_prog_NMEDIT"
6971 fi
6972
6973     if test -n "$ac_tool_prefix"; then
6974   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6975 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if ${ac_cv_prog_LIPO+:} false; then :
6979   $as_echo_n "(cached) " >&6
6980 else
6981   if test -n "$LIPO"; then
6982   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6986 do
6987   IFS=$as_save_IFS
6988   test -z "$as_dir" && as_dir=.
6989     for ac_exec_ext in '' $ac_executable_extensions; do
6990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6991     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993     break 2
6994   fi
6995 done
6996   done
6997 IFS=$as_save_IFS
6998
6999 fi
7000 fi
7001 LIPO=$ac_cv_prog_LIPO
7002 if test -n "$LIPO"; then
7003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7004 $as_echo "$LIPO" >&6; }
7005 else
7006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7008 fi
7009
7010
7011 fi
7012 if test -z "$ac_cv_prog_LIPO"; then
7013   ac_ct_LIPO=$LIPO
7014   # Extract the first word of "lipo", so it can be a program name with args.
7015 set dummy lipo; ac_word=$2
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7017 $as_echo_n "checking for $ac_word... " >&6; }
7018 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7019   $as_echo_n "(cached) " >&6
7020 else
7021   if test -n "$ac_ct_LIPO"; then
7022   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7023 else
7024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025 for as_dir in $PATH
7026 do
7027   IFS=$as_save_IFS
7028   test -z "$as_dir" && as_dir=.
7029     for ac_exec_ext in '' $ac_executable_extensions; do
7030   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7031     ac_cv_prog_ac_ct_LIPO="lipo"
7032     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7033     break 2
7034   fi
7035 done
7036   done
7037 IFS=$as_save_IFS
7038
7039 fi
7040 fi
7041 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7042 if test -n "$ac_ct_LIPO"; then
7043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7044 $as_echo "$ac_ct_LIPO" >&6; }
7045 else
7046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7047 $as_echo "no" >&6; }
7048 fi
7049
7050   if test "x$ac_ct_LIPO" = x; then
7051     LIPO=":"
7052   else
7053     case $cross_compiling:$ac_tool_warned in
7054 yes:)
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7056 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7057 ac_tool_warned=yes ;;
7058 esac
7059     LIPO=$ac_ct_LIPO
7060   fi
7061 else
7062   LIPO="$ac_cv_prog_LIPO"
7063 fi
7064
7065     if test -n "$ac_tool_prefix"; then
7066   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7067 set dummy ${ac_tool_prefix}otool; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_prog_OTOOL+:} false; then :
7071   $as_echo_n "(cached) " >&6
7072 else
7073   if test -n "$OTOOL"; then
7074   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7078 do
7079   IFS=$as_save_IFS
7080   test -z "$as_dir" && as_dir=.
7081     for ac_exec_ext in '' $ac_executable_extensions; do
7082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085     break 2
7086   fi
7087 done
7088   done
7089 IFS=$as_save_IFS
7090
7091 fi
7092 fi
7093 OTOOL=$ac_cv_prog_OTOOL
7094 if test -n "$OTOOL"; then
7095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7096 $as_echo "$OTOOL" >&6; }
7097 else
7098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7100 fi
7101
7102
7103 fi
7104 if test -z "$ac_cv_prog_OTOOL"; then
7105   ac_ct_OTOOL=$OTOOL
7106   # Extract the first word of "otool", so it can be a program name with args.
7107 set dummy otool; ac_word=$2
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 $as_echo_n "checking for $ac_word... " >&6; }
7110 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7111   $as_echo_n "(cached) " >&6
7112 else
7113   if test -n "$ac_ct_OTOOL"; then
7114   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7118 do
7119   IFS=$as_save_IFS
7120   test -z "$as_dir" && as_dir=.
7121     for ac_exec_ext in '' $ac_executable_extensions; do
7122   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7123     ac_cv_prog_ac_ct_OTOOL="otool"
7124     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125     break 2
7126   fi
7127 done
7128   done
7129 IFS=$as_save_IFS
7130
7131 fi
7132 fi
7133 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7134 if test -n "$ac_ct_OTOOL"; then
7135   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7136 $as_echo "$ac_ct_OTOOL" >&6; }
7137 else
7138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7140 fi
7141
7142   if test "x$ac_ct_OTOOL" = x; then
7143     OTOOL=":"
7144   else
7145     case $cross_compiling:$ac_tool_warned in
7146 yes:)
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7149 ac_tool_warned=yes ;;
7150 esac
7151     OTOOL=$ac_ct_OTOOL
7152   fi
7153 else
7154   OTOOL="$ac_cv_prog_OTOOL"
7155 fi
7156
7157     if test -n "$ac_tool_prefix"; then
7158   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7159 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_OTOOL64+:} false; then :
7163   $as_echo_n "(cached) " >&6
7164 else
7165   if test -n "$OTOOL64"; then
7166   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171   IFS=$as_save_IFS
7172   test -z "$as_dir" && as_dir=.
7173     for ac_exec_ext in '' $ac_executable_extensions; do
7174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177     break 2
7178   fi
7179 done
7180   done
7181 IFS=$as_save_IFS
7182
7183 fi
7184 fi
7185 OTOOL64=$ac_cv_prog_OTOOL64
7186 if test -n "$OTOOL64"; then
7187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7188 $as_echo "$OTOOL64" >&6; }
7189 else
7190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7192 fi
7193
7194
7195 fi
7196 if test -z "$ac_cv_prog_OTOOL64"; then
7197   ac_ct_OTOOL64=$OTOOL64
7198   # Extract the first word of "otool64", so it can be a program name with args.
7199 set dummy otool64; ac_word=$2
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7201 $as_echo_n "checking for $ac_word... " >&6; }
7202 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7203   $as_echo_n "(cached) " >&6
7204 else
7205   if test -n "$ac_ct_OTOOL64"; then
7206   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7207 else
7208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 for as_dir in $PATH
7210 do
7211   IFS=$as_save_IFS
7212   test -z "$as_dir" && as_dir=.
7213     for ac_exec_ext in '' $ac_executable_extensions; do
7214   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7215     ac_cv_prog_ac_ct_OTOOL64="otool64"
7216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7217     break 2
7218   fi
7219 done
7220   done
7221 IFS=$as_save_IFS
7222
7223 fi
7224 fi
7225 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7226 if test -n "$ac_ct_OTOOL64"; then
7227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7228 $as_echo "$ac_ct_OTOOL64" >&6; }
7229 else
7230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7232 fi
7233
7234   if test "x$ac_ct_OTOOL64" = x; then
7235     OTOOL64=":"
7236   else
7237     case $cross_compiling:$ac_tool_warned in
7238 yes:)
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7241 ac_tool_warned=yes ;;
7242 esac
7243     OTOOL64=$ac_ct_OTOOL64
7244   fi
7245 else
7246   OTOOL64="$ac_cv_prog_OTOOL64"
7247 fi
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7276 $as_echo_n "checking for -single_module linker flag... " >&6; }
7277 if ${lt_cv_apple_cc_single_mod+:} false; then :
7278   $as_echo_n "(cached) " >&6
7279 else
7280   lt_cv_apple_cc_single_mod=no
7281       if test -z "${LT_MULTI_MODULE}"; then
7282         # By default we will add the -single_module flag. You can override
7283         # by either setting the environment variable LT_MULTI_MODULE
7284         # non-empty at configure time, or by adding -multi_module to the
7285         # link flags.
7286         rm -rf libconftest.dylib*
7287         echo "int foo(void){return 1;}" > conftest.c
7288         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7289 -dynamiclib -Wl,-single_module conftest.c" >&5
7290         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7291           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7292         _lt_result=$?
7293         # If there is a non-empty error log, and "single_module"
7294         # appears in it, assume the flag caused a linker warning
7295         if test -s conftest.err && $GREP single_module conftest.err; then
7296           cat conftest.err >&5
7297         # Otherwise, if the output was created with a 0 exit code from
7298         # the compiler, it worked.
7299         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7300           lt_cv_apple_cc_single_mod=yes
7301         else
7302           cat conftest.err >&5
7303         fi
7304         rm -rf libconftest.dylib*
7305         rm -f conftest.*
7306       fi
7307 fi
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7309 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7310
7311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7312 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7313 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7314   $as_echo_n "(cached) " >&6
7315 else
7316   lt_cv_ld_exported_symbols_list=no
7317       save_LDFLAGS=$LDFLAGS
7318       echo "_main" > conftest.sym
7319       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7320       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h.  */
7322
7323 int
7324 main ()
7325 {
7326
7327   ;
7328   return 0;
7329 }
7330 _ACEOF
7331 if ac_fn_c_try_link "$LINENO"; then :
7332   lt_cv_ld_exported_symbols_list=yes
7333 else
7334   lt_cv_ld_exported_symbols_list=no
7335 fi
7336 rm -f core conftest.err conftest.$ac_objext \
7337     conftest$ac_exeext conftest.$ac_ext
7338         LDFLAGS="$save_LDFLAGS"
7339
7340 fi
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7342 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7343
7344     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7345 $as_echo_n "checking for -force_load linker flag... " >&6; }
7346 if ${lt_cv_ld_force_load+:} false; then :
7347   $as_echo_n "(cached) " >&6
7348 else
7349   lt_cv_ld_force_load=no
7350       cat > conftest.c << _LT_EOF
7351 int forced_loaded() { return 2;}
7352 _LT_EOF
7353       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7354       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7355       echo "$AR cru libconftest.a conftest.o" >&5
7356       $AR cru libconftest.a conftest.o 2>&5
7357       echo "$RANLIB libconftest.a" >&5
7358       $RANLIB libconftest.a 2>&5
7359       cat > conftest.c << _LT_EOF
7360 int main() { return 0;}
7361 _LT_EOF
7362       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7363       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7364       _lt_result=$?
7365       if test -s conftest.err && $GREP force_load conftest.err; then
7366         cat conftest.err >&5
7367       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7368         lt_cv_ld_force_load=yes
7369       else
7370         cat conftest.err >&5
7371       fi
7372         rm -f conftest.err libconftest.a conftest conftest.c
7373         rm -rf conftest.dSYM
7374
7375 fi
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7377 $as_echo "$lt_cv_ld_force_load" >&6; }
7378     case $host_os in
7379     rhapsody* | darwin1.[012])
7380       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7381     darwin1.*)
7382       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7383     darwin*) # darwin 5.x on
7384       # if running on 10.5 or later, the deployment target defaults
7385       # to the OS version, if on x86, and 10.4, the deployment
7386       # target defaults to 10.4. Don't you love it?
7387       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7388         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7389           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7390         10.[012]*)
7391           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7392         10.*)
7393           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7394       esac
7395     ;;
7396   esac
7397     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7398       _lt_dar_single_mod='$single_module'
7399     fi
7400     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7401       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7402     else
7403       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7404     fi
7405     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7406       _lt_dsymutil='~$DSYMUTIL $lib || :'
7407     else
7408       _lt_dsymutil=
7409     fi
7410     ;;
7411   esac
7412
7413
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7415 $as_echo_n "checking for ANSI C header files... " >&6; }
7416 if ${ac_cv_header_stdc+:} false; then :
7417   $as_echo_n "(cached) " >&6
7418 else
7419   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h.  */
7421 #include <stdlib.h>
7422 #include <stdarg.h>
7423 #include <string.h>
7424 #include <float.h>
7425
7426 int
7427 main ()
7428 {
7429
7430   ;
7431   return 0;
7432 }
7433 _ACEOF
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435   ac_cv_header_stdc=yes
7436 else
7437   ac_cv_header_stdc=no
7438 fi
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440
7441 if test $ac_cv_header_stdc = yes; then
7442   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h.  */
7445 #include <string.h>
7446
7447 _ACEOF
7448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7449   $EGREP "memchr" >/dev/null 2>&1; then :
7450
7451 else
7452   ac_cv_header_stdc=no
7453 fi
7454 rm -f conftest*
7455
7456 fi
7457
7458 if test $ac_cv_header_stdc = yes; then
7459   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h.  */
7462 #include <stdlib.h>
7463
7464 _ACEOF
7465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7466   $EGREP "free" >/dev/null 2>&1; then :
7467
7468 else
7469   ac_cv_header_stdc=no
7470 fi
7471 rm -f conftest*
7472
7473 fi
7474
7475 if test $ac_cv_header_stdc = yes; then
7476   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7477   if test "$cross_compiling" = yes; then :
7478   :
7479 else
7480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h.  */
7482 #include <ctype.h>
7483 #include <stdlib.h>
7484 #if ((' ' & 0x0FF) == 0x020)
7485 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7486 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7487 #else
7488 # define ISLOWER(c) \
7489                    (('a' <= (c) && (c) <= 'i') \
7490                      || ('j' <= (c) && (c) <= 'r') \
7491                      || ('s' <= (c) && (c) <= 'z'))
7492 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7493 #endif
7494
7495 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7496 int
7497 main ()
7498 {
7499   int i;
7500   for (i = 0; i < 256; i++)
7501     if (XOR (islower (i), ISLOWER (i))
7502         || toupper (i) != TOUPPER (i))
7503       return 2;
7504   return 0;
7505 }
7506 _ACEOF
7507 if ac_fn_c_try_run "$LINENO"; then :
7508
7509 else
7510   ac_cv_header_stdc=no
7511 fi
7512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7513   conftest.$ac_objext conftest.beam conftest.$ac_ext
7514 fi
7515
7516 fi
7517 fi
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7519 $as_echo "$ac_cv_header_stdc" >&6; }
7520 if test $ac_cv_header_stdc = yes; then
7521
7522 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7523
7524 fi
7525
7526 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7527 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7528                   inttypes.h stdint.h unistd.h
7529 do :
7530   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7531 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7532 "
7533 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7534   cat >>confdefs.h <<_ACEOF
7535 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7536 _ACEOF
7537
7538 fi
7539
7540 done
7541
7542
7543 for ac_header in dlfcn.h
7544 do :
7545   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7546 "
7547 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7548   cat >>confdefs.h <<_ACEOF
7549 #define HAVE_DLFCN_H 1
7550 _ACEOF
7551
7552 fi
7553
7554 done
7555
7556
7557
7558
7559
7560 # Set options
7561
7562
7563
7564         enable_dlopen=no
7565
7566
7567   enable_win32_dll=no
7568
7569
7570             # Check whether --enable-shared was given.
7571 if test "${enable_shared+set}" = set; then :
7572   enableval=$enable_shared; p=${PACKAGE-default}
7573     case $enableval in
7574     yes) enable_shared=yes ;;
7575     no) enable_shared=no ;;
7576     *)
7577       enable_shared=no
7578       # Look at the argument we got.  We use all the common list separators.
7579       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7580       for pkg in $enableval; do
7581         IFS="$lt_save_ifs"
7582         if test "X$pkg" = "X$p"; then
7583           enable_shared=yes
7584         fi
7585       done
7586       IFS="$lt_save_ifs"
7587       ;;
7588     esac
7589 else
7590   enable_shared=yes
7591 fi
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601   # Check whether --enable-static was given.
7602 if test "${enable_static+set}" = set; then :
7603   enableval=$enable_static; p=${PACKAGE-default}
7604     case $enableval in
7605     yes) enable_static=yes ;;
7606     no) enable_static=no ;;
7607     *)
7608      enable_static=no
7609       # Look at the argument we got.  We use all the common list separators.
7610       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7611       for pkg in $enableval; do
7612         IFS="$lt_save_ifs"
7613         if test "X$pkg" = "X$p"; then
7614           enable_static=yes
7615         fi
7616       done
7617       IFS="$lt_save_ifs"
7618       ;;
7619     esac
7620 else
7621   enable_static=yes
7622 fi
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633 # Check whether --with-pic was given.
7634 if test "${with_pic+set}" = set; then :
7635   withval=$with_pic; lt_p=${PACKAGE-default}
7636     case $withval in
7637     yes|no) pic_mode=$withval ;;
7638     *)
7639       pic_mode=default
7640       # Look at the argument we got.  We use all the common list separators.
7641       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7642       for lt_pkg in $withval; do
7643         IFS="$lt_save_ifs"
7644         if test "X$lt_pkg" = "X$lt_p"; then
7645           pic_mode=yes
7646         fi
7647       done
7648       IFS="$lt_save_ifs"
7649       ;;
7650     esac
7651 else
7652   pic_mode=default
7653 fi
7654
7655
7656 test -z "$pic_mode" && pic_mode=default
7657
7658
7659
7660
7661
7662
7663
7664   # Check whether --enable-fast-install was given.
7665 if test "${enable_fast_install+set}" = set; then :
7666   enableval=$enable_fast_install; p=${PACKAGE-default}
7667     case $enableval in
7668     yes) enable_fast_install=yes ;;
7669     no) enable_fast_install=no ;;
7670     *)
7671       enable_fast_install=no
7672       # Look at the argument we got.  We use all the common list separators.
7673       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7674       for pkg in $enableval; do
7675         IFS="$lt_save_ifs"
7676         if test "X$pkg" = "X$p"; then
7677           enable_fast_install=yes
7678         fi
7679       done
7680       IFS="$lt_save_ifs"
7681       ;;
7682     esac
7683 else
7684   enable_fast_install=yes
7685 fi
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697 # This can be used to rebuild libtool when needed
7698 LIBTOOL_DEPS="$ltmain"
7699
7700 # Always use our own libtool.
7701 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732 test -z "$LN_S" && LN_S="ln -s"
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747 if test -n "${ZSH_VERSION+set}" ; then
7748    setopt NO_GLOB_SUBST
7749 fi
7750
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7752 $as_echo_n "checking for objdir... " >&6; }
7753 if ${lt_cv_objdir+:} false; then :
7754   $as_echo_n "(cached) " >&6
7755 else
7756   rm -f .libs 2>/dev/null
7757 mkdir .libs 2>/dev/null
7758 if test -d .libs; then
7759   lt_cv_objdir=.libs
7760 else
7761   # MS-DOS does not allow filenames that begin with a dot.
7762   lt_cv_objdir=_libs
7763 fi
7764 rmdir .libs 2>/dev/null
7765 fi
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7767 $as_echo "$lt_cv_objdir" >&6; }
7768 objdir=$lt_cv_objdir
7769
7770
7771
7772
7773
7774 cat >>confdefs.h <<_ACEOF
7775 #define LT_OBJDIR "$lt_cv_objdir/"
7776 _ACEOF
7777
7778
7779
7780
7781 case $host_os in
7782 aix3*)
7783   # AIX sometimes has problems with the GCC collect2 program.  For some
7784   # reason, if we set the COLLECT_NAMES environment variable, the problems
7785   # vanish in a puff of smoke.
7786   if test "X${COLLECT_NAMES+set}" != Xset; then
7787     COLLECT_NAMES=
7788     export COLLECT_NAMES
7789   fi
7790   ;;
7791 esac
7792
7793 # Global variables:
7794 ofile=libtool
7795 can_build_shared=yes
7796
7797 # All known linkers require a `.a' archive for static linking (except MSVC,
7798 # which needs '.lib').
7799 libext=a
7800
7801 with_gnu_ld="$lt_cv_prog_gnu_ld"
7802
7803 old_CC="$CC"
7804 old_CFLAGS="$CFLAGS"
7805
7806 # Set sane defaults for various variables
7807 test -z "$CC" && CC=cc
7808 test -z "$LTCC" && LTCC=$CC
7809 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7810 test -z "$LD" && LD=ld
7811 test -z "$ac_objext" && ac_objext=o
7812
7813 for cc_temp in $compiler""; do
7814   case $cc_temp in
7815     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7816     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7817     \-*) ;;
7818     *) break;;
7819   esac
7820 done
7821 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7822
7823
7824 # Only perform the check for file, if the check method requires it
7825 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7826 case $deplibs_check_method in
7827 file_magic*)
7828   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7829     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7830 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7831 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7832   $as_echo_n "(cached) " >&6
7833 else
7834   case $MAGIC_CMD in
7835 [\\/*] |  ?:[\\/]*)
7836   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7837   ;;
7838 *)
7839   lt_save_MAGIC_CMD="$MAGIC_CMD"
7840   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7841   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7842   for ac_dir in $ac_dummy; do
7843     IFS="$lt_save_ifs"
7844     test -z "$ac_dir" && ac_dir=.
7845     if test -f $ac_dir/${ac_tool_prefix}file; then
7846       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7847       if test -n "$file_magic_test_file"; then
7848         case $deplibs_check_method in
7849         "file_magic "*)
7850           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7851           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7852           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7853             $EGREP "$file_magic_regex" > /dev/null; then
7854             :
7855           else
7856             cat <<_LT_EOF 1>&2
7857
7858 *** Warning: the command libtool uses to detect shared libraries,
7859 *** $file_magic_cmd, produces output that libtool cannot recognize.
7860 *** The result is that libtool may fail to recognize shared libraries
7861 *** as such.  This will affect the creation of libtool libraries that
7862 *** depend on shared libraries, but programs linked with such libtool
7863 *** libraries will work regardless of this problem.  Nevertheless, you
7864 *** may want to report the problem to your system manager and/or to
7865 *** bug-libtool@gnu.org
7866
7867 _LT_EOF
7868           fi ;;
7869         esac
7870       fi
7871       break
7872     fi
7873   done
7874   IFS="$lt_save_ifs"
7875   MAGIC_CMD="$lt_save_MAGIC_CMD"
7876   ;;
7877 esac
7878 fi
7879
7880 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7881 if test -n "$MAGIC_CMD"; then
7882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7883 $as_echo "$MAGIC_CMD" >&6; }
7884 else
7885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7887 fi
7888
7889
7890
7891
7892
7893 if test -z "$lt_cv_path_MAGIC_CMD"; then
7894   if test -n "$ac_tool_prefix"; then
7895     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7896 $as_echo_n "checking for file... " >&6; }
7897 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7898   $as_echo_n "(cached) " >&6
7899 else
7900   case $MAGIC_CMD in
7901 [\\/*] |  ?:[\\/]*)
7902   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7903   ;;
7904 *)
7905   lt_save_MAGIC_CMD="$MAGIC_CMD"
7906   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7907   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7908   for ac_dir in $ac_dummy; do
7909     IFS="$lt_save_ifs"
7910     test -z "$ac_dir" && ac_dir=.
7911     if test -f $ac_dir/file; then
7912       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7913       if test -n "$file_magic_test_file"; then
7914         case $deplibs_check_method in
7915         "file_magic "*)
7916           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7917           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7918           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7919             $EGREP "$file_magic_regex" > /dev/null; then
7920             :
7921           else
7922             cat <<_LT_EOF 1>&2
7923
7924 *** Warning: the command libtool uses to detect shared libraries,
7925 *** $file_magic_cmd, produces output that libtool cannot recognize.
7926 *** The result is that libtool may fail to recognize shared libraries
7927 *** as such.  This will affect the creation of libtool libraries that
7928 *** depend on shared libraries, but programs linked with such libtool
7929 *** libraries will work regardless of this problem.  Nevertheless, you
7930 *** may want to report the problem to your system manager and/or to
7931 *** bug-libtool@gnu.org
7932
7933 _LT_EOF
7934           fi ;;
7935         esac
7936       fi
7937       break
7938     fi
7939   done
7940   IFS="$lt_save_ifs"
7941   MAGIC_CMD="$lt_save_MAGIC_CMD"
7942   ;;
7943 esac
7944 fi
7945
7946 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7947 if test -n "$MAGIC_CMD"; then
7948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7949 $as_echo "$MAGIC_CMD" >&6; }
7950 else
7951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7953 fi
7954
7955
7956   else
7957     MAGIC_CMD=:
7958   fi
7959 fi
7960
7961   fi
7962   ;;
7963 esac
7964
7965 # Use C for the default configuration in the libtool script
7966
7967 lt_save_CC="$CC"
7968 ac_ext=c
7969 ac_cpp='$CPP $CPPFLAGS'
7970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7973
7974
7975 # Source file extension for C test sources.
7976 ac_ext=c
7977
7978 # Object file extension for compiled C test sources.
7979 objext=o
7980 objext=$objext
7981
7982 # Code to be used in simple compile tests
7983 lt_simple_compile_test_code="int some_variable = 0;"
7984
7985 # Code to be used in simple link tests
7986 lt_simple_link_test_code='int main(){return(0);}'
7987
7988
7989
7990
7991
7992
7993
7994 # If no C compiler was specified, use CC.
7995 LTCC=${LTCC-"$CC"}
7996
7997 # If no C compiler flags were specified, use CFLAGS.
7998 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7999
8000 # Allow CC to be a program name with arguments.
8001 compiler=$CC
8002
8003 # Save the default compiler, since it gets overwritten when the other
8004 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8005 compiler_DEFAULT=$CC
8006
8007 # save warnings/boilerplate of simple test code
8008 ac_outfile=conftest.$ac_objext
8009 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8010 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8011 _lt_compiler_boilerplate=`cat conftest.err`
8012 $RM conftest*
8013
8014 ac_outfile=conftest.$ac_objext
8015 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8016 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8017 _lt_linker_boilerplate=`cat conftest.err`
8018 $RM -r conftest*
8019
8020
8021 if test -n "$compiler"; then
8022
8023 lt_prog_compiler_no_builtin_flag=
8024
8025 if test "$GCC" = yes; then
8026   case $cc_basename in
8027   nvcc*)
8028     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8029   *)
8030     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8031   esac
8032
8033   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8034 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8035 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8036   $as_echo_n "(cached) " >&6
8037 else
8038   lt_cv_prog_compiler_rtti_exceptions=no
8039    ac_outfile=conftest.$ac_objext
8040    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8041    lt_compiler_flag="-fno-rtti -fno-exceptions"
8042    # Insert the option either (1) after the last *FLAGS variable, or
8043    # (2) before a word containing "conftest.", or (3) at the end.
8044    # Note that $ac_compile itself does not contain backslashes and begins
8045    # with a dollar sign (not a hyphen), so the echo should work correctly.
8046    # The option is referenced via a variable to avoid confusing sed.
8047    lt_compile=`echo "$ac_compile" | $SED \
8048    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8049    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8050    -e 's:$: $lt_compiler_flag:'`
8051    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8052    (eval "$lt_compile" 2>conftest.err)
8053    ac_status=$?
8054    cat conftest.err >&5
8055    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056    if (exit $ac_status) && test -s "$ac_outfile"; then
8057      # The compiler can only warn and ignore the option if not recognized
8058      # So say no if there are warnings other than the usual output.
8059      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8060      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8061      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8062        lt_cv_prog_compiler_rtti_exceptions=yes
8063      fi
8064    fi
8065    $RM conftest*
8066
8067 fi
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8069 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8070
8071 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8072     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8073 else
8074     :
8075 fi
8076
8077 fi
8078
8079
8080
8081
8082
8083
8084   lt_prog_compiler_wl=
8085 lt_prog_compiler_pic=
8086 lt_prog_compiler_static=
8087
8088
8089   if test "$GCC" = yes; then
8090     lt_prog_compiler_wl='-Wl,'
8091     lt_prog_compiler_static='-static'
8092
8093     case $host_os in
8094       aix*)
8095       # All AIX code is PIC.
8096       if test "$host_cpu" = ia64; then
8097         # AIX 5 now supports IA64 processor
8098         lt_prog_compiler_static='-Bstatic'
8099       fi
8100       ;;
8101
8102     amigaos*)
8103       case $host_cpu in
8104       powerpc)
8105             # see comment about AmigaOS4 .so support
8106             lt_prog_compiler_pic='-fPIC'
8107         ;;
8108       m68k)
8109             # FIXME: we need at least 68020 code to build shared libraries, but
8110             # adding the `-m68020' flag to GCC prevents building anything better,
8111             # like `-m68040'.
8112             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8113         ;;
8114       esac
8115       ;;
8116
8117     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8118       # PIC is the default for these OSes.
8119       ;;
8120
8121     mingw* | cygwin* | pw32* | os2* | cegcc*)
8122       # This hack is so that the source file can tell whether it is being
8123       # built for inclusion in a dll (and should export symbols for example).
8124       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8125       # (--disable-auto-import) libraries
8126       lt_prog_compiler_pic='-DDLL_EXPORT'
8127       ;;
8128
8129     darwin* | rhapsody*)
8130       # PIC is the default on this platform
8131       # Common symbols not allowed in MH_DYLIB files
8132       lt_prog_compiler_pic='-fno-common'
8133       ;;
8134
8135     haiku*)
8136       # PIC is the default for Haiku.
8137       # The "-static" flag exists, but is broken.
8138       lt_prog_compiler_static=
8139       ;;
8140
8141     hpux*)
8142       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8143       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8144       # sets the default TLS model and affects inlining.
8145       case $host_cpu in
8146       hppa*64*)
8147         # +Z the default
8148         ;;
8149       *)
8150         lt_prog_compiler_pic='-fPIC'
8151         ;;
8152       esac
8153       ;;
8154
8155     interix[3-9]*)
8156       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8157       # Instead, we relocate shared libraries at runtime.
8158       ;;
8159
8160     msdosdjgpp*)
8161       # Just because we use GCC doesn't mean we suddenly get shared libraries
8162       # on systems that don't support them.
8163       lt_prog_compiler_can_build_shared=no
8164       enable_shared=no
8165       ;;
8166
8167     *nto* | *qnx*)
8168       # QNX uses GNU C++, but need to define -shared option too, otherwise
8169       # it will coredump.
8170       lt_prog_compiler_pic='-fPIC -shared'
8171       ;;
8172
8173     sysv4*MP*)
8174       if test -d /usr/nec; then
8175         lt_prog_compiler_pic=-Kconform_pic
8176       fi
8177       ;;
8178
8179     *)
8180       lt_prog_compiler_pic='-fPIC'
8181       ;;
8182     esac
8183
8184     case $cc_basename in
8185     nvcc*) # Cuda Compiler Driver 2.2
8186       lt_prog_compiler_wl='-Xlinker '
8187       if test -n "$lt_prog_compiler_pic"; then
8188         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8189       fi
8190       ;;
8191     esac
8192   else
8193     # PORTME Check for flag to pass linker flags through the system compiler.
8194     case $host_os in
8195     aix*)
8196       lt_prog_compiler_wl='-Wl,'
8197       if test "$host_cpu" = ia64; then
8198         # AIX 5 now supports IA64 processor
8199         lt_prog_compiler_static='-Bstatic'
8200       else
8201         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8202       fi
8203       ;;
8204
8205     mingw* | cygwin* | pw32* | os2* | cegcc*)
8206       # This hack is so that the source file can tell whether it is being
8207       # built for inclusion in a dll (and should export symbols for example).
8208       lt_prog_compiler_pic='-DDLL_EXPORT'
8209       ;;
8210
8211     hpux9* | hpux10* | hpux11*)
8212       lt_prog_compiler_wl='-Wl,'
8213       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8214       # not for PA HP-UX.
8215       case $host_cpu in
8216       hppa*64*|ia64*)
8217         # +Z the default
8218         ;;
8219       *)
8220         lt_prog_compiler_pic='+Z'
8221         ;;
8222       esac
8223       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8224       lt_prog_compiler_static='${wl}-a ${wl}archive'
8225       ;;
8226
8227     irix5* | irix6* | nonstopux*)
8228       lt_prog_compiler_wl='-Wl,'
8229       # PIC (with -KPIC) is the default.
8230       lt_prog_compiler_static='-non_shared'
8231       ;;
8232
8233     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8234       case $cc_basename in
8235       # old Intel for x86_64 which still supported -KPIC.
8236       ecc*)
8237         lt_prog_compiler_wl='-Wl,'
8238         lt_prog_compiler_pic='-KPIC'
8239         lt_prog_compiler_static='-static'
8240         ;;
8241       # icc used to be incompatible with GCC.
8242       # ICC 10 doesn't accept -KPIC any more.
8243       icc* | ifort*)
8244         lt_prog_compiler_wl='-Wl,'
8245         lt_prog_compiler_pic='-fPIC'
8246         lt_prog_compiler_static='-static'
8247         ;;
8248       # Lahey Fortran 8.1.
8249       lf95*)
8250         lt_prog_compiler_wl='-Wl,'
8251         lt_prog_compiler_pic='--shared'
8252         lt_prog_compiler_static='--static'
8253         ;;
8254       nagfor*)
8255         # NAG Fortran compiler
8256         lt_prog_compiler_wl='-Wl,-Wl,,'
8257         lt_prog_compiler_pic='-PIC'
8258         lt_prog_compiler_static='-Bstatic'
8259         ;;
8260       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8261         # Portland Group compilers (*not* the Pentium gcc compiler,
8262         # which looks to be a dead project)
8263         lt_prog_compiler_wl='-Wl,'
8264         lt_prog_compiler_pic='-fpic'
8265         lt_prog_compiler_static='-Bstatic'
8266         ;;
8267       ccc*)
8268         lt_prog_compiler_wl='-Wl,'
8269         # All Alpha code is PIC.
8270         lt_prog_compiler_static='-non_shared'
8271         ;;
8272       xl* | bgxl* | bgf* | mpixl*)
8273         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8274         lt_prog_compiler_wl='-Wl,'
8275         lt_prog_compiler_pic='-qpic'
8276         lt_prog_compiler_static='-qstaticlink'
8277         ;;
8278       *)
8279         case `$CC -V 2>&1 | sed 5q` in
8280         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8281           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8282           lt_prog_compiler_pic='-KPIC'
8283           lt_prog_compiler_static='-Bstatic'
8284           lt_prog_compiler_wl=''
8285           ;;
8286         *Sun\ F* | *Sun*Fortran*)
8287           lt_prog_compiler_pic='-KPIC'
8288           lt_prog_compiler_static='-Bstatic'
8289           lt_prog_compiler_wl='-Qoption ld '
8290           ;;
8291         *Sun\ C*)
8292           # Sun C 5.9
8293           lt_prog_compiler_pic='-KPIC'
8294           lt_prog_compiler_static='-Bstatic'
8295           lt_prog_compiler_wl='-Wl,'
8296           ;;
8297         *Intel*\ [CF]*Compiler*)
8298           lt_prog_compiler_wl='-Wl,'
8299           lt_prog_compiler_pic='-fPIC'
8300           lt_prog_compiler_static='-static'
8301           ;;
8302         *Portland\ Group*)
8303           lt_prog_compiler_wl='-Wl,'
8304           lt_prog_compiler_pic='-fpic'
8305           lt_prog_compiler_static='-Bstatic'
8306           ;;
8307         esac
8308         ;;
8309       esac
8310       ;;
8311
8312     newsos6)
8313       lt_prog_compiler_pic='-KPIC'
8314       lt_prog_compiler_static='-Bstatic'
8315       ;;
8316
8317     *nto* | *qnx*)
8318       # QNX uses GNU C++, but need to define -shared option too, otherwise
8319       # it will coredump.
8320       lt_prog_compiler_pic='-fPIC -shared'
8321       ;;
8322
8323     osf3* | osf4* | osf5*)
8324       lt_prog_compiler_wl='-Wl,'
8325       # All OSF/1 code is PIC.
8326       lt_prog_compiler_static='-non_shared'
8327       ;;
8328
8329     rdos*)
8330       lt_prog_compiler_static='-non_shared'
8331       ;;
8332
8333     solaris*)
8334       lt_prog_compiler_pic='-KPIC'
8335       lt_prog_compiler_static='-Bstatic'
8336       case $cc_basename in
8337       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8338         lt_prog_compiler_wl='-Qoption ld ';;
8339       *)
8340         lt_prog_compiler_wl='-Wl,';;
8341       esac
8342       ;;
8343
8344     sunos4*)
8345       lt_prog_compiler_wl='-Qoption ld '
8346       lt_prog_compiler_pic='-PIC'
8347       lt_prog_compiler_static='-Bstatic'
8348       ;;
8349
8350     sysv4 | sysv4.2uw2* | sysv4.3*)
8351       lt_prog_compiler_wl='-Wl,'
8352       lt_prog_compiler_pic='-KPIC'
8353       lt_prog_compiler_static='-Bstatic'
8354       ;;
8355
8356     sysv4*MP*)
8357       if test -d /usr/nec ;then
8358         lt_prog_compiler_pic='-Kconform_pic'
8359         lt_prog_compiler_static='-Bstatic'
8360       fi
8361       ;;
8362
8363     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8364       lt_prog_compiler_wl='-Wl,'
8365       lt_prog_compiler_pic='-KPIC'
8366       lt_prog_compiler_static='-Bstatic'
8367       ;;
8368
8369     unicos*)
8370       lt_prog_compiler_wl='-Wl,'
8371       lt_prog_compiler_can_build_shared=no
8372       ;;
8373
8374     uts4*)
8375       lt_prog_compiler_pic='-pic'
8376       lt_prog_compiler_static='-Bstatic'
8377       ;;
8378
8379     *)
8380       lt_prog_compiler_can_build_shared=no
8381       ;;
8382     esac
8383   fi
8384
8385 case $host_os in
8386   # For platforms which do not support PIC, -DPIC is meaningless:
8387   *djgpp*)
8388     lt_prog_compiler_pic=
8389     ;;
8390   *)
8391     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8392     ;;
8393 esac
8394
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8396 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8397 if ${lt_cv_prog_compiler_pic+:} false; then :
8398   $as_echo_n "(cached) " >&6
8399 else
8400   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8401 fi
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8403 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8404 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8405
8406 #
8407 # Check to make sure the PIC flag actually works.
8408 #
8409 if test -n "$lt_prog_compiler_pic"; then
8410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8411 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8412 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8413   $as_echo_n "(cached) " >&6
8414 else
8415   lt_cv_prog_compiler_pic_works=no
8416    ac_outfile=conftest.$ac_objext
8417    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8418    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8419    # Insert the option either (1) after the last *FLAGS variable, or
8420    # (2) before a word containing "conftest.", or (3) at the end.
8421    # Note that $ac_compile itself does not contain backslashes and begins
8422    # with a dollar sign (not a hyphen), so the echo should work correctly.
8423    # The option is referenced via a variable to avoid confusing sed.
8424    lt_compile=`echo "$ac_compile" | $SED \
8425    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8426    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8427    -e 's:$: $lt_compiler_flag:'`
8428    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8429    (eval "$lt_compile" 2>conftest.err)
8430    ac_status=$?
8431    cat conftest.err >&5
8432    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433    if (exit $ac_status) && test -s "$ac_outfile"; then
8434      # The compiler can only warn and ignore the option if not recognized
8435      # So say no if there are warnings other than the usual output.
8436      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8437      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8438      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8439        lt_cv_prog_compiler_pic_works=yes
8440      fi
8441    fi
8442    $RM conftest*
8443
8444 fi
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8446 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8447
8448 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8449     case $lt_prog_compiler_pic in
8450      "" | " "*) ;;
8451      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8452      esac
8453 else
8454     lt_prog_compiler_pic=
8455      lt_prog_compiler_can_build_shared=no
8456 fi
8457
8458 fi
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470 #
8471 # Check to make sure the static flag actually works.
8472 #
8473 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8475 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8476 if ${lt_cv_prog_compiler_static_works+:} false; then :
8477   $as_echo_n "(cached) " >&6
8478 else
8479   lt_cv_prog_compiler_static_works=no
8480    save_LDFLAGS="$LDFLAGS"
8481    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8482    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8483    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8484      # The linker can only warn and ignore the option if not recognized
8485      # So say no if there are warnings
8486      if test -s conftest.err; then
8487        # Append any errors to the config.log.
8488        cat conftest.err 1>&5
8489        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8490        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8491        if diff conftest.exp conftest.er2 >/dev/null; then
8492          lt_cv_prog_compiler_static_works=yes
8493        fi
8494      else
8495        lt_cv_prog_compiler_static_works=yes
8496      fi
8497    fi
8498    $RM -r conftest*
8499    LDFLAGS="$save_LDFLAGS"
8500
8501 fi
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8503 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8504
8505 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8506     :
8507 else
8508     lt_prog_compiler_static=
8509 fi
8510
8511
8512
8513
8514
8515
8516
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8518 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8519 if ${lt_cv_prog_compiler_c_o+:} false; then :
8520   $as_echo_n "(cached) " >&6
8521 else
8522   lt_cv_prog_compiler_c_o=no
8523    $RM -r conftest 2>/dev/null
8524    mkdir conftest
8525    cd conftest
8526    mkdir out
8527    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8528
8529    lt_compiler_flag="-o out/conftest2.$ac_objext"
8530    # Insert the option either (1) after the last *FLAGS variable, or
8531    # (2) before a word containing "conftest.", or (3) at the end.
8532    # Note that $ac_compile itself does not contain backslashes and begins
8533    # with a dollar sign (not a hyphen), so the echo should work correctly.
8534    lt_compile=`echo "$ac_compile" | $SED \
8535    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8536    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8537    -e 's:$: $lt_compiler_flag:'`
8538    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8539    (eval "$lt_compile" 2>out/conftest.err)
8540    ac_status=$?
8541    cat out/conftest.err >&5
8542    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8543    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8544    then
8545      # The compiler can only warn and ignore the option if not recognized
8546      # So say no if there are warnings
8547      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8548      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8549      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8550        lt_cv_prog_compiler_c_o=yes
8551      fi
8552    fi
8553    chmod u+w . 2>&5
8554    $RM conftest*
8555    # SGI C++ compiler will create directory out/ii_files/ for
8556    # template instantiation
8557    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8558    $RM out/* && rmdir out
8559    cd ..
8560    $RM -r conftest
8561    $RM conftest*
8562
8563 fi
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8565 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8566
8567
8568
8569
8570
8571
8572   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8573 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8574 if ${lt_cv_prog_compiler_c_o+:} false; then :
8575   $as_echo_n "(cached) " >&6
8576 else
8577   lt_cv_prog_compiler_c_o=no
8578    $RM -r conftest 2>/dev/null
8579    mkdir conftest
8580    cd conftest
8581    mkdir out
8582    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8583
8584    lt_compiler_flag="-o out/conftest2.$ac_objext"
8585    # Insert the option either (1) after the last *FLAGS variable, or
8586    # (2) before a word containing "conftest.", or (3) at the end.
8587    # Note that $ac_compile itself does not contain backslashes and begins
8588    # with a dollar sign (not a hyphen), so the echo should work correctly.
8589    lt_compile=`echo "$ac_compile" | $SED \
8590    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8591    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8592    -e 's:$: $lt_compiler_flag:'`
8593    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8594    (eval "$lt_compile" 2>out/conftest.err)
8595    ac_status=$?
8596    cat out/conftest.err >&5
8597    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8599    then
8600      # The compiler can only warn and ignore the option if not recognized
8601      # So say no if there are warnings
8602      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8603      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8604      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8605        lt_cv_prog_compiler_c_o=yes
8606      fi
8607    fi
8608    chmod u+w . 2>&5
8609    $RM conftest*
8610    # SGI C++ compiler will create directory out/ii_files/ for
8611    # template instantiation
8612    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8613    $RM out/* && rmdir out
8614    cd ..
8615    $RM -r conftest
8616    $RM conftest*
8617
8618 fi
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8620 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8621
8622
8623
8624
8625 hard_links="nottested"
8626 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8627   # do not overwrite the value of need_locks provided by the user
8628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8629 $as_echo_n "checking if we can lock with hard links... " >&6; }
8630   hard_links=yes
8631   $RM conftest*
8632   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8633   touch conftest.a
8634   ln conftest.a conftest.b 2>&5 || hard_links=no
8635   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8637 $as_echo "$hard_links" >&6; }
8638   if test "$hard_links" = no; then
8639     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8640 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8641     need_locks=warn
8642   fi
8643 else
8644   need_locks=no
8645 fi
8646
8647
8648
8649
8650
8651
8652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8653 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8654
8655   runpath_var=
8656   allow_undefined_flag=
8657   always_export_symbols=no
8658   archive_cmds=
8659   archive_expsym_cmds=
8660   compiler_needs_object=no
8661   enable_shared_with_static_runtimes=no
8662   export_dynamic_flag_spec=
8663   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8664   hardcode_automatic=no
8665   hardcode_direct=no
8666   hardcode_direct_absolute=no
8667   hardcode_libdir_flag_spec=
8668   hardcode_libdir_separator=
8669   hardcode_minus_L=no
8670   hardcode_shlibpath_var=unsupported
8671   inherit_rpath=no
8672   link_all_deplibs=unknown
8673   module_cmds=
8674   module_expsym_cmds=
8675   old_archive_from_new_cmds=
8676   old_archive_from_expsyms_cmds=
8677   thread_safe_flag_spec=
8678   whole_archive_flag_spec=
8679   # include_expsyms should be a list of space-separated symbols to be *always*
8680   # included in the symbol list
8681   include_expsyms=
8682   # exclude_expsyms can be an extended regexp of symbols to exclude
8683   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8684   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8685   # as well as any symbol that contains `d'.
8686   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8687   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8688   # platforms (ab)use it in PIC code, but their linkers get confused if
8689   # the symbol is explicitly referenced.  Since portable code cannot
8690   # rely on this symbol name, it's probably fine to never include it in
8691   # preloaded symbol tables.
8692   # Exclude shared library initialization/finalization symbols.
8693   extract_expsyms_cmds=
8694
8695   case $host_os in
8696   cygwin* | mingw* | pw32* | cegcc*)
8697     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8698     # When not using gcc, we currently assume that we are using
8699     # Microsoft Visual C++.
8700     if test "$GCC" != yes; then
8701       with_gnu_ld=no
8702     fi
8703     ;;
8704   interix*)
8705     # we just hope/assume this is gcc and not c89 (= MSVC++)
8706     with_gnu_ld=yes
8707     ;;
8708   openbsd*)
8709     with_gnu_ld=no
8710     ;;
8711   linux* | k*bsd*-gnu | gnu*)
8712     link_all_deplibs=no
8713     ;;
8714   esac
8715
8716   ld_shlibs=yes
8717
8718   # On some targets, GNU ld is compatible enough with the native linker
8719   # that we're better off using the native interface for both.
8720   lt_use_gnu_ld_interface=no
8721   if test "$with_gnu_ld" = yes; then
8722     case $host_os in
8723       aix*)
8724         # The AIX port of GNU ld has always aspired to compatibility
8725         # with the native linker.  However, as the warning in the GNU ld
8726         # block says, versions before 2.19.5* couldn't really create working
8727         # shared libraries, regardless of the interface used.
8728         case `$LD -v 2>&1` in
8729           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8730           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8731           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8732           *)
8733             lt_use_gnu_ld_interface=yes
8734             ;;
8735         esac
8736         ;;
8737       *)
8738         lt_use_gnu_ld_interface=yes
8739         ;;
8740     esac
8741   fi
8742
8743   if test "$lt_use_gnu_ld_interface" = yes; then
8744     # If archive_cmds runs LD, not CC, wlarc should be empty
8745     wlarc='${wl}'
8746
8747     # Set some defaults for GNU ld with shared library support. These
8748     # are reset later if shared libraries are not supported. Putting them
8749     # here allows them to be overridden if necessary.
8750     runpath_var=LD_RUN_PATH
8751     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8752     export_dynamic_flag_spec='${wl}--export-dynamic'
8753     # ancient GNU ld didn't support --whole-archive et. al.
8754     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8755       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8756     else
8757       whole_archive_flag_spec=
8758     fi
8759     supports_anon_versioning=no
8760     case `$LD -v 2>&1` in
8761       *GNU\ gold*) supports_anon_versioning=yes ;;
8762       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8763       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8764       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8765       *\ 2.11.*) ;; # other 2.11 versions
8766       *) supports_anon_versioning=yes ;;
8767     esac
8768
8769     # See if GNU ld supports shared libraries.
8770     case $host_os in
8771     aix[3-9]*)
8772       # On AIX/PPC, the GNU linker is very broken
8773       if test "$host_cpu" != ia64; then
8774         ld_shlibs=no
8775         cat <<_LT_EOF 1>&2
8776
8777 *** Warning: the GNU linker, at least up to release 2.19, is reported
8778 *** to be unable to reliably create shared libraries on AIX.
8779 *** Therefore, libtool is disabling shared libraries support.  If you
8780 *** really care for shared libraries, you may want to install binutils
8781 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8782 *** You will then need to restart the configuration process.
8783
8784 _LT_EOF
8785       fi
8786       ;;
8787
8788     amigaos*)
8789       case $host_cpu in
8790       powerpc)
8791             # see comment about AmigaOS4 .so support
8792             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8793             archive_expsym_cmds=''
8794         ;;
8795       m68k)
8796             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
8797             hardcode_libdir_flag_spec='-L$libdir'
8798             hardcode_minus_L=yes
8799         ;;
8800       esac
8801       ;;
8802
8803     beos*)
8804       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8805         allow_undefined_flag=unsupported
8806         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8807         # support --undefined.  This deserves some investigation.  FIXME
8808         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8809       else
8810         ld_shlibs=no
8811       fi
8812       ;;
8813
8814     cygwin* | mingw* | pw32* | cegcc*)
8815       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8816       # as there is no search path for DLLs.
8817       hardcode_libdir_flag_spec='-L$libdir'
8818       export_dynamic_flag_spec='${wl}--export-all-symbols'
8819       allow_undefined_flag=unsupported
8820       always_export_symbols=no
8821       enable_shared_with_static_runtimes=yes
8822       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8823       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8824
8825       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8826         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8827         # If the export-symbols file already is a .def file (1st line
8828         # is EXPORTS), use it as is; otherwise, prepend...
8829         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8830           cp $export_symbols $output_objdir/$soname.def;
8831         else
8832           echo EXPORTS > $output_objdir/$soname.def;
8833           cat $export_symbols >> $output_objdir/$soname.def;
8834         fi~
8835         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8836       else
8837         ld_shlibs=no
8838       fi
8839       ;;
8840
8841     haiku*)
8842       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8843       link_all_deplibs=yes
8844       ;;
8845
8846     interix[3-9]*)
8847       hardcode_direct=no
8848       hardcode_shlibpath_var=no
8849       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8850       export_dynamic_flag_spec='${wl}-E'
8851       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8852       # Instead, shared libraries are loaded at an image base (0x10000000 by
8853       # default) and relocated if they conflict, which is a slow very memory
8854       # consuming and fragmenting process.  To avoid this, we pick a random,
8855       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8856       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8857       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8858       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8859       ;;
8860
8861     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8862       tmp_diet=no
8863       if test "$host_os" = linux-dietlibc; then
8864         case $cc_basename in
8865           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
8866         esac
8867       fi
8868       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8869          && test "$tmp_diet" = no
8870       then
8871         tmp_addflag=' $pic_flag'
8872         tmp_sharedflag='-shared'
8873         case $cc_basename,$host_cpu in
8874         pgcc*)                          # Portland Group C compiler
8875           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8876           tmp_addflag=' $pic_flag'
8877           ;;
8878         pgf77* | pgf90* | pgf95* | pgfortran*)
8879                                         # Portland Group f77 and f90 compilers
8880           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8881           tmp_addflag=' $pic_flag -Mnomain' ;;
8882         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
8883           tmp_addflag=' -i_dynamic' ;;
8884         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8885           tmp_addflag=' -i_dynamic -nofor_main' ;;
8886         ifc* | ifort*)                  # Intel Fortran compiler
8887           tmp_addflag=' -nofor_main' ;;
8888         lf95*)                          # Lahey Fortran 8.1
8889           whole_archive_flag_spec=
8890           tmp_sharedflag='--shared' ;;
8891         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8892           tmp_sharedflag='-qmkshrobj'
8893           tmp_addflag= ;;
8894         nvcc*)  # Cuda Compiler Driver 2.2
8895           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8896           compiler_needs_object=yes
8897           ;;
8898         esac
8899         case `$CC -V 2>&1 | sed 5q` in
8900         *Sun\ C*)                       # Sun C 5.9
8901           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8902           compiler_needs_object=yes
8903           tmp_sharedflag='-G' ;;
8904         *Sun\ F*)                       # Sun Fortran 8.3
8905           tmp_sharedflag='-G' ;;
8906         esac
8907         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8908
8909         if test "x$supports_anon_versioning" = xyes; then
8910           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8911             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8912             echo "local: *; };" >> $output_objdir/$libname.ver~
8913             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8914         fi
8915
8916         case $cc_basename in
8917         xlf* | bgf* | bgxlf* | mpixlf*)
8918           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8919           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8920           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8921           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8922           if test "x$supports_anon_versioning" = xyes; then
8923             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8924               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8925               echo "local: *; };" >> $output_objdir/$libname.ver~
8926               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8927           fi
8928           ;;
8929         esac
8930       else
8931         ld_shlibs=no
8932       fi
8933       ;;
8934
8935     netbsd* | netbsdelf*-gnu)
8936       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8937         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8938         wlarc=
8939       else
8940         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8942       fi
8943       ;;
8944
8945     solaris*)
8946       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8947         ld_shlibs=no
8948         cat <<_LT_EOF 1>&2
8949
8950 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8951 *** create shared libraries on Solaris systems.  Therefore, libtool
8952 *** is disabling shared libraries support.  We urge you to upgrade GNU
8953 *** binutils to release 2.9.1 or newer.  Another option is to modify
8954 *** your PATH or compiler configuration so that the native linker is
8955 *** used, and then restart.
8956
8957 _LT_EOF
8958       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8959         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8960         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8961       else
8962         ld_shlibs=no
8963       fi
8964       ;;
8965
8966     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8967       case `$LD -v 2>&1` in
8968         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8969         ld_shlibs=no
8970         cat <<_LT_EOF 1>&2
8971
8972 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8973 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8974 *** is disabling shared libraries support.  We urge you to upgrade GNU
8975 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8976 *** your PATH or compiler configuration so that the native linker is
8977 *** used, and then restart.
8978
8979 _LT_EOF
8980         ;;
8981         *)
8982           # For security reasons, it is highly recommended that you always
8983           # use absolute paths for naming shared libraries, and exclude the
8984           # DT_RUNPATH tag from executables and libraries.  But doing so
8985           # requires that you compile everything twice, which is a pain.
8986           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8987             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8988             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8989             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8990           else
8991             ld_shlibs=no
8992           fi
8993         ;;
8994       esac
8995       ;;
8996
8997     sunos4*)
8998       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8999       wlarc=
9000       hardcode_direct=yes
9001       hardcode_shlibpath_var=no
9002       ;;
9003
9004     *)
9005       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9006         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9007         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9008       else
9009         ld_shlibs=no
9010       fi
9011       ;;
9012     esac
9013
9014     if test "$ld_shlibs" = no; then
9015       runpath_var=
9016       hardcode_libdir_flag_spec=
9017       export_dynamic_flag_spec=
9018       whole_archive_flag_spec=
9019     fi
9020   else
9021     # PORTME fill in a description of your system's linker (not GNU ld)
9022     case $host_os in
9023     aix3*)
9024       allow_undefined_flag=unsupported
9025       always_export_symbols=yes
9026       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9027       # Note: this linker hardcodes the directories in LIBPATH if there
9028       # are no directories specified by -L.
9029       hardcode_minus_L=yes
9030       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9031         # Neither direct hardcoding nor static linking is supported with a
9032         # broken collect2.
9033         hardcode_direct=unsupported
9034       fi
9035       ;;
9036
9037     aix[4-9]*)
9038       if test "$host_cpu" = ia64; then
9039         # On IA64, the linker does run time linking by default, so we don't
9040         # have to do anything special.
9041         aix_use_runtimelinking=no
9042         exp_sym_flag='-Bexport'
9043         no_entry_flag=""
9044       else
9045         # If we're using GNU nm, then we don't want the "-C" option.
9046         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9047         # Also, AIX nm treats weak defined symbols like other global
9048         # defined symbols, whereas GNU nm marks them as "W".
9049         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9050           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9051         else
9052           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9053         fi
9054         aix_use_runtimelinking=no
9055
9056         # Test if we are trying to use run time linking or normal
9057         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9058         # need to do runtime linking.
9059         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9060           for ld_flag in $LDFLAGS; do
9061           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9062             aix_use_runtimelinking=yes
9063             break
9064           fi
9065           done
9066           ;;
9067         esac
9068
9069         exp_sym_flag='-bexport'
9070         no_entry_flag='-bnoentry'
9071       fi
9072
9073       # When large executables or shared objects are built, AIX ld can
9074       # have problems creating the table of contents.  If linking a library
9075       # or program results in "error TOC overflow" add -mminimal-toc to
9076       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9077       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9078
9079       archive_cmds=''
9080       hardcode_direct=yes
9081       hardcode_direct_absolute=yes
9082       hardcode_libdir_separator=':'
9083       link_all_deplibs=yes
9084       file_list_spec='${wl}-f,'
9085
9086       if test "$GCC" = yes; then
9087         case $host_os in aix4.[012]|aix4.[012].*)
9088         # We only want to do this on AIX 4.2 and lower, the check
9089         # below for broken collect2 doesn't work under 4.3+
9090           collect2name=`${CC} -print-prog-name=collect2`
9091           if test -f "$collect2name" &&
9092            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9093           then
9094           # We have reworked collect2
9095           :
9096           else
9097           # We have old collect2
9098           hardcode_direct=unsupported
9099           # It fails to find uninstalled libraries when the uninstalled
9100           # path is not listed in the libpath.  Setting hardcode_minus_L
9101           # to unsupported forces relinking
9102           hardcode_minus_L=yes
9103           hardcode_libdir_flag_spec='-L$libdir'
9104           hardcode_libdir_separator=
9105           fi
9106           ;;
9107         esac
9108         shared_flag='-shared'
9109         if test "$aix_use_runtimelinking" = yes; then
9110           shared_flag="$shared_flag "'${wl}-G'
9111         fi
9112         link_all_deplibs=no
9113       else
9114         # not using gcc
9115         if test "$host_cpu" = ia64; then
9116         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9117         # chokes on -Wl,-G. The following line is correct:
9118           shared_flag='-G'
9119         else
9120           if test "$aix_use_runtimelinking" = yes; then
9121             shared_flag='${wl}-G'
9122           else
9123             shared_flag='${wl}-bM:SRE'
9124           fi
9125         fi
9126       fi
9127
9128       export_dynamic_flag_spec='${wl}-bexpall'
9129       # It seems that -bexpall does not export symbols beginning with
9130       # underscore (_), so it is better to generate a list of symbols to export.
9131       always_export_symbols=yes
9132       if test "$aix_use_runtimelinking" = yes; then
9133         # Warning - without using the other runtime loading flags (-brtl),
9134         # -berok will link without error, but may produce a broken library.
9135         allow_undefined_flag='-berok'
9136         # Determine the default libpath from the value encoded in an
9137         # empty executable.
9138         if test "${lt_cv_aix_libpath+set}" = set; then
9139   aix_libpath=$lt_cv_aix_libpath
9140 else
9141   if ${lt_cv_aix_libpath_+:} false; then :
9142   $as_echo_n "(cached) " >&6
9143 else
9144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9145 /* end confdefs.h.  */
9146
9147 int
9148 main ()
9149 {
9150
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 if ac_fn_c_try_link "$LINENO"; then :
9156
9157   lt_aix_libpath_sed='
9158       /Import File Strings/,/^$/ {
9159           /^0/ {
9160               s/^0  *\([^ ]*\) *$/\1/
9161               p
9162           }
9163       }'
9164   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9165   # Check for a 64-bit object if we didn't find anything.
9166   if test -z "$lt_cv_aix_libpath_"; then
9167     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9168   fi
9169 fi
9170 rm -f core conftest.err conftest.$ac_objext \
9171     conftest$ac_exeext conftest.$ac_ext
9172   if test -z "$lt_cv_aix_libpath_"; then
9173     lt_cv_aix_libpath_="/usr/lib:/lib"
9174   fi
9175
9176 fi
9177
9178   aix_libpath=$lt_cv_aix_libpath_
9179 fi
9180
9181         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9182         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9183       else
9184         if test "$host_cpu" = ia64; then
9185           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9186           allow_undefined_flag="-z nodefs"
9187           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9188         else
9189          # Determine the default libpath from the value encoded in an
9190          # empty executable.
9191          if test "${lt_cv_aix_libpath+set}" = set; then
9192   aix_libpath=$lt_cv_aix_libpath
9193 else
9194   if ${lt_cv_aix_libpath_+:} false; then :
9195   $as_echo_n "(cached) " >&6
9196 else
9197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9198 /* end confdefs.h.  */
9199
9200 int
9201 main ()
9202 {
9203
9204   ;
9205   return 0;
9206 }
9207 _ACEOF
9208 if ac_fn_c_try_link "$LINENO"; then :
9209
9210   lt_aix_libpath_sed='
9211       /Import File Strings/,/^$/ {
9212           /^0/ {
9213               s/^0  *\([^ ]*\) *$/\1/
9214               p
9215           }
9216       }'
9217   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9218   # Check for a 64-bit object if we didn't find anything.
9219   if test -z "$lt_cv_aix_libpath_"; then
9220     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9221   fi
9222 fi
9223 rm -f core conftest.err conftest.$ac_objext \
9224     conftest$ac_exeext conftest.$ac_ext
9225   if test -z "$lt_cv_aix_libpath_"; then
9226     lt_cv_aix_libpath_="/usr/lib:/lib"
9227   fi
9228
9229 fi
9230
9231   aix_libpath=$lt_cv_aix_libpath_
9232 fi
9233
9234          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9235           # Warning - without using the other run time loading flags,
9236           # -berok will link without error, but may produce a broken library.
9237           no_undefined_flag=' ${wl}-bernotok'
9238           allow_undefined_flag=' ${wl}-berok'
9239           if test "$with_gnu_ld" = yes; then
9240             # We only use this code for GNU lds that support --whole-archive.
9241             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9242           else
9243             # Exported symbols can be pulled into shared objects from archives
9244             whole_archive_flag_spec='$convenience'
9245           fi
9246           archive_cmds_need_lc=yes
9247           # This is similar to how AIX traditionally builds its shared libraries.
9248           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9249         fi
9250       fi
9251       ;;
9252
9253     amigaos*)
9254       case $host_cpu in
9255       powerpc)
9256             # see comment about AmigaOS4 .so support
9257             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9258             archive_expsym_cmds=''
9259         ;;
9260       m68k)
9261             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9262             hardcode_libdir_flag_spec='-L$libdir'
9263             hardcode_minus_L=yes
9264         ;;
9265       esac
9266       ;;
9267
9268     bsdi[45]*)
9269       export_dynamic_flag_spec=-rdynamic
9270       ;;
9271
9272     cygwin* | mingw* | pw32* | cegcc*)
9273       # When not using gcc, we currently assume that we are using
9274       # Microsoft Visual C++.
9275       # hardcode_libdir_flag_spec is actually meaningless, as there is
9276       # no search path for DLLs.
9277       case $cc_basename in
9278       cl*)
9279         # Native MSVC
9280         hardcode_libdir_flag_spec=' '
9281         allow_undefined_flag=unsupported
9282         always_export_symbols=yes
9283         file_list_spec='@'
9284         # Tell ltmain to make .lib files, not .a files.
9285         libext=lib
9286         # Tell ltmain to make .dll files, not .so files.
9287         shrext_cmds=".dll"
9288         # FIXME: Setting linknames here is a bad hack.
9289         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9290         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9291             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9292           else
9293             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9294           fi~
9295           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9296           linknames='
9297         # The linker will not automatically build a static lib if we build a DLL.
9298         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9299         enable_shared_with_static_runtimes=yes
9300         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9301         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9302         # Don't use ranlib
9303         old_postinstall_cmds='chmod 644 $oldlib'
9304         postlink_cmds='lt_outputfile="@OUTPUT@"~
9305           lt_tool_outputfile="@TOOL_OUTPUT@"~
9306           case $lt_outputfile in
9307             *.exe|*.EXE) ;;
9308             *)
9309               lt_outputfile="$lt_outputfile.exe"
9310               lt_tool_outputfile="$lt_tool_outputfile.exe"
9311               ;;
9312           esac~
9313           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9314             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9315             $RM "$lt_outputfile.manifest";
9316           fi'
9317         ;;
9318       *)
9319         # Assume MSVC wrapper
9320         hardcode_libdir_flag_spec=' '
9321         allow_undefined_flag=unsupported
9322         # Tell ltmain to make .lib files, not .a files.
9323         libext=lib
9324         # Tell ltmain to make .dll files, not .so files.
9325         shrext_cmds=".dll"
9326         # FIXME: Setting linknames here is a bad hack.
9327         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9328         # The linker will automatically build a .lib file if we build a DLL.
9329         old_archive_from_new_cmds='true'
9330         # FIXME: Should let the user specify the lib program.
9331         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9332         enable_shared_with_static_runtimes=yes
9333         ;;
9334       esac
9335       ;;
9336
9337     darwin* | rhapsody*)
9338
9339
9340   archive_cmds_need_lc=no
9341   hardcode_direct=no
9342   hardcode_automatic=yes
9343   hardcode_shlibpath_var=unsupported
9344   if test "$lt_cv_ld_force_load" = "yes"; then
9345     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9346
9347   else
9348     whole_archive_flag_spec=''
9349   fi
9350   link_all_deplibs=yes
9351   allow_undefined_flag="$_lt_dar_allow_undefined"
9352   case $cc_basename in
9353      ifort*) _lt_dar_can_shared=yes ;;
9354      *) _lt_dar_can_shared=$GCC ;;
9355   esac
9356   if test "$_lt_dar_can_shared" = "yes"; then
9357     output_verbose_link_cmd=func_echo_all
9358     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9359     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9360     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9361     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9362
9363   else
9364   ld_shlibs=no
9365   fi
9366
9367       ;;
9368
9369     dgux*)
9370       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371       hardcode_libdir_flag_spec='-L$libdir'
9372       hardcode_shlibpath_var=no
9373       ;;
9374
9375     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9376     # support.  Future versions do this automatically, but an explicit c++rt0.o
9377     # does not break anything, and helps significantly (at the cost of a little
9378     # extra space).
9379     freebsd2.2*)
9380       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9381       hardcode_libdir_flag_spec='-R$libdir'
9382       hardcode_direct=yes
9383       hardcode_shlibpath_var=no
9384       ;;
9385
9386     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9387     freebsd2.*)
9388       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9389       hardcode_direct=yes
9390       hardcode_minus_L=yes
9391       hardcode_shlibpath_var=no
9392       ;;
9393
9394     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9395     freebsd* | dragonfly*)
9396       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9397       hardcode_libdir_flag_spec='-R$libdir'
9398       hardcode_direct=yes
9399       hardcode_shlibpath_var=no
9400       ;;
9401
9402     hpux9*)
9403       if test "$GCC" = yes; then
9404         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9405       else
9406         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9407       fi
9408       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9409       hardcode_libdir_separator=:
9410       hardcode_direct=yes
9411
9412       # hardcode_minus_L: Not really in the search PATH,
9413       # but as the default location of the library.
9414       hardcode_minus_L=yes
9415       export_dynamic_flag_spec='${wl}-E'
9416       ;;
9417
9418     hpux10*)
9419       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9420         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9421       else
9422         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9423       fi
9424       if test "$with_gnu_ld" = no; then
9425         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9426         hardcode_libdir_separator=:
9427         hardcode_direct=yes
9428         hardcode_direct_absolute=yes
9429         export_dynamic_flag_spec='${wl}-E'
9430         # hardcode_minus_L: Not really in the search PATH,
9431         # but as the default location of the library.
9432         hardcode_minus_L=yes
9433       fi
9434       ;;
9435
9436     hpux11*)
9437       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9438         case $host_cpu in
9439         hppa*64*)
9440           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9441           ;;
9442         ia64*)
9443           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9444           ;;
9445         *)
9446           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9447           ;;
9448         esac
9449       else
9450         case $host_cpu in
9451         hppa*64*)
9452           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9453           ;;
9454         ia64*)
9455           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9456           ;;
9457         *)
9458
9459           # Older versions of the 11.00 compiler do not understand -b yet
9460           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9461           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9462 $as_echo_n "checking if $CC understands -b... " >&6; }
9463 if ${lt_cv_prog_compiler__b+:} false; then :
9464   $as_echo_n "(cached) " >&6
9465 else
9466   lt_cv_prog_compiler__b=no
9467    save_LDFLAGS="$LDFLAGS"
9468    LDFLAGS="$LDFLAGS -b"
9469    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9470    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9471      # The linker can only warn and ignore the option if not recognized
9472      # So say no if there are warnings
9473      if test -s conftest.err; then
9474        # Append any errors to the config.log.
9475        cat conftest.err 1>&5
9476        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9477        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9478        if diff conftest.exp conftest.er2 >/dev/null; then
9479          lt_cv_prog_compiler__b=yes
9480        fi
9481      else
9482        lt_cv_prog_compiler__b=yes
9483      fi
9484    fi
9485    $RM -r conftest*
9486    LDFLAGS="$save_LDFLAGS"
9487
9488 fi
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9490 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9491
9492 if test x"$lt_cv_prog_compiler__b" = xyes; then
9493     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9494 else
9495     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9496 fi
9497
9498           ;;
9499         esac
9500       fi
9501       if test "$with_gnu_ld" = no; then
9502         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9503         hardcode_libdir_separator=:
9504
9505         case $host_cpu in
9506         hppa*64*|ia64*)
9507           hardcode_direct=no
9508           hardcode_shlibpath_var=no
9509           ;;
9510         *)
9511           hardcode_direct=yes
9512           hardcode_direct_absolute=yes
9513           export_dynamic_flag_spec='${wl}-E'
9514
9515           # hardcode_minus_L: Not really in the search PATH,
9516           # but as the default location of the library.
9517           hardcode_minus_L=yes
9518           ;;
9519         esac
9520       fi
9521       ;;
9522
9523     irix5* | irix6* | nonstopux*)
9524       if test "$GCC" = yes; then
9525         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9526         # Try to use the -exported_symbol ld option, if it does not
9527         # work, assume that -exports_file does not work either and
9528         # implicitly export all symbols.
9529         # This should be the same for all languages, so no per-tag cache variable.
9530         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9531 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9532 if ${lt_cv_irix_exported_symbol+:} false; then :
9533   $as_echo_n "(cached) " >&6
9534 else
9535   save_LDFLAGS="$LDFLAGS"
9536            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9537            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h.  */
9539 int foo (void) { return 0; }
9540 _ACEOF
9541 if ac_fn_c_try_link "$LINENO"; then :
9542   lt_cv_irix_exported_symbol=yes
9543 else
9544   lt_cv_irix_exported_symbol=no
9545 fi
9546 rm -f core conftest.err conftest.$ac_objext \
9547     conftest$ac_exeext conftest.$ac_ext
9548            LDFLAGS="$save_LDFLAGS"
9549 fi
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9551 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9552         if test "$lt_cv_irix_exported_symbol" = yes; then
9553           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9554         fi
9555       else
9556         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9557         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9558       fi
9559       archive_cmds_need_lc='no'
9560       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9561       hardcode_libdir_separator=:
9562       inherit_rpath=yes
9563       link_all_deplibs=yes
9564       ;;
9565
9566     netbsd* | netbsdelf*-gnu)
9567       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9568         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9569       else
9570         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9571       fi
9572       hardcode_libdir_flag_spec='-R$libdir'
9573       hardcode_direct=yes
9574       hardcode_shlibpath_var=no
9575       ;;
9576
9577     newsos6)
9578       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9579       hardcode_direct=yes
9580       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9581       hardcode_libdir_separator=:
9582       hardcode_shlibpath_var=no
9583       ;;
9584
9585     *nto* | *qnx*)
9586       ;;
9587
9588     openbsd*)
9589       if test -f /usr/libexec/ld.so; then
9590         hardcode_direct=yes
9591         hardcode_shlibpath_var=no
9592         hardcode_direct_absolute=yes
9593         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9594           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9595           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9596           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9597           export_dynamic_flag_spec='${wl}-E'
9598         else
9599           case $host_os in
9600            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9601              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9602              hardcode_libdir_flag_spec='-R$libdir'
9603              ;;
9604            *)
9605              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9606              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9607              ;;
9608           esac
9609         fi
9610       else
9611         ld_shlibs=no
9612       fi
9613       ;;
9614
9615     os2*)
9616       hardcode_libdir_flag_spec='-L$libdir'
9617       hardcode_minus_L=yes
9618       allow_undefined_flag=unsupported
9619       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9620       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9621       ;;
9622
9623     osf3*)
9624       if test "$GCC" = yes; then
9625         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9626         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9627       else
9628         allow_undefined_flag=' -expect_unresolved \*'
9629         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9630       fi
9631       archive_cmds_need_lc='no'
9632       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9633       hardcode_libdir_separator=:
9634       ;;
9635
9636     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9637       if test "$GCC" = yes; then
9638         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9639         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9640         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9641       else
9642         allow_undefined_flag=' -expect_unresolved \*'
9643         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9644         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9645         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9646
9647         # Both c and cxx compiler support -rpath directly
9648         hardcode_libdir_flag_spec='-rpath $libdir'
9649       fi
9650       archive_cmds_need_lc='no'
9651       hardcode_libdir_separator=:
9652       ;;
9653
9654     solaris*)
9655       no_undefined_flag=' -z defs'
9656       if test "$GCC" = yes; then
9657         wlarc='${wl}'
9658         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9659         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9660           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9661       else
9662         case `$CC -V 2>&1` in
9663         *"Compilers 5.0"*)
9664           wlarc=''
9665           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9666           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9667           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9668           ;;
9669         *)
9670           wlarc='${wl}'
9671           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9672           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9673           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9674           ;;
9675         esac
9676       fi
9677       hardcode_libdir_flag_spec='-R$libdir'
9678       hardcode_shlibpath_var=no
9679       case $host_os in
9680       solaris2.[0-5] | solaris2.[0-5].*) ;;
9681       *)
9682         # The compiler driver will combine and reorder linker options,
9683         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9684         # but is careful enough not to reorder.
9685         # Supported since Solaris 2.6 (maybe 2.5.1?)
9686         if test "$GCC" = yes; then
9687           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9688         else
9689           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9690         fi
9691         ;;
9692       esac
9693       link_all_deplibs=yes
9694       ;;
9695
9696     sunos4*)
9697       if test "x$host_vendor" = xsequent; then
9698         # Use $CC to link under sequent, because it throws in some extra .o
9699         # files that make .init and .fini sections work.
9700         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9701       else
9702         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9703       fi
9704       hardcode_libdir_flag_spec='-L$libdir'
9705       hardcode_direct=yes
9706       hardcode_minus_L=yes
9707       hardcode_shlibpath_var=no
9708       ;;
9709
9710     sysv4)
9711       case $host_vendor in
9712         sni)
9713           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714           hardcode_direct=yes # is this really true???
9715         ;;
9716         siemens)
9717           ## LD is ld it makes a PLAMLIB
9718           ## CC just makes a GrossModule.
9719           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9720           reload_cmds='$CC -r -o $output$reload_objs'
9721           hardcode_direct=no
9722         ;;
9723         motorola)
9724           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9725           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9726         ;;
9727       esac
9728       runpath_var='LD_RUN_PATH'
9729       hardcode_shlibpath_var=no
9730       ;;
9731
9732     sysv4.3*)
9733       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9734       hardcode_shlibpath_var=no
9735       export_dynamic_flag_spec='-Bexport'
9736       ;;
9737
9738     sysv4*MP*)
9739       if test -d /usr/nec; then
9740         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741         hardcode_shlibpath_var=no
9742         runpath_var=LD_RUN_PATH
9743         hardcode_runpath_var=yes
9744         ld_shlibs=yes
9745       fi
9746       ;;
9747
9748     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9749       no_undefined_flag='${wl}-z,text'
9750       archive_cmds_need_lc=no
9751       hardcode_shlibpath_var=no
9752       runpath_var='LD_RUN_PATH'
9753
9754       if test "$GCC" = yes; then
9755         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9756         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9757       else
9758         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9759         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9760       fi
9761       ;;
9762
9763     sysv5* | sco3.2v5* | sco5v6*)
9764       # Note: We can NOT use -z defs as we might desire, because we do not
9765       # link with -lc, and that would cause any symbols used from libc to
9766       # always be unresolved, which means just about no library would
9767       # ever link correctly.  If we're not using GNU ld we use -z text
9768       # though, which does catch some bad symbols but isn't as heavy-handed
9769       # as -z defs.
9770       no_undefined_flag='${wl}-z,text'
9771       allow_undefined_flag='${wl}-z,nodefs'
9772       archive_cmds_need_lc=no
9773       hardcode_shlibpath_var=no
9774       hardcode_libdir_flag_spec='${wl}-R,$libdir'
9775       hardcode_libdir_separator=':'
9776       link_all_deplibs=yes
9777       export_dynamic_flag_spec='${wl}-Bexport'
9778       runpath_var='LD_RUN_PATH'
9779
9780       if test "$GCC" = yes; then
9781         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9782         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9783       else
9784         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9785         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9786       fi
9787       ;;
9788
9789     uts4*)
9790       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9791       hardcode_libdir_flag_spec='-L$libdir'
9792       hardcode_shlibpath_var=no
9793       ;;
9794
9795     *)
9796       ld_shlibs=no
9797       ;;
9798     esac
9799
9800     if test x$host_vendor = xsni; then
9801       case $host in
9802       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9803         export_dynamic_flag_spec='${wl}-Blargedynsym'
9804         ;;
9805       esac
9806     fi
9807   fi
9808
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9810 $as_echo "$ld_shlibs" >&6; }
9811 test "$ld_shlibs" = no && can_build_shared=no
9812
9813 with_gnu_ld=$with_gnu_ld
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829 #
9830 # Do we need to explicitly link libc?
9831 #
9832 case "x$archive_cmds_need_lc" in
9833 x|xyes)
9834   # Assume -lc should be added
9835   archive_cmds_need_lc=yes
9836
9837   if test "$enable_shared" = yes && test "$GCC" = yes; then
9838     case $archive_cmds in
9839     *'~'*)
9840       # FIXME: we may have to deal with multi-command sequences.
9841       ;;
9842     '$CC '*)
9843       # Test whether the compiler implicitly links with -lc since on some
9844       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9845       # to ld, don't add -lc before -lgcc.
9846       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9847 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9848 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9849   $as_echo_n "(cached) " >&6
9850 else
9851   $RM conftest*
9852         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9853
9854         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9855   (eval $ac_compile) 2>&5
9856   ac_status=$?
9857   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9858   test $ac_status = 0; } 2>conftest.err; then
9859           soname=conftest
9860           lib=conftest
9861           libobjs=conftest.$ac_objext
9862           deplibs=
9863           wl=$lt_prog_compiler_wl
9864           pic_flag=$lt_prog_compiler_pic
9865           compiler_flags=-v
9866           linker_flags=-v
9867           verstring=
9868           output_objdir=.
9869           libname=conftest
9870           lt_save_allow_undefined_flag=$allow_undefined_flag
9871           allow_undefined_flag=
9872           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9873   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9874   ac_status=$?
9875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9876   test $ac_status = 0; }
9877           then
9878             lt_cv_archive_cmds_need_lc=no
9879           else
9880             lt_cv_archive_cmds_need_lc=yes
9881           fi
9882           allow_undefined_flag=$lt_save_allow_undefined_flag
9883         else
9884           cat conftest.err 1>&5
9885         fi
9886         $RM conftest*
9887
9888 fi
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9890 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9891       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9892       ;;
9893     esac
9894   fi
9895   ;;
9896 esac
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10050 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10051
10052 if test "$GCC" = yes; then
10053   case $host_os in
10054     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10055     *) lt_awk_arg="/^libraries:/" ;;
10056   esac
10057   case $host_os in
10058     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10059     *) lt_sed_strip_eq="s,=/,/,g" ;;
10060   esac
10061   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10062   case $lt_search_path_spec in
10063   *\;*)
10064     # if the path contains ";" then we assume it to be the separator
10065     # otherwise default to the standard path separator (i.e. ":") - it is
10066     # assumed that no part of a normal pathname contains ";" but that should
10067     # okay in the real world where ";" in dirpaths is itself problematic.
10068     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10069     ;;
10070   *)
10071     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10072     ;;
10073   esac
10074   # Ok, now we have the path, separated by spaces, we can step through it
10075   # and add multilib dir if necessary.
10076   lt_tmp_lt_search_path_spec=
10077   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10078   for lt_sys_path in $lt_search_path_spec; do
10079     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10080       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10081     else
10082       test -d "$lt_sys_path" && \
10083         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10084     fi
10085   done
10086   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10087 BEGIN {RS=" "; FS="/|\n";} {
10088   lt_foo="";
10089   lt_count=0;
10090   for (lt_i = NF; lt_i > 0; lt_i--) {
10091     if ($lt_i != "" && $lt_i != ".") {
10092       if ($lt_i == "..") {
10093         lt_count++;
10094       } else {
10095         if (lt_count == 0) {
10096           lt_foo="/" $lt_i lt_foo;
10097         } else {
10098           lt_count--;
10099         }
10100       }
10101     }
10102   }
10103   if (lt_foo != "") { lt_freq[lt_foo]++; }
10104   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10105 }'`
10106   # AWK program above erroneously prepends '/' to C:/dos/paths
10107   # for these hosts.
10108   case $host_os in
10109     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10110       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10111   esac
10112   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10113 else
10114   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10115 fi
10116 library_names_spec=
10117 libname_spec='lib$name'
10118 soname_spec=
10119 shrext_cmds=".so"
10120 postinstall_cmds=
10121 postuninstall_cmds=
10122 finish_cmds=
10123 finish_eval=
10124 shlibpath_var=
10125 shlibpath_overrides_runpath=unknown
10126 version_type=none
10127 dynamic_linker="$host_os ld.so"
10128 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10129 need_lib_prefix=unknown
10130 hardcode_into_libs=no
10131
10132 # when you set need_version to no, make sure it does not cause -set_version
10133 # flags to be left without arguments
10134 need_version=unknown
10135
10136 case $host_os in
10137 aix3*)
10138   version_type=linux # correct to gnu/linux during the next big refactor
10139   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10140   shlibpath_var=LIBPATH
10141
10142   # AIX 3 has no versioning support, so we append a major version to the name.
10143   soname_spec='${libname}${release}${shared_ext}$major'
10144   ;;
10145
10146 aix[4-9]*)
10147   version_type=linux # correct to gnu/linux during the next big refactor
10148   need_lib_prefix=no
10149   need_version=no
10150   hardcode_into_libs=yes
10151   if test "$host_cpu" = ia64; then
10152     # AIX 5 supports IA64
10153     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10154     shlibpath_var=LD_LIBRARY_PATH
10155   else
10156     # With GCC up to 2.95.x, collect2 would create an import file
10157     # for dependence libraries.  The import file would start with
10158     # the line `#! .'.  This would cause the generated library to
10159     # depend on `.', always an invalid library.  This was fixed in
10160     # development snapshots of GCC prior to 3.0.
10161     case $host_os in
10162       aix4 | aix4.[01] | aix4.[01].*)
10163       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10164            echo ' yes '
10165            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10166         :
10167       else
10168         can_build_shared=no
10169       fi
10170       ;;
10171     esac
10172     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10173     # soname into executable. Probably we can add versioning support to
10174     # collect2, so additional links can be useful in future.
10175     if test "$aix_use_runtimelinking" = yes; then
10176       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10177       # instead of lib<name>.a to let people know that these are not
10178       # typical AIX shared libraries.
10179       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180     else
10181       # We preserve .a as extension for shared libraries through AIX4.2
10182       # and later when we are not doing run time linking.
10183       library_names_spec='${libname}${release}.a $libname.a'
10184       soname_spec='${libname}${release}${shared_ext}$major'
10185     fi
10186     shlibpath_var=LIBPATH
10187   fi
10188   ;;
10189
10190 amigaos*)
10191   case $host_cpu in
10192   powerpc)
10193     # Since July 2007 AmigaOS4 officially supports .so libraries.
10194     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10195     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196     ;;
10197   m68k)
10198     library_names_spec='$libname.ixlibrary $libname.a'
10199     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10200     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10201     ;;
10202   esac
10203   ;;
10204
10205 beos*)
10206   library_names_spec='${libname}${shared_ext}'
10207   dynamic_linker="$host_os ld.so"
10208   shlibpath_var=LIBRARY_PATH
10209   ;;
10210
10211 bsdi[45]*)
10212   version_type=linux # correct to gnu/linux during the next big refactor
10213   need_version=no
10214   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215   soname_spec='${libname}${release}${shared_ext}$major'
10216   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10217   shlibpath_var=LD_LIBRARY_PATH
10218   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10219   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10220   # the default ld.so.conf also contains /usr/contrib/lib and
10221   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10222   # libtool to hard-code these into programs
10223   ;;
10224
10225 cygwin* | mingw* | pw32* | cegcc*)
10226   version_type=windows
10227   shrext_cmds=".dll"
10228   need_version=no
10229   need_lib_prefix=no
10230
10231   case $GCC,$cc_basename in
10232   yes,*)
10233     # gcc
10234     library_names_spec='$libname.dll.a'
10235     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10236     postinstall_cmds='base_file=`basename \${file}`~
10237       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10238       dldir=$destdir/`dirname \$dlpath`~
10239       test -d \$dldir || mkdir -p \$dldir~
10240       $install_prog $dir/$dlname \$dldir/$dlname~
10241       chmod a+x \$dldir/$dlname~
10242       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10243         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10244       fi'
10245     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10246       dlpath=$dir/\$dldll~
10247        $RM \$dlpath'
10248     shlibpath_overrides_runpath=yes
10249
10250     case $host_os in
10251     cygwin*)
10252       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10253       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10254
10255       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10256       ;;
10257     mingw* | cegcc*)
10258       # MinGW DLLs use traditional 'lib' prefix
10259       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10260       ;;
10261     pw32*)
10262       # pw32 DLLs use 'pw' prefix rather than 'lib'
10263       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10264       ;;
10265     esac
10266     dynamic_linker='Win32 ld.exe'
10267     ;;
10268
10269   *,cl*)
10270     # Native MSVC
10271     libname_spec='$name'
10272     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10273     library_names_spec='${libname}.dll.lib'
10274
10275     case $build_os in
10276     mingw*)
10277       sys_lib_search_path_spec=
10278       lt_save_ifs=$IFS
10279       IFS=';'
10280       for lt_path in $LIB
10281       do
10282         IFS=$lt_save_ifs
10283         # Let DOS variable expansion print the short 8.3 style file name.
10284         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10285         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10286       done
10287       IFS=$lt_save_ifs
10288       # Convert to MSYS style.
10289       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10290       ;;
10291     cygwin*)
10292       # Convert to unix form, then to dos form, then back to unix form
10293       # but this time dos style (no spaces!) so that the unix form looks
10294       # like /cygdrive/c/PROGRA~1:/cygdr...
10295       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10296       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10297       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10298       ;;
10299     *)
10300       sys_lib_search_path_spec="$LIB"
10301       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10302         # It is most probably a Windows format PATH.
10303         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10304       else
10305         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10306       fi
10307       # FIXME: find the short name or the path components, as spaces are
10308       # common. (e.g. "Program Files" -> "PROGRA~1")
10309       ;;
10310     esac
10311
10312     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10313     postinstall_cmds='base_file=`basename \${file}`~
10314       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10315       dldir=$destdir/`dirname \$dlpath`~
10316       test -d \$dldir || mkdir -p \$dldir~
10317       $install_prog $dir/$dlname \$dldir/$dlname'
10318     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10319       dlpath=$dir/\$dldll~
10320        $RM \$dlpath'
10321     shlibpath_overrides_runpath=yes
10322     dynamic_linker='Win32 link.exe'
10323     ;;
10324
10325   *)
10326     # Assume MSVC wrapper
10327     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10328     dynamic_linker='Win32 ld.exe'
10329     ;;
10330   esac
10331   # FIXME: first we should search . and the directory the executable is in
10332   shlibpath_var=PATH
10333   ;;
10334
10335 darwin* | rhapsody*)
10336   dynamic_linker="$host_os dyld"
10337   version_type=darwin
10338   need_lib_prefix=no
10339   need_version=no
10340   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10341   soname_spec='${libname}${release}${major}$shared_ext'
10342   shlibpath_overrides_runpath=yes
10343   shlibpath_var=DYLD_LIBRARY_PATH
10344   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10345
10346   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10347   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10348   ;;
10349
10350 dgux*)
10351   version_type=linux # correct to gnu/linux during the next big refactor
10352   need_lib_prefix=no
10353   need_version=no
10354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10355   soname_spec='${libname}${release}${shared_ext}$major'
10356   shlibpath_var=LD_LIBRARY_PATH
10357   ;;
10358
10359 freebsd* | dragonfly*)
10360   # DragonFly does not have aout.  When/if they implement a new
10361   # versioning mechanism, adjust this.
10362   if test -x /usr/bin/objformat; then
10363     objformat=`/usr/bin/objformat`
10364   else
10365     case $host_os in
10366     freebsd[23].*) objformat=aout ;;
10367     *) objformat=elf ;;
10368     esac
10369   fi
10370   version_type=freebsd-$objformat
10371   case $version_type in
10372     freebsd-elf*)
10373       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10374       need_version=no
10375       need_lib_prefix=no
10376       ;;
10377     freebsd-*)
10378       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10379       need_version=yes
10380       ;;
10381   esac
10382   shlibpath_var=LD_LIBRARY_PATH
10383   case $host_os in
10384   freebsd2.*)
10385     shlibpath_overrides_runpath=yes
10386     ;;
10387   freebsd3.[01]* | freebsdelf3.[01]*)
10388     shlibpath_overrides_runpath=yes
10389     hardcode_into_libs=yes
10390     ;;
10391   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10392   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10393     shlibpath_overrides_runpath=no
10394     hardcode_into_libs=yes
10395     ;;
10396   *) # from 4.6 on, and DragonFly
10397     shlibpath_overrides_runpath=yes
10398     hardcode_into_libs=yes
10399     ;;
10400   esac
10401   ;;
10402
10403 haiku*)
10404   version_type=linux # correct to gnu/linux during the next big refactor
10405   need_lib_prefix=no
10406   need_version=no
10407   dynamic_linker="$host_os runtime_loader"
10408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10409   soname_spec='${libname}${release}${shared_ext}$major'
10410   shlibpath_var=LIBRARY_PATH
10411   shlibpath_overrides_runpath=yes
10412   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10413   hardcode_into_libs=yes
10414   ;;
10415
10416 hpux9* | hpux10* | hpux11*)
10417   # Give a soname corresponding to the major version so that dld.sl refuses to
10418   # link against other versions.
10419   version_type=sunos
10420   need_lib_prefix=no
10421   need_version=no
10422   case $host_cpu in
10423   ia64*)
10424     shrext_cmds='.so'
10425     hardcode_into_libs=yes
10426     dynamic_linker="$host_os dld.so"
10427     shlibpath_var=LD_LIBRARY_PATH
10428     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10429     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10430     soname_spec='${libname}${release}${shared_ext}$major'
10431     if test "X$HPUX_IA64_MODE" = X32; then
10432       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10433     else
10434       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10435     fi
10436     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10437     ;;
10438   hppa*64*)
10439     shrext_cmds='.sl'
10440     hardcode_into_libs=yes
10441     dynamic_linker="$host_os dld.sl"
10442     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10443     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10444     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445     soname_spec='${libname}${release}${shared_ext}$major'
10446     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10447     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10448     ;;
10449   *)
10450     shrext_cmds='.sl'
10451     dynamic_linker="$host_os dld.sl"
10452     shlibpath_var=SHLIB_PATH
10453     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10455     soname_spec='${libname}${release}${shared_ext}$major'
10456     ;;
10457   esac
10458   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10459   postinstall_cmds='chmod 555 $lib'
10460   # or fails outright, so override atomically:
10461   install_override_mode=555
10462   ;;
10463
10464 interix[3-9]*)
10465   version_type=linux # correct to gnu/linux during the next big refactor
10466   need_lib_prefix=no
10467   need_version=no
10468   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10469   soname_spec='${libname}${release}${shared_ext}$major'
10470   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10471   shlibpath_var=LD_LIBRARY_PATH
10472   shlibpath_overrides_runpath=no
10473   hardcode_into_libs=yes
10474   ;;
10475
10476 irix5* | irix6* | nonstopux*)
10477   case $host_os in
10478     nonstopux*) version_type=nonstopux ;;
10479     *)
10480         if test "$lt_cv_prog_gnu_ld" = yes; then
10481                 version_type=linux # correct to gnu/linux during the next big refactor
10482         else
10483                 version_type=irix
10484         fi ;;
10485   esac
10486   need_lib_prefix=no
10487   need_version=no
10488   soname_spec='${libname}${release}${shared_ext}$major'
10489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10490   case $host_os in
10491   irix5* | nonstopux*)
10492     libsuff= shlibsuff=
10493     ;;
10494   *)
10495     case $LD in # libtool.m4 will add one of these switches to LD
10496     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10497       libsuff= shlibsuff= libmagic=32-bit;;
10498     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10499       libsuff=32 shlibsuff=N32 libmagic=N32;;
10500     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10501       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10502     *) libsuff= shlibsuff= libmagic=never-match;;
10503     esac
10504     ;;
10505   esac
10506   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10507   shlibpath_overrides_runpath=no
10508   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10509   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10510   hardcode_into_libs=yes
10511   ;;
10512
10513 # No shared lib support for Linux oldld, aout, or coff.
10514 linux*oldld* | linux*aout* | linux*coff*)
10515   dynamic_linker=no
10516   ;;
10517
10518 # This must be glibc/ELF.
10519 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10520   version_type=linux # correct to gnu/linux during the next big refactor
10521   need_lib_prefix=no
10522   need_version=no
10523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10524   soname_spec='${libname}${release}${shared_ext}$major'
10525   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10526   shlibpath_var=LD_LIBRARY_PATH
10527   shlibpath_overrides_runpath=no
10528
10529   # Some binutils ld are patched to set DT_RUNPATH
10530   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10531   $as_echo_n "(cached) " >&6
10532 else
10533   lt_cv_shlibpath_overrides_runpath=no
10534     save_LDFLAGS=$LDFLAGS
10535     save_libdir=$libdir
10536     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10537          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10538     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10539 /* end confdefs.h.  */
10540
10541 int
10542 main ()
10543 {
10544
10545   ;
10546   return 0;
10547 }
10548 _ACEOF
10549 if ac_fn_c_try_link "$LINENO"; then :
10550   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10551   lt_cv_shlibpath_overrides_runpath=yes
10552 fi
10553 fi
10554 rm -f core conftest.err conftest.$ac_objext \
10555     conftest$ac_exeext conftest.$ac_ext
10556     LDFLAGS=$save_LDFLAGS
10557     libdir=$save_libdir
10558
10559 fi
10560
10561   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10562
10563   # This implies no fast_install, which is unacceptable.
10564   # Some rework will be needed to allow for fast_install
10565   # before this can be enabled.
10566   hardcode_into_libs=yes
10567
10568   # Append ld.so.conf contents to the search path
10569   if test -f /etc/ld.so.conf; then
10570     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10571     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10572   fi
10573
10574   # We used to test for /lib/ld.so.1 and disable shared libraries on
10575   # powerpc, because MkLinux only supported shared libraries with the
10576   # GNU dynamic linker.  Since this was broken with cross compilers,
10577   # most powerpc-linux boxes support dynamic linking these days and
10578   # people can always --disable-shared, the test was removed, and we
10579   # assume the GNU/Linux dynamic linker is in use.
10580   dynamic_linker='GNU/Linux ld.so'
10581   ;;
10582
10583 netbsdelf*-gnu)
10584   version_type=linux
10585   need_lib_prefix=no
10586   need_version=no
10587   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10588   soname_spec='${libname}${release}${shared_ext}$major'
10589   shlibpath_var=LD_LIBRARY_PATH
10590   shlibpath_overrides_runpath=no
10591   hardcode_into_libs=yes
10592   dynamic_linker='NetBSD ld.elf_so'
10593   ;;
10594
10595 netbsd*)
10596   version_type=sunos
10597   need_lib_prefix=no
10598   need_version=no
10599   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10600     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10601     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10602     dynamic_linker='NetBSD (a.out) ld.so'
10603   else
10604     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10605     soname_spec='${libname}${release}${shared_ext}$major'
10606     dynamic_linker='NetBSD ld.elf_so'
10607   fi
10608   shlibpath_var=LD_LIBRARY_PATH
10609   shlibpath_overrides_runpath=yes
10610   hardcode_into_libs=yes
10611   ;;
10612
10613 newsos6)
10614   version_type=linux # correct to gnu/linux during the next big refactor
10615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616   shlibpath_var=LD_LIBRARY_PATH
10617   shlibpath_overrides_runpath=yes
10618   ;;
10619
10620 *nto* | *qnx*)
10621   version_type=qnx
10622   need_lib_prefix=no
10623   need_version=no
10624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10625   soname_spec='${libname}${release}${shared_ext}$major'
10626   shlibpath_var=LD_LIBRARY_PATH
10627   shlibpath_overrides_runpath=no
10628   hardcode_into_libs=yes
10629   dynamic_linker='ldqnx.so'
10630   ;;
10631
10632 openbsd*)
10633   version_type=sunos
10634   sys_lib_dlsearch_path_spec="/usr/lib"
10635   need_lib_prefix=no
10636   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10637   case $host_os in
10638     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10639     *)                          need_version=no  ;;
10640   esac
10641   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10642   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10643   shlibpath_var=LD_LIBRARY_PATH
10644   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10645     case $host_os in
10646       openbsd2.[89] | openbsd2.[89].*)
10647         shlibpath_overrides_runpath=no
10648         ;;
10649       *)
10650         shlibpath_overrides_runpath=yes
10651         ;;
10652       esac
10653   else
10654     shlibpath_overrides_runpath=yes
10655   fi
10656   ;;
10657
10658 os2*)
10659   libname_spec='$name'
10660   shrext_cmds=".dll"
10661   need_lib_prefix=no
10662   library_names_spec='$libname${shared_ext} $libname.a'
10663   dynamic_linker='OS/2 ld.exe'
10664   shlibpath_var=LIBPATH
10665   ;;
10666
10667 osf3* | osf4* | osf5*)
10668   version_type=osf
10669   need_lib_prefix=no
10670   need_version=no
10671   soname_spec='${libname}${release}${shared_ext}$major'
10672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10673   shlibpath_var=LD_LIBRARY_PATH
10674   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10675   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10676   ;;
10677
10678 rdos*)
10679   dynamic_linker=no
10680   ;;
10681
10682 solaris*)
10683   version_type=linux # correct to gnu/linux during the next big refactor
10684   need_lib_prefix=no
10685   need_version=no
10686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687   soname_spec='${libname}${release}${shared_ext}$major'
10688   shlibpath_var=LD_LIBRARY_PATH
10689   shlibpath_overrides_runpath=yes
10690   hardcode_into_libs=yes
10691   # ldd complains unless libraries are executable
10692   postinstall_cmds='chmod +x $lib'
10693   ;;
10694
10695 sunos4*)
10696   version_type=sunos
10697   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10698   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10699   shlibpath_var=LD_LIBRARY_PATH
10700   shlibpath_overrides_runpath=yes
10701   if test "$with_gnu_ld" = yes; then
10702     need_lib_prefix=no
10703   fi
10704   need_version=yes
10705   ;;
10706
10707 sysv4 | sysv4.3*)
10708   version_type=linux # correct to gnu/linux during the next big refactor
10709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10710   soname_spec='${libname}${release}${shared_ext}$major'
10711   shlibpath_var=LD_LIBRARY_PATH
10712   case $host_vendor in
10713     sni)
10714       shlibpath_overrides_runpath=no
10715       need_lib_prefix=no
10716       runpath_var=LD_RUN_PATH
10717       ;;
10718     siemens)
10719       need_lib_prefix=no
10720       ;;
10721     motorola)
10722       need_lib_prefix=no
10723       need_version=no
10724       shlibpath_overrides_runpath=no
10725       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10726       ;;
10727   esac
10728   ;;
10729
10730 sysv4*MP*)
10731   if test -d /usr/nec ;then
10732     version_type=linux # correct to gnu/linux during the next big refactor
10733     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10734     soname_spec='$libname${shared_ext}.$major'
10735     shlibpath_var=LD_LIBRARY_PATH
10736   fi
10737   ;;
10738
10739 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10740   version_type=freebsd-elf
10741   need_lib_prefix=no
10742   need_version=no
10743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10744   soname_spec='${libname}${release}${shared_ext}$major'
10745   shlibpath_var=LD_LIBRARY_PATH
10746   shlibpath_overrides_runpath=yes
10747   hardcode_into_libs=yes
10748   if test "$with_gnu_ld" = yes; then
10749     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10750   else
10751     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10752     case $host_os in
10753       sco3.2v5*)
10754         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10755         ;;
10756     esac
10757   fi
10758   sys_lib_dlsearch_path_spec='/usr/lib'
10759   ;;
10760
10761 tpf*)
10762   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10763   version_type=linux # correct to gnu/linux during the next big refactor
10764   need_lib_prefix=no
10765   need_version=no
10766   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767   shlibpath_var=LD_LIBRARY_PATH
10768   shlibpath_overrides_runpath=no
10769   hardcode_into_libs=yes
10770   ;;
10771
10772 uts4*)
10773   version_type=linux # correct to gnu/linux during the next big refactor
10774   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10775   soname_spec='${libname}${release}${shared_ext}$major'
10776   shlibpath_var=LD_LIBRARY_PATH
10777   ;;
10778
10779 *)
10780   dynamic_linker=no
10781   ;;
10782 esac
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10784 $as_echo "$dynamic_linker" >&6; }
10785 test "$dynamic_linker" = no && can_build_shared=no
10786
10787 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10788 if test "$GCC" = yes; then
10789   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10790 fi
10791
10792 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10793   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10794 fi
10795 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10796   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10797 fi
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10891 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10892 hardcode_action=
10893 if test -n "$hardcode_libdir_flag_spec" ||
10894    test -n "$runpath_var" ||
10895    test "X$hardcode_automatic" = "Xyes" ; then
10896
10897   # We can hardcode non-existent directories.
10898   if test "$hardcode_direct" != no &&
10899      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10900      # have to relink, otherwise we might link with an installed library
10901      # when we should be linking with a yet-to-be-installed one
10902      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10903      test "$hardcode_minus_L" != no; then
10904     # Linking always hardcodes the temporary library directory.
10905     hardcode_action=relink
10906   else
10907     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10908     hardcode_action=immediate
10909   fi
10910 else
10911   # We cannot hardcode anything, or else we can only hardcode existing
10912   # directories.
10913   hardcode_action=unsupported
10914 fi
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10916 $as_echo "$hardcode_action" >&6; }
10917
10918 if test "$hardcode_action" = relink ||
10919    test "$inherit_rpath" = yes; then
10920   # Fast installation is not supported
10921   enable_fast_install=no
10922 elif test "$shlibpath_overrides_runpath" = yes ||
10923      test "$enable_shared" = no; then
10924   # Fast installation is not necessary
10925   enable_fast_install=needless
10926 fi
10927
10928
10929
10930
10931
10932
10933   if test "x$enable_dlopen" != xyes; then
10934   enable_dlopen=unknown
10935   enable_dlopen_self=unknown
10936   enable_dlopen_self_static=unknown
10937 else
10938   lt_cv_dlopen=no
10939   lt_cv_dlopen_libs=
10940
10941   case $host_os in
10942   beos*)
10943     lt_cv_dlopen="load_add_on"
10944     lt_cv_dlopen_libs=
10945     lt_cv_dlopen_self=yes
10946     ;;
10947
10948   mingw* | pw32* | cegcc*)
10949     lt_cv_dlopen="LoadLibrary"
10950     lt_cv_dlopen_libs=
10951     ;;
10952
10953   cygwin*)
10954     lt_cv_dlopen="dlopen"
10955     lt_cv_dlopen_libs=
10956     ;;
10957
10958   darwin*)
10959   # if libdl is installed we need to link against it
10960     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10961 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10962 if ${ac_cv_lib_dl_dlopen+:} false; then :
10963   $as_echo_n "(cached) " >&6
10964 else
10965   ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-ldl  $LIBS"
10967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10968 /* end confdefs.h.  */
10969
10970 /* Override any GCC internal prototype to avoid an error.
10971    Use char because int might match the return type of a GCC
10972    builtin and then its argument prototype would still apply.  */
10973 #ifdef __cplusplus
10974 extern "C"
10975 #endif
10976 char dlopen ();
10977 int
10978 main ()
10979 {
10980 return dlopen ();
10981   ;
10982   return 0;
10983 }
10984 _ACEOF
10985 if ac_fn_c_try_link "$LINENO"; then :
10986   ac_cv_lib_dl_dlopen=yes
10987 else
10988   ac_cv_lib_dl_dlopen=no
10989 fi
10990 rm -f core conftest.err conftest.$ac_objext \
10991     conftest$ac_exeext conftest.$ac_ext
10992 LIBS=$ac_check_lib_save_LIBS
10993 fi
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10995 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10996 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10997   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10998 else
10999
11000     lt_cv_dlopen="dyld"
11001     lt_cv_dlopen_libs=
11002     lt_cv_dlopen_self=yes
11003
11004 fi
11005
11006     ;;
11007
11008   *)
11009     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11010 if test "x$ac_cv_func_shl_load" = xyes; then :
11011   lt_cv_dlopen="shl_load"
11012 else
11013   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11014 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11015 if ${ac_cv_lib_dld_shl_load+:} false; then :
11016   $as_echo_n "(cached) " >&6
11017 else
11018   ac_check_lib_save_LIBS=$LIBS
11019 LIBS="-ldld  $LIBS"
11020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11021 /* end confdefs.h.  */
11022
11023 /* Override any GCC internal prototype to avoid an error.
11024    Use char because int might match the return type of a GCC
11025    builtin and then its argument prototype would still apply.  */
11026 #ifdef __cplusplus
11027 extern "C"
11028 #endif
11029 char shl_load ();
11030 int
11031 main ()
11032 {
11033 return shl_load ();
11034   ;
11035   return 0;
11036 }
11037 _ACEOF
11038 if ac_fn_c_try_link "$LINENO"; then :
11039   ac_cv_lib_dld_shl_load=yes
11040 else
11041   ac_cv_lib_dld_shl_load=no
11042 fi
11043 rm -f core conftest.err conftest.$ac_objext \
11044     conftest$ac_exeext conftest.$ac_ext
11045 LIBS=$ac_check_lib_save_LIBS
11046 fi
11047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11048 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11049 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11050   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11051 else
11052   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11053 if test "x$ac_cv_func_dlopen" = xyes; then :
11054   lt_cv_dlopen="dlopen"
11055 else
11056   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11057 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11058 if ${ac_cv_lib_dl_dlopen+:} false; then :
11059   $as_echo_n "(cached) " >&6
11060 else
11061   ac_check_lib_save_LIBS=$LIBS
11062 LIBS="-ldl  $LIBS"
11063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064 /* end confdefs.h.  */
11065
11066 /* Override any GCC internal prototype to avoid an error.
11067    Use char because int might match the return type of a GCC
11068    builtin and then its argument prototype would still apply.  */
11069 #ifdef __cplusplus
11070 extern "C"
11071 #endif
11072 char dlopen ();
11073 int
11074 main ()
11075 {
11076 return dlopen ();
11077   ;
11078   return 0;
11079 }
11080 _ACEOF
11081 if ac_fn_c_try_link "$LINENO"; then :
11082   ac_cv_lib_dl_dlopen=yes
11083 else
11084   ac_cv_lib_dl_dlopen=no
11085 fi
11086 rm -f core conftest.err conftest.$ac_objext \
11087     conftest$ac_exeext conftest.$ac_ext
11088 LIBS=$ac_check_lib_save_LIBS
11089 fi
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11091 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11092 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11093   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11094 else
11095   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11096 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11097 if ${ac_cv_lib_svld_dlopen+:} false; then :
11098   $as_echo_n "(cached) " >&6
11099 else
11100   ac_check_lib_save_LIBS=$LIBS
11101 LIBS="-lsvld  $LIBS"
11102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11103 /* end confdefs.h.  */
11104
11105 /* Override any GCC internal prototype to avoid an error.
11106    Use char because int might match the return type of a GCC
11107    builtin and then its argument prototype would still apply.  */
11108 #ifdef __cplusplus
11109 extern "C"
11110 #endif
11111 char dlopen ();
11112 int
11113 main ()
11114 {
11115 return dlopen ();
11116   ;
11117   return 0;
11118 }
11119 _ACEOF
11120 if ac_fn_c_try_link "$LINENO"; then :
11121   ac_cv_lib_svld_dlopen=yes
11122 else
11123   ac_cv_lib_svld_dlopen=no
11124 fi
11125 rm -f core conftest.err conftest.$ac_objext \
11126     conftest$ac_exeext conftest.$ac_ext
11127 LIBS=$ac_check_lib_save_LIBS
11128 fi
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11130 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11131 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11132   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11133 else
11134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11135 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11136 if ${ac_cv_lib_dld_dld_link+:} false; then :
11137   $as_echo_n "(cached) " >&6
11138 else
11139   ac_check_lib_save_LIBS=$LIBS
11140 LIBS="-ldld  $LIBS"
11141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11142 /* end confdefs.h.  */
11143
11144 /* Override any GCC internal prototype to avoid an error.
11145    Use char because int might match the return type of a GCC
11146    builtin and then its argument prototype would still apply.  */
11147 #ifdef __cplusplus
11148 extern "C"
11149 #endif
11150 char dld_link ();
11151 int
11152 main ()
11153 {
11154 return dld_link ();
11155   ;
11156   return 0;
11157 }
11158 _ACEOF
11159 if ac_fn_c_try_link "$LINENO"; then :
11160   ac_cv_lib_dld_dld_link=yes
11161 else
11162   ac_cv_lib_dld_dld_link=no
11163 fi
11164 rm -f core conftest.err conftest.$ac_objext \
11165     conftest$ac_exeext conftest.$ac_ext
11166 LIBS=$ac_check_lib_save_LIBS
11167 fi
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11169 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11170 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11171   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11172 fi
11173
11174
11175 fi
11176
11177
11178 fi
11179
11180
11181 fi
11182
11183
11184 fi
11185
11186
11187 fi
11188
11189     ;;
11190   esac
11191
11192   if test "x$lt_cv_dlopen" != xno; then
11193     enable_dlopen=yes
11194   else
11195     enable_dlopen=no
11196   fi
11197
11198   case $lt_cv_dlopen in
11199   dlopen)
11200     save_CPPFLAGS="$CPPFLAGS"
11201     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11202
11203     save_LDFLAGS="$LDFLAGS"
11204     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11205
11206     save_LIBS="$LIBS"
11207     LIBS="$lt_cv_dlopen_libs $LIBS"
11208
11209     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11210 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11211 if ${lt_cv_dlopen_self+:} false; then :
11212   $as_echo_n "(cached) " >&6
11213 else
11214           if test "$cross_compiling" = yes; then :
11215   lt_cv_dlopen_self=cross
11216 else
11217   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11218   lt_status=$lt_dlunknown
11219   cat > conftest.$ac_ext <<_LT_EOF
11220 #line $LINENO "configure"
11221 #include "confdefs.h"
11222
11223 #if HAVE_DLFCN_H
11224 #include <dlfcn.h>
11225 #endif
11226
11227 #include <stdio.h>
11228
11229 #ifdef RTLD_GLOBAL
11230 #  define LT_DLGLOBAL           RTLD_GLOBAL
11231 #else
11232 #  ifdef DL_GLOBAL
11233 #    define LT_DLGLOBAL         DL_GLOBAL
11234 #  else
11235 #    define LT_DLGLOBAL         0
11236 #  endif
11237 #endif
11238
11239 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11240    find out it does not work in some platform. */
11241 #ifndef LT_DLLAZY_OR_NOW
11242 #  ifdef RTLD_LAZY
11243 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11244 #  else
11245 #    ifdef DL_LAZY
11246 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11247 #    else
11248 #      ifdef RTLD_NOW
11249 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11250 #      else
11251 #        ifdef DL_NOW
11252 #          define LT_DLLAZY_OR_NOW      DL_NOW
11253 #        else
11254 #          define LT_DLLAZY_OR_NOW      0
11255 #        endif
11256 #      endif
11257 #    endif
11258 #  endif
11259 #endif
11260
11261 /* When -fvisbility=hidden is used, assume the code has been annotated
11262    correspondingly for the symbols needed.  */
11263 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11264 int fnord () __attribute__((visibility("default")));
11265 #endif
11266
11267 int fnord () { return 42; }
11268 int main ()
11269 {
11270   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11271   int status = $lt_dlunknown;
11272
11273   if (self)
11274     {
11275       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11276       else
11277         {
11278           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11279           else puts (dlerror ());
11280         }
11281       /* dlclose (self); */
11282     }
11283   else
11284     puts (dlerror ());
11285
11286   return status;
11287 }
11288 _LT_EOF
11289   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11290   (eval $ac_link) 2>&5
11291   ac_status=$?
11292   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11293   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11294     (./conftest; exit; ) >&5 2>/dev/null
11295     lt_status=$?
11296     case x$lt_status in
11297       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11298       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11299       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11300     esac
11301   else :
11302     # compilation failed
11303     lt_cv_dlopen_self=no
11304   fi
11305 fi
11306 rm -fr conftest*
11307
11308
11309 fi
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11311 $as_echo "$lt_cv_dlopen_self" >&6; }
11312
11313     if test "x$lt_cv_dlopen_self" = xyes; then
11314       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11315       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11316 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11317 if ${lt_cv_dlopen_self_static+:} false; then :
11318   $as_echo_n "(cached) " >&6
11319 else
11320           if test "$cross_compiling" = yes; then :
11321   lt_cv_dlopen_self_static=cross
11322 else
11323   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11324   lt_status=$lt_dlunknown
11325   cat > conftest.$ac_ext <<_LT_EOF
11326 #line $LINENO "configure"
11327 #include "confdefs.h"
11328
11329 #if HAVE_DLFCN_H
11330 #include <dlfcn.h>
11331 #endif
11332
11333 #include <stdio.h>
11334
11335 #ifdef RTLD_GLOBAL
11336 #  define LT_DLGLOBAL           RTLD_GLOBAL
11337 #else
11338 #  ifdef DL_GLOBAL
11339 #    define LT_DLGLOBAL         DL_GLOBAL
11340 #  else
11341 #    define LT_DLGLOBAL         0
11342 #  endif
11343 #endif
11344
11345 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11346    find out it does not work in some platform. */
11347 #ifndef LT_DLLAZY_OR_NOW
11348 #  ifdef RTLD_LAZY
11349 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11350 #  else
11351 #    ifdef DL_LAZY
11352 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11353 #    else
11354 #      ifdef RTLD_NOW
11355 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11356 #      else
11357 #        ifdef DL_NOW
11358 #          define LT_DLLAZY_OR_NOW      DL_NOW
11359 #        else
11360 #          define LT_DLLAZY_OR_NOW      0
11361 #        endif
11362 #      endif
11363 #    endif
11364 #  endif
11365 #endif
11366
11367 /* When -fvisbility=hidden is used, assume the code has been annotated
11368    correspondingly for the symbols needed.  */
11369 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11370 int fnord () __attribute__((visibility("default")));
11371 #endif
11372
11373 int fnord () { return 42; }
11374 int main ()
11375 {
11376   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11377   int status = $lt_dlunknown;
11378
11379   if (self)
11380     {
11381       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11382       else
11383         {
11384           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11385           else puts (dlerror ());
11386         }
11387       /* dlclose (self); */
11388     }
11389   else
11390     puts (dlerror ());
11391
11392   return status;
11393 }
11394 _LT_EOF
11395   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11396   (eval $ac_link) 2>&5
11397   ac_status=$?
11398   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11399   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11400     (./conftest; exit; ) >&5 2>/dev/null
11401     lt_status=$?
11402     case x$lt_status in
11403       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11404       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11405       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11406     esac
11407   else :
11408     # compilation failed
11409     lt_cv_dlopen_self_static=no
11410   fi
11411 fi
11412 rm -fr conftest*
11413
11414
11415 fi
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11417 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11418     fi
11419
11420     CPPFLAGS="$save_CPPFLAGS"
11421     LDFLAGS="$save_LDFLAGS"
11422     LIBS="$save_LIBS"
11423     ;;
11424   esac
11425
11426   case $lt_cv_dlopen_self in
11427   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11428   *) enable_dlopen_self=unknown ;;
11429   esac
11430
11431   case $lt_cv_dlopen_self_static in
11432   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11433   *) enable_dlopen_self_static=unknown ;;
11434   esac
11435 fi
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453 striplib=
11454 old_striplib=
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11456 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11457 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11458   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11459   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11461 $as_echo "yes" >&6; }
11462 else
11463 # FIXME - insert some real tests, host_os isn't really good enough
11464   case $host_os in
11465   darwin*)
11466     if test -n "$STRIP" ; then
11467       striplib="$STRIP -x"
11468       old_striplib="$STRIP -S"
11469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11470 $as_echo "yes" >&6; }
11471     else
11472       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11473 $as_echo "no" >&6; }
11474     fi
11475     ;;
11476   *)
11477     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11478 $as_echo "no" >&6; }
11479     ;;
11480   esac
11481 fi
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494   # Report which library types will actually be built
11495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11496 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11498 $as_echo "$can_build_shared" >&6; }
11499
11500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11501 $as_echo_n "checking whether to build shared libraries... " >&6; }
11502   test "$can_build_shared" = "no" && enable_shared=no
11503
11504   # On AIX, shared libraries and static libraries use the same namespace, and
11505   # are all built from PIC.
11506   case $host_os in
11507   aix3*)
11508     test "$enable_shared" = yes && enable_static=no
11509     if test -n "$RANLIB"; then
11510       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11511       postinstall_cmds='$RANLIB $lib'
11512     fi
11513     ;;
11514
11515   aix[4-9]*)
11516     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11517       test "$enable_shared" = yes && enable_static=no
11518     fi
11519     ;;
11520   esac
11521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11522 $as_echo "$enable_shared" >&6; }
11523
11524   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11525 $as_echo_n "checking whether to build static libraries... " >&6; }
11526   # Make sure either enable_shared or enable_static is yes.
11527   test "$enable_shared" = yes || enable_static=yes
11528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11529 $as_echo "$enable_static" >&6; }
11530
11531
11532
11533
11534 fi
11535 ac_ext=c
11536 ac_cpp='$CPP $CPPFLAGS'
11537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11540
11541 CC="$lt_save_CC"
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557         ac_config_commands="$ac_config_commands libtool"
11558
11559
11560
11561
11562 # Only expand once:
11563
11564
11565
11566 # Extract the first word of "doxygen", so it can be a program name with args.
11567 set dummy doxygen; ac_word=$2
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11569 $as_echo_n "checking for $ac_word... " >&6; }
11570 if ${ac_cv_prog_DOXYGEN+:} false; then :
11571   $as_echo_n "(cached) " >&6
11572 else
11573   if test -n "$DOXYGEN"; then
11574   ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
11575 else
11576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11577 for as_dir in $PATH
11578 do
11579   IFS=$as_save_IFS
11580   test -z "$as_dir" && as_dir=.
11581     for ac_exec_ext in '' $ac_executable_extensions; do
11582   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11583     ac_cv_prog_DOXYGEN="true"
11584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11585     break 2
11586   fi
11587 done
11588   done
11589 IFS=$as_save_IFS
11590
11591   test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="false"
11592 fi
11593 fi
11594 DOXYGEN=$ac_cv_prog_DOXYGEN
11595 if test -n "$DOXYGEN"; then
11596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
11597 $as_echo "$DOXYGEN" >&6; }
11598 else
11599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11600 $as_echo "no" >&6; }
11601 fi
11602
11603
11604  if test "$DOXYGEN" = true; then
11605   DOXYGEN_TRUE=
11606   DOXYGEN_FALSE='#'
11607 else
11608   DOXYGEN_TRUE='#'
11609   DOXYGEN_FALSE=
11610 fi
11611
11612
11613 # Checks for header files.
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11615 $as_echo_n "checking for ANSI C header files... " >&6; }
11616 if ${ac_cv_header_stdc+:} false; then :
11617   $as_echo_n "(cached) " >&6
11618 else
11619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11620 /* end confdefs.h.  */
11621 #include <stdlib.h>
11622 #include <stdarg.h>
11623 #include <string.h>
11624 #include <float.h>
11625
11626 int
11627 main ()
11628 {
11629
11630   ;
11631   return 0;
11632 }
11633 _ACEOF
11634 if ac_fn_c_try_compile "$LINENO"; then :
11635   ac_cv_header_stdc=yes
11636 else
11637   ac_cv_header_stdc=no
11638 fi
11639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640
11641 if test $ac_cv_header_stdc = yes; then
11642   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h.  */
11645 #include <string.h>
11646
11647 _ACEOF
11648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11649   $EGREP "memchr" >/dev/null 2>&1; then :
11650
11651 else
11652   ac_cv_header_stdc=no
11653 fi
11654 rm -f conftest*
11655
11656 fi
11657
11658 if test $ac_cv_header_stdc = yes; then
11659   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h.  */
11662 #include <stdlib.h>
11663
11664 _ACEOF
11665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11666   $EGREP "free" >/dev/null 2>&1; then :
11667
11668 else
11669   ac_cv_header_stdc=no
11670 fi
11671 rm -f conftest*
11672
11673 fi
11674
11675 if test $ac_cv_header_stdc = yes; then
11676   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11677   if test "$cross_compiling" = yes; then :
11678   :
11679 else
11680   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11681 /* end confdefs.h.  */
11682 #include <ctype.h>
11683 #include <stdlib.h>
11684 #if ((' ' & 0x0FF) == 0x020)
11685 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11686 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11687 #else
11688 # define ISLOWER(c) \
11689                    (('a' <= (c) && (c) <= 'i') \
11690                      || ('j' <= (c) && (c) <= 'r') \
11691                      || ('s' <= (c) && (c) <= 'z'))
11692 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11693 #endif
11694
11695 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11696 int
11697 main ()
11698 {
11699   int i;
11700   for (i = 0; i < 256; i++)
11701     if (XOR (islower (i), ISLOWER (i))
11702         || toupper (i) != TOUPPER (i))
11703       return 2;
11704   return 0;
11705 }
11706 _ACEOF
11707 if ac_fn_c_try_run "$LINENO"; then :
11708
11709 else
11710   ac_cv_header_stdc=no
11711 fi
11712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11713   conftest.$ac_objext conftest.beam conftest.$ac_ext
11714 fi
11715
11716 fi
11717 fi
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11719 $as_echo "$ac_cv_header_stdc" >&6; }
11720 if test $ac_cv_header_stdc = yes; then
11721
11722 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11723
11724 fi
11725
11726 for ac_header in stdlib.h
11727 do :
11728   ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11729 if test "x$ac_cv_header_stdlib_h" = xyes; then :
11730   cat >>confdefs.h <<_ACEOF
11731 #define HAVE_STDLIB_H 1
11732 _ACEOF
11733
11734 fi
11735
11736 done
11737
11738
11739 # Checks for typedefs, structures, and compiler characteristics.
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11741 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11742 if ${ac_cv_c_const+:} false; then :
11743   $as_echo_n "(cached) " >&6
11744 else
11745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11746 /* end confdefs.h.  */
11747
11748 int
11749 main ()
11750 {
11751
11752 #ifndef __cplusplus
11753   /* Ultrix mips cc rejects this sort of thing.  */
11754   typedef int charset[2];
11755   const charset cs = { 0, 0 };
11756   /* SunOS 4.1.1 cc rejects this.  */
11757   char const *const *pcpcc;
11758   char **ppc;
11759   /* NEC SVR4.0.2 mips cc rejects this.  */
11760   struct point {int x, y;};
11761   static struct point const zero = {0,0};
11762   /* AIX XL C 1.02.0.0 rejects this.
11763      It does not let you subtract one const X* pointer from another in
11764      an arm of an if-expression whose if-part is not a constant
11765      expression */
11766   const char *g = "string";
11767   pcpcc = &g + (g ? g-g : 0);
11768   /* HPUX 7.0 cc rejects these. */
11769   ++pcpcc;
11770   ppc = (char**) pcpcc;
11771   pcpcc = (char const *const *) ppc;
11772   { /* SCO 3.2v4 cc rejects this sort of thing.  */
11773     char tx;
11774     char *t = &tx;
11775     char const *s = 0 ? (char *) 0 : (char const *) 0;
11776
11777     *t++ = 0;
11778     if (s) return 0;
11779   }
11780   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11781     int x[] = {25, 17};
11782     const int *foo = &x[0];
11783     ++foo;
11784   }
11785   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11786     typedef const int *iptr;
11787     iptr p = 0;
11788     ++p;
11789   }
11790   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
11791        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11792     struct s { int j; const int *ap[3]; } bx;
11793     struct s *b = &bx; b->j = 5;
11794   }
11795   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11796     const int foo = 10;
11797     if (!foo) return 0;
11798   }
11799   return !cs[0] && !zero.x;
11800 #endif
11801
11802   ;
11803   return 0;
11804 }
11805 _ACEOF
11806 if ac_fn_c_try_compile "$LINENO"; then :
11807   ac_cv_c_const=yes
11808 else
11809   ac_cv_c_const=no
11810 fi
11811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 fi
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11814 $as_echo "$ac_cv_c_const" >&6; }
11815 if test $ac_cv_c_const = no; then
11816
11817 $as_echo "#define const /**/" >>confdefs.h
11818
11819 fi
11820
11821 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11822 if test "x$ac_cv_type_size_t" = xyes; then :
11823
11824 else
11825
11826 cat >>confdefs.h <<_ACEOF
11827 #define size_t unsigned int
11828 _ACEOF
11829
11830 fi
11831
11832
11833 # Define Makefiles.
11834 ac_config_files="$ac_config_files yaml-0.1.pc include/Makefile src/Makefile Makefile tests/Makefile win32/Makefile"
11835
11836
11837 # Generate the "configure" script.
11838 cat >confcache <<\_ACEOF
11839 # This file is a shell script that caches the results of configure
11840 # tests run on this system so they can be shared between configure
11841 # scripts and configure runs, see configure's option --config-cache.
11842 # It is not useful on other systems.  If it contains results you don't
11843 # want to keep, you may remove or edit it.
11844 #
11845 # config.status only pays attention to the cache file if you give it
11846 # the --recheck option to rerun configure.
11847 #
11848 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11849 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11850 # following values.
11851
11852 _ACEOF
11853
11854 # The following way of writing the cache mishandles newlines in values,
11855 # but we know of no workaround that is simple, portable, and efficient.
11856 # So, we kill variables containing newlines.
11857 # Ultrix sh set writes to stderr and can't be redirected directly,
11858 # and sets the high bit in the cache file unless we assign to the vars.
11859 (
11860   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11861     eval ac_val=\$$ac_var
11862     case $ac_val in #(
11863     *${as_nl}*)
11864       case $ac_var in #(
11865       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11866 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11867       esac
11868       case $ac_var in #(
11869       _ | IFS | as_nl) ;; #(
11870       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11871       *) { eval $ac_var=; unset $ac_var;} ;;
11872       esac ;;
11873     esac
11874   done
11875
11876   (set) 2>&1 |
11877     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11878     *${as_nl}ac_space=\ *)
11879       # `set' does not quote correctly, so add quotes: double-quote
11880       # substitution turns \\\\ into \\, and sed turns \\ into \.
11881       sed -n \
11882         "s/'/'\\\\''/g;
11883           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11884       ;; #(
11885     *)
11886       # `set' quotes correctly as required by POSIX, so do not add quotes.
11887       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11888       ;;
11889     esac |
11890     sort
11891 ) |
11892   sed '
11893      /^ac_cv_env_/b end
11894      t clear
11895      :clear
11896      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11897      t end
11898      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11899      :end' >>confcache
11900 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11901   if test -w "$cache_file"; then
11902     if test "x$cache_file" != "x/dev/null"; then
11903       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11904 $as_echo "$as_me: updating cache $cache_file" >&6;}
11905       if test ! -f "$cache_file" || test -h "$cache_file"; then
11906         cat confcache >"$cache_file"
11907       else
11908         case $cache_file in #(
11909         */* | ?:*)
11910           mv -f confcache "$cache_file"$$ &&
11911           mv -f "$cache_file"$$ "$cache_file" ;; #(
11912         *)
11913           mv -f confcache "$cache_file" ;;
11914         esac
11915       fi
11916     fi
11917   else
11918     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11919 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11920   fi
11921 fi
11922 rm -f confcache
11923
11924 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11925 # Let make expand exec_prefix.
11926 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11927
11928 DEFS=-DHAVE_CONFIG_H
11929
11930 ac_libobjs=
11931 ac_ltlibobjs=
11932 U=
11933 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11934   # 1. Remove the extension, and $U if already installed.
11935   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11936   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11937   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11938   #    will be set to the directory where LIBOBJS objects are built.
11939   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11940   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11941 done
11942 LIBOBJS=$ac_libobjs
11943
11944 LTLIBOBJS=$ac_ltlibobjs
11945
11946
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
11948 $as_echo_n "checking that generated files are newer than configure... " >&6; }
11949    if test -n "$am_sleep_pid"; then
11950      # Hide warnings about reused PIDs.
11951      wait $am_sleep_pid 2>/dev/null
11952    fi
11953    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
11954 $as_echo "done" >&6; }
11955  if test -n "$EXEEXT"; then
11956   am__EXEEXT_TRUE=
11957   am__EXEEXT_FALSE='#'
11958 else
11959   am__EXEEXT_TRUE='#'
11960   am__EXEEXT_FALSE=
11961 fi
11962
11963 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11964   as_fn_error $? "conditional \"AMDEP\" was never defined.
11965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11966 fi
11967 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11968   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11970 fi
11971 if test -z "${DOXYGEN_TRUE}" && test -z "${DOXYGEN_FALSE}"; then
11972   as_fn_error $? "conditional \"DOXYGEN\" was never defined.
11973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11974 fi
11975
11976 : "${CONFIG_STATUS=./config.status}"
11977 ac_write_fail=0
11978 ac_clean_files_save=$ac_clean_files
11979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11981 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11982 as_write_fail=0
11983 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11984 #! $SHELL
11985 # Generated by $as_me.
11986 # Run this file to recreate the current configuration.
11987 # Compiler output produced by configure, useful for debugging
11988 # configure, is in config.log if it exists.
11989
11990 debug=false
11991 ac_cs_recheck=false
11992 ac_cs_silent=false
11993
11994 SHELL=\${CONFIG_SHELL-$SHELL}
11995 export SHELL
11996 _ASEOF
11997 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11998 ## -------------------- ##
11999 ## M4sh Initialization. ##
12000 ## -------------------- ##
12001
12002 # Be more Bourne compatible
12003 DUALCASE=1; export DUALCASE # for MKS sh
12004 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12005   emulate sh
12006   NULLCMD=:
12007   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12008   # is contrary to our usage.  Disable this feature.
12009   alias -g '${1+"$@"}'='"$@"'
12010   setopt NO_GLOB_SUBST
12011 else
12012   case `(set -o) 2>/dev/null` in #(
12013   *posix*) :
12014     set -o posix ;; #(
12015   *) :
12016      ;;
12017 esac
12018 fi
12019
12020
12021 as_nl='
12022 '
12023 export as_nl
12024 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12025 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12026 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12027 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12028 # Prefer a ksh shell builtin over an external printf program on Solaris,
12029 # but without wasting forks for bash or zsh.
12030 if test -z "$BASH_VERSION$ZSH_VERSION" \
12031     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12032   as_echo='print -r --'
12033   as_echo_n='print -rn --'
12034 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12035   as_echo='printf %s\n'
12036   as_echo_n='printf %s'
12037 else
12038   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12039     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12040     as_echo_n='/usr/ucb/echo -n'
12041   else
12042     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12043     as_echo_n_body='eval
12044       arg=$1;
12045       case $arg in #(
12046       *"$as_nl"*)
12047         expr "X$arg" : "X\\(.*\\)$as_nl";
12048         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12049       esac;
12050       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12051     '
12052     export as_echo_n_body
12053     as_echo_n='sh -c $as_echo_n_body as_echo'
12054   fi
12055   export as_echo_body
12056   as_echo='sh -c $as_echo_body as_echo'
12057 fi
12058
12059 # The user is always right.
12060 if test "${PATH_SEPARATOR+set}" != set; then
12061   PATH_SEPARATOR=:
12062   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12063     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12064       PATH_SEPARATOR=';'
12065   }
12066 fi
12067
12068
12069 # IFS
12070 # We need space, tab and new line, in precisely that order.  Quoting is
12071 # there to prevent editors from complaining about space-tab.
12072 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12073 # splitting by setting IFS to empty value.)
12074 IFS=" ""        $as_nl"
12075
12076 # Find who we are.  Look in the path if we contain no directory separator.
12077 as_myself=
12078 case $0 in #((
12079   *[\\/]* ) as_myself=$0 ;;
12080   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH
12082 do
12083   IFS=$as_save_IFS
12084   test -z "$as_dir" && as_dir=.
12085     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12086   done
12087 IFS=$as_save_IFS
12088
12089      ;;
12090 esac
12091 # We did not find ourselves, most probably we were run as `sh COMMAND'
12092 # in which case we are not to be found in the path.
12093 if test "x$as_myself" = x; then
12094   as_myself=$0
12095 fi
12096 if test ! -f "$as_myself"; then
12097   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12098   exit 1
12099 fi
12100
12101 # Unset variables that we do not need and which cause bugs (e.g. in
12102 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12103 # suppresses any "Segmentation fault" message there.  '((' could
12104 # trigger a bug in pdksh 5.2.14.
12105 for as_var in BASH_ENV ENV MAIL MAILPATH
12106 do eval test x\${$as_var+set} = xset \
12107   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12108 done
12109 PS1='$ '
12110 PS2='> '
12111 PS4='+ '
12112
12113 # NLS nuisances.
12114 LC_ALL=C
12115 export LC_ALL
12116 LANGUAGE=C
12117 export LANGUAGE
12118
12119 # CDPATH.
12120 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12121
12122
12123 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12124 # ----------------------------------------
12125 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12126 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12127 # script with STATUS, using 1 if that was 0.
12128 as_fn_error ()
12129 {
12130   as_status=$1; test $as_status -eq 0 && as_status=1
12131   if test "$4"; then
12132     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12133     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12134   fi
12135   $as_echo "$as_me: error: $2" >&2
12136   as_fn_exit $as_status
12137 } # as_fn_error
12138
12139
12140 # as_fn_set_status STATUS
12141 # -----------------------
12142 # Set $? to STATUS, without forking.
12143 as_fn_set_status ()
12144 {
12145   return $1
12146 } # as_fn_set_status
12147
12148 # as_fn_exit STATUS
12149 # -----------------
12150 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12151 as_fn_exit ()
12152 {
12153   set +e
12154   as_fn_set_status $1
12155   exit $1
12156 } # as_fn_exit
12157
12158 # as_fn_unset VAR
12159 # ---------------
12160 # Portably unset VAR.
12161 as_fn_unset ()
12162 {
12163   { eval $1=; unset $1;}
12164 }
12165 as_unset=as_fn_unset
12166 # as_fn_append VAR VALUE
12167 # ----------------------
12168 # Append the text in VALUE to the end of the definition contained in VAR. Take
12169 # advantage of any shell optimizations that allow amortized linear growth over
12170 # repeated appends, instead of the typical quadratic growth present in naive
12171 # implementations.
12172 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12173   eval 'as_fn_append ()
12174   {
12175     eval $1+=\$2
12176   }'
12177 else
12178   as_fn_append ()
12179   {
12180     eval $1=\$$1\$2
12181   }
12182 fi # as_fn_append
12183
12184 # as_fn_arith ARG...
12185 # ------------------
12186 # Perform arithmetic evaluation on the ARGs, and store the result in the
12187 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12188 # must be portable across $(()) and expr.
12189 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12190   eval 'as_fn_arith ()
12191   {
12192     as_val=$(( $* ))
12193   }'
12194 else
12195   as_fn_arith ()
12196   {
12197     as_val=`expr "$@" || test $? -eq 1`
12198   }
12199 fi # as_fn_arith
12200
12201
12202 if expr a : '\(a\)' >/dev/null 2>&1 &&
12203    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12204   as_expr=expr
12205 else
12206   as_expr=false
12207 fi
12208
12209 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12210   as_basename=basename
12211 else
12212   as_basename=false
12213 fi
12214
12215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12216   as_dirname=dirname
12217 else
12218   as_dirname=false
12219 fi
12220
12221 as_me=`$as_basename -- "$0" ||
12222 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12223          X"$0" : 'X\(//\)$' \| \
12224          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12225 $as_echo X/"$0" |
12226     sed '/^.*\/\([^/][^/]*\)\/*$/{
12227             s//\1/
12228             q
12229           }
12230           /^X\/\(\/\/\)$/{
12231             s//\1/
12232             q
12233           }
12234           /^X\/\(\/\).*/{
12235             s//\1/
12236             q
12237           }
12238           s/.*/./; q'`
12239
12240 # Avoid depending upon Character Ranges.
12241 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12242 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12243 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12244 as_cr_digits='0123456789'
12245 as_cr_alnum=$as_cr_Letters$as_cr_digits
12246
12247 ECHO_C= ECHO_N= ECHO_T=
12248 case `echo -n x` in #(((((
12249 -n*)
12250   case `echo 'xy\c'` in
12251   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12252   xy)  ECHO_C='\c';;
12253   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12254        ECHO_T=' ';;
12255   esac;;
12256 *)
12257   ECHO_N='-n';;
12258 esac
12259
12260 rm -f conf$$ conf$$.exe conf$$.file
12261 if test -d conf$$.dir; then
12262   rm -f conf$$.dir/conf$$.file
12263 else
12264   rm -f conf$$.dir
12265   mkdir conf$$.dir 2>/dev/null
12266 fi
12267 if (echo >conf$$.file) 2>/dev/null; then
12268   if ln -s conf$$.file conf$$ 2>/dev/null; then
12269     as_ln_s='ln -s'
12270     # ... but there are two gotchas:
12271     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12272     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12273     # In both cases, we have to default to `cp -pR'.
12274     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12275       as_ln_s='cp -pR'
12276   elif ln conf$$.file conf$$ 2>/dev/null; then
12277     as_ln_s=ln
12278   else
12279     as_ln_s='cp -pR'
12280   fi
12281 else
12282   as_ln_s='cp -pR'
12283 fi
12284 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12285 rmdir conf$$.dir 2>/dev/null
12286
12287
12288 # as_fn_mkdir_p
12289 # -------------
12290 # Create "$as_dir" as a directory, including parents if necessary.
12291 as_fn_mkdir_p ()
12292 {
12293
12294   case $as_dir in #(
12295   -*) as_dir=./$as_dir;;
12296   esac
12297   test -d "$as_dir" || eval $as_mkdir_p || {
12298     as_dirs=
12299     while :; do
12300       case $as_dir in #(
12301       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12302       *) as_qdir=$as_dir;;
12303       esac
12304       as_dirs="'$as_qdir' $as_dirs"
12305       as_dir=`$as_dirname -- "$as_dir" ||
12306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12307          X"$as_dir" : 'X\(//\)[^/]' \| \
12308          X"$as_dir" : 'X\(//\)$' \| \
12309          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12310 $as_echo X"$as_dir" |
12311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12312             s//\1/
12313             q
12314           }
12315           /^X\(\/\/\)[^/].*/{
12316             s//\1/
12317             q
12318           }
12319           /^X\(\/\/\)$/{
12320             s//\1/
12321             q
12322           }
12323           /^X\(\/\).*/{
12324             s//\1/
12325             q
12326           }
12327           s/.*/./; q'`
12328       test -d "$as_dir" && break
12329     done
12330     test -z "$as_dirs" || eval "mkdir $as_dirs"
12331   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12332
12333
12334 } # as_fn_mkdir_p
12335 if mkdir -p . 2>/dev/null; then
12336   as_mkdir_p='mkdir -p "$as_dir"'
12337 else
12338   test -d ./-p && rmdir ./-p
12339   as_mkdir_p=false
12340 fi
12341
12342
12343 # as_fn_executable_p FILE
12344 # -----------------------
12345 # Test if FILE is an executable regular file.
12346 as_fn_executable_p ()
12347 {
12348   test -f "$1" && test -x "$1"
12349 } # as_fn_executable_p
12350 as_test_x='test -x'
12351 as_executable_p=as_fn_executable_p
12352
12353 # Sed expression to map a string onto a valid CPP name.
12354 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12355
12356 # Sed expression to map a string onto a valid variable name.
12357 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12358
12359
12360 exec 6>&1
12361 ## ----------------------------------- ##
12362 ## Main body of $CONFIG_STATUS script. ##
12363 ## ----------------------------------- ##
12364 _ASEOF
12365 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12366
12367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12368 # Save the log message, to keep $0 and so on meaningful, and to
12369 # report actual input values of CONFIG_FILES etc. instead of their
12370 # values after options handling.
12371 ac_log="
12372 This file was extended by yaml $as_me 0.1.7, which was
12373 generated by GNU Autoconf 2.69.  Invocation command line was
12374
12375   CONFIG_FILES    = $CONFIG_FILES
12376   CONFIG_HEADERS  = $CONFIG_HEADERS
12377   CONFIG_LINKS    = $CONFIG_LINKS
12378   CONFIG_COMMANDS = $CONFIG_COMMANDS
12379   $ $0 $@
12380
12381 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12382 "
12383
12384 _ACEOF
12385
12386 case $ac_config_files in *"
12387 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12388 esac
12389
12390 case $ac_config_headers in *"
12391 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12392 esac
12393
12394
12395 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12396 # Files that config.status was made for.
12397 config_files="$ac_config_files"
12398 config_headers="$ac_config_headers"
12399 config_commands="$ac_config_commands"
12400
12401 _ACEOF
12402
12403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12404 ac_cs_usage="\
12405 \`$as_me' instantiates files and other configuration actions
12406 from templates according to the current configuration.  Unless the files
12407 and actions are specified as TAGs, all are instantiated by default.
12408
12409 Usage: $0 [OPTION]... [TAG]...
12410
12411   -h, --help       print this help, then exit
12412   -V, --version    print version number and configuration settings, then exit
12413       --config     print configuration, then exit
12414   -q, --quiet, --silent
12415                    do not print progress messages
12416   -d, --debug      don't remove temporary files
12417       --recheck    update $as_me by reconfiguring in the same conditions
12418       --file=FILE[:TEMPLATE]
12419                    instantiate the configuration file FILE
12420       --header=FILE[:TEMPLATE]
12421                    instantiate the configuration header FILE
12422
12423 Configuration files:
12424 $config_files
12425
12426 Configuration headers:
12427 $config_headers
12428
12429 Configuration commands:
12430 $config_commands
12431
12432 Report bugs to <https://bitbucket.org/xi/libyaml/issues/new>."
12433
12434 _ACEOF
12435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12436 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12437 ac_cs_version="\\
12438 yaml config.status 0.1.7
12439 configured by $0, generated by GNU Autoconf 2.69,
12440   with options \\"\$ac_cs_config\\"
12441
12442 Copyright (C) 2012 Free Software Foundation, Inc.
12443 This config.status script is free software; the Free Software Foundation
12444 gives unlimited permission to copy, distribute and modify it."
12445
12446 ac_pwd='$ac_pwd'
12447 srcdir='$srcdir'
12448 INSTALL='$INSTALL'
12449 MKDIR_P='$MKDIR_P'
12450 AWK='$AWK'
12451 test -n "\$AWK" || AWK=awk
12452 _ACEOF
12453
12454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12455 # The default lists apply if the user does not specify any file.
12456 ac_need_defaults=:
12457 while test $# != 0
12458 do
12459   case $1 in
12460   --*=?*)
12461     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12462     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12463     ac_shift=:
12464     ;;
12465   --*=)
12466     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12467     ac_optarg=
12468     ac_shift=:
12469     ;;
12470   *)
12471     ac_option=$1
12472     ac_optarg=$2
12473     ac_shift=shift
12474     ;;
12475   esac
12476
12477   case $ac_option in
12478   # Handling of the options.
12479   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12480     ac_cs_recheck=: ;;
12481   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12482     $as_echo "$ac_cs_version"; exit ;;
12483   --config | --confi | --conf | --con | --co | --c )
12484     $as_echo "$ac_cs_config"; exit ;;
12485   --debug | --debu | --deb | --de | --d | -d )
12486     debug=: ;;
12487   --file | --fil | --fi | --f )
12488     $ac_shift
12489     case $ac_optarg in
12490     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12491     '') as_fn_error $? "missing file argument" ;;
12492     esac
12493     as_fn_append CONFIG_FILES " '$ac_optarg'"
12494     ac_need_defaults=false;;
12495   --header | --heade | --head | --hea )
12496     $ac_shift
12497     case $ac_optarg in
12498     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12499     esac
12500     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12501     ac_need_defaults=false;;
12502   --he | --h)
12503     # Conflict between --help and --header
12504     as_fn_error $? "ambiguous option: \`$1'
12505 Try \`$0 --help' for more information.";;
12506   --help | --hel | -h )
12507     $as_echo "$ac_cs_usage"; exit ;;
12508   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12509   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12510     ac_cs_silent=: ;;
12511
12512   # This is an error.
12513   -*) as_fn_error $? "unrecognized option: \`$1'
12514 Try \`$0 --help' for more information." ;;
12515
12516   *) as_fn_append ac_config_targets " $1"
12517      ac_need_defaults=false ;;
12518
12519   esac
12520   shift
12521 done
12522
12523 ac_configure_extra_args=
12524
12525 if $ac_cs_silent; then
12526   exec 6>/dev/null
12527   ac_configure_extra_args="$ac_configure_extra_args --silent"
12528 fi
12529
12530 _ACEOF
12531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12532 if \$ac_cs_recheck; then
12533   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12534   shift
12535   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12536   CONFIG_SHELL='$SHELL'
12537   export CONFIG_SHELL
12538   exec "\$@"
12539 fi
12540
12541 _ACEOF
12542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12543 exec 5>>config.log
12544 {
12545   echo
12546   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12547 ## Running $as_me. ##
12548 _ASBOX
12549   $as_echo "$ac_log"
12550 } >&5
12551
12552 _ACEOF
12553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12554 #
12555 # INIT-COMMANDS
12556 #
12557 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12558
12559
12560 # The HP-UX ksh and POSIX shell print the target directory to stdout
12561 # if CDPATH is set.
12562 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12563
12564 sed_quote_subst='$sed_quote_subst'
12565 double_quote_subst='$double_quote_subst'
12566 delay_variable_subst='$delay_variable_subst'
12567 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12568 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12569 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12570 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12571 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12572 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12573 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12574 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12575 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
12576 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12577 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12578 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12579 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12580 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12581 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12582 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12583 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12584 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12585 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12586 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12587 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12588 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12589 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12590 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12591 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12592 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12593 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12594 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12595 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12596 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
12597 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
12598 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12599 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12600 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12601 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12602 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12603 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
12604 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
12605 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
12606 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
12607 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12608 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12609 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
12610 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12611 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12612 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12613 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12614 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12615 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12616 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12617 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12618 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12619 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12620 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12621 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12622 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12623 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
12624 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
12625 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
12626 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12627 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12628 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12629 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12630 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12631 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12632 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12633 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12634 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
12635 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12636 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12637 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12638 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12639 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12640 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12641 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12642 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12643 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12644 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12645 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12646 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12647 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12648 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12649 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12650 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12651 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12652 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12653 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12654 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12655 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12656 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12657 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12658 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12659 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12660 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12661 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12662 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12663 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12664 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12665 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12666 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12667 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12668 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12669 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12670 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12671 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
12672 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12673 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12674 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12675 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12676 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12677 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12678 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12679 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12680 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12681 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12682 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12683 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12684 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12685 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12686 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12687 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12688 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12689 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12690 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12691 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12692 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12693 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12694 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12695 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12696 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12697
12698 LTCC='$LTCC'
12699 LTCFLAGS='$LTCFLAGS'
12700 compiler='$compiler_DEFAULT'
12701
12702 # A function that is used when there is no print builtin or printf.
12703 func_fallback_echo ()
12704 {
12705   eval 'cat <<_LTECHO_EOF
12706 \$1
12707 _LTECHO_EOF'
12708 }
12709
12710 # Quote evaled strings.
12711 for var in SHELL \
12712 ECHO \
12713 PATH_SEPARATOR \
12714 SED \
12715 GREP \
12716 EGREP \
12717 FGREP \
12718 LD \
12719 NM \
12720 LN_S \
12721 lt_SP2NL \
12722 lt_NL2SP \
12723 reload_flag \
12724 OBJDUMP \
12725 deplibs_check_method \
12726 file_magic_cmd \
12727 file_magic_glob \
12728 want_nocaseglob \
12729 DLLTOOL \
12730 sharedlib_from_linklib_cmd \
12731 AR \
12732 AR_FLAGS \
12733 archiver_list_spec \
12734 STRIP \
12735 RANLIB \
12736 CC \
12737 CFLAGS \
12738 compiler \
12739 lt_cv_sys_global_symbol_pipe \
12740 lt_cv_sys_global_symbol_to_cdecl \
12741 lt_cv_sys_global_symbol_to_c_name_address \
12742 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12743 nm_file_list_spec \
12744 lt_prog_compiler_no_builtin_flag \
12745 lt_prog_compiler_pic \
12746 lt_prog_compiler_wl \
12747 lt_prog_compiler_static \
12748 lt_cv_prog_compiler_c_o \
12749 need_locks \
12750 MANIFEST_TOOL \
12751 DSYMUTIL \
12752 NMEDIT \
12753 LIPO \
12754 OTOOL \
12755 OTOOL64 \
12756 shrext_cmds \
12757 export_dynamic_flag_spec \
12758 whole_archive_flag_spec \
12759 compiler_needs_object \
12760 with_gnu_ld \
12761 allow_undefined_flag \
12762 no_undefined_flag \
12763 hardcode_libdir_flag_spec \
12764 hardcode_libdir_separator \
12765 exclude_expsyms \
12766 include_expsyms \
12767 file_list_spec \
12768 variables_saved_for_relink \
12769 libname_spec \
12770 library_names_spec \
12771 soname_spec \
12772 install_override_mode \
12773 finish_eval \
12774 old_striplib \
12775 striplib; do
12776     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12777     *[\\\\\\\`\\"\\\$]*)
12778       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12779       ;;
12780     *)
12781       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12782       ;;
12783     esac
12784 done
12785
12786 # Double-quote double-evaled strings.
12787 for var in reload_cmds \
12788 old_postinstall_cmds \
12789 old_postuninstall_cmds \
12790 old_archive_cmds \
12791 extract_expsyms_cmds \
12792 old_archive_from_new_cmds \
12793 old_archive_from_expsyms_cmds \
12794 archive_cmds \
12795 archive_expsym_cmds \
12796 module_cmds \
12797 module_expsym_cmds \
12798 export_symbols_cmds \
12799 prelink_cmds \
12800 postlink_cmds \
12801 postinstall_cmds \
12802 postuninstall_cmds \
12803 finish_cmds \
12804 sys_lib_search_path_spec \
12805 sys_lib_dlsearch_path_spec; do
12806     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12807     *[\\\\\\\`\\"\\\$]*)
12808       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12809       ;;
12810     *)
12811       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12812       ;;
12813     esac
12814 done
12815
12816 ac_aux_dir='$ac_aux_dir'
12817 xsi_shell='$xsi_shell'
12818 lt_shell_append='$lt_shell_append'
12819
12820 # See if we are running on zsh, and set the options which allow our
12821 # commands through without removal of \ escapes INIT.
12822 if test -n "\${ZSH_VERSION+set}" ; then
12823    setopt NO_GLOB_SUBST
12824 fi
12825
12826
12827     PACKAGE='$PACKAGE'
12828     VERSION='$VERSION'
12829     TIMESTAMP='$TIMESTAMP'
12830     RM='$RM'
12831     ofile='$ofile'
12832
12833
12834
12835
12836 _ACEOF
12837
12838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12839
12840 # Handling of arguments.
12841 for ac_config_target in $ac_config_targets
12842 do
12843   case $ac_config_target in
12844     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12845     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12846     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12847     "yaml-0.1.pc") CONFIG_FILES="$CONFIG_FILES yaml-0.1.pc" ;;
12848     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
12849     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12850     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12851     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
12852     "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
12853
12854   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12855   esac
12856 done
12857
12858
12859 # If the user did not use the arguments to specify the items to instantiate,
12860 # then the envvar interface is used.  Set only those that are not.
12861 # We use the long form for the default assignment because of an extremely
12862 # bizarre bug on SunOS 4.1.3.
12863 if $ac_need_defaults; then
12864   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12865   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12866   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12867 fi
12868
12869 # Have a temporary directory for convenience.  Make it in the build tree
12870 # simply because there is no reason against having it here, and in addition,
12871 # creating and moving files from /tmp can sometimes cause problems.
12872 # Hook for its removal unless debugging.
12873 # Note that there is a small window in which the directory will not be cleaned:
12874 # after its creation but before its name has been assigned to `$tmp'.
12875 $debug ||
12876 {
12877   tmp= ac_tmp=
12878   trap 'exit_status=$?
12879   : "${ac_tmp:=$tmp}"
12880   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12881 ' 0
12882   trap 'as_fn_exit 1' 1 2 13 15
12883 }
12884 # Create a (secure) tmp directory for tmp files.
12885
12886 {
12887   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12888   test -d "$tmp"
12889 }  ||
12890 {
12891   tmp=./conf$$-$RANDOM
12892   (umask 077 && mkdir "$tmp")
12893 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12894 ac_tmp=$tmp
12895
12896 # Set up the scripts for CONFIG_FILES section.
12897 # No need to generate them if there are no CONFIG_FILES.
12898 # This happens for instance with `./config.status config.h'.
12899 if test -n "$CONFIG_FILES"; then
12900
12901
12902 ac_cr=`echo X | tr X '\015'`
12903 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12904 # But we know of no other shell where ac_cr would be empty at this
12905 # point, so we can use a bashism as a fallback.
12906 if test "x$ac_cr" = x; then
12907   eval ac_cr=\$\'\\r\'
12908 fi
12909 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12910 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12911   ac_cs_awk_cr='\\r'
12912 else
12913   ac_cs_awk_cr=$ac_cr
12914 fi
12915
12916 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12917 _ACEOF
12918
12919
12920 {
12921   echo "cat >conf$$subs.awk <<_ACEOF" &&
12922   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12923   echo "_ACEOF"
12924 } >conf$$subs.sh ||
12925   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12926 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12927 ac_delim='%!_!# '
12928 for ac_last_try in false false false false false :; do
12929   . ./conf$$subs.sh ||
12930     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12931
12932   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12933   if test $ac_delim_n = $ac_delim_num; then
12934     break
12935   elif $ac_last_try; then
12936     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12937   else
12938     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12939   fi
12940 done
12941 rm -f conf$$subs.sh
12942
12943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12944 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12945 _ACEOF
12946 sed -n '
12947 h
12948 s/^/S["/; s/!.*/"]=/
12949 p
12950 g
12951 s/^[^!]*!//
12952 :repl
12953 t repl
12954 s/'"$ac_delim"'$//
12955 t delim
12956 :nl
12957 h
12958 s/\(.\{148\}\)..*/\1/
12959 t more1
12960 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12961 p
12962 n
12963 b repl
12964 :more1
12965 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12966 p
12967 g
12968 s/.\{148\}//
12969 t nl
12970 :delim
12971 h
12972 s/\(.\{148\}\)..*/\1/
12973 t more2
12974 s/["\\]/\\&/g; s/^/"/; s/$/"/
12975 p
12976 b
12977 :more2
12978 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12979 p
12980 g
12981 s/.\{148\}//
12982 t delim
12983 ' <conf$$subs.awk | sed '
12984 /^[^""]/{
12985   N
12986   s/\n//
12987 }
12988 ' >>$CONFIG_STATUS || ac_write_fail=1
12989 rm -f conf$$subs.awk
12990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12991 _ACAWK
12992 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12993   for (key in S) S_is_set[key] = 1
12994   FS = "\a"
12995
12996 }
12997 {
12998   line = $ 0
12999   nfields = split(line, field, "@")
13000   substed = 0
13001   len = length(field[1])
13002   for (i = 2; i < nfields; i++) {
13003     key = field[i]
13004     keylen = length(key)
13005     if (S_is_set[key]) {
13006       value = S[key]
13007       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13008       len += length(value) + length(field[++i])
13009       substed = 1
13010     } else
13011       len += 1 + keylen
13012   }
13013
13014   print line
13015 }
13016
13017 _ACAWK
13018 _ACEOF
13019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13020 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13021   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13022 else
13023   cat
13024 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13025   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13026 _ACEOF
13027
13028 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13029 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13030 # trailing colons and then remove the whole line if VPATH becomes empty
13031 # (actually we leave an empty line to preserve line numbers).
13032 if test "x$srcdir" = x.; then
13033   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
13034 h
13035 s///
13036 s/^/:/
13037 s/[      ]*$/:/
13038 s/:\$(srcdir):/:/g
13039 s/:\${srcdir}:/:/g
13040 s/:@srcdir@:/:/g
13041 s/^:*//
13042 s/:*$//
13043 x
13044 s/\(=[   ]*\).*/\1/
13045 G
13046 s/\n//
13047 s/^[^=]*=[       ]*$//
13048 }'
13049 fi
13050
13051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13052 fi # test -n "$CONFIG_FILES"
13053
13054 # Set up the scripts for CONFIG_HEADERS section.
13055 # No need to generate them if there are no CONFIG_HEADERS.
13056 # This happens for instance with `./config.status Makefile'.
13057 if test -n "$CONFIG_HEADERS"; then
13058 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13059 BEGIN {
13060 _ACEOF
13061
13062 # Transform confdefs.h into an awk script `defines.awk', embedded as
13063 # here-document in config.status, that substitutes the proper values into
13064 # config.h.in to produce config.h.
13065
13066 # Create a delimiter string that does not exist in confdefs.h, to ease
13067 # handling of long lines.
13068 ac_delim='%!_!# '
13069 for ac_last_try in false false :; do
13070   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13071   if test -z "$ac_tt"; then
13072     break
13073   elif $ac_last_try; then
13074     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13075   else
13076     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13077   fi
13078 done
13079
13080 # For the awk script, D is an array of macro values keyed by name,
13081 # likewise P contains macro parameters if any.  Preserve backslash
13082 # newline sequences.
13083
13084 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13085 sed -n '
13086 s/.\{148\}/&'"$ac_delim"'/g
13087 t rset
13088 :rset
13089 s/^[     ]*#[    ]*define[       ][      ]*/ /
13090 t def
13091 d
13092 :def
13093 s/\\$//
13094 t bsnl
13095 s/["\\]/\\&/g
13096 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13097 D["\1"]=" \3"/p
13098 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
13099 d
13100 :bsnl
13101 s/["\\]/\\&/g
13102 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
13103 D["\1"]=" \3\\\\\\n"\\/p
13104 t cont
13105 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13106 t cont
13107 d
13108 :cont
13109 n
13110 s/.\{148\}/&'"$ac_delim"'/g
13111 t clear
13112 :clear
13113 s/\\$//
13114 t bsnlc
13115 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13116 d
13117 :bsnlc
13118 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13119 b cont
13120 ' <confdefs.h | sed '
13121 s/'"$ac_delim"'/"\\\
13122 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13123
13124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13125   for (key in D) D_is_set[key] = 1
13126   FS = "\a"
13127 }
13128 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13129   line = \$ 0
13130   split(line, arg, " ")
13131   if (arg[1] == "#") {
13132     defundef = arg[2]
13133     mac1 = arg[3]
13134   } else {
13135     defundef = substr(arg[1], 2)
13136     mac1 = arg[2]
13137   }
13138   split(mac1, mac2, "(") #)
13139   macro = mac2[1]
13140   prefix = substr(line, 1, index(line, defundef) - 1)
13141   if (D_is_set[macro]) {
13142     # Preserve the white space surrounding the "#".
13143     print prefix "define", macro P[macro] D[macro]
13144     next
13145   } else {
13146     # Replace #undef with comments.  This is necessary, for example,
13147     # in the case of _POSIX_SOURCE, which is predefined and required
13148     # on some systems where configure will not decide to define it.
13149     if (defundef == "undef") {
13150       print "/*", prefix defundef, macro, "*/"
13151       next
13152     }
13153   }
13154 }
13155 { print }
13156 _ACAWK
13157 _ACEOF
13158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13159   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13160 fi # test -n "$CONFIG_HEADERS"
13161
13162
13163 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13164 shift
13165 for ac_tag
13166 do
13167   case $ac_tag in
13168   :[FHLC]) ac_mode=$ac_tag; continue;;
13169   esac
13170   case $ac_mode$ac_tag in
13171   :[FHL]*:*);;
13172   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13173   :[FH]-) ac_tag=-:-;;
13174   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13175   esac
13176   ac_save_IFS=$IFS
13177   IFS=:
13178   set x $ac_tag
13179   IFS=$ac_save_IFS
13180   shift
13181   ac_file=$1
13182   shift
13183
13184   case $ac_mode in
13185   :L) ac_source=$1;;
13186   :[FH])
13187     ac_file_inputs=
13188     for ac_f
13189     do
13190       case $ac_f in
13191       -) ac_f="$ac_tmp/stdin";;
13192       *) # Look for the file first in the build tree, then in the source tree
13193          # (if the path is not absolute).  The absolute path cannot be DOS-style,
13194          # because $ac_f cannot contain `:'.
13195          test -f "$ac_f" ||
13196            case $ac_f in
13197            [\\/$]*) false;;
13198            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13199            esac ||
13200            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13201       esac
13202       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13203       as_fn_append ac_file_inputs " '$ac_f'"
13204     done
13205
13206     # Let's still pretend it is `configure' which instantiates (i.e., don't
13207     # use $as_me), people would be surprised to read:
13208     #    /* config.h.  Generated by config.status.  */
13209     configure_input='Generated from '`
13210           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13211         `' by configure.'
13212     if test x"$ac_file" != x-; then
13213       configure_input="$ac_file.  $configure_input"
13214       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13215 $as_echo "$as_me: creating $ac_file" >&6;}
13216     fi
13217     # Neutralize special characters interpreted by sed in replacement strings.
13218     case $configure_input in #(
13219     *\&* | *\|* | *\\* )
13220        ac_sed_conf_input=`$as_echo "$configure_input" |
13221        sed 's/[\\\\&|]/\\\\&/g'`;; #(
13222     *) ac_sed_conf_input=$configure_input;;
13223     esac
13224
13225     case $ac_tag in
13226     *:-:* | *:-) cat >"$ac_tmp/stdin" \
13227       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13228     esac
13229     ;;
13230   esac
13231
13232   ac_dir=`$as_dirname -- "$ac_file" ||
13233 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13234          X"$ac_file" : 'X\(//\)[^/]' \| \
13235          X"$ac_file" : 'X\(//\)$' \| \
13236          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13237 $as_echo X"$ac_file" |
13238     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13239             s//\1/
13240             q
13241           }
13242           /^X\(\/\/\)[^/].*/{
13243             s//\1/
13244             q
13245           }
13246           /^X\(\/\/\)$/{
13247             s//\1/
13248             q
13249           }
13250           /^X\(\/\).*/{
13251             s//\1/
13252             q
13253           }
13254           s/.*/./; q'`
13255   as_dir="$ac_dir"; as_fn_mkdir_p
13256   ac_builddir=.
13257
13258 case "$ac_dir" in
13259 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13260 *)
13261   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13262   # A ".." for each directory in $ac_dir_suffix.
13263   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13264   case $ac_top_builddir_sub in
13265   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13266   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13267   esac ;;
13268 esac
13269 ac_abs_top_builddir=$ac_pwd
13270 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13271 # for backward compatibility:
13272 ac_top_builddir=$ac_top_build_prefix
13273
13274 case $srcdir in
13275   .)  # We are building in place.
13276     ac_srcdir=.
13277     ac_top_srcdir=$ac_top_builddir_sub
13278     ac_abs_top_srcdir=$ac_pwd ;;
13279   [\\/]* | ?:[\\/]* )  # Absolute name.
13280     ac_srcdir=$srcdir$ac_dir_suffix;
13281     ac_top_srcdir=$srcdir
13282     ac_abs_top_srcdir=$srcdir ;;
13283   *) # Relative name.
13284     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13285     ac_top_srcdir=$ac_top_build_prefix$srcdir
13286     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13287 esac
13288 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13289
13290
13291   case $ac_mode in
13292   :F)
13293   #
13294   # CONFIG_FILE
13295   #
13296
13297   case $INSTALL in
13298   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13299   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13300   esac
13301   ac_MKDIR_P=$MKDIR_P
13302   case $MKDIR_P in
13303   [\\/$]* | ?:[\\/]* ) ;;
13304   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13305   esac
13306 _ACEOF
13307
13308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13309 # If the template does not know about datarootdir, expand it.
13310 # FIXME: This hack should be removed a few years after 2.60.
13311 ac_datarootdir_hack=; ac_datarootdir_seen=
13312 ac_sed_dataroot='
13313 /datarootdir/ {
13314   p
13315   q
13316 }
13317 /@datadir@/p
13318 /@docdir@/p
13319 /@infodir@/p
13320 /@localedir@/p
13321 /@mandir@/p'
13322 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13323 *datarootdir*) ac_datarootdir_seen=yes;;
13324 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13325   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13326 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13327 _ACEOF
13328 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13329   ac_datarootdir_hack='
13330   s&@datadir@&$datadir&g
13331   s&@docdir@&$docdir&g
13332   s&@infodir@&$infodir&g
13333   s&@localedir@&$localedir&g
13334   s&@mandir@&$mandir&g
13335   s&\\\${datarootdir}&$datarootdir&g' ;;
13336 esac
13337 _ACEOF
13338
13339 # Neutralize VPATH when `$srcdir' = `.'.
13340 # Shell code in configure.ac might set extrasub.
13341 # FIXME: do we really want to maintain this feature?
13342 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13343 ac_sed_extra="$ac_vpsub
13344 $extrasub
13345 _ACEOF
13346 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13347 :t
13348 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13349 s|@configure_input@|$ac_sed_conf_input|;t t
13350 s&@top_builddir@&$ac_top_builddir_sub&;t t
13351 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13352 s&@srcdir@&$ac_srcdir&;t t
13353 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13354 s&@top_srcdir@&$ac_top_srcdir&;t t
13355 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13356 s&@builddir@&$ac_builddir&;t t
13357 s&@abs_builddir@&$ac_abs_builddir&;t t
13358 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13359 s&@INSTALL@&$ac_INSTALL&;t t
13360 s&@MKDIR_P@&$ac_MKDIR_P&;t t
13361 $ac_datarootdir_hack
13362 "
13363 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13364   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13365
13366 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13367   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13368   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13369       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13370   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13371 which seems to be undefined.  Please make sure it is defined" >&5
13372 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13373 which seems to be undefined.  Please make sure it is defined" >&2;}
13374
13375   rm -f "$ac_tmp/stdin"
13376   case $ac_file in
13377   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13378   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13379   esac \
13380   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13381  ;;
13382   :H)
13383   #
13384   # CONFIG_HEADER
13385   #
13386   if test x"$ac_file" != x-; then
13387     {
13388       $as_echo "/* $configure_input  */" \
13389       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13390     } >"$ac_tmp/config.h" \
13391       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13392     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13393       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13394 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13395     else
13396       rm -f "$ac_file"
13397       mv "$ac_tmp/config.h" "$ac_file" \
13398         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13399     fi
13400   else
13401     $as_echo "/* $configure_input  */" \
13402       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13403       || as_fn_error $? "could not create -" "$LINENO" 5
13404   fi
13405 # Compute "$ac_file"'s index in $config_headers.
13406 _am_arg="$ac_file"
13407 _am_stamp_count=1
13408 for _am_header in $config_headers :; do
13409   case $_am_header in
13410     $_am_arg | $_am_arg:* )
13411       break ;;
13412     * )
13413       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13414   esac
13415 done
13416 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13417 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13418          X"$_am_arg" : 'X\(//\)[^/]' \| \
13419          X"$_am_arg" : 'X\(//\)$' \| \
13420          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13421 $as_echo X"$_am_arg" |
13422     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13423             s//\1/
13424             q
13425           }
13426           /^X\(\/\/\)[^/].*/{
13427             s//\1/
13428             q
13429           }
13430           /^X\(\/\/\)$/{
13431             s//\1/
13432             q
13433           }
13434           /^X\(\/\).*/{
13435             s//\1/
13436             q
13437           }
13438           s/.*/./; q'`/stamp-h$_am_stamp_count
13439  ;;
13440
13441   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13442 $as_echo "$as_me: executing $ac_file commands" >&6;}
13443  ;;
13444   esac
13445
13446
13447   case $ac_file$ac_mode in
13448     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13449   # Older Autoconf quotes --file arguments for eval, but not when files
13450   # are listed without --file.  Let's play safe and only enable the eval
13451   # if we detect the quoting.
13452   case $CONFIG_FILES in
13453   *\'*) eval set x "$CONFIG_FILES" ;;
13454   *)   set x $CONFIG_FILES ;;
13455   esac
13456   shift
13457   for mf
13458   do
13459     # Strip MF so we end up with the name of the file.
13460     mf=`echo "$mf" | sed -e 's/:.*$//'`
13461     # Check whether this is an Automake generated Makefile or not.
13462     # We used to match only the files named 'Makefile.in', but
13463     # some people rename them; so instead we look at the file content.
13464     # Grep'ing the first line is not enough: some people post-process
13465     # each Makefile.in and add a new line on top of each file to say so.
13466     # Grep'ing the whole file is not good either: AIX grep has a line
13467     # limit of 2048, but all sed's we know have understand at least 4000.
13468     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13469       dirpart=`$as_dirname -- "$mf" ||
13470 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13471          X"$mf" : 'X\(//\)[^/]' \| \
13472          X"$mf" : 'X\(//\)$' \| \
13473          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13474 $as_echo X"$mf" |
13475     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13476             s//\1/
13477             q
13478           }
13479           /^X\(\/\/\)[^/].*/{
13480             s//\1/
13481             q
13482           }
13483           /^X\(\/\/\)$/{
13484             s//\1/
13485             q
13486           }
13487           /^X\(\/\).*/{
13488             s//\1/
13489             q
13490           }
13491           s/.*/./; q'`
13492     else
13493       continue
13494     fi
13495     # Extract the definition of DEPDIR, am__include, and am__quote
13496     # from the Makefile without running 'make'.
13497     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13498     test -z "$DEPDIR" && continue
13499     am__include=`sed -n 's/^am__include = //p' < "$mf"`
13500     test -z "$am__include" && continue
13501     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13502     # Find all dependency output files, they are included files with
13503     # $(DEPDIR) in their names.  We invoke sed twice because it is the
13504     # simplest approach to changing $(DEPDIR) to its actual value in the
13505     # expansion.
13506     for file in `sed -n "
13507       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13508          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
13509       # Make sure the directory exists.
13510       test -f "$dirpart/$file" && continue
13511       fdir=`$as_dirname -- "$file" ||
13512 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13513          X"$file" : 'X\(//\)[^/]' \| \
13514          X"$file" : 'X\(//\)$' \| \
13515          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13516 $as_echo X"$file" |
13517     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13518             s//\1/
13519             q
13520           }
13521           /^X\(\/\/\)[^/].*/{
13522             s//\1/
13523             q
13524           }
13525           /^X\(\/\/\)$/{
13526             s//\1/
13527             q
13528           }
13529           /^X\(\/\).*/{
13530             s//\1/
13531             q
13532           }
13533           s/.*/./; q'`
13534       as_dir=$dirpart/$fdir; as_fn_mkdir_p
13535       # echo "creating $dirpart/$file"
13536       echo '# dummy' > "$dirpart/$file"
13537     done
13538   done
13539 }
13540  ;;
13541     "libtool":C)
13542
13543     # See if we are running on zsh, and set the options which allow our
13544     # commands through without removal of \ escapes.
13545     if test -n "${ZSH_VERSION+set}" ; then
13546       setopt NO_GLOB_SUBST
13547     fi
13548
13549     cfgfile="${ofile}T"
13550     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13551     $RM "$cfgfile"
13552
13553     cat <<_LT_EOF >> "$cfgfile"
13554 #! $SHELL
13555
13556 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13557 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13558 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13559 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
13560 #
13561 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13562 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
13563 #                 Foundation, Inc.
13564 #   Written by Gordon Matzigkeit, 1996
13565 #
13566 #   This file is part of GNU Libtool.
13567 #
13568 # GNU Libtool is free software; you can redistribute it and/or
13569 # modify it under the terms of the GNU General Public License as
13570 # published by the Free Software Foundation; either version 2 of
13571 # the License, or (at your option) any later version.
13572 #
13573 # As a special exception to the GNU General Public License,
13574 # if you distribute this file as part of a program or library that
13575 # is built using GNU Libtool, you may include this file under the
13576 # same distribution terms that you use for the rest of that program.
13577 #
13578 # GNU Libtool is distributed in the hope that it will be useful,
13579 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13580 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13581 # GNU General Public License for more details.
13582 #
13583 # You should have received a copy of the GNU General Public License
13584 # along with GNU Libtool; see the file COPYING.  If not, a copy
13585 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13586 # obtained by writing to the Free Software Foundation, Inc.,
13587 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13588
13589
13590 # The names of the tagged configurations supported by this script.
13591 available_tags=""
13592
13593 # ### BEGIN LIBTOOL CONFIG
13594
13595 # Which release of libtool.m4 was used?
13596 macro_version=$macro_version
13597 macro_revision=$macro_revision
13598
13599 # Whether or not to build shared libraries.
13600 build_libtool_libs=$enable_shared
13601
13602 # Whether or not to build static libraries.
13603 build_old_libs=$enable_static
13604
13605 # What type of objects to build.
13606 pic_mode=$pic_mode
13607
13608 # Whether or not to optimize for fast installation.
13609 fast_install=$enable_fast_install
13610
13611 # Shell to use when invoking shell scripts.
13612 SHELL=$lt_SHELL
13613
13614 # An echo program that protects backslashes.
13615 ECHO=$lt_ECHO
13616
13617 # The PATH separator for the build system.
13618 PATH_SEPARATOR=$lt_PATH_SEPARATOR
13619
13620 # The host system.
13621 host_alias=$host_alias
13622 host=$host
13623 host_os=$host_os
13624
13625 # The build system.
13626 build_alias=$build_alias
13627 build=$build
13628 build_os=$build_os
13629
13630 # A sed program that does not truncate output.
13631 SED=$lt_SED
13632
13633 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
13634 Xsed="\$SED -e 1s/^X//"
13635
13636 # A grep program that handles long lines.
13637 GREP=$lt_GREP
13638
13639 # An ERE matcher.
13640 EGREP=$lt_EGREP
13641
13642 # A literal string matcher.
13643 FGREP=$lt_FGREP
13644
13645 # A BSD- or MS-compatible name lister.
13646 NM=$lt_NM
13647
13648 # Whether we need soft or hard links.
13649 LN_S=$lt_LN_S
13650
13651 # What is the maximum length of a command?
13652 max_cmd_len=$max_cmd_len
13653
13654 # Object file suffix (normally "o").
13655 objext=$ac_objext
13656
13657 # Executable file suffix (normally "").
13658 exeext=$exeext
13659
13660 # whether the shell understands "unset".
13661 lt_unset=$lt_unset
13662
13663 # turn spaces into newlines.
13664 SP2NL=$lt_lt_SP2NL
13665
13666 # turn newlines into spaces.
13667 NL2SP=$lt_lt_NL2SP
13668
13669 # convert \$build file names to \$host format.
13670 to_host_file_cmd=$lt_cv_to_host_file_cmd
13671
13672 # convert \$build files to toolchain format.
13673 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
13674
13675 # An object symbol dumper.
13676 OBJDUMP=$lt_OBJDUMP
13677
13678 # Method to check whether dependent libraries are shared objects.
13679 deplibs_check_method=$lt_deplibs_check_method
13680
13681 # Command to use when deplibs_check_method = "file_magic".
13682 file_magic_cmd=$lt_file_magic_cmd
13683
13684 # How to find potential files when deplibs_check_method = "file_magic".
13685 file_magic_glob=$lt_file_magic_glob
13686
13687 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
13688 want_nocaseglob=$lt_want_nocaseglob
13689
13690 # DLL creation program.
13691 DLLTOOL=$lt_DLLTOOL
13692
13693 # Command to associate shared and link libraries.
13694 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
13695
13696 # The archiver.
13697 AR=$lt_AR
13698
13699 # Flags to create an archive.
13700 AR_FLAGS=$lt_AR_FLAGS
13701
13702 # How to feed a file listing to the archiver.
13703 archiver_list_spec=$lt_archiver_list_spec
13704
13705 # A symbol stripping program.
13706 STRIP=$lt_STRIP
13707
13708 # Commands used to install an old-style archive.
13709 RANLIB=$lt_RANLIB
13710 old_postinstall_cmds=$lt_old_postinstall_cmds
13711 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13712
13713 # Whether to use a lock for old archive extraction.
13714 lock_old_archive_extraction=$lock_old_archive_extraction
13715
13716 # A C compiler.
13717 LTCC=$lt_CC
13718
13719 # LTCC compiler flags.
13720 LTCFLAGS=$lt_CFLAGS
13721
13722 # Take the output of nm and produce a listing of raw symbols and C names.
13723 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13724
13725 # Transform the output of nm in a proper C declaration.
13726 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13727
13728 # Transform the output of nm in a C name address pair.
13729 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13730
13731 # Transform the output of nm in a C name address pair when lib prefix is needed.
13732 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13733
13734 # Specify filename containing input files for \$NM.
13735 nm_file_list_spec=$lt_nm_file_list_spec
13736
13737 # The root where to search for dependent libraries,and in which our libraries should be installed.
13738 lt_sysroot=$lt_sysroot
13739
13740 # The name of the directory that contains temporary libtool files.
13741 objdir=$objdir
13742
13743 # Used to examine libraries when file_magic_cmd begins with "file".
13744 MAGIC_CMD=$MAGIC_CMD
13745
13746 # Must we lock files when doing compilation?
13747 need_locks=$lt_need_locks
13748
13749 # Manifest tool.
13750 MANIFEST_TOOL=$lt_MANIFEST_TOOL
13751
13752 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13753 DSYMUTIL=$lt_DSYMUTIL
13754
13755 # Tool to change global to local symbols on Mac OS X.
13756 NMEDIT=$lt_NMEDIT
13757
13758 # Tool to manipulate fat objects and archives on Mac OS X.
13759 LIPO=$lt_LIPO
13760
13761 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13762 OTOOL=$lt_OTOOL
13763
13764 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13765 OTOOL64=$lt_OTOOL64
13766
13767 # Old archive suffix (normally "a").
13768 libext=$libext
13769
13770 # Shared library suffix (normally ".so").
13771 shrext_cmds=$lt_shrext_cmds
13772
13773 # The commands to extract the exported symbol list from a shared archive.
13774 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13775
13776 # Variables whose values should be saved in libtool wrapper scripts and
13777 # restored at link time.
13778 variables_saved_for_relink=$lt_variables_saved_for_relink
13779
13780 # Do we need the "lib" prefix for modules?
13781 need_lib_prefix=$need_lib_prefix
13782
13783 # Do we need a version for libraries?
13784 need_version=$need_version
13785
13786 # Library versioning type.
13787 version_type=$version_type
13788
13789 # Shared library runtime path variable.
13790 runpath_var=$runpath_var
13791
13792 # Shared library path variable.
13793 shlibpath_var=$shlibpath_var
13794
13795 # Is shlibpath searched before the hard-coded library search path?
13796 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13797
13798 # Format of library name prefix.
13799 libname_spec=$lt_libname_spec
13800
13801 # List of archive names.  First name is the real one, the rest are links.
13802 # The last name is the one that the linker finds with -lNAME
13803 library_names_spec=$lt_library_names_spec
13804
13805 # The coded name of the library, if different from the real name.
13806 soname_spec=$lt_soname_spec
13807
13808 # Permission mode override for installation of shared libraries.
13809 install_override_mode=$lt_install_override_mode
13810
13811 # Command to use after installation of a shared archive.
13812 postinstall_cmds=$lt_postinstall_cmds
13813
13814 # Command to use after uninstallation of a shared archive.
13815 postuninstall_cmds=$lt_postuninstall_cmds
13816
13817 # Commands used to finish a libtool library installation in a directory.
13818 finish_cmds=$lt_finish_cmds
13819
13820 # As "finish_cmds", except a single script fragment to be evaled but
13821 # not shown.
13822 finish_eval=$lt_finish_eval
13823
13824 # Whether we should hardcode library paths into libraries.
13825 hardcode_into_libs=$hardcode_into_libs
13826
13827 # Compile-time system search path for libraries.
13828 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13829
13830 # Run-time system search path for libraries.
13831 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13832
13833 # Whether dlopen is supported.
13834 dlopen_support=$enable_dlopen
13835
13836 # Whether dlopen of programs is supported.
13837 dlopen_self=$enable_dlopen_self
13838
13839 # Whether dlopen of statically linked programs is supported.
13840 dlopen_self_static=$enable_dlopen_self_static
13841
13842 # Commands to strip libraries.
13843 old_striplib=$lt_old_striplib
13844 striplib=$lt_striplib
13845
13846
13847 # The linker used to build libraries.
13848 LD=$lt_LD
13849
13850 # How to create reloadable object files.
13851 reload_flag=$lt_reload_flag
13852 reload_cmds=$lt_reload_cmds
13853
13854 # Commands used to build an old-style archive.
13855 old_archive_cmds=$lt_old_archive_cmds
13856
13857 # A language specific compiler.
13858 CC=$lt_compiler
13859
13860 # Is the compiler the GNU compiler?
13861 with_gcc=$GCC
13862
13863 # Compiler flag to turn off builtin functions.
13864 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13865
13866 # Additional compiler flags for building library objects.
13867 pic_flag=$lt_lt_prog_compiler_pic
13868
13869 # How to pass a linker flag through the compiler.
13870 wl=$lt_lt_prog_compiler_wl
13871
13872 # Compiler flag to prevent dynamic linking.
13873 link_static_flag=$lt_lt_prog_compiler_static
13874
13875 # Does compiler simultaneously support -c and -o options?
13876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13877
13878 # Whether or not to add -lc for building shared libraries.
13879 build_libtool_need_lc=$archive_cmds_need_lc
13880
13881 # Whether or not to disallow shared libs when runtime libs are static.
13882 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13883
13884 # Compiler flag to allow reflexive dlopens.
13885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13886
13887 # Compiler flag to generate shared objects directly from archives.
13888 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13889
13890 # Whether the compiler copes with passing no objects directly.
13891 compiler_needs_object=$lt_compiler_needs_object
13892
13893 # Create an old-style archive from a shared archive.
13894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13895
13896 # Create a temporary old-style archive to link instead of a shared archive.
13897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13898
13899 # Commands used to build a shared archive.
13900 archive_cmds=$lt_archive_cmds
13901 archive_expsym_cmds=$lt_archive_expsym_cmds
13902
13903 # Commands used to build a loadable module if different from building
13904 # a shared archive.
13905 module_cmds=$lt_module_cmds
13906 module_expsym_cmds=$lt_module_expsym_cmds
13907
13908 # Whether we are building with GNU ld or not.
13909 with_gnu_ld=$lt_with_gnu_ld
13910
13911 # Flag that allows shared libraries with undefined symbols to be built.
13912 allow_undefined_flag=$lt_allow_undefined_flag
13913
13914 # Flag that enforces no undefined symbols.
13915 no_undefined_flag=$lt_no_undefined_flag
13916
13917 # Flag to hardcode \$libdir into a binary during linking.
13918 # This must work even if \$libdir does not exist
13919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13920
13921 # Whether we need a single "-rpath" flag with a separated argument.
13922 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13923
13924 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13925 # DIR into the resulting binary.
13926 hardcode_direct=$hardcode_direct
13927
13928 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13929 # DIR into the resulting binary and the resulting library dependency is
13930 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13931 # library is relocated.
13932 hardcode_direct_absolute=$hardcode_direct_absolute
13933
13934 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13935 # into the resulting binary.
13936 hardcode_minus_L=$hardcode_minus_L
13937
13938 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13939 # into the resulting binary.
13940 hardcode_shlibpath_var=$hardcode_shlibpath_var
13941
13942 # Set to "yes" if building a shared library automatically hardcodes DIR
13943 # into the library and all subsequent libraries and executables linked
13944 # against it.
13945 hardcode_automatic=$hardcode_automatic
13946
13947 # Set to yes if linker adds runtime paths of dependent libraries
13948 # to runtime path list.
13949 inherit_rpath=$inherit_rpath
13950
13951 # Whether libtool must link a program against all its dependency libraries.
13952 link_all_deplibs=$link_all_deplibs
13953
13954 # Set to "yes" if exported symbols are required.
13955 always_export_symbols=$always_export_symbols
13956
13957 # The commands to list exported symbols.
13958 export_symbols_cmds=$lt_export_symbols_cmds
13959
13960 # Symbols that should not be listed in the preloaded symbols.
13961 exclude_expsyms=$lt_exclude_expsyms
13962
13963 # Symbols that must always be exported.
13964 include_expsyms=$lt_include_expsyms
13965
13966 # Commands necessary for linking programs (against libraries) with templates.
13967 prelink_cmds=$lt_prelink_cmds
13968
13969 # Commands necessary for finishing linking programs.
13970 postlink_cmds=$lt_postlink_cmds
13971
13972 # Specify filename containing input files.
13973 file_list_spec=$lt_file_list_spec
13974
13975 # How to hardcode a shared library path into an executable.
13976 hardcode_action=$hardcode_action
13977
13978 # ### END LIBTOOL CONFIG
13979
13980 _LT_EOF
13981
13982   case $host_os in
13983   aix3*)
13984     cat <<\_LT_EOF >> "$cfgfile"
13985 # AIX sometimes has problems with the GCC collect2 program.  For some
13986 # reason, if we set the COLLECT_NAMES environment variable, the problems
13987 # vanish in a puff of smoke.
13988 if test "X${COLLECT_NAMES+set}" != Xset; then
13989   COLLECT_NAMES=
13990   export COLLECT_NAMES
13991 fi
13992 _LT_EOF
13993     ;;
13994   esac
13995
13996
13997 ltmain="$ac_aux_dir/ltmain.sh"
13998
13999
14000   # We use sed instead of cat because bash on DJGPP gets confused if
14001   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14002   # text mode, it properly converts lines to CR/LF.  This bash problem
14003   # is reportedly fixed, but why not run on old versions too?
14004   sed '$q' "$ltmain" >> "$cfgfile" \
14005      || (rm -f "$cfgfile"; exit 1)
14006
14007   if test x"$xsi_shell" = xyes; then
14008   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14009 func_dirname ()\
14010 {\
14011 \    case ${1} in\
14012 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14013 \      *  ) func_dirname_result="${3}" ;;\
14014 \    esac\
14015 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14016   && mv -f "$cfgfile.tmp" "$cfgfile" \
14017     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14018 test 0 -eq $? || _lt_function_replace_fail=:
14019
14020
14021   sed -e '/^func_basename ()$/,/^} # func_basename /c\
14022 func_basename ()\
14023 {\
14024 \    func_basename_result="${1##*/}"\
14025 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14026   && mv -f "$cfgfile.tmp" "$cfgfile" \
14027     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14028 test 0 -eq $? || _lt_function_replace_fail=:
14029
14030
14031   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14032 func_dirname_and_basename ()\
14033 {\
14034 \    case ${1} in\
14035 \      */*) func_dirname_result="${1%/*}${2}" ;;\
14036 \      *  ) func_dirname_result="${3}" ;;\
14037 \    esac\
14038 \    func_basename_result="${1##*/}"\
14039 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14040   && mv -f "$cfgfile.tmp" "$cfgfile" \
14041     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14042 test 0 -eq $? || _lt_function_replace_fail=:
14043
14044
14045   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14046 func_stripname ()\
14047 {\
14048 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14049 \    # positional parameters, so assign one to ordinary parameter first.\
14050 \    func_stripname_result=${3}\
14051 \    func_stripname_result=${func_stripname_result#"${1}"}\
14052 \    func_stripname_result=${func_stripname_result%"${2}"}\
14053 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14054   && mv -f "$cfgfile.tmp" "$cfgfile" \
14055     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14056 test 0 -eq $? || _lt_function_replace_fail=:
14057
14058
14059   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14060 func_split_long_opt ()\
14061 {\
14062 \    func_split_long_opt_name=${1%%=*}\
14063 \    func_split_long_opt_arg=${1#*=}\
14064 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14065   && mv -f "$cfgfile.tmp" "$cfgfile" \
14066     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14067 test 0 -eq $? || _lt_function_replace_fail=:
14068
14069
14070   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14071 func_split_short_opt ()\
14072 {\
14073 \    func_split_short_opt_arg=${1#??}\
14074 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14075 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14076   && mv -f "$cfgfile.tmp" "$cfgfile" \
14077     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14078 test 0 -eq $? || _lt_function_replace_fail=:
14079
14080
14081   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14082 func_lo2o ()\
14083 {\
14084 \    case ${1} in\
14085 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14086 \      *)    func_lo2o_result=${1} ;;\
14087 \    esac\
14088 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14089   && mv -f "$cfgfile.tmp" "$cfgfile" \
14090     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14091 test 0 -eq $? || _lt_function_replace_fail=:
14092
14093
14094   sed -e '/^func_xform ()$/,/^} # func_xform /c\
14095 func_xform ()\
14096 {\
14097     func_xform_result=${1%.*}.lo\
14098 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14099   && mv -f "$cfgfile.tmp" "$cfgfile" \
14100     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14101 test 0 -eq $? || _lt_function_replace_fail=:
14102
14103
14104   sed -e '/^func_arith ()$/,/^} # func_arith /c\
14105 func_arith ()\
14106 {\
14107     func_arith_result=$(( $* ))\
14108 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14109   && mv -f "$cfgfile.tmp" "$cfgfile" \
14110     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14111 test 0 -eq $? || _lt_function_replace_fail=:
14112
14113
14114   sed -e '/^func_len ()$/,/^} # func_len /c\
14115 func_len ()\
14116 {\
14117     func_len_result=${#1}\
14118 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14119   && mv -f "$cfgfile.tmp" "$cfgfile" \
14120     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14121 test 0 -eq $? || _lt_function_replace_fail=:
14122
14123 fi
14124
14125 if test x"$lt_shell_append" = xyes; then
14126   sed -e '/^func_append ()$/,/^} # func_append /c\
14127 func_append ()\
14128 {\
14129     eval "${1}+=\\${2}"\
14130 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14131   && mv -f "$cfgfile.tmp" "$cfgfile" \
14132     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14133 test 0 -eq $? || _lt_function_replace_fail=:
14134
14135
14136   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14137 func_append_quoted ()\
14138 {\
14139 \    func_quote_for_eval "${2}"\
14140 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14141 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14142   && mv -f "$cfgfile.tmp" "$cfgfile" \
14143     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14144 test 0 -eq $? || _lt_function_replace_fail=:
14145
14146
14147   # Save a `func_append' function call where possible by direct use of '+='
14148   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14149     && mv -f "$cfgfile.tmp" "$cfgfile" \
14150       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14151   test 0 -eq $? || _lt_function_replace_fail=:
14152 else
14153   # Save a `func_append' function call even when '+=' is not available
14154   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
14155     && mv -f "$cfgfile.tmp" "$cfgfile" \
14156       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14157   test 0 -eq $? || _lt_function_replace_fail=:
14158 fi
14159
14160 if test x"$_lt_function_replace_fail" = x":"; then
14161   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
14162 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
14163 fi
14164
14165
14166    mv -f "$cfgfile" "$ofile" ||
14167     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14168   chmod +x "$ofile"
14169
14170  ;;
14171
14172   esac
14173 done # for ac_tag
14174
14175
14176 as_fn_exit 0
14177 _ACEOF
14178 ac_clean_files=$ac_clean_files_save
14179
14180 test $ac_write_fail = 0 ||
14181   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14182
14183
14184 # configure is writing to config.log, and then calls config.status.
14185 # config.status does its own redirection, appending to config.log.
14186 # Unfortunately, on DOS this fails, as config.log is still kept open
14187 # by configure, so config.status won't be able to write to it; its
14188 # output is simply discarded.  So we exec the FD to /dev/null,
14189 # effectively closing config.log, so it can be properly (re)opened and
14190 # appended to by config.status.  When coming back to configure, we
14191 # need to make the FD available again.
14192 if test "$no_create" != yes; then
14193   ac_cs_success=:
14194   ac_config_status_args=
14195   test "$silent" = yes &&
14196     ac_config_status_args="$ac_config_status_args --quiet"
14197   exec 5>/dev/null
14198   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14199   exec 5>>config.log
14200   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14201   # would make configure fail if this is the last instruction.
14202   $ac_cs_success || as_fn_exit 1
14203 fi
14204 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14205   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14206 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14207 fi
14208
This page took 1.12798 seconds and 5 git commands to generate.