2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libconfig 1.5.
5 # Report bugs to <hyperrealm@gmail.com>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
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 ## -------------------- ##
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 :
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+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
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
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
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.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
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 || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
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.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
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
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 :
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+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
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; }
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 :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || 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 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
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 :
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
248 if test "x$CONFIG_SHELL" != x; then :
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.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
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
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."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: hyperrealm@gmail.com about your system, including any
279 $0: error possibly output before this message. Then install
280 $0: a modern shell, or manually run the script under such a
281 $0: shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='libconfig'
592 PACKAGE_TARNAME='libconfig'
593 PACKAGE_VERSION='1.5'
594 PACKAGE_STRING='libconfig 1.5'
595 PACKAGE_BUGREPORT='hyperrealm@gmail.com'
596 PACKAGE_URL='http://www.hyperrealm.com/main.php?s=libconfig'
598 # Factoring default headers for most tests.
599 ac_includes_default="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
634 ac_subst_vars='am__EXEEXT_FALSE
708 INSTALL_STRIP_PROGRAM
762 program_transform_name
775 enable_option_checking
777 enable_dependency_tracking
788 ac_precious_vars='build_alias
805 # Initialize some variables set by options.
807 ac_init_version=false
808 ac_unrecognized_opts=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
819 program_transform_name=s,x,x,
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 # Accept the important Cygnus configure options, so we can diagnose typos.
872 case $ac_dashdash$ac_option in
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
894 cache_file=config.cache ;;
896 -datadir | --datadir | --datadi | --datad)
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
922 eval enable_$ac_useropt=no ;;
924 -docdir | --docdir | --docdi | --doc | --do)
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
948 eval enable_$ac_useropt=\$ac_optarg ;;
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
963 -help | --help | --hel | --he | -h)
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 htmldir=$ac_optarg ;;
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1112 -site=* | --site=* | --sit=*)
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1152 eval with_$ac_useropt=\$ac_optarg ;;
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1168 eval with_$ac_useropt=no ;;
1171 # Obsolete; use --with-x.
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1218 if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226 # Check all directory arguments for consistency.
1227 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1239 # Be sure to have absolute directory names.
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1252 target=$target_alias
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 elif test "x$build_alias" != "x$host_alias"; then
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1266 test "$silent" = yes && exec 6>/dev/null
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1309 ac_srcdir_defaulted=no
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1329 for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337 # Report the --help message.
1339 if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1343 \`configure' configures libconfig 1.5 to adapt to many kinds of systems.
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE. See below for descriptions of some of the useful variables.
1350 Defaults for the options are specified in brackets.
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1363 Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1374 For better control, use the options below.
1376 Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/libconfig]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408 --target=TARGET configure for building compilers for TARGET [HOST]
1412 if test -n "$ac_init_help"; then
1413 case $ac_init_help in
1414 short | recursive ) echo "Configuration of libconfig 1.5:";;
1419 --disable-option-checking ignore unrecognized --enable/--with options
1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422 --enable-silent-rules less verbose build output (undo: "make V=1")
1423 --disable-silent-rules verbose build output (undo: "make V=0")
1424 --enable-dependency-tracking
1425 do not reject slow dependency extractors
1426 --disable-dependency-tracking
1427 speeds up one-time build
1428 --enable-shared[=PKGS] build shared libraries [default=yes]
1429 --enable-static[=PKGS] build static libraries [default=yes]
1430 --enable-fast-install[=PKGS]
1431 optimize for fast installation [default=yes]
1432 --disable-libtool-lock avoid locking (might break parallel builds)
1433 --disable-cxx Disable building of the C++ library
1434 --disable-examples Disable building of the example programs
1437 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1438 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1439 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1441 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1442 --with-sysroot=DIR Search for dependent libraries within DIR
1443 (or the compiler's sysroot if not specified).
1445 Some influential environment variables:
1446 CC C compiler command
1447 CFLAGS C compiler flags
1448 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1449 nonstandard directory <lib dir>
1450 LIBS libraries to pass to the linker, e.g. -l<library>
1451 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1452 you have headers in a nonstandard directory <include dir>
1454 CXX C++ compiler command
1455 CXXFLAGS C++ compiler flags
1456 CXXCPP C++ preprocessor
1457 YACC The `Yet Another Compiler Compiler' implementation to use.
1458 Defaults to the first program found out of: `bison -y', `byacc',
1460 YFLAGS The list of arguments that will be passed by default to $YACC.
1461 This script will default YFLAGS to the empty string to avoid a
1462 default value of `-d' given by some make applications.
1464 Use these variables to override the choices made by `configure' or to help
1465 it to find libraries and programs with nonstandard names/locations.
1467 Report bugs to <hyperrealm@gmail.com>.
1468 libconfig home page: <http://www.hyperrealm.com/main.php?s=libconfig>.
1473 if test "$ac_init_help" = "recursive"; then
1474 # If there are subdirs, report their specific --help.
1475 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1476 test -d "$ac_dir" ||
1477 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1485 # A ".." for each directory in $ac_dir_suffix.
1486 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1498 .) # We are building in place.
1500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
1503 ac_srcdir=$srcdir$ac_dir_suffix;
1504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1522 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1531 libconfig configure 1.5
1532 generated by GNU Autoconf 2.69
1534 Copyright (C) 2012 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1541 ## ------------------------ ##
1542 ## Autoconf initialization. ##
1543 ## ------------------------ ##
1545 # ac_fn_c_try_compile LINENO
1546 # --------------------------
1547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1548 ac_fn_c_try_compile ()
1550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551 rm -f conftest.$ac_objext
1552 if { { ac_try="$ac_compile"
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_compile") 2>conftest.err
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } && {
1568 test -z "$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1570 } && test -s conftest.$ac_objext; then :
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1581 } # ac_fn_c_try_compile
1583 # ac_fn_c_try_cpp LINENO
1584 # ----------------------
1585 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 if { { ac_try="$ac_cpp conftest.$ac_ext"
1591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592 *) ac_try_echo=$ac_try;;
1594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595 $as_echo "$ac_try_echo"; } >&5
1596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
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
1603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604 test $ac_status = 0; } > conftest.i && {
1605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1606 test ! -s conftest.err
1610 $as_echo "$as_me: failed program was:" >&5
1611 sed 's/^/| /' conftest.$ac_ext >&5
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1620 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1621 # -------------------------------------------------------
1622 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1623 # the include files in INCLUDES and setting the cache variable VAR
1625 ac_fn_c_check_header_mongrel ()
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 if eval \${$3+:} false; then :
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1630 $as_echo_n "checking for $2... " >&6; }
1631 if eval \${$3+:} false; then :
1632 $as_echo_n "(cached) " >&6
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1638 # Is the header compilable?
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1640 $as_echo_n "checking $2 usability... " >&6; }
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1646 if ac_fn_c_try_compile "$LINENO"; then :
1647 ac_header_compiler=yes
1649 ac_header_compiler=no
1651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1653 $as_echo "$ac_header_compiler" >&6; }
1655 # Is the header present?
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1657 $as_echo_n "checking $2 presence... " >&6; }
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659 /* end confdefs.h. */
1662 if ac_fn_c_try_cpp "$LINENO"; then :
1663 ac_header_preproc=yes
1665 ac_header_preproc=no
1667 rm -f conftest.err conftest.i conftest.$ac_ext
1668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1669 $as_echo "$ac_header_preproc" >&6; }
1671 # So? What about this header?
1672 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1675 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1677 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1681 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1683 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1685 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1687 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1689 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1690 ( $as_echo "## ----------------------------------- ##
1691 ## Report this to hyperrealm@gmail.com ##
1692 ## ----------------------------------- ##"
1693 ) | sed "s/^/$as_me: WARNING: /" >&2
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697 $as_echo_n "checking for $2... " >&6; }
1698 if eval \${$3+:} false; then :
1699 $as_echo_n "(cached) " >&6
1701 eval "$3=\$ac_header_compiler"
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 } # ac_fn_c_check_header_mongrel
1711 # ac_fn_c_try_run LINENO
1712 # ----------------------
1713 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1714 # that executables *can* be run.
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 if { { ac_try="$ac_link"
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_link") 2>&5
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1729 { { case "(($ac_try" in
1730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1731 *) ac_try_echo=$ac_try;;
1733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1734 $as_echo "$ac_try_echo"; } >&5
1735 (eval "$ac_try") 2>&5
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; }; }; then :
1741 $as_echo "$as_me: program exited with status $ac_status" >&5
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.$ac_ext >&5
1745 ac_retval=$ac_status
1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1753 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists and can be compiled using the include files in
1756 # INCLUDES, setting the cache variable VAR accordingly.
1757 ac_fn_c_check_header_compile ()
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if eval \${$3+:} false; then :
1763 $as_echo_n "(cached) " >&6
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1770 if ac_fn_c_try_compile "$LINENO"; then :
1775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 } # ac_fn_c_check_header_compile
1784 # ac_fn_c_try_link LINENO
1785 # -----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded.
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 rm -f conftest.$ac_objext conftest$ac_exeext
1791 if { { ac_try="$ac_link"
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>conftest.err
1800 if test -s conftest.err; then
1801 grep -v '^ *+' conftest.err >conftest.er1
1802 cat conftest.er1 >&5
1803 mv -f conftest.er1 conftest.err
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && {
1807 test -z "$ac_c_werror_flag" ||
1808 test ! -s conftest.err
1809 } && test -s conftest$ac_exeext && {
1810 test "$cross_compiling" = yes ||
1811 test -x conftest$ac_exeext
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1820 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1821 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1822 # interfere with the next link command; also delete a directory that is
1823 # left behind by Apple's compiler. We do this before executing the actions.
1824 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826 as_fn_set_status $ac_retval
1828 } # ac_fn_c_try_link
1830 # ac_fn_c_check_func LINENO FUNC VAR
1831 # ----------------------------------
1832 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1833 ac_fn_c_check_func ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if eval \${$3+:} false; then :
1839 $as_echo_n "(cached) " >&6
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1843 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1845 #define $2 innocuous_$2
1847 /* System header to define __stub macros and hopefully few prototypes,
1848 which can conflict with char $2 (); below.
1849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850 <limits.h> exists even on freestanding compilers. */
1853 # include <limits.h>
1855 # include <assert.h>
1860 /* Override any GCC internal prototype to avoid an error.
1861 Use char because int might match the return type of a GCC
1862 builtin and then its argument prototype would still apply. */
1867 /* The GNU C library defines this for functions which it implements
1868 to always fail with ENOSYS. Some functions are actually named
1869 something starting with __ and the normal name is an alias. */
1870 #if defined __stub_$2 || defined __stub___$2
1882 if ac_fn_c_try_link "$LINENO"; then :
1887 rm -f core conftest.err conftest.$ac_objext \
1888 conftest$ac_exeext conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 } # ac_fn_c_check_func
1897 # ac_fn_cxx_try_compile LINENO
1898 # ----------------------------
1899 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_cxx_try_compile ()
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 rm -f conftest.$ac_objext
1904 if { { ac_try="$ac_compile"
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_compile") 2>conftest.err
1913 if test -s conftest.err; then
1914 grep -v '^ *+' conftest.err >conftest.er1
1915 cat conftest.er1 >&5
1916 mv -f conftest.er1 conftest.err
1918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1919 test $ac_status = 0; } && {
1920 test -z "$ac_cxx_werror_flag" ||
1921 test ! -s conftest.err
1922 } && test -s conftest.$ac_objext; then :
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1933 } # ac_fn_cxx_try_compile
1935 # ac_fn_cxx_try_cpp LINENO
1936 # ------------------------
1937 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1938 ac_fn_cxx_try_cpp ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if { { ac_try="$ac_cpp conftest.$ac_ext"
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } > conftest.i && {
1957 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1958 test ! -s conftest.err
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1970 } # ac_fn_cxx_try_cpp
1972 # ac_fn_cxx_try_link LINENO
1973 # -------------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded.
1975 ac_fn_cxx_try_link ()
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 rm -f conftest.$ac_objext conftest$ac_exeext
1979 if { { ac_try="$ac_link"
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>conftest.err
1988 if test -s conftest.err; then
1989 grep -v '^ *+' conftest.err >conftest.er1
1990 cat conftest.er1 >&5
1991 mv -f conftest.er1 conftest.err
1993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994 test $ac_status = 0; } && {
1995 test -z "$ac_cxx_werror_flag" ||
1996 test ! -s conftest.err
1997 } && test -s conftest$ac_exeext && {
1998 test "$cross_compiling" = yes ||
1999 test -x conftest$ac_exeext
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2008 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2009 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2010 # interfere with the next link command; also delete a directory that is
2011 # left behind by Apple's compiler. We do this before executing the actions.
2012 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014 as_fn_set_status $ac_retval
2016 } # ac_fn_cxx_try_link
2017 cat >config.log <<_ACEOF
2018 This file contains any messages produced by compilers while
2019 running configure, to aid debugging if configure makes a mistake.
2021 It was created by libconfig $as_me 1.5, which was
2022 generated by GNU Autoconf 2.69. Invocation command line was
2034 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2035 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2036 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2037 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2038 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2040 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2041 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2043 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2044 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2045 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2046 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2047 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2048 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2049 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 $as_echo "PATH: $as_dir"
2074 # Keep a trace of the command line.
2075 # Strip out --no-create and --no-recursion so they do not pile up.
2076 # Strip out --silent because we don't want to record it for future runs.
2077 # Also quote any args containing shell meta-characters.
2078 # Make two passes to allow for proper duplicate-argument suppression.
2082 ac_must_keep_next=false
2088 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2090 | -silent | --silent | --silen | --sile | --sil)
2093 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2096 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2098 as_fn_append ac_configure_args1 " '$ac_arg'"
2099 if test $ac_must_keep_next = true; then
2100 ac_must_keep_next=false # Got value, back to normal.
2103 *=* | --config-cache | -C | -disable-* | --disable-* \
2104 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2105 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2106 | -with-* | --with-* | -without-* | --without-* | --x)
2107 case "$ac_configure_args0 " in
2108 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2111 -* ) ac_must_keep_next=true ;;
2114 as_fn_append ac_configure_args " '$ac_arg'"
2119 { ac_configure_args0=; unset ac_configure_args0;}
2120 { ac_configure_args1=; unset ac_configure_args1;}
2122 # When interrupted or exit'd, cleanup temporary files, and complete
2123 # config.log. We remove comments because anyway the quotes in there
2124 # would cause problems or look ugly.
2125 # WARNING: Use '\'' to represent an apostrophe within the trap.
2126 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2127 trap 'exit_status=$?
2128 # Save into config.log some information that might help in debugging.
2132 $as_echo "## ---------------- ##
2133 ## Cache variables. ##
2134 ## ---------------- ##"
2136 # The following way of writing the cache mishandles newlines in values,
2138 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2139 eval ac_val=\$$ac_var
2143 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2144 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2147 _ | IFS | as_nl) ;; #(
2148 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2149 *) { eval $ac_var=; unset $ac_var;} ;;
2154 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2155 *${as_nl}ac_space=\ *)
2157 "s/'\''/'\''\\\\'\'''\''/g;
2158 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2161 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2168 $as_echo "## ----------------- ##
2169 ## Output variables. ##
2170 ## ----------------- ##"
2172 for ac_var in $ac_subst_vars
2174 eval ac_val=\$$ac_var
2176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2178 $as_echo "$ac_var='\''$ac_val'\''"
2182 if test -n "$ac_subst_files"; then
2183 $as_echo "## ------------------- ##
2184 ## File substitutions. ##
2185 ## ------------------- ##"
2187 for ac_var in $ac_subst_files
2189 eval ac_val=\$$ac_var
2191 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 $as_echo "$ac_var='\''$ac_val'\''"
2198 if test -s confdefs.h; then
2199 $as_echo "## ----------- ##
2206 test "$ac_signal" != 0 &&
2207 $as_echo "$as_me: caught signal $ac_signal"
2208 $as_echo "$as_me: exit $exit_status"
2210 rm -f core *.core core.conftest.* &&
2211 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2214 for ac_signal in 1 2 13 15; do
2215 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2219 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2220 rm -f -r conftest* confdefs.h
2222 $as_echo "/* confdefs.h */" > confdefs.h
2224 # Predefined preprocessor variables.
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_NAME "$PACKAGE_NAME"
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2234 cat >>confdefs.h <<_ACEOF
2235 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_STRING "$PACKAGE_STRING"
2242 cat >>confdefs.h <<_ACEOF
2243 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2246 cat >>confdefs.h <<_ACEOF
2247 #define PACKAGE_URL "$PACKAGE_URL"
2251 # Let the site file select an alternate cache file if it wants to.
2252 # Prefer an explicitly selected file to automatically selected ones.
2255 if test -n "$CONFIG_SITE"; then
2256 # We do not want a PATH search for config.site.
2257 case $CONFIG_SITE in #((
2258 -*) ac_site_file1=./$CONFIG_SITE;;
2259 */*) ac_site_file1=$CONFIG_SITE;;
2260 *) ac_site_file1=./$CONFIG_SITE;;
2262 elif test "x$prefix" != xNONE; then
2263 ac_site_file1=$prefix/share/config.site
2264 ac_site_file2=$prefix/etc/config.site
2266 ac_site_file1=$ac_default_prefix/share/config.site
2267 ac_site_file2=$ac_default_prefix/etc/config.site
2269 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2271 test "x$ac_site_file" = xNONE && continue
2272 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2274 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2275 sed 's/^/| /' "$ac_site_file" >&5
2277 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2278 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2279 as_fn_error $? "failed to load site script $ac_site_file
2280 See \`config.log' for more details" "$LINENO" 5; }
2284 if test -r "$cache_file"; then
2285 # Some versions of bash will fail to source /dev/null (special files
2286 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2287 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2289 $as_echo "$as_me: loading cache $cache_file" >&6;}
2291 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292 *) . "./$cache_file";;
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2297 $as_echo "$as_me: creating cache $cache_file" >&6;}
2301 # Check that the precious variables saved in the cache have kept the same
2303 ac_cache_corrupted=false
2304 for ac_var in $ac_precious_vars; do
2305 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2306 eval ac_new_set=\$ac_env_${ac_var}_set
2307 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2308 eval ac_new_val=\$ac_env_${ac_var}_value
2309 case $ac_old_set,$ac_new_set in
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2312 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2313 ac_cache_corrupted=: ;;
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2316 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2317 ac_cache_corrupted=: ;;
2320 if test "x$ac_old_val" != "x$ac_new_val"; then
2321 # differences in whitespace do not lead to failure.
2322 ac_old_val_w=`echo x $ac_old_val`
2323 ac_new_val_w=`echo x $ac_new_val`
2324 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2326 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2327 ac_cache_corrupted=:
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2330 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2331 eval $ac_var=\$ac_old_val
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2334 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2336 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2339 # Pass precious variables to config.status.
2340 if test "$ac_new_set" = set; then
2342 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2343 *) ac_arg=$ac_var=$ac_new_val ;;
2345 case " $ac_configure_args " in
2346 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2347 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2351 if $ac_cache_corrupted; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2355 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2356 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2358 ## -------------------- ##
2359 ## Main body of script. ##
2360 ## -------------------- ##
2363 ac_cpp='$CPP $CPPFLAGS'
2364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2370 for ac_dir in aux-build "$srcdir"/aux-build; do
2371 if test -f "$ac_dir/install-sh"; then
2373 ac_install_sh="$ac_aux_dir/install-sh -c"
2375 elif test -f "$ac_dir/install.sh"; then
2377 ac_install_sh="$ac_aux_dir/install.sh -c"
2379 elif test -f "$ac_dir/shtool"; then
2381 ac_install_sh="$ac_aux_dir/shtool install -c"
2385 if test -z "$ac_aux_dir"; then
2386 as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux-build \"$srcdir\"/aux-build" "$LINENO" 5
2389 # These three variables are undocumented and unsupported,
2390 # and are intended to be withdrawn in a future Autoconf release.
2391 # They can cause serious problems if a builder's source tree is in a directory
2392 # whose full name contains unusual characters.
2393 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2394 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2395 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2399 # Make sure we can run config.sub.
2400 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2401 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2404 $as_echo_n "checking build system type... " >&6; }
2405 if ${ac_cv_build+:} false; then :
2406 $as_echo_n "(cached) " >&6
2408 ac_build_alias=$build_alias
2409 test "x$ac_build_alias" = x &&
2410 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2411 test "x$ac_build_alias" = x &&
2412 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2413 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2414 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2418 $as_echo "$ac_cv_build" >&6; }
2419 case $ac_cv_build in
2421 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2424 ac_save_IFS=$IFS; IFS='-'
2430 # Remember, the first character of IFS is used to create $*,
2431 # except with old shells:
2434 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2438 $as_echo_n "checking host system type... " >&6; }
2439 if ${ac_cv_host+:} false; then :
2440 $as_echo_n "(cached) " >&6
2442 if test "x$host_alias" = x; then
2443 ac_cv_host=$ac_cv_build
2445 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2446 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2451 $as_echo "$ac_cv_host" >&6; }
2454 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2457 ac_save_IFS=$IFS; IFS='-'
2463 # Remember, the first character of IFS is used to create $*,
2464 # except with old shells:
2467 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2471 $as_echo_n "checking target system type... " >&6; }
2472 if ${ac_cv_target+:} false; then :
2473 $as_echo_n "(cached) " >&6
2475 if test "x$target_alias" = x; then
2476 ac_cv_target=$ac_cv_host
2478 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2479 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2484 $as_echo "$ac_cv_target" >&6; }
2485 case $ac_cv_target in
2487 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2489 target=$ac_cv_target
2490 ac_save_IFS=$IFS; IFS='-'
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2500 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2503 # The aliases save the names the user supplied, while $host etc.
2504 # will get canonicalized.
2505 test -n "$target_alias" &&
2506 test "$program_prefix$program_suffix$program_transform_name" = \
2508 program_prefix=${target_alias}-
2509 am__api_version='1.14'
2511 # Find a good install program. We prefer a C program (faster),
2512 # so one script is as good as another. But avoid the broken or
2513 # incompatible versions:
2514 # SysV /etc/install, /usr/sbin/install
2515 # SunOS /usr/etc/install
2516 # IRIX /sbin/install
2518 # AmigaOS /C/install, which installs bootblocks on floppy discs
2519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522 # OS/2's system install, which has a completely different semantic
2523 # ./install, which can be erroneously created by make from ./install.sh.
2524 # Reject install programs that cannot install multiple files.
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2526 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2527 if test -z "$INSTALL"; then
2528 if ${ac_cv_path_install+:} false; then :
2529 $as_echo_n "(cached) " >&6
2531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir=.
2536 # Account for people who put trailing slashes in PATH elements.
2537 case $as_dir/ in #((
2538 ./ | .// | /[cC]/* | \
2539 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2540 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2543 # OSF1 and SCO ODT 3.0 have their own names for install.
2544 # Don't use installbsd from OSF since it installs stuff as root
2546 for ac_prog in ginstall scoinst install; do
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2549 if test $ac_prog = install &&
2550 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2551 # AIX install. It has an incompatible calling convention.
2553 elif test $ac_prog = install &&
2554 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2555 # program-specific install script used by HP pwplus--don't use.
2558 rm -rf conftest.one conftest.two conftest.dir
2559 echo one > conftest.one
2560 echo two > conftest.two
2562 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2563 test -s conftest.one && test -s conftest.two &&
2564 test -s conftest.dir/conftest.one &&
2565 test -s conftest.dir/conftest.two
2567 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2580 rm -rf conftest.one conftest.two conftest.dir
2583 if test "${ac_cv_path_install+set}" = set; then
2584 INSTALL=$ac_cv_path_install
2586 # As a last resort, use the slow shell script. Don't cache a
2587 # value for INSTALL within a source directory, because that will
2588 # break other packages using the cache if that directory is
2589 # removed, or if the value is a relative name.
2590 INSTALL=$ac_install_sh
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2594 $as_echo "$INSTALL" >&6; }
2596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2597 # It thinks the first close brace ends the variable substitution.
2598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2605 $as_echo_n "checking whether build environment is sane... " >&6; }
2606 # Reject unsafe characters in $srcdir or the absolute working directory
2607 # name. Accept space and tab only in the latter.
2611 *[\\\"\#\$\&\'\`$am_lf]*)
2612 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2615 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2616 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2619 # Do 'set' in a subshell so we don't clobber the current shell's
2620 # arguments. Must try -L first in case configure is actually a
2621 # symlink; some systems play weird games with the mod time of symlinks
2622 # (eg FreeBSD returns the mod time of the symlink's containing
2626 for am_try in 1 2; do
2627 echo "timestamp, slept: $am_has_slept" > conftest.file
2628 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2629 if test "$*" = "X"; then
2631 set X `ls -t "$srcdir/configure" conftest.file`
2633 if test "$*" != "X $srcdir/configure conftest.file" \
2634 && test "$*" != "X conftest.file $srcdir/configure"; then
2636 # If neither matched, then we have a broken ls. This can happen
2637 # if, for instance, CONFIG_SHELL is bash and it inherits a
2638 # broken ls alias from the environment. This has actually
2639 # happened. Such a system could not be considered "sane".
2640 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2641 alias in your environment" "$LINENO" 5
2643 if test "$2" = conftest.file || test $am_try -eq 2; then
2650 test "$2" = conftest.file
2656 as_fn_error $? "newly created file is older than distributed files!
2657 Check your system clock" "$LINENO" 5
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2660 $as_echo "yes" >&6; }
2661 # If we didn't sleep, we still need to ensure time stamps of config.status and
2662 # generated files are strictly newer.
2664 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2671 test "$program_prefix" != NONE &&
2672 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2673 # Use a double $ so make ignores it.
2674 test "$program_suffix" != NONE &&
2675 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2676 # Double any \ or $.
2677 # By default was `s,x,x', remove it if useless.
2678 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2679 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2681 # expand $ac_aux_dir to an absolute path
2682 am_aux_dir=`cd $ac_aux_dir && pwd`
2684 if test x"${MISSING+set}" != xset; then
2687 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2689 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2692 # Use eval to expand $SHELL
2693 if eval "$MISSING --is-lightweight"; then
2694 am_missing_run="$MISSING "
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2698 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2701 if test x"${install_sh}" != xset; then
2704 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2706 install_sh="\${SHELL} $am_aux_dir/install-sh"
2710 # Installed binaries are usually stripped using 'strip' when the user
2711 # run "make install-strip". However 'strip' might not be the right
2712 # tool to use in cross-compilation environments, therefore Automake
2713 # will honor the 'STRIP' environment variable to overrule this program.
2714 if test "$cross_compiling" != no; then
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}strip; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_STRIP+:} false; then :
2721 $as_echo_n "(cached) " >&6
2723 if test -n "$STRIP"; then
2724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 STRIP=$ac_cv_prog_STRIP
2744 if test -n "$STRIP"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2746 $as_echo "$STRIP" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2754 if test -z "$ac_cv_prog_STRIP"; then
2756 # Extract the first word of "strip", so it can be a program name with args.
2757 set dummy strip; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2761 $as_echo_n "(cached) " >&6
2763 if test -n "$ac_ct_STRIP"; then
2764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2773 ac_cv_prog_ac_ct_STRIP="strip"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2784 if test -n "$ac_ct_STRIP"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2786 $as_echo "$ac_ct_STRIP" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2792 if test "x$ac_ct_STRIP" = x; then
2795 case $cross_compiling:$ac_tool_warned in
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2799 ac_tool_warned=yes ;;
2804 STRIP="$ac_cv_prog_STRIP"
2808 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2811 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2812 if test -z "$MKDIR_P"; then
2813 if ${ac_cv_path_mkdir+:} false; then :
2814 $as_echo_n "(cached) " >&6
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2820 test -z "$as_dir" && as_dir=.
2821 for ac_prog in mkdir gmkdir; do
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2824 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2825 'mkdir (GNU coreutils) '* | \
2826 'mkdir (coreutils) '* | \
2827 'mkdir (fileutils) '4.1*)
2828 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2838 test -d ./--version && rmdir ./--version
2839 if test "${ac_cv_path_mkdir+set}" = set; then
2840 MKDIR_P="$ac_cv_path_mkdir -p"
2842 # As a last resort, use the slow shell script. Don't cache a
2843 # value for MKDIR_P within a source directory, because that will
2844 # break other packages using the cache if that directory is
2845 # removed, or if the value is a relative name.
2846 MKDIR_P="$ac_install_sh -d"
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2850 $as_echo "$MKDIR_P" >&6; }
2852 for ac_prog in gawk mawk nawk awk
2854 # Extract the first word of "$ac_prog", so it can be a program name with args.
2855 set dummy $ac_prog; ac_word=$2
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2857 $as_echo_n "checking for $ac_word... " >&6; }
2858 if ${ac_cv_prog_AWK+:} false; then :
2859 $as_echo_n "(cached) " >&6
2861 if test -n "$AWK"; then
2862 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 test -z "$as_dir" && as_dir=.
2869 for ac_exec_ext in '' $ac_executable_extensions; do
2870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2871 ac_cv_prog_AWK="$ac_prog"
2872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2882 if test -n "$AWK"; then
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2884 $as_echo "$AWK" >&6; }
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2887 $as_echo "no" >&6; }
2891 test -n "$AWK" && break
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2895 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2897 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2898 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2899 $as_echo_n "(cached) " >&6
2901 cat >conftest.make <<\_ACEOF
2904 @echo '@@@%%%=$(MAKE)=@@@%%%'
2906 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2907 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2909 eval ac_cv_prog_make_${ac_make}_set=yes;;
2911 eval ac_cv_prog_make_${ac_make}_set=no;;
2915 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2917 $as_echo "yes" >&6; }
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921 $as_echo "no" >&6; }
2922 SET_MAKE="MAKE=${MAKE-make}"
2925 rm -rf .tst 2>/dev/null
2926 mkdir .tst 2>/dev/null
2927 if test -d .tst; then
2932 rmdir .tst 2>/dev/null
2934 # Check whether --enable-silent-rules was given.
2935 if test "${enable_silent_rules+set}" = set; then :
2936 enableval=$enable_silent_rules;
2939 case $enable_silent_rules in # (((
2940 yes) AM_DEFAULT_VERBOSITY=0;;
2941 no) AM_DEFAULT_VERBOSITY=1;;
2942 *) AM_DEFAULT_VERBOSITY=1;;
2944 am_make=${MAKE-make}
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2946 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2947 if ${am_cv_make_support_nested_variables+:} false; then :
2948 $as_echo_n "(cached) " >&6
2950 if $as_echo 'TRUE=$(BAR$(V))
2956 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2957 am_cv_make_support_nested_variables=yes
2959 am_cv_make_support_nested_variables=no
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2963 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2964 if test $am_cv_make_support_nested_variables = yes; then
2966 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2968 AM_V=$AM_DEFAULT_VERBOSITY
2969 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2973 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2974 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2975 # is not polluted with repeated "-I."
2976 am__isrc=' -I$(srcdir)'
2977 # test to see if srcdir already configured
2978 if test -f $srcdir/config.status; then
2979 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2983 # test whether we have cygpath
2984 if test -z "$CYGPATH_W"; then
2985 if (cygpath --version) >/dev/null 2>/dev/null; then
2986 CYGPATH_W='cygpath -w'
2993 # Define the identity of the package.
2998 cat >>confdefs.h <<_ACEOF
2999 #define PACKAGE "$PACKAGE"
3003 cat >>confdefs.h <<_ACEOF
3004 #define VERSION "$VERSION"
3007 # Some tools Automake needs.
3009 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3012 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3015 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3018 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3021 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3023 # For better backward compatibility. To be removed once Automake 1.9.x
3024 # dies out for good. For more background, see:
3025 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3026 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3027 mkdir_p='$(MKDIR_P)'
3029 # We need awk for the "check" target. The system "awk" is bad on
3031 # Always define AMTAR for backward compatibility. Yes, it's still used
3032 # in the wild :-( We should find a proper way to deprecate it ...
3036 # We'll loop over all known methods to create a tar archive until one works.
3037 _am_tools='gnutar pax cpio none'
3039 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3046 # POSIX will say in a future version that running "rm -f" with no argument
3047 # is OK; and we want to be able to make that assumption in our Makefile
3048 # recipes. So use an aggressive probe to check that the usage we want is
3049 # actually supported "in the wild" to an acceptable degree.
3050 # See automake bug#10828.
3051 # To make any issue more visible, cause the running configure to be aborted
3052 # by default if the 'rm' program in use doesn't match our expectations; the
3053 # user can still override this though.
3054 if rm -f && rm -fr && rm -rf; then : OK; else
3058 Your 'rm' program seems unable to run without file operands specified
3059 on the command line, even when the '-f' option is present. This is contrary
3060 to the behaviour of most rm programs out there, and not conforming with
3061 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3063 Please tell bug-automake@gnu.org about your system, including the value
3064 of your $PATH and any error possibly output before this message. This
3065 can help us improve future automake versions.
3068 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3069 echo 'Configuration will proceed anyway, since you have set the' >&2
3070 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3074 Aborting the configuration process, to ensure you take notice of the issue.
3076 You can download and install GNU coreutils to get an 'rm' implementation
3077 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3079 If you want to complete the configuration process using your problematic
3080 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3081 to "yes", and re-run configure.
3084 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3087 ac_config_headers="$ac_config_headers ac_config.h"
3090 # Check whether --enable-silent-rules was given.
3091 if test "${enable_silent_rules+set}" = set; then :
3092 enableval=$enable_silent_rules;
3095 case $enable_silent_rules in # (((
3096 yes) AM_DEFAULT_VERBOSITY=0;;
3097 no) AM_DEFAULT_VERBOSITY=1;;
3098 *) AM_DEFAULT_VERBOSITY=0;;
3100 am_make=${MAKE-make}
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3102 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3103 if ${am_cv_make_support_nested_variables+:} false; then :
3104 $as_echo_n "(cached) " >&6
3106 if $as_echo 'TRUE=$(BAR$(V))
3112 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3113 am_cv_make_support_nested_variables=yes
3115 am_cv_make_support_nested_variables=no
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3119 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3120 if test $am_cv_make_support_nested_variables = yes; then
3122 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3124 AM_V=$AM_DEFAULT_VERBOSITY
3125 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: libconfig - made with pride in California" >&5
3131 $as_echo "$as_me: libconfig - made with pride in California" >&6;}
3135 cat >>confdefs.h <<_ACEOF
3136 #define TARGET "${target}"
3140 # Enable GNU extensions.
3141 DEPDIR="${am__leading_dot}deps"
3143 ac_config_commands="$ac_config_commands depfiles"
3146 am_make=${MAKE-make}
3147 cat > confinc << 'END'
3149 @echo this is the am__doit target
3152 # If we don't find an include directive, just comment out the code.
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3154 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3158 # First try GNU make style include.
3159 echo "include confinc" > confmf
3160 # Ignore all kinds of additional output from 'make'.
3161 case `$am_make -s -f confmf 2> /dev/null` in #(
3162 *the\ am__doit\ target*)
3168 # Now try BSD make style include.
3169 if test "$am__include" = "#"; then
3170 echo '.include "confinc"' > confmf
3171 case `$am_make -s -f confmf 2> /dev/null` in #(
3172 *the\ am__doit\ target*)
3173 am__include=.include
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3182 $as_echo "$_am_result" >&6; }
3183 rm -f confinc confmf
3185 # Check whether --enable-dependency-tracking was given.
3186 if test "${enable_dependency_tracking+set}" = set; then :
3187 enableval=$enable_dependency_tracking;
3190 if test "x$enable_dependency_tracking" != xno; then
3191 am_depcomp="$ac_aux_dir/depcomp"
3195 if test "x$enable_dependency_tracking" != xno; then
3205 ac_cpp='$CPP $CPPFLAGS'
3206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3209 if test -n "$ac_tool_prefix"; then
3210 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3211 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3213 $as_echo_n "checking for $ac_word... " >&6; }
3214 if ${ac_cv_prog_CC+:} false; then :
3215 $as_echo_n "(cached) " >&6
3217 if test -n "$CC"; then
3218 ac_cv_prog_CC="$CC" # Let the user override the test.
3220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 test -z "$as_dir" && as_dir=.
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3238 if test -n "$CC"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3240 $as_echo "$CC" >&6; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3248 if test -z "$ac_cv_prog_CC"; then
3250 # Extract the first word of "gcc", so it can be a program name with args.
3251 set dummy gcc; ac_word=$2
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3253 $as_echo_n "checking for $ac_word... " >&6; }
3254 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3255 $as_echo_n "(cached) " >&6
3257 if test -n "$ac_ct_CC"; then
3258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3267 ac_cv_prog_ac_ct_CC="gcc"
3268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3278 if test -n "$ac_ct_CC"; then
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3280 $as_echo "$ac_ct_CC" >&6; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3286 if test "x$ac_ct_CC" = x; then
3289 case $cross_compiling:$ac_tool_warned in
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3293 ac_tool_warned=yes ;;
3301 if test -z "$CC"; then
3302 if test -n "$ac_tool_prefix"; then
3303 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3304 set dummy ${ac_tool_prefix}cc; ac_word=$2
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3306 $as_echo_n "checking for $ac_word... " >&6; }
3307 if ${ac_cv_prog_CC+:} false; then :
3308 $as_echo_n "(cached) " >&6
3310 if test -n "$CC"; then
3311 ac_cv_prog_CC="$CC" # Let the user override the test.
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 ac_cv_prog_CC="${ac_tool_prefix}cc"
3321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 if test -n "$CC"; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3333 $as_echo "$CC" >&6; }
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3336 $as_echo "no" >&6; }
3342 if test -z "$CC"; then
3343 # Extract the first word of "cc", so it can be a program name with args.
3344 set dummy cc; ac_word=$2
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3346 $as_echo_n "checking for $ac_word... " >&6; }
3347 if ${ac_cv_prog_CC+:} false; then :
3348 $as_echo_n "(cached) " >&6
3350 if test -n "$CC"; then
3351 ac_cv_prog_CC="$CC" # Let the user override the test.
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3362 ac_prog_rejected=yes
3366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 if test $ac_prog_rejected = yes; then
3374 # We found a bogon in the path, so make sure we never use it.
3375 set dummy $ac_cv_prog_CC
3377 if test $# != 0; then
3378 # We chose a different compiler from the bogus one.
3379 # However, it has the same basename, so the bogon will be chosen
3380 # first if we set CC to just the basename; use the full file name.
3382 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3388 if test -n "$CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3390 $as_echo "$CC" >&6; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3398 if test -z "$CC"; then
3399 if test -n "$ac_tool_prefix"; then
3400 for ac_prog in cl.exe
3402 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3403 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false; then :
3407 $as_echo_n "(cached) " >&6
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC="$CC" # Let the user override the test.
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 if test -n "$CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432 $as_echo "$CC" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3439 test -n "$CC" && break
3442 if test -z "$CC"; then
3444 for ac_prog in cl.exe
3446 # Extract the first word of "$ac_prog", so it can be a program name with args.
3447 set dummy $ac_prog; ac_word=$2
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3451 $as_echo_n "(cached) " >&6
3453 if test -n "$ac_ct_CC"; then
3454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3463 ac_cv_prog_ac_ct_CC="$ac_prog"
3464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3473 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3474 if test -n "$ac_ct_CC"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3476 $as_echo "$ac_ct_CC" >&6; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3483 test -n "$ac_ct_CC" && break
3486 if test "x$ac_ct_CC" = x; then
3489 case $cross_compiling:$ac_tool_warned in
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3493 ac_tool_warned=yes ;;
3502 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3504 as_fn_error $? "no acceptable C compiler found in \$PATH
3505 See \`config.log' for more details" "$LINENO" 5; }
3507 # Provide some information about the compiler.
3508 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3511 for ac_option in --version -v -V -qversion; do
3512 { { ac_try="$ac_compiler $ac_option >&5"
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3521 if test -s conftest.err; then
3523 ... rest of stderr output deleted ...
3524 10q' conftest.err >conftest.er1
3525 cat conftest.er1 >&5
3527 rm -f conftest.er1 conftest.err
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3543 ac_clean_files_save=$ac_clean_files
3544 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3545 # Try to create an executable without -o first, disregard a.out.
3546 # It will help us diagnose broken compilers, and finding out an intuition
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3549 $as_echo_n "checking whether the C compiler works... " >&6; }
3550 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3552 # The possible output files:
3553 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3556 for ac_file in $ac_files
3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3560 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3565 if { { ac_try="$ac_link_default"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3571 $as_echo "$ac_try_echo"; } >&5
3572 (eval "$ac_link_default") 2>&5
3574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575 test $ac_status = 0; }; then :
3576 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3577 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3578 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3579 # so that the user can short-circuit this test for compilers unknown to
3581 for ac_file in $ac_files ''
3583 test -f "$ac_file" || continue
3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3588 # We found the default executable, but exeext='' is most
3592 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3594 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3596 # We set ac_cv_exeext here because the later test for it is not
3597 # safe: cross compilers may not add the suffix if given an `-o'
3598 # argument, so we may need to know it at that point already.
3599 # Even if this section looks crufty: it has the advantage of
3606 test "$ac_cv_exeext" = no && ac_cv_exeext=
3611 if test -z "$ac_file"; then :
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3614 $as_echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3619 as_fn_error 77 "C compiler cannot create executables
3620 See \`config.log' for more details" "$LINENO" 5; }
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3623 $as_echo "yes" >&6; }
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3626 $as_echo_n "checking for C compiler default output file name... " >&6; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3628 $as_echo "$ac_file" >&6; }
3629 ac_exeext=$ac_cv_exeext
3631 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3632 ac_clean_files=$ac_clean_files_save
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3634 $as_echo_n "checking for suffix of executables... " >&6; }
3635 if { { ac_try="$ac_link"
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3641 $as_echo "$ac_try_echo"; } >&5
3642 (eval "$ac_link") 2>&5
3644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645 test $ac_status = 0; }; then :
3646 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3647 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3648 # work properly (i.e., refer to `conftest.exe'), while it won't with
3650 for ac_file in conftest.exe conftest conftest.*; do
3651 test -f "$ac_file" || continue
3653 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3654 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3663 See \`config.log' for more details" "$LINENO" 5; }
3665 rm -f conftest conftest$ac_cv_exeext
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3667 $as_echo "$ac_cv_exeext" >&6; }
3669 rm -f conftest.$ac_ext
3670 EXEEXT=$ac_cv_exeext
3672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3673 /* end confdefs.h. */
3678 FILE *f = fopen ("conftest.out", "w");
3679 return ferror (f) || fclose (f) != 0;
3685 ac_clean_files="$ac_clean_files conftest.out"
3686 # Check that the compiler produces executables we can run. If not, either
3687 # the compiler is broken, or we cross compile.
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3689 $as_echo_n "checking whether we are cross compiling... " >&6; }
3690 if test "$cross_compiling" != yes; then
3691 { { ac_try="$ac_link"
3693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3694 *) ac_try_echo=$ac_try;;
3696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3697 $as_echo "$ac_try_echo"; } >&5
3698 (eval "$ac_link") 2>&5
3700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }
3702 if { ac_try='./conftest$ac_cv_exeext'
3703 { { case "(($ac_try" in
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3708 $as_echo "$ac_try_echo"; } >&5
3709 (eval "$ac_try") 2>&5
3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712 test $ac_status = 0; }; }; then
3715 if test "$cross_compiling" = maybe; then
3718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3720 as_fn_error $? "cannot run C compiled programs.
3721 If you meant to cross compile, use \`--host'.
3722 See \`config.log' for more details" "$LINENO" 5; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3727 $as_echo "$cross_compiling" >&6; }
3729 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3730 ac_clean_files=$ac_clean_files_save
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3732 $as_echo_n "checking for suffix of object files... " >&6; }
3733 if ${ac_cv_objext+:} false; then :
3734 $as_echo_n "(cached) " >&6
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3747 rm -f conftest.o conftest.obj
3748 if { { ac_try="$ac_compile"
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 $as_echo "$ac_try_echo"; } >&5
3755 (eval "$ac_compile") 2>&5
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }; then :
3759 for ac_file in conftest.o conftest.obj conftest.*; do
3760 test -f "$ac_file" || continue;
3762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3763 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3768 $as_echo "$as_me: failed program was:" >&5
3769 sed 's/^/| /' conftest.$ac_ext >&5
3771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3773 as_fn_error $? "cannot compute suffix of object files: cannot compile
3774 See \`config.log' for more details" "$LINENO" 5; }
3776 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3779 $as_echo "$ac_cv_objext" >&6; }
3780 OBJEXT=$ac_cv_objext
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3783 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3784 if ${ac_cv_c_compiler_gnu+:} false; then :
3785 $as_echo_n "(cached) " >&6
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3801 if ac_fn_c_try_compile "$LINENO"; then :
3806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3807 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3811 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3812 if test $ac_compiler_gnu = yes; then
3817 ac_test_CFLAGS=${CFLAGS+set}
3818 ac_save_CFLAGS=$CFLAGS
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3820 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3821 if ${ac_cv_prog_cc_g+:} false; then :
3822 $as_echo_n "(cached) " >&6
3824 ac_save_c_werror_flag=$ac_c_werror_flag
3825 ac_c_werror_flag=yes
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3839 if ac_fn_c_try_compile "$LINENO"; then :
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3854 if ac_fn_c_try_compile "$LINENO"; then :
3857 ac_c_werror_flag=$ac_save_c_werror_flag
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3870 if ac_fn_c_try_compile "$LINENO"; then :
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878 ac_c_werror_flag=$ac_save_c_werror_flag
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3881 $as_echo "$ac_cv_prog_cc_g" >&6; }
3882 if test "$ac_test_CFLAGS" = set; then
3883 CFLAGS=$ac_save_CFLAGS
3884 elif test $ac_cv_prog_cc_g = yes; then
3885 if test "$GCC" = yes; then
3891 if test "$GCC" = yes; then
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3898 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3899 if ${ac_cv_prog_cc_c89+:} false; then :
3900 $as_echo_n "(cached) " >&6
3902 ac_cv_prog_cc_c89=no
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3909 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3910 struct buf { int x; };
3911 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3912 static char *e (p, i)
3918 static char *f (char * (*g) (char **, int), char **p, ...)
3923 s = g (p, va_arg (v,int));
3928 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3929 function prototypes and stuff, but not '\xHH' hex character constants.
3930 These don't provoke an error unfortunately, instead are silently treated
3931 as 'x'. The following induces an error, until -std is added to get
3932 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3933 array size at least. It's necessary to write '\x00'==0 to get something
3934 that's true only with -std. */
3935 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3937 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3938 inside strings and character constants. */
3940 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3942 int test (int i, double x);
3943 struct s1 {int (*f) (int a);};
3944 struct s2 {int (*f) (double a);};
3945 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3951 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3956 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3957 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3959 CC="$ac_save_CC $ac_arg"
3960 if ac_fn_c_try_compile "$LINENO"; then :
3961 ac_cv_prog_cc_c89=$ac_arg
3963 rm -f core conftest.err conftest.$ac_objext
3964 test "x$ac_cv_prog_cc_c89" != "xno" && break
3966 rm -f conftest.$ac_ext
3971 case "x$ac_cv_prog_cc_c89" in
3973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3974 $as_echo "none needed" >&6; } ;;
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3977 $as_echo "unsupported" >&6; } ;;
3979 CC="$CC $ac_cv_prog_cc_c89"
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3981 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3983 if test "x$ac_cv_prog_cc_c89" != xno; then :
3988 ac_cpp='$CPP $CPPFLAGS'
3989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3999 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4000 if ${am_cv_prog_cc_c_o+:} false; then :
4001 $as_echo_n "(cached) " >&6
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4014 # Make sure it works both with $CC and with simple cc.
4015 # Following AC_PROG_CC_C_O, we do the test twice because some
4016 # compilers refuse to overwrite an existing .o file with -o,
4017 # though they will create one.
4018 am_cv_prog_cc_c_o=yes
4020 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4021 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } \
4025 && test -f conftest2.$ac_objext; then
4028 am_cv_prog_cc_c_o=no
4032 rm -f core conftest*
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4036 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4037 if test "$am_cv_prog_cc_c_o" != yes; then
4038 # Losing compiler, so override with the script.
4039 # FIXME: It is wrong to rewrite CC.
4040 # But if we don't then we get into trouble of one sort or another.
4041 # A longer-term fix would be to have automake use am__CC in this case,
4042 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4043 CC="$am_aux_dir/compile $CC"
4046 ac_cpp='$CPP $CPPFLAGS'
4047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 depcc="$CC" am_compiler_list=
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4055 $as_echo_n "checking dependency style of $depcc... " >&6; }
4056 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4057 $as_echo_n "(cached) " >&6
4059 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4060 # We make a subdir and do the tests there. Otherwise we can end up
4061 # making bogus files that we don't know about and never remove. For
4062 # instance it was reported that on HP-UX the gcc test will end up
4063 # making a dummy file named 'D' -- because '-MD' means "put the output
4067 # Copy depcomp to subdir because otherwise we won't find it if we're
4068 # using a relative directory.
4069 cp "$am_depcomp" conftest.dir
4071 # We will build objects and dependencies in a subdirectory because
4072 # it helps to detect inapplicable dependency modes. For instance
4073 # both Tru64's cc and ICC support -MD to output dependencies as a
4074 # side effect of compilation, but ICC will put the dependencies in
4075 # the current directory while Tru64 will put them in the object
4079 am_cv_CC_dependencies_compiler_type=none
4080 if test "$am_compiler_list" = ""; then
4081 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4084 case " $depcc " in #(
4085 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4088 for depmode in $am_compiler_list; do
4089 # Setup a source with many dependencies, because some compilers
4090 # like to wrap large dependency lists on column 80 (with \), and
4091 # we should not choose a depcomp mode which is confused by this.
4093 # We need to recreate these files for each test, as the compiler may
4094 # overwrite some of them when testing with obscure command lines.
4095 # This happens at least with the AIX C compiler.
4097 for i in 1 2 3 4 5 6; do
4098 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4099 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4100 # Solaris 10 /bin/sh.
4101 echo '/* dummy */' > sub/conftst$i.h
4103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4105 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4106 # mode. It turns out that the SunPro C++ compiler does not properly
4107 # handle '-M -o', and we need to detect this. Also, some Intel
4108 # versions had trouble with output in subdirs.
4109 am__obj=sub/conftest.${OBJEXT-o}
4110 am__minus_obj="-o $am__obj"
4113 # This depmode causes a compiler race in universal mode.
4114 test "$am__universal" = false || continue
4117 # After this tag, mechanisms are not by side-effect, so they'll
4118 # only be used when explicitly requested.
4119 if test "x$enable_dependency_tracking" = xyes; then
4125 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4126 # This compiler won't grok '-c -o', but also, the minuso test has
4127 # not run yet. These depmodes are late enough in the game, and
4128 # so weak that their functioning should not be impacted.
4129 am__obj=conftest.${OBJEXT-o}
4134 if depmode=$depmode \
4135 source=sub/conftest.c object=$am__obj \
4136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4137 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4138 >/dev/null 2>conftest.err &&
4139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4141 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4143 # icc doesn't choke on unknown options, it will just issue warnings
4144 # or remarks (even with -Werror). So we grep stderr for any message
4145 # that says an option was ignored or not supported.
4146 # When given -MP, icc 7.0 and 7.1 complain thusly:
4147 # icc: Command line warning: ignoring option '-M'; no argument required
4148 # The diagnosis changed in icc 8.0:
4149 # icc: Command line remark: option '-MP' not supported
4150 if (grep 'ignoring option' conftest.err ||
4151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4152 am_cv_CC_dependencies_compiler_type=$depmode
4161 am_cv_CC_dependencies_compiler_type=none
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4166 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4167 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4170 test "x$enable_dependency_tracking" != xno \
4171 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4173 am__fastdepCC_FALSE='#'
4175 am__fastdepCC_TRUE='#'
4176 am__fastdepCC_FALSE=
4182 ac_cpp='$CPP $CPPFLAGS'
4183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4187 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4188 # On Suns, sometimes $CPP names a directory.
4189 if test -n "$CPP" && test -d "$CPP"; then
4192 if test -z "$CPP"; then
4193 if ${ac_cv_prog_CPP+:} false; then :
4194 $as_echo_n "(cached) " >&6
4196 # Double quotes because CPP needs to be expanded
4197 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4200 for ac_c_preproc_warn_flag in '' yes
4202 # Use a header file that comes with gcc, so configuring glibc
4203 # with a fresh cross-compiler works.
4204 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4205 # <limits.h> exists even on freestanding compilers.
4206 # On the NeXT, cc -E runs the code through the compiler's parser,
4207 # not just through cpp. "Syntax error" is here to catch this case.
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4211 # include <limits.h>
4213 # include <assert.h>
4217 if ac_fn_c_try_cpp "$LINENO"; then :
4220 # Broken: fails on valid input.
4223 rm -f conftest.err conftest.i conftest.$ac_ext
4225 # OK, works on sane cases. Now check whether nonexistent headers
4226 # can be detected and how.
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* end confdefs.h. */
4229 #include <ac_nonexistent.h>
4231 if ac_fn_c_try_cpp "$LINENO"; then :
4232 # Broken: success on invalid input.
4235 # Passes both tests.
4239 rm -f conftest.err conftest.i conftest.$ac_ext
4242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4243 rm -f conftest.i conftest.err conftest.$ac_ext
4244 if $ac_preproc_ok; then :
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4257 $as_echo "$CPP" >&6; }
4259 for ac_c_preproc_warn_flag in '' yes
4261 # Use a header file that comes with gcc, so configuring glibc
4262 # with a fresh cross-compiler works.
4263 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4264 # <limits.h> exists even on freestanding compilers.
4265 # On the NeXT, cc -E runs the code through the compiler's parser,
4266 # not just through cpp. "Syntax error" is here to catch this case.
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4270 # include <limits.h>
4272 # include <assert.h>
4276 if ac_fn_c_try_cpp "$LINENO"; then :
4279 # Broken: fails on valid input.
4282 rm -f conftest.err conftest.i conftest.$ac_ext
4284 # OK, works on sane cases. Now check whether nonexistent headers
4285 # can be detected and how.
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4288 #include <ac_nonexistent.h>
4290 if ac_fn_c_try_cpp "$LINENO"; then :
4291 # Broken: success on invalid input.
4294 # Passes both tests.
4298 rm -f conftest.err conftest.i conftest.$ac_ext
4301 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4302 rm -f conftest.i conftest.err conftest.$ac_ext
4303 if $ac_preproc_ok; then :
4306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4308 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4309 See \`config.log' for more details" "$LINENO" 5; }
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4320 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4321 if ${ac_cv_path_GREP+:} false; then :
4322 $as_echo_n "(cached) " >&6
4324 if test -z "$GREP"; then
4325 ac_path_GREP_found=false
4326 # Loop through the user's path and test for each of PROGNAME-LIST
4327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4331 test -z "$as_dir" && as_dir=.
4332 for ac_prog in grep ggrep; do
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4335 as_fn_executable_p "$ac_path_GREP" || continue
4336 # Check for GNU ac_path_GREP and select it if it is found.
4337 # Check for GNU $ac_path_GREP
4338 case `"$ac_path_GREP" --version 2>&1` in
4340 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4343 $as_echo_n 0123456789 >"conftest.in"
4346 cat "conftest.in" "conftest.in" >"conftest.tmp"
4347 mv "conftest.tmp" "conftest.in"
4348 cp "conftest.in" "conftest.nl"
4349 $as_echo 'GREP' >> "conftest.nl"
4350 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4351 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4352 as_fn_arith $ac_count + 1 && ac_count=$as_val
4353 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4354 # Best one so far, save it but keep looking for a better one
4355 ac_cv_path_GREP="$ac_path_GREP"
4356 ac_path_GREP_max=$ac_count
4358 # 10*(2^10) chars as input seems more than enough
4359 test $ac_count -gt 10 && break
4361 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4364 $ac_path_GREP_found && break 3
4369 if test -z "$ac_cv_path_GREP"; then
4370 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4373 ac_cv_path_GREP=$GREP
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4378 $as_echo "$ac_cv_path_GREP" >&6; }
4379 GREP="$ac_cv_path_GREP"
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4383 $as_echo_n "checking for egrep... " >&6; }
4384 if ${ac_cv_path_EGREP+:} false; then :
4385 $as_echo_n "(cached) " >&6
4387 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4388 then ac_cv_path_EGREP="$GREP -E"
4390 if test -z "$EGREP"; then
4391 ac_path_EGREP_found=false
4392 # Loop through the user's path and test for each of PROGNAME-LIST
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4397 test -z "$as_dir" && as_dir=.
4398 for ac_prog in egrep; do
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4401 as_fn_executable_p "$ac_path_EGREP" || continue
4402 # Check for GNU ac_path_EGREP and select it if it is found.
4403 # Check for GNU $ac_path_EGREP
4404 case `"$ac_path_EGREP" --version 2>&1` in
4406 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4409 $as_echo_n 0123456789 >"conftest.in"
4412 cat "conftest.in" "conftest.in" >"conftest.tmp"
4413 mv "conftest.tmp" "conftest.in"
4414 cp "conftest.in" "conftest.nl"
4415 $as_echo 'EGREP' >> "conftest.nl"
4416 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4418 as_fn_arith $ac_count + 1 && ac_count=$as_val
4419 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4420 # Best one so far, save it but keep looking for a better one
4421 ac_cv_path_EGREP="$ac_path_EGREP"
4422 ac_path_EGREP_max=$ac_count
4424 # 10*(2^10) chars as input seems more than enough
4425 test $ac_count -gt 10 && break
4427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4430 $ac_path_EGREP_found && break 3
4435 if test -z "$ac_cv_path_EGREP"; then
4436 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4439 ac_cv_path_EGREP=$EGREP
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4445 $as_echo "$ac_cv_path_EGREP" >&6; }
4446 EGREP="$ac_cv_path_EGREP"
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4450 $as_echo_n "checking for ANSI C header files... " >&6; }
4451 if ${ac_cv_header_stdc+:} false; then :
4452 $as_echo_n "(cached) " >&6
4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4455 /* end confdefs.h. */
4469 if ac_fn_c_try_compile "$LINENO"; then :
4470 ac_cv_header_stdc=yes
4472 ac_cv_header_stdc=no
4474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4476 if test $ac_cv_header_stdc = yes; then
4477 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4483 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4484 $EGREP "memchr" >/dev/null 2>&1; then :
4487 ac_cv_header_stdc=no
4493 if test $ac_cv_header_stdc = yes; then
4494 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4501 $EGREP "free" >/dev/null 2>&1; then :
4504 ac_cv_header_stdc=no
4510 if test $ac_cv_header_stdc = yes; then
4511 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4512 if test "$cross_compiling" = yes; then :
4515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4516 /* end confdefs.h. */
4519 #if ((' ' & 0x0FF) == 0x020)
4520 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4521 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4523 # define ISLOWER(c) \
4524 (('a' <= (c) && (c) <= 'i') \
4525 || ('j' <= (c) && (c) <= 'r') \
4526 || ('s' <= (c) && (c) <= 'z'))
4527 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4530 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4535 for (i = 0; i < 256; i++)
4536 if (XOR (islower (i), ISLOWER (i))
4537 || toupper (i) != TOUPPER (i))
4542 if ac_fn_c_try_run "$LINENO"; then :
4545 ac_cv_header_stdc=no
4547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4548 conftest.$ac_objext conftest.beam conftest.$ac_ext
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4554 $as_echo "$ac_cv_header_stdc" >&6; }
4555 if test $ac_cv_header_stdc = yes; then
4557 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4561 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4562 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4563 inttypes.h stdint.h unistd.h
4565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4566 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4568 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4569 cat >>confdefs.h <<_ACEOF
4570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4579 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4580 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4587 if test "$MINIX" = yes; then
4589 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4592 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4595 $as_echo "#define _MINIX 1" >>confdefs.h
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4601 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4602 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4603 $as_echo_n "(cached) " >&6
4605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4606 /* end confdefs.h. */
4608 # define __EXTENSIONS__ 1
4609 $ac_includes_default
4618 if ac_fn_c_try_compile "$LINENO"; then :
4619 ac_cv_safe_to_define___extensions__=yes
4621 ac_cv_safe_to_define___extensions__=no
4623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4626 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4627 test $ac_cv_safe_to_define___extensions__ = yes &&
4628 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4630 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4632 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4634 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4636 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4644 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4649 macro_version='2.4.2'
4650 macro_revision='1.3337'
4664 ltmain="$ac_aux_dir/ltmain.sh"
4666 # Backslashify metacharacters that are still active within
4667 # double-quoted strings.
4668 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4670 # Same as above, but do not quote variable references.
4671 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4673 # Sed substitution to delay expansion of an escaped shell variable in a
4674 # double_quote_subst'ed string.
4675 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4677 # Sed substitution to delay expansion of an escaped single quote.
4678 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4680 # Sed substitution to avoid accidental globbing in evaled expressions
4681 no_glob_subst='s/\*/\\\*/g'
4683 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4684 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4685 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4688 $as_echo_n "checking how to print strings... " >&6; }
4689 # Test print first, because it will be a builtin if present.
4690 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4691 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4693 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4696 # Use this function as a fallback that always works.
4697 func_fallback_echo ()
4699 eval 'cat <<_LTECHO_EOF
4703 ECHO='func_fallback_echo'
4706 # func_echo_all arg...
4707 # Invoke $ECHO with all args, space-separated.
4714 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4715 $as_echo "printf" >&6; } ;;
4716 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4717 $as_echo "print -r" >&6; } ;;
4718 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4719 $as_echo "cat" >&6; } ;;
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4736 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4737 if ${ac_cv_path_SED+:} false; then :
4738 $as_echo_n "(cached) " >&6
4740 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4741 for ac_i in 1 2 3 4 5 6 7; do
4742 ac_script="$ac_script$as_nl$ac_script"
4744 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4745 { ac_script=; unset ac_script;}
4746 if test -z "$SED"; then
4747 ac_path_SED_found=false
4748 # Loop through the user's path and test for each of PROGNAME-LIST
4749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 test -z "$as_dir" && as_dir=.
4754 for ac_prog in sed gsed; do
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4757 as_fn_executable_p "$ac_path_SED" || continue
4758 # Check for GNU ac_path_SED and select it if it is found.
4759 # Check for GNU $ac_path_SED
4760 case `"$ac_path_SED" --version 2>&1` in
4762 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4765 $as_echo_n 0123456789 >"conftest.in"
4768 cat "conftest.in" "conftest.in" >"conftest.tmp"
4769 mv "conftest.tmp" "conftest.in"
4770 cp "conftest.in" "conftest.nl"
4771 $as_echo '' >> "conftest.nl"
4772 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4773 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4774 as_fn_arith $ac_count + 1 && ac_count=$as_val
4775 if test $ac_count -gt ${ac_path_SED_max-0}; then
4776 # Best one so far, save it but keep looking for a better one
4777 ac_cv_path_SED="$ac_path_SED"
4778 ac_path_SED_max=$ac_count
4780 # 10*(2^10) chars as input seems more than enough
4781 test $ac_count -gt 10 && break
4783 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4786 $ac_path_SED_found && break 3
4791 if test -z "$ac_cv_path_SED"; then
4792 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4800 $as_echo "$ac_cv_path_SED" >&6; }
4801 SED="$ac_cv_path_SED"
4804 test -z "$SED" && SED=sed
4805 Xsed="$SED -e 1s/^X//"
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4818 $as_echo_n "checking for fgrep... " >&6; }
4819 if ${ac_cv_path_FGREP+:} false; then :
4820 $as_echo_n "(cached) " >&6
4822 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4823 then ac_cv_path_FGREP="$GREP -F"
4825 if test -z "$FGREP"; then
4826 ac_path_FGREP_found=false
4827 # Loop through the user's path and test for each of PROGNAME-LIST
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4832 test -z "$as_dir" && as_dir=.
4833 for ac_prog in fgrep; do
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4836 as_fn_executable_p "$ac_path_FGREP" || continue
4837 # Check for GNU ac_path_FGREP and select it if it is found.
4838 # Check for GNU $ac_path_FGREP
4839 case `"$ac_path_FGREP" --version 2>&1` in
4841 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4844 $as_echo_n 0123456789 >"conftest.in"
4847 cat "conftest.in" "conftest.in" >"conftest.tmp"
4848 mv "conftest.tmp" "conftest.in"
4849 cp "conftest.in" "conftest.nl"
4850 $as_echo 'FGREP' >> "conftest.nl"
4851 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4853 as_fn_arith $ac_count + 1 && ac_count=$as_val
4854 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4855 # Best one so far, save it but keep looking for a better one
4856 ac_cv_path_FGREP="$ac_path_FGREP"
4857 ac_path_FGREP_max=$ac_count
4859 # 10*(2^10) chars as input seems more than enough
4860 test $ac_count -gt 10 && break
4862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4865 $ac_path_FGREP_found && break 3
4870 if test -z "$ac_cv_path_FGREP"; then
4871 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4874 ac_cv_path_FGREP=$FGREP
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4880 $as_echo "$ac_cv_path_FGREP" >&6; }
4881 FGREP="$ac_cv_path_FGREP"
4884 test -z "$GREP" && GREP=grep
4904 # Check whether --with-gnu-ld was given.
4905 if test "${with_gnu_ld+set}" = set; then :
4906 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4912 if test "$GCC" = yes; then
4913 # Check if gcc -print-prog-name=ld gives a path.
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4915 $as_echo_n "checking for ld used by $CC... " >&6; }
4918 # gcc leaves a trailing carriage return which upsets mingw
4919 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4921 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4924 # Accept absolute paths.
4926 re_direlt='/[^/][^/]*/\.\./'
4927 # Canonicalize the pathname of ld
4928 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4929 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4930 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4932 test -z "$LD" && LD="$ac_prog"
4935 # If it fails, then pretend we aren't using GCC.
4939 # If it is relative, then search for the first ld in PATH.
4943 elif test "$with_gnu_ld" = yes; then
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4945 $as_echo_n "checking for GNU ld... " >&6; }
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4948 $as_echo_n "checking for non-GNU ld... " >&6; }
4950 if ${lt_cv_path_LD+:} false; then :
4951 $as_echo_n "(cached) " >&6
4953 if test -z "$LD"; then
4954 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4955 for ac_dir in $PATH; do
4957 test -z "$ac_dir" && ac_dir=.
4958 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4959 lt_cv_path_LD="$ac_dir/$ac_prog"
4960 # Check to see if the program is GNU ld. I'd rather use --version,
4961 # but apparently some variants of GNU ld only accept -v.
4962 # Break only if it was the GNU/non-GNU ld that we prefer.
4963 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4964 *GNU* | *'with BFD'*)
4965 test "$with_gnu_ld" != no && break
4968 test "$with_gnu_ld" != yes && break
4975 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4980 if test -n "$LD"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4982 $as_echo "$LD" >&6; }
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4987 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4989 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4990 if ${lt_cv_prog_gnu_ld+:} false; then :
4991 $as_echo_n "(cached) " >&6
4993 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4994 case `$LD -v 2>&1 </dev/null` in
4995 *GNU* | *'with BFD'*)
4996 lt_cv_prog_gnu_ld=yes
4999 lt_cv_prog_gnu_ld=no
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5004 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5005 with_gnu_ld=$lt_cv_prog_gnu_ld
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5016 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5017 if ${lt_cv_path_NM+:} false; then :
5018 $as_echo_n "(cached) " >&6
5020 if test -n "$NM"; then
5021 # Let the user override the test.
5024 lt_nm_to_check="${ac_tool_prefix}nm"
5025 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5026 lt_nm_to_check="$lt_nm_to_check nm"
5028 for lt_tmp_nm in $lt_nm_to_check; do
5029 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5030 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5032 test -z "$ac_dir" && ac_dir=.
5033 tmp_nm="$ac_dir/$lt_tmp_nm"
5034 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5035 # Check to see if the nm accepts a BSD-compat flag.
5036 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5037 # nm: unknown option "B" ignored
5038 # Tru64's nm complains that /dev/null is an invalid object file
5039 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5040 */dev/null* | *'Invalid file or object type'*)
5041 lt_cv_path_NM="$tmp_nm -B"
5045 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5047 lt_cv_path_NM="$tmp_nm -p"
5051 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5052 continue # so that we can try to find one that supports BSD flags
5061 : ${lt_cv_path_NM=no}
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5065 $as_echo "$lt_cv_path_NM" >&6; }
5066 if test "$lt_cv_path_NM" != "no"; then
5069 # Didn't find any BSD compatible name lister, look for dumpbin.
5070 if test -n "$DUMPBIN"; then :
5071 # Let the user override the test.
5073 if test -n "$ac_tool_prefix"; then
5074 for ac_prog in dumpbin "link -dump"
5076 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5077 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5079 $as_echo_n "checking for $ac_word... " >&6; }
5080 if ${ac_cv_prog_DUMPBIN+:} false; then :
5081 $as_echo_n "(cached) " >&6
5083 if test -n "$DUMPBIN"; then
5084 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5093 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 DUMPBIN=$ac_cv_prog_DUMPBIN
5104 if test -n "$DUMPBIN"; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5106 $as_echo "$DUMPBIN" >&6; }
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5109 $as_echo "no" >&6; }
5113 test -n "$DUMPBIN" && break
5116 if test -z "$DUMPBIN"; then
5117 ac_ct_DUMPBIN=$DUMPBIN
5118 for ac_prog in dumpbin "link -dump"
5120 # Extract the first word of "$ac_prog", so it can be a program name with args.
5121 set dummy $ac_prog; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5125 $as_echo_n "(cached) " >&6
5127 if test -n "$ac_ct_DUMPBIN"; then
5128 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5148 if test -n "$ac_ct_DUMPBIN"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5150 $as_echo "$ac_ct_DUMPBIN" >&6; }
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5157 test -n "$ac_ct_DUMPBIN" && break
5160 if test "x$ac_ct_DUMPBIN" = x; then
5163 case $cross_compiling:$ac_tool_warned in
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5167 ac_tool_warned=yes ;;
5169 DUMPBIN=$ac_ct_DUMPBIN
5173 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5175 DUMPBIN="$DUMPBIN -symbols"
5183 if test "$DUMPBIN" != ":"; then
5187 test -z "$NM" && NM=nm
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5195 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5196 if ${lt_cv_nm_interface+:} false; then :
5197 $as_echo_n "(cached) " >&6
5199 lt_cv_nm_interface="BSD nm"
5200 echo "int some_variable = 0;" > conftest.$ac_ext
5201 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5202 (eval "$ac_compile" 2>conftest.err)
5203 cat conftest.err >&5
5204 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5205 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5206 cat conftest.err >&5
5207 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5208 cat conftest.out >&5
5209 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5210 lt_cv_nm_interface="MS dumpbin"
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5215 $as_echo "$lt_cv_nm_interface" >&6; }
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5218 $as_echo_n "checking whether ln -s works... " >&6; }
5220 if test "$LN_S" = "ln -s"; then
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5222 $as_echo "yes" >&6; }
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5225 $as_echo "no, using $LN_S" >&6; }
5228 # find the maximum length of command line arguments
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5230 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5231 if ${lt_cv_sys_max_cmd_len+:} false; then :
5232 $as_echo_n "(cached) " >&6
5239 # On DJGPP, this test can blow up pretty badly due to problems in libc
5240 # (any single argument exceeding 2000 bytes causes a buffer overrun
5241 # during glob expansion). Even if it were fixed, the result of this
5242 # check would be larger than it should be.
5243 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5247 # Under GNU Hurd, this test is not required because there is
5248 # no limit to the length of command line arguments.
5249 # Libtool will interpret -1 as no limit whatsoever
5250 lt_cv_sys_max_cmd_len=-1;
5253 cygwin* | mingw* | cegcc*)
5254 # On Win9x/ME, this test blows up -- it succeeds, but takes
5255 # about 5 minutes as the teststring grows exponentially.
5256 # Worse, since 9x/ME are not pre-emptively multitasking,
5257 # you end up with a "frozen" computer, even though with patience
5258 # the test eventually succeeds (with a max line length of 256k).
5259 # Instead, let's just punt: use the minimum linelength reported by
5260 # all of the supported platforms: 8192 (on NT/2K/XP).
5261 lt_cv_sys_max_cmd_len=8192;
5265 # On MiNT this can take a long time and run out of memory.
5266 lt_cv_sys_max_cmd_len=8192;
5270 # On AmigaOS with pdksh, this test takes hours, literally.
5271 # So we just punt and use a minimum line length of 8192.
5272 lt_cv_sys_max_cmd_len=8192;
5275 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5276 # This has been around since 386BSD, at least. Likely further.
5277 if test -x /sbin/sysctl; then
5278 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5279 elif test -x /usr/sbin/sysctl; then
5280 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5282 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5284 # And add a safety zone
5285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5290 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5291 lt_cv_sys_max_cmd_len=196608
5295 # The test takes a long time on OS/2.
5296 lt_cv_sys_max_cmd_len=8192
5300 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5301 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5302 # nice to cause kernel panics so lets avoid the loop below.
5303 # First set a reasonable default.
5304 lt_cv_sys_max_cmd_len=16384
5306 if test -x /sbin/sysconfig; then
5307 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5308 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5313 lt_cv_sys_max_cmd_len=102400
5315 sysv5* | sco5v6* | sysv4.2uw2*)
5316 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5317 if test -n "$kargmax"; then
5318 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5320 lt_cv_sys_max_cmd_len=32768
5324 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5325 if test -n "$lt_cv_sys_max_cmd_len"; then
5326 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5329 # Make teststring a little bigger before we do anything with it.
5330 # a 1K string should be a reasonable start.
5331 for i in 1 2 3 4 5 6 7 8 ; do
5332 teststring=$teststring$teststring
5334 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5335 # If test is not a shell built-in, we'll probably end up computing a
5336 # maximum length that is only half of the actual maximum length, but
5338 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5339 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5340 test $i != 17 # 1/2 MB should be enough
5343 teststring=$teststring$teststring
5345 # Only check the string length outside the loop.
5346 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5348 # Add a significant safety factor because C++ compilers can tack on
5349 # massive amounts of additional arguments before passing them to the
5350 # linker. It appears as though 1/2 is a usable value.
5351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5358 if test -n $lt_cv_sys_max_cmd_len ; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5360 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5363 $as_echo "none" >&6; }
5365 max_cmd_len=$lt_cv_sys_max_cmd_len
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5377 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5378 # Try some XSI features
5381 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5383 && eval 'test $(( 1 + 1 )) -eq 2 \
5384 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5387 $as_echo "$xsi_shell" >&6; }
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5391 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5393 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5395 && lt_shell_append=yes
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5397 $as_echo "$lt_shell_append" >&6; }
5400 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5410 # test EBCDIC or ASCII
5411 case `echo X|tr X '\101'` in
5412 A) # ASCII based system
5413 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5414 lt_SP2NL='tr \040 \012'
5415 lt_NL2SP='tr \015\012 \040\040'
5417 *) # EBCDIC based system
5418 lt_SP2NL='tr \100 \n'
5419 lt_NL2SP='tr \r\n \100\100'
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5432 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5433 if ${lt_cv_to_host_file_cmd+:} false; then :
5434 $as_echo_n "(cached) " >&6
5439 *-*-mingw* ) # actually msys
5440 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5443 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5445 * ) # otherwise, assume *nix
5446 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5452 *-*-mingw* ) # actually msys
5453 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5456 lt_cv_to_host_file_cmd=func_convert_file_noop
5458 * ) # otherwise, assume *nix
5459 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5463 * ) # unhandled hosts (and "normal" native builds)
5464 lt_cv_to_host_file_cmd=func_convert_file_noop
5470 to_host_file_cmd=$lt_cv_to_host_file_cmd
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5472 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5479 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5480 if ${lt_cv_to_tool_file_cmd+:} false; then :
5481 $as_echo_n "(cached) " >&6
5483 #assume ordinary cross tools, or native build.
5484 lt_cv_to_tool_file_cmd=func_convert_file_noop
5488 *-*-mingw* ) # actually msys
5489 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5497 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5499 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5506 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5507 if ${lt_cv_ld_reload_flag+:} false; then :
5508 $as_echo_n "(cached) " >&6
5510 lt_cv_ld_reload_flag='-r'
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5513 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5514 reload_flag=$lt_cv_ld_reload_flag
5515 case $reload_flag in
5517 *) reload_flag=" $reload_flag" ;;
5519 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5521 cygwin* | mingw* | pw32* | cegcc*)
5522 if test "$GCC" != yes; then
5527 if test "$GCC" = yes; then
5528 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5530 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5543 if test -n "$ac_tool_prefix"; then
5544 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5545 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5547 $as_echo_n "checking for $ac_word... " >&6; }
5548 if ${ac_cv_prog_OBJDUMP+:} false; then :
5549 $as_echo_n "(cached) " >&6
5551 if test -n "$OBJDUMP"; then
5552 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 OBJDUMP=$ac_cv_prog_OBJDUMP
5572 if test -n "$OBJDUMP"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5574 $as_echo "$OBJDUMP" >&6; }
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5582 if test -z "$ac_cv_prog_OBJDUMP"; then
5583 ac_ct_OBJDUMP=$OBJDUMP
5584 # Extract the first word of "objdump", so it can be a program name with args.
5585 set dummy objdump; ac_word=$2
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5587 $as_echo_n "checking for $ac_word... " >&6; }
5588 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5589 $as_echo_n "(cached) " >&6
5591 if test -n "$ac_ct_OBJDUMP"; then
5592 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5598 test -z "$as_dir" && as_dir=.
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5612 if test -n "$ac_ct_OBJDUMP"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5614 $as_echo "$ac_ct_OBJDUMP" >&6; }
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5617 $as_echo "no" >&6; }
5620 if test "x$ac_ct_OBJDUMP" = x; then
5623 case $cross_compiling:$ac_tool_warned in
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5627 ac_tool_warned=yes ;;
5629 OBJDUMP=$ac_ct_OBJDUMP
5632 OBJDUMP="$ac_cv_prog_OBJDUMP"
5635 test -z "$OBJDUMP" && OBJDUMP=objdump
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5646 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5647 if ${lt_cv_deplibs_check_method+:} false; then :
5648 $as_echo_n "(cached) " >&6
5650 lt_cv_file_magic_cmd='$MAGIC_CMD'
5651 lt_cv_file_magic_test_file=
5652 lt_cv_deplibs_check_method='unknown'
5653 # Need to set the preceding variable on all platforms that support
5654 # interlibrary dependencies.
5655 # 'none' -- dependencies not supported.
5656 # `unknown' -- same as none, but documents that we really don't know.
5657 # 'pass_all' -- all dependencies passed with no checks.
5658 # 'test_compile' -- check by making test program.
5659 # 'file_magic [[regex]]' -- check by looking for files in library path
5660 # which responds to the $file_magic_cmd with a given extended regex.
5661 # If you have `file' or equivalent on your system and you're not sure
5662 # whether `pass_all' will *always* work, you probably want this one.
5666 lt_cv_deplibs_check_method=pass_all
5670 lt_cv_deplibs_check_method=pass_all
5674 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5675 lt_cv_file_magic_cmd='/usr/bin/file -L'
5676 lt_cv_file_magic_test_file=/shlib/libc.so
5680 # func_win32_libid is a shell function defined in ltmain.sh
5681 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5682 lt_cv_file_magic_cmd='func_win32_libid'
5686 # Base MSYS/MinGW do not provide the 'file' command needed by
5687 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5688 # unless we find 'file', for example because we are cross-compiling.
5689 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5690 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5691 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5692 lt_cv_file_magic_cmd='func_win32_libid'
5694 # Keep this pattern in sync with the one in func_win32_libid.
5695 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5696 lt_cv_file_magic_cmd='$OBJDUMP -f'
5701 # use the weaker test based on 'objdump'. See mingw*.
5702 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5703 lt_cv_file_magic_cmd='$OBJDUMP -f'
5706 darwin* | rhapsody*)
5707 lt_cv_deplibs_check_method=pass_all
5710 freebsd* | dragonfly*)
5711 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5714 # Not sure whether the presence of OpenBSD here was a mistake.
5715 # Let's accept both of them until this is cleared up.
5716 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5717 lt_cv_file_magic_cmd=/usr/bin/file
5718 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5722 lt_cv_deplibs_check_method=pass_all
5727 lt_cv_deplibs_check_method=pass_all
5731 lt_cv_deplibs_check_method=pass_all
5734 hpux10.20* | hpux11*)
5735 lt_cv_file_magic_cmd=/usr/bin/file
5738 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5739 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5742 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]'
5743 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5746 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5747 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5753 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5754 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5757 irix5* | irix6* | nonstopux*)
5759 *-32|*"-32 ") libmagic=32-bit;;
5760 *-n32|*"-n32 ") libmagic=N32;;
5761 *-64|*"-64 ") libmagic=64-bit;;
5762 *) libmagic=never-match;;
5764 lt_cv_deplibs_check_method=pass_all
5767 # This must be glibc/ELF.
5768 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5769 lt_cv_deplibs_check_method=pass_all
5773 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5774 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5776 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5781 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5782 lt_cv_file_magic_cmd=/usr/bin/file
5783 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5787 lt_cv_deplibs_check_method=pass_all
5791 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5794 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5798 osf3* | osf4* | osf5*)
5799 lt_cv_deplibs_check_method=pass_all
5803 lt_cv_deplibs_check_method=pass_all
5807 lt_cv_deplibs_check_method=pass_all
5810 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5811 lt_cv_deplibs_check_method=pass_all
5815 case $host_vendor in
5817 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]'
5818 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5821 lt_cv_deplibs_check_method=pass_all
5824 lt_cv_file_magic_cmd='/bin/file'
5825 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5828 lt_cv_file_magic_cmd='/bin/file'
5829 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5830 lt_cv_file_magic_test_file=/lib/libc.so
5833 lt_cv_deplibs_check_method=pass_all
5836 lt_cv_deplibs_check_method=pass_all
5842 lt_cv_deplibs_check_method=pass_all
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5848 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5852 if test "$build" = "$host"; then
5855 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5858 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5864 file_magic_cmd=$lt_cv_file_magic_cmd
5865 deplibs_check_method=$lt_cv_deplibs_check_method
5866 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5889 if test -n "$ac_tool_prefix"; then
5890 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5891 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5893 $as_echo_n "checking for $ac_word... " >&6; }
5894 if ${ac_cv_prog_DLLTOOL+:} false; then :
5895 $as_echo_n "(cached) " >&6
5897 if test -n "$DLLTOOL"; then
5898 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5917 DLLTOOL=$ac_cv_prog_DLLTOOL
5918 if test -n "$DLLTOOL"; then
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5920 $as_echo "$DLLTOOL" >&6; }
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5923 $as_echo "no" >&6; }
5928 if test -z "$ac_cv_prog_DLLTOOL"; then
5929 ac_ct_DLLTOOL=$DLLTOOL
5930 # Extract the first word of "dlltool", so it can be a program name with args.
5931 set dummy dlltool; ac_word=$2
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5933 $as_echo_n "checking for $ac_word... " >&6; }
5934 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5935 $as_echo_n "(cached) " >&6
5937 if test -n "$ac_ct_DLLTOOL"; then
5938 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 test -z "$as_dir" && as_dir=.
5945 for ac_exec_ext in '' $ac_executable_extensions; do
5946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5947 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5958 if test -n "$ac_ct_DLLTOOL"; then
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5960 $as_echo "$ac_ct_DLLTOOL" >&6; }
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5963 $as_echo "no" >&6; }
5966 if test "x$ac_ct_DLLTOOL" = x; then
5969 case $cross_compiling:$ac_tool_warned in
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5973 ac_tool_warned=yes ;;
5975 DLLTOOL=$ac_ct_DLLTOOL
5978 DLLTOOL="$ac_cv_prog_DLLTOOL"
5981 test -z "$DLLTOOL" && DLLTOOL=dlltool
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5993 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5994 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5995 $as_echo_n "(cached) " >&6
5997 lt_cv_sharedlib_from_linklib_cmd='unknown'
6000 cygwin* | mingw* | pw32* | cegcc*)
6001 # two different shell functions defined in ltmain.sh
6002 # decide which to use based on capabilities of $DLLTOOL
6003 case `$DLLTOOL --help 2>&1` in
6004 *--identify-strict*)
6005 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6008 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6013 # fallback: assume linklib IS sharedlib
6014 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6020 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6021 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6022 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6030 if test -n "$ac_tool_prefix"; then
6033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if ${ac_cv_prog_AR+:} false; then :
6038 $as_echo_n "(cached) " >&6
6040 if test -n "$AR"; then
6041 ac_cv_prog_AR="$AR" # Let the user override the test.
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6061 if test -n "$AR"; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6063 $as_echo "$AR" >&6; }
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6070 test -n "$AR" && break
6073 if test -z "$AR"; then
6077 # Extract the first word of "$ac_prog", so it can be a program name with args.
6078 set dummy $ac_prog; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6082 $as_echo_n "(cached) " >&6
6084 if test -n "$ac_ct_AR"; then
6085 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6094 ac_cv_prog_ac_ct_AR="$ac_prog"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6105 if test -n "$ac_ct_AR"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6107 $as_echo "$ac_ct_AR" >&6; }
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6114 test -n "$ac_ct_AR" && break
6117 if test "x$ac_ct_AR" = x; then
6120 case $cross_compiling:$ac_tool_warned in
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124 ac_tool_warned=yes ;;
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6144 $as_echo_n "checking for archiver @FILE support... " >&6; }
6145 if ${lt_cv_ar_at_file+:} false; then :
6146 $as_echo_n "(cached) " >&6
6149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6150 /* end confdefs.h. */
6160 if ac_fn_c_try_compile "$LINENO"; then :
6161 echo conftest.$ac_objext > conftest.lst
6162 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6164 (eval $lt_ar_try) 2>&5
6166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6167 test $ac_status = 0; }
6168 if test "$ac_status" -eq 0; then
6169 # Ensure the archiver fails upon bogus file names.
6170 rm -f conftest.$ac_objext libconftest.a
6171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6172 (eval $lt_ar_try) 2>&5
6174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6175 test $ac_status = 0; }
6176 if test "$ac_status" -ne 0; then
6180 rm -f conftest.* libconftest.a
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6187 $as_echo "$lt_cv_ar_at_file" >&6; }
6189 if test "x$lt_cv_ar_at_file" = xno; then
6192 archiver_list_spec=$lt_cv_ar_at_file
6201 if test -n "$ac_tool_prefix"; then
6202 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6203 set dummy ${ac_tool_prefix}strip; ac_word=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_STRIP+:} false; then :
6207 $as_echo_n "(cached) " >&6
6209 if test -n "$STRIP"; then
6210 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6229 STRIP=$ac_cv_prog_STRIP
6230 if test -n "$STRIP"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6232 $as_echo "$STRIP" >&6; }
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6240 if test -z "$ac_cv_prog_STRIP"; then
6242 # Extract the first word of "strip", so it can be a program name with args.
6243 set dummy strip; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6247 $as_echo_n "(cached) " >&6
6249 if test -n "$ac_ct_STRIP"; then
6250 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6259 ac_cv_prog_ac_ct_STRIP="strip"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6270 if test -n "$ac_ct_STRIP"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6272 $as_echo "$ac_ct_STRIP" >&6; }
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6278 if test "x$ac_ct_STRIP" = x; then
6281 case $cross_compiling:$ac_tool_warned in
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6285 ac_tool_warned=yes ;;
6290 STRIP="$ac_cv_prog_STRIP"
6293 test -z "$STRIP" && STRIP=:
6300 if test -n "$ac_tool_prefix"; then
6301 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6302 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6304 $as_echo_n "checking for $ac_word... " >&6; }
6305 if ${ac_cv_prog_RANLIB+:} false; then :
6306 $as_echo_n "(cached) " >&6
6308 if test -n "$RANLIB"; then
6309 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir=.
6316 for ac_exec_ext in '' $ac_executable_extensions; do
6317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 RANLIB=$ac_cv_prog_RANLIB
6329 if test -n "$RANLIB"; then
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6331 $as_echo "$RANLIB" >&6; }
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6334 $as_echo "no" >&6; }
6339 if test -z "$ac_cv_prog_RANLIB"; then
6340 ac_ct_RANLIB=$RANLIB
6341 # Extract the first word of "ranlib", so it can be a program name with args.
6342 set dummy ranlib; ac_word=$2
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6344 $as_echo_n "checking for $ac_word... " >&6; }
6345 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6346 $as_echo_n "(cached) " >&6
6348 if test -n "$ac_ct_RANLIB"; then
6349 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355 test -z "$as_dir" && as_dir=.
6356 for ac_exec_ext in '' $ac_executable_extensions; do
6357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6358 ac_cv_prog_ac_ct_RANLIB="ranlib"
6359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6369 if test -n "$ac_ct_RANLIB"; then
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6371 $as_echo "$ac_ct_RANLIB" >&6; }
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6374 $as_echo "no" >&6; }
6377 if test "x$ac_ct_RANLIB" = x; then
6380 case $cross_compiling:$ac_tool_warned in
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6384 ac_tool_warned=yes ;;
6386 RANLIB=$ac_ct_RANLIB
6389 RANLIB="$ac_cv_prog_RANLIB"
6392 test -z "$RANLIB" && RANLIB=:
6399 # Determine commands to create old-style static archives.
6400 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6401 old_postinstall_cmds='chmod 644 $oldlib'
6402 old_postuninstall_cmds=
6404 if test -n "$RANLIB"; then
6407 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6410 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6413 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6418 lock_old_archive_extraction=yes ;;
6420 lock_old_archive_extraction=no ;;
6461 # If no C compiler was specified, use CC.
6464 # If no C compiler flags were specified, use CFLAGS.
6465 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6467 # Allow CC to be a program name with arguments.
6471 # Check for command to grab the raw symbol name followed by C symbol from nm.
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6473 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6474 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6475 $as_echo_n "(cached) " >&6
6478 # These are sane defaults that work on at least a few old systems.
6479 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6481 # Character class describing NM global symbol codes.
6482 symcode='[BCDEGRST]'
6484 # Regexp to match symbols that can be accessed directly from C.
6485 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6487 # Define system-specific variables.
6492 cygwin* | mingw* | pw32* | cegcc*)
6493 symcode='[ABCDGISTW]'
6496 if test "$host_cpu" = ia64; then
6497 symcode='[ABCDEGRST]'
6501 symcode='[BCDEGRST]'
6504 symcode='[BCDEGQRST]'
6515 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6523 # If we're using GNU nm, then use its standard symbol codes.
6524 case `$NM -V 2>&1` in
6525 *GNU* | *'with BFD'*)
6526 symcode='[ABCDGIRSTW]' ;;
6529 # Transform an extracted symbol line into a proper C declaration.
6530 # Some systems (esp. on ia64) link data and code symbols differently,
6531 # so use this general approach.
6532 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6534 # Transform an extracted symbol line into symbol name and symbol address
6535 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6536 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'"
6538 # Handle CRLF in mingw tool chain
6542 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6546 # Try without a prefix underscore, then with it.
6547 for ac_symprfx in "" "_"; do
6549 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6550 symxfrm="\\1 $ac_symprfx\\2 \\2"
6552 # Write the raw and C identifiers.
6553 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6554 # Fake it for dumpbin and say T for any non-static function
6555 # and D for any global variable.
6556 # Also find C++ and __fastcall symbols from MSVC++,
6557 # which start with @ or ?.
6558 lt_cv_sys_global_symbol_pipe="$AWK '"\
6559 " {last_section=section; section=\$ 3};"\
6560 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6561 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6562 " \$ 0!~/External *\|/{next};"\
6563 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6564 " {if(hide[section]) next};"\
6565 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6566 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6567 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6568 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6569 " ' prfx=^$ac_symprfx"
6571 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6573 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6575 # Check to see that the pipe works correctly.
6579 cat > conftest.$ac_ext <<_LT_EOF
6584 void nm_test_func(void);
6585 void nm_test_func(void){}
6589 int main(){nm_test_var='a';nm_test_func();return(0);}
6592 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6593 (eval $ac_compile) 2>&5
6595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6596 test $ac_status = 0; }; then
6597 # Now try to grab the symbols.
6599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6600 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6603 test $ac_status = 0; } && test -s "$nlist"; then
6604 # Try sorting and uniquifying the output.
6605 if sort "$nlist" | uniq > "$nlist"T; then
6606 mv -f "$nlist"T "$nlist"
6611 # Make sure that we snagged all the symbols we need.
6612 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6613 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6614 cat <<_LT_EOF > conftest.$ac_ext
6615 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6616 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6617 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6618 relocations are performed -- see ld's documentation on pseudo-relocs. */
6619 # define LT_DLSYM_CONST
6620 #elif defined(__osf__)
6621 /* This system does not cope well with relocations in const data. */
6622 # define LT_DLSYM_CONST
6624 # define LT_DLSYM_CONST const
6632 # Now generate the symbol file.
6633 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6635 cat <<_LT_EOF >> conftest.$ac_ext
6637 /* The mapping between symbol names and symbols. */
6638 LT_DLSYM_CONST struct {
6642 lt__PROGRAM__LTX_preloaded_symbols[] =
6644 { "@PROGRAM@", (void *) 0 },
6646 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6647 cat <<\_LT_EOF >> conftest.$ac_ext
6651 /* This works around a problem in FreeBSD linker */
6652 #ifdef FREEBSD_WORKAROUND
6653 static const void *lt_preloaded_setup() {
6654 return lt__PROGRAM__LTX_preloaded_symbols;
6662 # Now try linking the two files.
6663 mv conftest.$ac_objext conftstm.$ac_objext
6664 lt_globsym_save_LIBS=$LIBS
6665 lt_globsym_save_CFLAGS=$CFLAGS
6666 LIBS="conftstm.$ac_objext"
6667 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6669 (eval $ac_link) 2>&5
6671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6672 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6675 LIBS=$lt_globsym_save_LIBS
6676 CFLAGS=$lt_globsym_save_CFLAGS
6678 echo "cannot find nm_test_func in $nlist" >&5
6681 echo "cannot find nm_test_var in $nlist" >&5
6684 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6687 echo "$progname: failed program was:" >&5
6688 cat conftest.$ac_ext >&5
6690 rm -rf conftest* conftst*
6692 # Do not use the global_symbol_pipe unless it works.
6693 if test "$pipe_works" = yes; then
6696 lt_cv_sys_global_symbol_pipe=
6702 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6703 lt_cv_sys_global_symbol_to_cdecl=
6705 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6707 $as_echo "failed" >&6; }
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6710 $as_echo "ok" >&6; }
6713 # Response file support.
6714 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6715 nm_file_list_spec='@'
6716 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6717 nm_file_list_spec='@'
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6747 $as_echo_n "checking for sysroot... " >&6; }
6749 # Check whether --with-sysroot was given.
6750 if test "${with_sysroot+set}" = set; then :
6751 withval=$with_sysroot;
6758 case ${with_sysroot} in #(
6760 if test "$GCC" = yes; then
6761 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6765 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6771 $as_echo "${with_sysroot}" >&6; }
6772 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6777 $as_echo "${lt_sysroot:-no}" >&6; }
6783 # Check whether --enable-libtool-lock was given.
6784 if test "${enable_libtool_lock+set}" = set; then :
6785 enableval=$enable_libtool_lock;
6788 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6790 # Some flags need to be propagated to the compiler or linker for good
6794 # Find out which ABI we are using.
6795 echo 'int i;' > conftest.$ac_ext
6796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6797 (eval $ac_compile) 2>&5
6799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6800 test $ac_status = 0; }; then
6801 case `/usr/bin/file conftest.$ac_objext` in
6813 # Find out which ABI we are using.
6814 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6816 (eval $ac_compile) 2>&5
6818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6819 test $ac_status = 0; }; then
6820 if test "$lt_cv_prog_gnu_ld" = yes; then
6821 case `/usr/bin/file conftest.$ac_objext` in
6823 LD="${LD-ld} -melf32bsmip"
6826 LD="${LD-ld} -melf32bmipn32"
6829 LD="${LD-ld} -melf64bmip"
6833 case `/usr/bin/file conftest.$ac_objext` in
6849 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6850 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6851 # Find out which ABI we are using.
6852 echo 'int i;' > conftest.$ac_ext
6853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6854 (eval $ac_compile) 2>&5
6856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6857 test $ac_status = 0; }; then
6858 case `/usr/bin/file conftest.o` in
6861 x86_64-*kfreebsd*-gnu)
6862 LD="${LD-ld} -m elf_i386_fbsd"
6865 LD="${LD-ld} -m elf_i386"
6867 ppc64-*linux*|powerpc64-*linux*)
6868 LD="${LD-ld} -m elf32ppclinux"
6871 LD="${LD-ld} -m elf_s390"
6874 LD="${LD-ld} -m elf32_sparc"
6880 x86_64-*kfreebsd*-gnu)
6881 LD="${LD-ld} -m elf_x86_64_fbsd"
6884 LD="${LD-ld} -m elf_x86_64"
6886 ppc*-*linux*|powerpc*-*linux*)
6887 LD="${LD-ld} -m elf64ppc"
6889 s390*-*linux*|s390*-*tpf*)
6890 LD="${LD-ld} -m elf64_s390"
6893 LD="${LD-ld} -m elf64_sparc"
6903 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6904 SAVE_CFLAGS="$CFLAGS"
6905 CFLAGS="$CFLAGS -belf"
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6907 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6908 if ${lt_cv_cc_needs_belf+:} false; then :
6909 $as_echo_n "(cached) " >&6
6912 ac_cpp='$CPP $CPPFLAGS'
6913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6918 /* end confdefs.h. */
6928 if ac_fn_c_try_link "$LINENO"; then :
6929 lt_cv_cc_needs_belf=yes
6931 lt_cv_cc_needs_belf=no
6933 rm -f core conftest.err conftest.$ac_objext \
6934 conftest$ac_exeext conftest.$ac_ext
6936 ac_cpp='$CPP $CPPFLAGS'
6937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6943 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6944 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6945 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6946 CFLAGS="$SAVE_CFLAGS"
6950 # Find out which ABI we are using.
6951 echo 'int i;' > conftest.$ac_ext
6952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6953 (eval $ac_compile) 2>&5
6955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6956 test $ac_status = 0; }; then
6957 case `/usr/bin/file conftest.o` in
6959 case $lt_cv_prog_gnu_ld in
6963 LD="${LD-ld} -m elf_x86_64"
6966 LD="${LD-ld} -m elf64_sparc"
6969 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6970 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6975 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6987 need_locks="$enable_libtool_lock"
6989 if test -n "$ac_tool_prefix"; then
6990 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6991 set dummy ${ac_tool_prefix}mt; ac_word=$2
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6993 $as_echo_n "checking for $ac_word... " >&6; }
6994 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6995 $as_echo_n "(cached) " >&6
6997 if test -n "$MANIFEST_TOOL"; then
6998 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7004 test -z "$as_dir" && as_dir=.
7005 for ac_exec_ext in '' $ac_executable_extensions; do
7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7007 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7018 if test -n "$MANIFEST_TOOL"; then
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7020 $as_echo "$MANIFEST_TOOL" >&6; }
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7028 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7029 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7030 # Extract the first word of "mt", so it can be a program name with args.
7031 set dummy mt; ac_word=$2
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7033 $as_echo_n "checking for $ac_word... " >&6; }
7034 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7035 $as_echo_n "(cached) " >&6
7037 if test -n "$ac_ct_MANIFEST_TOOL"; then
7038 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 test -z "$as_dir" && as_dir=.
7045 for ac_exec_ext in '' $ac_executable_extensions; do
7046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7047 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7058 if test -n "$ac_ct_MANIFEST_TOOL"; then
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7060 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7063 $as_echo "no" >&6; }
7066 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7069 case $cross_compiling:$ac_tool_warned in
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073 ac_tool_warned=yes ;;
7075 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7078 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7081 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7083 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7084 if ${lt_cv_path_mainfest_tool+:} false; then :
7085 $as_echo_n "(cached) " >&6
7087 lt_cv_path_mainfest_tool=no
7088 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7089 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7090 cat conftest.err >&5
7091 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7092 lt_cv_path_mainfest_tool=yes
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7097 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7098 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7108 rhapsody* | darwin*)
7109 if test -n "$ac_tool_prefix"; then
7110 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7111 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113 $as_echo_n "checking for $ac_word... " >&6; }
7114 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7115 $as_echo_n "(cached) " >&6
7117 if test -n "$DSYMUTIL"; then
7118 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7138 if test -n "$DSYMUTIL"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7140 $as_echo "$DSYMUTIL" >&6; }
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143 $as_echo "no" >&6; }
7148 if test -z "$ac_cv_prog_DSYMUTIL"; then
7149 ac_ct_DSYMUTIL=$DSYMUTIL
7150 # Extract the first word of "dsymutil", so it can be a program name with args.
7151 set dummy dsymutil; ac_word=$2
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7153 $as_echo_n "checking for $ac_word... " >&6; }
7154 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7155 $as_echo_n "(cached) " >&6
7157 if test -n "$ac_ct_DSYMUTIL"; then
7158 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 test -z "$as_dir" && as_dir=.
7165 for ac_exec_ext in '' $ac_executable_extensions; do
7166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7167 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7178 if test -n "$ac_ct_DSYMUTIL"; then
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7180 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7183 $as_echo "no" >&6; }
7186 if test "x$ac_ct_DSYMUTIL" = x; then
7189 case $cross_compiling:$ac_tool_warned in
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7193 ac_tool_warned=yes ;;
7195 DSYMUTIL=$ac_ct_DSYMUTIL
7198 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7201 if test -n "$ac_tool_prefix"; then
7202 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7203 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_NMEDIT+:} false; then :
7207 $as_echo_n "(cached) " >&6
7209 if test -n "$NMEDIT"; then
7210 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 NMEDIT=$ac_cv_prog_NMEDIT
7230 if test -n "$NMEDIT"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7232 $as_echo "$NMEDIT" >&6; }
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7240 if test -z "$ac_cv_prog_NMEDIT"; then
7241 ac_ct_NMEDIT=$NMEDIT
7242 # Extract the first word of "nmedit", so it can be a program name with args.
7243 set dummy nmedit; ac_word=$2
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7245 $as_echo_n "checking for $ac_word... " >&6; }
7246 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7247 $as_echo_n "(cached) " >&6
7249 if test -n "$ac_ct_NMEDIT"; then
7250 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7259 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7270 if test -n "$ac_ct_NMEDIT"; then
7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7272 $as_echo "$ac_ct_NMEDIT" >&6; }
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7275 $as_echo "no" >&6; }
7278 if test "x$ac_ct_NMEDIT" = x; then
7281 case $cross_compiling:$ac_tool_warned in
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7285 ac_tool_warned=yes ;;
7287 NMEDIT=$ac_ct_NMEDIT
7290 NMEDIT="$ac_cv_prog_NMEDIT"
7293 if test -n "$ac_tool_prefix"; then
7294 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7295 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297 $as_echo_n "checking for $ac_word... " >&6; }
7298 if ${ac_cv_prog_LIPO+:} false; then :
7299 $as_echo_n "(cached) " >&6
7301 if test -n "$LIPO"; then
7302 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 LIPO=$ac_cv_prog_LIPO
7322 if test -n "$LIPO"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7324 $as_echo "$LIPO" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7332 if test -z "$ac_cv_prog_LIPO"; then
7334 # Extract the first word of "lipo", so it can be a program name with args.
7335 set dummy lipo; ac_word=$2
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7337 $as_echo_n "checking for $ac_word... " >&6; }
7338 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7339 $as_echo_n "(cached) " >&6
7341 if test -n "$ac_ct_LIPO"; then
7342 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 test -z "$as_dir" && as_dir=.
7349 for ac_exec_ext in '' $ac_executable_extensions; do
7350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7351 ac_cv_prog_ac_ct_LIPO="lipo"
7352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7362 if test -n "$ac_ct_LIPO"; then
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7364 $as_echo "$ac_ct_LIPO" >&6; }
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }
7370 if test "x$ac_ct_LIPO" = x; then
7373 case $cross_compiling:$ac_tool_warned in
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7377 ac_tool_warned=yes ;;
7382 LIPO="$ac_cv_prog_LIPO"
7385 if test -n "$ac_tool_prefix"; then
7386 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7387 set dummy ${ac_tool_prefix}otool; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if ${ac_cv_prog_OTOOL+:} false; then :
7391 $as_echo_n "(cached) " >&6
7393 if test -n "$OTOOL"; then
7394 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7403 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 OTOOL=$ac_cv_prog_OTOOL
7414 if test -n "$OTOOL"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7416 $as_echo "$OTOOL" >&6; }
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7424 if test -z "$ac_cv_prog_OTOOL"; then
7426 # Extract the first word of "otool", so it can be a program name with args.
7427 set dummy otool; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7431 $as_echo_n "(cached) " >&6
7433 if test -n "$ac_ct_OTOOL"; then
7434 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7443 ac_cv_prog_ac_ct_OTOOL="otool"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7454 if test -n "$ac_ct_OTOOL"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7456 $as_echo "$ac_ct_OTOOL" >&6; }
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7462 if test "x$ac_ct_OTOOL" = x; then
7465 case $cross_compiling:$ac_tool_warned in
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469 ac_tool_warned=yes ;;
7474 OTOOL="$ac_cv_prog_OTOOL"
7477 if test -n "$ac_tool_prefix"; then
7478 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7479 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if ${ac_cv_prog_OTOOL64+:} false; then :
7483 $as_echo_n "(cached) " >&6
7485 if test -n "$OTOOL64"; then
7486 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7495 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7505 OTOOL64=$ac_cv_prog_OTOOL64
7506 if test -n "$OTOOL64"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7508 $as_echo "$OTOOL64" >&6; }
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7516 if test -z "$ac_cv_prog_OTOOL64"; then
7517 ac_ct_OTOOL64=$OTOOL64
7518 # Extract the first word of "otool64", so it can be a program name with args.
7519 set dummy otool64; ac_word=$2
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7521 $as_echo_n "checking for $ac_word... " >&6; }
7522 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7523 $as_echo_n "(cached) " >&6
7525 if test -n "$ac_ct_OTOOL64"; then
7526 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7532 test -z "$as_dir" && as_dir=.
7533 for ac_exec_ext in '' $ac_executable_extensions; do
7534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7535 ac_cv_prog_ac_ct_OTOOL64="otool64"
7536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7546 if test -n "$ac_ct_OTOOL64"; then
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7548 $as_echo "$ac_ct_OTOOL64" >&6; }
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7551 $as_echo "no" >&6; }
7554 if test "x$ac_ct_OTOOL64" = x; then
7557 case $cross_compiling:$ac_tool_warned in
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7561 ac_tool_warned=yes ;;
7563 OTOOL64=$ac_ct_OTOOL64
7566 OTOOL64="$ac_cv_prog_OTOOL64"
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7596 $as_echo_n "checking for -single_module linker flag... " >&6; }
7597 if ${lt_cv_apple_cc_single_mod+:} false; then :
7598 $as_echo_n "(cached) " >&6
7600 lt_cv_apple_cc_single_mod=no
7601 if test -z "${LT_MULTI_MODULE}"; then
7602 # By default we will add the -single_module flag. You can override
7603 # by either setting the environment variable LT_MULTI_MODULE
7604 # non-empty at configure time, or by adding -multi_module to the
7606 rm -rf libconftest.dylib*
7607 echo "int foo(void){return 1;}" > conftest.c
7608 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7609 -dynamiclib -Wl,-single_module conftest.c" >&5
7610 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7611 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7613 # If there is a non-empty error log, and "single_module"
7614 # appears in it, assume the flag caused a linker warning
7615 if test -s conftest.err && $GREP single_module conftest.err; then
7616 cat conftest.err >&5
7617 # Otherwise, if the output was created with a 0 exit code from
7618 # the compiler, it worked.
7619 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7620 lt_cv_apple_cc_single_mod=yes
7622 cat conftest.err >&5
7624 rm -rf libconftest.dylib*
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7629 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7632 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7633 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7634 $as_echo_n "(cached) " >&6
7636 lt_cv_ld_exported_symbols_list=no
7637 save_LDFLAGS=$LDFLAGS
7638 echo "_main" > conftest.sym
7639 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7641 /* end confdefs.h. */
7651 if ac_fn_c_try_link "$LINENO"; then :
7652 lt_cv_ld_exported_symbols_list=yes
7654 lt_cv_ld_exported_symbols_list=no
7656 rm -f core conftest.err conftest.$ac_objext \
7657 conftest$ac_exeext conftest.$ac_ext
7658 LDFLAGS="$save_LDFLAGS"
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7662 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7665 $as_echo_n "checking for -force_load linker flag... " >&6; }
7666 if ${lt_cv_ld_force_load+:} false; then :
7667 $as_echo_n "(cached) " >&6
7669 lt_cv_ld_force_load=no
7670 cat > conftest.c << _LT_EOF
7671 int forced_loaded() { return 2;}
7673 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7674 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7675 echo "$AR cru libconftest.a conftest.o" >&5
7676 $AR cru libconftest.a conftest.o 2>&5
7677 echo "$RANLIB libconftest.a" >&5
7678 $RANLIB libconftest.a 2>&5
7679 cat > conftest.c << _LT_EOF
7680 int main() { return 0;}
7682 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7683 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7685 if test -s conftest.err && $GREP force_load conftest.err; then
7686 cat conftest.err >&5
7687 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7688 lt_cv_ld_force_load=yes
7690 cat conftest.err >&5
7692 rm -f conftest.err libconftest.a conftest conftest.c
7693 rm -rf conftest.dSYM
7696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7697 $as_echo "$lt_cv_ld_force_load" >&6; }
7699 rhapsody* | darwin1.[012])
7700 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7702 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7703 darwin*) # darwin 5.x on
7704 # if running on 10.5 or later, the deployment target defaults
7705 # to the OS version, if on x86, and 10.4, the deployment
7706 # target defaults to 10.4. Don't you love it?
7707 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7708 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7709 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7711 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7713 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7717 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7718 _lt_dar_single_mod='$single_module'
7720 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7721 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7723 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7725 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7726 _lt_dsymutil='~$DSYMUTIL $lib || :'
7733 for ac_header in dlfcn.h
7735 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7737 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7738 cat >>confdefs.h <<_ACEOF
7739 #define HAVE_DLFCN_H 1
7760 # Check whether --enable-shared was given.
7761 if test "${enable_shared+set}" = set; then :
7762 enableval=$enable_shared; p=${PACKAGE-default}
7764 yes) enable_shared=yes ;;
7765 no) enable_shared=no ;;
7768 # Look at the argument we got. We use all the common list separators.
7769 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7770 for pkg in $enableval; do
7772 if test "X$pkg" = "X$p"; then
7791 # Check whether --enable-static was given.
7792 if test "${enable_static+set}" = set; then :
7793 enableval=$enable_static; p=${PACKAGE-default}
7795 yes) enable_static=yes ;;
7796 no) enable_static=no ;;
7799 # Look at the argument we got. We use all the common list separators.
7800 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7801 for pkg in $enableval; do
7803 if test "X$pkg" = "X$p"; then
7823 # Check whether --with-pic was given.
7824 if test "${with_pic+set}" = set; then :
7825 withval=$with_pic; lt_p=${PACKAGE-default}
7827 yes|no) pic_mode=$withval ;;
7830 # Look at the argument we got. We use all the common list separators.
7831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7832 for lt_pkg in $withval; do
7834 if test "X$lt_pkg" = "X$lt_p"; then
7846 test -z "$pic_mode" && pic_mode=default
7854 # Check whether --enable-fast-install was given.
7855 if test "${enable_fast_install+set}" = set; then :
7856 enableval=$enable_fast_install; p=${PACKAGE-default}
7858 yes) enable_fast_install=yes ;;
7859 no) enable_fast_install=no ;;
7861 enable_fast_install=no
7862 # Look at the argument we got. We use all the common list separators.
7863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7864 for pkg in $enableval; do
7866 if test "X$pkg" = "X$p"; then
7867 enable_fast_install=yes
7874 enable_fast_install=yes
7887 # This can be used to rebuild libtool when needed
7888 LIBTOOL_DEPS="$ltmain"
7890 # Always use our own libtool.
7891 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7922 test -z "$LN_S" && LN_S="ln -s"
7937 if test -n "${ZSH_VERSION+set}" ; then
7938 setopt NO_GLOB_SUBST
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7942 $as_echo_n "checking for objdir... " >&6; }
7943 if ${lt_cv_objdir+:} false; then :
7944 $as_echo_n "(cached) " >&6
7946 rm -f .libs 2>/dev/null
7947 mkdir .libs 2>/dev/null
7948 if test -d .libs; then
7951 # MS-DOS does not allow filenames that begin with a dot.
7954 rmdir .libs 2>/dev/null
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7957 $as_echo "$lt_cv_objdir" >&6; }
7958 objdir=$lt_cv_objdir
7964 cat >>confdefs.h <<_ACEOF
7965 #define LT_OBJDIR "$lt_cv_objdir/"
7973 # AIX sometimes has problems with the GCC collect2 program. For some
7974 # reason, if we set the COLLECT_NAMES environment variable, the problems
7975 # vanish in a puff of smoke.
7976 if test "X${COLLECT_NAMES+set}" != Xset; then
7978 export COLLECT_NAMES
7985 can_build_shared=yes
7987 # All known linkers require a `.a' archive for static linking (except MSVC,
7988 # which needs '.lib').
7991 with_gnu_ld="$lt_cv_prog_gnu_ld"
7994 old_CFLAGS="$CFLAGS"
7996 # Set sane defaults for various variables
7997 test -z "$CC" && CC=cc
7998 test -z "$LTCC" && LTCC=$CC
7999 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8000 test -z "$LD" && LD=ld
8001 test -z "$ac_objext" && ac_objext=o
8003 for cc_temp in $compiler""; do
8005 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8006 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8011 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8014 # Only perform the check for file, if the check method requires it
8015 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8016 case $deplibs_check_method in
8018 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8020 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8021 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8022 $as_echo_n "(cached) " >&6
8026 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8029 lt_save_MAGIC_CMD="$MAGIC_CMD"
8030 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8031 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8032 for ac_dir in $ac_dummy; do
8034 test -z "$ac_dir" && ac_dir=.
8035 if test -f $ac_dir/${ac_tool_prefix}file; then
8036 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8037 if test -n "$file_magic_test_file"; then
8038 case $deplibs_check_method in
8040 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8041 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8042 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8043 $EGREP "$file_magic_regex" > /dev/null; then
8048 *** Warning: the command libtool uses to detect shared libraries,
8049 *** $file_magic_cmd, produces output that libtool cannot recognize.
8050 *** The result is that libtool may fail to recognize shared libraries
8051 *** as such. This will affect the creation of libtool libraries that
8052 *** depend on shared libraries, but programs linked with such libtool
8053 *** libraries will work regardless of this problem. Nevertheless, you
8054 *** may want to report the problem to your system manager and/or to
8055 *** bug-libtool@gnu.org
8065 MAGIC_CMD="$lt_save_MAGIC_CMD"
8070 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8071 if test -n "$MAGIC_CMD"; then
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8073 $as_echo "$MAGIC_CMD" >&6; }
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 $as_echo "no" >&6; }
8083 if test -z "$lt_cv_path_MAGIC_CMD"; then
8084 if test -n "$ac_tool_prefix"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8086 $as_echo_n "checking for file... " >&6; }
8087 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8088 $as_echo_n "(cached) " >&6
8092 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8095 lt_save_MAGIC_CMD="$MAGIC_CMD"
8096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8097 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8098 for ac_dir in $ac_dummy; do
8100 test -z "$ac_dir" && ac_dir=.
8101 if test -f $ac_dir/file; then
8102 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8103 if test -n "$file_magic_test_file"; then
8104 case $deplibs_check_method in
8106 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8108 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8109 $EGREP "$file_magic_regex" > /dev/null; then
8114 *** Warning: the command libtool uses to detect shared libraries,
8115 *** $file_magic_cmd, produces output that libtool cannot recognize.
8116 *** The result is that libtool may fail to recognize shared libraries
8117 *** as such. This will affect the creation of libtool libraries that
8118 *** depend on shared libraries, but programs linked with such libtool
8119 *** libraries will work regardless of this problem. Nevertheless, you
8120 *** may want to report the problem to your system manager and/or to
8121 *** bug-libtool@gnu.org
8131 MAGIC_CMD="$lt_save_MAGIC_CMD"
8136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8137 if test -n "$MAGIC_CMD"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8139 $as_echo "$MAGIC_CMD" >&6; }
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8155 # Use C for the default configuration in the libtool script
8159 ac_cpp='$CPP $CPPFLAGS'
8160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8165 # Source file extension for C test sources.
8168 # Object file extension for compiled C test sources.
8172 # Code to be used in simple compile tests
8173 lt_simple_compile_test_code="int some_variable = 0;"
8175 # Code to be used in simple link tests
8176 lt_simple_link_test_code='int main(){return(0);}'
8184 # If no C compiler was specified, use CC.
8187 # If no C compiler flags were specified, use CFLAGS.
8188 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8190 # Allow CC to be a program name with arguments.
8193 # Save the default compiler, since it gets overwritten when the other
8194 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8195 compiler_DEFAULT=$CC
8197 # save warnings/boilerplate of simple test code
8198 ac_outfile=conftest.$ac_objext
8199 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8200 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8201 _lt_compiler_boilerplate=`cat conftest.err`
8204 ac_outfile=conftest.$ac_objext
8205 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8206 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8207 _lt_linker_boilerplate=`cat conftest.err`
8212 ## There is no encapsulation within the following macros, do not change
8213 ## the running order or otherwise move them around unless you know exactly
8214 ## what you are doing...
8215 if test -n "$compiler"; then
8217 lt_prog_compiler_no_builtin_flag=
8219 if test "$GCC" = yes; then
8220 case $cc_basename in
8222 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8224 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8228 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8229 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8230 $as_echo_n "(cached) " >&6
8232 lt_cv_prog_compiler_rtti_exceptions=no
8233 ac_outfile=conftest.$ac_objext
8234 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8235 lt_compiler_flag="-fno-rtti -fno-exceptions"
8236 # Insert the option either (1) after the last *FLAGS variable, or
8237 # (2) before a word containing "conftest.", or (3) at the end.
8238 # Note that $ac_compile itself does not contain backslashes and begins
8239 # with a dollar sign (not a hyphen), so the echo should work correctly.
8240 # The option is referenced via a variable to avoid confusing sed.
8241 lt_compile=`echo "$ac_compile" | $SED \
8242 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8243 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8244 -e 's:$: $lt_compiler_flag:'`
8245 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8246 (eval "$lt_compile" 2>conftest.err)
8248 cat conftest.err >&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 if (exit $ac_status) && test -s "$ac_outfile"; then
8251 # The compiler can only warn and ignore the option if not recognized
8252 # So say no if there are warnings other than the usual output.
8253 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8254 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8255 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8256 lt_cv_prog_compiler_rtti_exceptions=yes
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8263 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8265 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8266 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8278 lt_prog_compiler_wl=
8279 lt_prog_compiler_pic=
8280 lt_prog_compiler_static=
8283 if test "$GCC" = yes; then
8284 lt_prog_compiler_wl='-Wl,'
8285 lt_prog_compiler_static='-static'
8289 # All AIX code is PIC.
8290 if test "$host_cpu" = ia64; then
8291 # AIX 5 now supports IA64 processor
8292 lt_prog_compiler_static='-Bstatic'
8299 # see comment about AmigaOS4 .so support
8300 lt_prog_compiler_pic='-fPIC'
8303 # FIXME: we need at least 68020 code to build shared libraries, but
8304 # adding the `-m68020' flag to GCC prevents building anything better,
8306 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8311 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8312 # PIC is the default for these OSes.
8315 mingw* | cygwin* | pw32* | os2* | cegcc*)
8316 # This hack is so that the source file can tell whether it is being
8317 # built for inclusion in a dll (and should export symbols for example).
8318 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8319 # (--disable-auto-import) libraries
8320 lt_prog_compiler_pic='-DDLL_EXPORT'
8323 darwin* | rhapsody*)
8324 # PIC is the default on this platform
8325 # Common symbols not allowed in MH_DYLIB files
8326 lt_prog_compiler_pic='-fno-common'
8330 # PIC is the default for Haiku.
8331 # The "-static" flag exists, but is broken.
8332 lt_prog_compiler_static=
8336 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8337 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8338 # sets the default TLS model and affects inlining.
8344 lt_prog_compiler_pic='-fPIC'
8350 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8351 # Instead, we relocate shared libraries at runtime.
8355 # Just because we use GCC doesn't mean we suddenly get shared libraries
8356 # on systems that don't support them.
8357 lt_prog_compiler_can_build_shared=no
8362 # QNX uses GNU C++, but need to define -shared option too, otherwise
8364 lt_prog_compiler_pic='-fPIC -shared'
8368 if test -d /usr/nec; then
8369 lt_prog_compiler_pic=-Kconform_pic
8374 lt_prog_compiler_pic='-fPIC'
8378 case $cc_basename in
8379 nvcc*) # Cuda Compiler Driver 2.2
8380 lt_prog_compiler_wl='-Xlinker '
8381 if test -n "$lt_prog_compiler_pic"; then
8382 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8387 # PORTME Check for flag to pass linker flags through the system compiler.
8390 lt_prog_compiler_wl='-Wl,'
8391 if test "$host_cpu" = ia64; then
8392 # AIX 5 now supports IA64 processor
8393 lt_prog_compiler_static='-Bstatic'
8395 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8399 mingw* | cygwin* | pw32* | os2* | cegcc*)
8400 # This hack is so that the source file can tell whether it is being
8401 # built for inclusion in a dll (and should export symbols for example).
8402 lt_prog_compiler_pic='-DDLL_EXPORT'
8405 hpux9* | hpux10* | hpux11*)
8406 lt_prog_compiler_wl='-Wl,'
8407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8414 lt_prog_compiler_pic='+Z'
8417 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8418 lt_prog_compiler_static='${wl}-a ${wl}archive'
8421 irix5* | irix6* | nonstopux*)
8422 lt_prog_compiler_wl='-Wl,'
8423 # PIC (with -KPIC) is the default.
8424 lt_prog_compiler_static='-non_shared'
8427 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8428 case $cc_basename in
8429 # old Intel for x86_64 which still supported -KPIC.
8431 lt_prog_compiler_wl='-Wl,'
8432 lt_prog_compiler_pic='-KPIC'
8433 lt_prog_compiler_static='-static'
8435 # icc used to be incompatible with GCC.
8436 # ICC 10 doesn't accept -KPIC any more.
8438 lt_prog_compiler_wl='-Wl,'
8439 lt_prog_compiler_pic='-fPIC'
8440 lt_prog_compiler_static='-static'
8442 # Lahey Fortran 8.1.
8444 lt_prog_compiler_wl='-Wl,'
8445 lt_prog_compiler_pic='--shared'
8446 lt_prog_compiler_static='--static'
8449 # NAG Fortran compiler
8450 lt_prog_compiler_wl='-Wl,-Wl,,'
8451 lt_prog_compiler_pic='-PIC'
8452 lt_prog_compiler_static='-Bstatic'
8454 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8455 # Portland Group compilers (*not* the Pentium gcc compiler,
8456 # which looks to be a dead project)
8457 lt_prog_compiler_wl='-Wl,'
8458 lt_prog_compiler_pic='-fpic'
8459 lt_prog_compiler_static='-Bstatic'
8462 lt_prog_compiler_wl='-Wl,'
8463 # All Alpha code is PIC.
8464 lt_prog_compiler_static='-non_shared'
8466 xl* | bgxl* | bgf* | mpixl*)
8467 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8468 lt_prog_compiler_wl='-Wl,'
8469 lt_prog_compiler_pic='-qpic'
8470 lt_prog_compiler_static='-qstaticlink'
8473 case `$CC -V 2>&1 | sed 5q` in
8474 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8475 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8476 lt_prog_compiler_pic='-KPIC'
8477 lt_prog_compiler_static='-Bstatic'
8478 lt_prog_compiler_wl=''
8480 *Sun\ F* | *Sun*Fortran*)
8481 lt_prog_compiler_pic='-KPIC'
8482 lt_prog_compiler_static='-Bstatic'
8483 lt_prog_compiler_wl='-Qoption ld '
8487 lt_prog_compiler_pic='-KPIC'
8488 lt_prog_compiler_static='-Bstatic'
8489 lt_prog_compiler_wl='-Wl,'
8491 *Intel*\ [CF]*Compiler*)
8492 lt_prog_compiler_wl='-Wl,'
8493 lt_prog_compiler_pic='-fPIC'
8494 lt_prog_compiler_static='-static'
8497 lt_prog_compiler_wl='-Wl,'
8498 lt_prog_compiler_pic='-fpic'
8499 lt_prog_compiler_static='-Bstatic'
8507 lt_prog_compiler_pic='-KPIC'
8508 lt_prog_compiler_static='-Bstatic'
8512 # QNX uses GNU C++, but need to define -shared option too, otherwise
8514 lt_prog_compiler_pic='-fPIC -shared'
8517 osf3* | osf4* | osf5*)
8518 lt_prog_compiler_wl='-Wl,'
8519 # All OSF/1 code is PIC.
8520 lt_prog_compiler_static='-non_shared'
8524 lt_prog_compiler_static='-non_shared'
8528 lt_prog_compiler_pic='-KPIC'
8529 lt_prog_compiler_static='-Bstatic'
8530 case $cc_basename in
8531 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8532 lt_prog_compiler_wl='-Qoption ld ';;
8534 lt_prog_compiler_wl='-Wl,';;
8539 lt_prog_compiler_wl='-Qoption ld '
8540 lt_prog_compiler_pic='-PIC'
8541 lt_prog_compiler_static='-Bstatic'
8544 sysv4 | sysv4.2uw2* | sysv4.3*)
8545 lt_prog_compiler_wl='-Wl,'
8546 lt_prog_compiler_pic='-KPIC'
8547 lt_prog_compiler_static='-Bstatic'
8551 if test -d /usr/nec ;then
8552 lt_prog_compiler_pic='-Kconform_pic'
8553 lt_prog_compiler_static='-Bstatic'
8557 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8558 lt_prog_compiler_wl='-Wl,'
8559 lt_prog_compiler_pic='-KPIC'
8560 lt_prog_compiler_static='-Bstatic'
8564 lt_prog_compiler_wl='-Wl,'
8565 lt_prog_compiler_can_build_shared=no
8569 lt_prog_compiler_pic='-pic'
8570 lt_prog_compiler_static='-Bstatic'
8574 lt_prog_compiler_can_build_shared=no
8580 # For platforms which do not support PIC, -DPIC is meaningless:
8582 lt_prog_compiler_pic=
8585 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8590 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8591 if ${lt_cv_prog_compiler_pic+:} false; then :
8592 $as_echo_n "(cached) " >&6
8594 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8597 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8598 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8601 # Check to make sure the PIC flag actually works.
8603 if test -n "$lt_prog_compiler_pic"; then
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8605 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8606 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8607 $as_echo_n "(cached) " >&6
8609 lt_cv_prog_compiler_pic_works=no
8610 ac_outfile=conftest.$ac_objext
8611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8612 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8613 # Insert the option either (1) after the last *FLAGS variable, or
8614 # (2) before a word containing "conftest.", or (3) at the end.
8615 # Note that $ac_compile itself does not contain backslashes and begins
8616 # with a dollar sign (not a hyphen), so the echo should work correctly.
8617 # The option is referenced via a variable to avoid confusing sed.
8618 lt_compile=`echo "$ac_compile" | $SED \
8619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8621 -e 's:$: $lt_compiler_flag:'`
8622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8623 (eval "$lt_compile" 2>conftest.err)
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 if (exit $ac_status) && test -s "$ac_outfile"; then
8628 # The compiler can only warn and ignore the option if not recognized
8629 # So say no if there are warnings other than the usual output.
8630 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8632 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8633 lt_cv_prog_compiler_pic_works=yes
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8640 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8642 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8643 case $lt_prog_compiler_pic in
8645 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8648 lt_prog_compiler_pic=
8649 lt_prog_compiler_can_build_shared=no
8665 # Check to make sure the static flag actually works.
8667 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8669 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8670 if ${lt_cv_prog_compiler_static_works+:} false; then :
8671 $as_echo_n "(cached) " >&6
8673 lt_cv_prog_compiler_static_works=no
8674 save_LDFLAGS="$LDFLAGS"
8675 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8676 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8677 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8678 # The linker can only warn and ignore the option if not recognized
8679 # So say no if there are warnings
8680 if test -s conftest.err; then
8681 # Append any errors to the config.log.
8682 cat conftest.err 1>&5
8683 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8684 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8685 if diff conftest.exp conftest.er2 >/dev/null; then
8686 lt_cv_prog_compiler_static_works=yes
8689 lt_cv_prog_compiler_static_works=yes
8693 LDFLAGS="$save_LDFLAGS"
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8697 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8699 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8702 lt_prog_compiler_static=
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8712 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8713 if ${lt_cv_prog_compiler_c_o+:} false; then :
8714 $as_echo_n "(cached) " >&6
8716 lt_cv_prog_compiler_c_o=no
8717 $RM -r conftest 2>/dev/null
8721 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8723 lt_compiler_flag="-o out/conftest2.$ac_objext"
8724 # Insert the option either (1) after the last *FLAGS variable, or
8725 # (2) before a word containing "conftest.", or (3) at the end.
8726 # Note that $ac_compile itself does not contain backslashes and begins
8727 # with a dollar sign (not a hyphen), so the echo should work correctly.
8728 lt_compile=`echo "$ac_compile" | $SED \
8729 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8730 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8731 -e 's:$: $lt_compiler_flag:'`
8732 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8733 (eval "$lt_compile" 2>out/conftest.err)
8735 cat out/conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8739 # The compiler can only warn and ignore the option if not recognized
8740 # So say no if there are warnings
8741 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8742 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8743 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8744 lt_cv_prog_compiler_c_o=yes
8749 # SGI C++ compiler will create directory out/ii_files/ for
8750 # template instantiation
8751 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8752 $RM out/* && rmdir out
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8759 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8767 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8768 if ${lt_cv_prog_compiler_c_o+:} false; then :
8769 $as_echo_n "(cached) " >&6
8771 lt_cv_prog_compiler_c_o=no
8772 $RM -r conftest 2>/dev/null
8776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8778 lt_compiler_flag="-o out/conftest2.$ac_objext"
8779 # Insert the option either (1) after the last *FLAGS variable, or
8780 # (2) before a word containing "conftest.", or (3) at the end.
8781 # Note that $ac_compile itself does not contain backslashes and begins
8782 # with a dollar sign (not a hyphen), so the echo should work correctly.
8783 lt_compile=`echo "$ac_compile" | $SED \
8784 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8785 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8786 -e 's:$: $lt_compiler_flag:'`
8787 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8788 (eval "$lt_compile" 2>out/conftest.err)
8790 cat out/conftest.err >&5
8791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8792 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8794 # The compiler can only warn and ignore the option if not recognized
8795 # So say no if there are warnings
8796 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8797 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8798 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8799 lt_cv_prog_compiler_c_o=yes
8804 # SGI C++ compiler will create directory out/ii_files/ for
8805 # template instantiation
8806 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8807 $RM out/* && rmdir out
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8814 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8819 hard_links="nottested"
8820 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8821 # do not overwrite the value of need_locks provided by the user
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8823 $as_echo_n "checking if we can lock with hard links... " >&6; }
8826 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8828 ln conftest.a conftest.b 2>&5 || hard_links=no
8829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8831 $as_echo "$hard_links" >&6; }
8832 if test "$hard_links" = no; then
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8834 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8847 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8850 allow_undefined_flag=
8851 always_export_symbols=no
8853 archive_expsym_cmds=
8854 compiler_needs_object=no
8855 enable_shared_with_static_runtimes=no
8856 export_dynamic_flag_spec=
8857 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8858 hardcode_automatic=no
8860 hardcode_direct_absolute=no
8861 hardcode_libdir_flag_spec=
8862 hardcode_libdir_separator=
8864 hardcode_shlibpath_var=unsupported
8866 link_all_deplibs=unknown
8869 old_archive_from_new_cmds=
8870 old_archive_from_expsyms_cmds=
8871 thread_safe_flag_spec=
8872 whole_archive_flag_spec=
8873 # include_expsyms should be a list of space-separated symbols to be *always*
8874 # included in the symbol list
8876 # exclude_expsyms can be an extended regexp of symbols to exclude
8877 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8878 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8879 # as well as any symbol that contains `d'.
8880 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8881 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8882 # platforms (ab)use it in PIC code, but their linkers get confused if
8883 # the symbol is explicitly referenced. Since portable code cannot
8884 # rely on this symbol name, it's probably fine to never include it in
8885 # preloaded symbol tables.
8886 # Exclude shared library initialization/finalization symbols.
8887 extract_expsyms_cmds=
8890 cygwin* | mingw* | pw32* | cegcc*)
8891 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8892 # When not using gcc, we currently assume that we are using
8893 # Microsoft Visual C++.
8894 if test "$GCC" != yes; then
8899 # we just hope/assume this is gcc and not c89 (= MSVC++)
8909 # On some targets, GNU ld is compatible enough with the native linker
8910 # that we're better off using the native interface for both.
8911 lt_use_gnu_ld_interface=no
8912 if test "$with_gnu_ld" = yes; then
8915 # The AIX port of GNU ld has always aspired to compatibility
8916 # with the native linker. However, as the warning in the GNU ld
8917 # block says, versions before 2.19.5* couldn't really create working
8918 # shared libraries, regardless of the interface used.
8919 case `$LD -v 2>&1` in
8920 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8921 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8922 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8924 lt_use_gnu_ld_interface=yes
8929 lt_use_gnu_ld_interface=yes
8934 if test "$lt_use_gnu_ld_interface" = yes; then
8935 # If archive_cmds runs LD, not CC, wlarc should be empty
8938 # Set some defaults for GNU ld with shared library support. These
8939 # are reset later if shared libraries are not supported. Putting them
8940 # here allows them to be overridden if necessary.
8941 runpath_var=LD_RUN_PATH
8942 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8943 export_dynamic_flag_spec='${wl}--export-dynamic'
8944 # ancient GNU ld didn't support --whole-archive et. al.
8945 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8946 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8948 whole_archive_flag_spec=
8950 supports_anon_versioning=no
8951 case `$LD -v 2>&1` in
8952 *GNU\ gold*) supports_anon_versioning=yes ;;
8953 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8954 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8955 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8956 *\ 2.11.*) ;; # other 2.11 versions
8957 *) supports_anon_versioning=yes ;;
8960 # See if GNU ld supports shared libraries.
8963 # On AIX/PPC, the GNU linker is very broken
8964 if test "$host_cpu" != ia64; then
8968 *** Warning: the GNU linker, at least up to release 2.19, is reported
8969 *** to be unable to reliably create shared libraries on AIX.
8970 *** Therefore, libtool is disabling shared libraries support. If you
8971 *** really care for shared libraries, you may want to install binutils
8972 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8973 *** You will then need to restart the configuration process.
8982 # see comment about AmigaOS4 .so support
8983 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984 archive_expsym_cmds=''
8987 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)'
8988 hardcode_libdir_flag_spec='-L$libdir'
8989 hardcode_minus_L=yes
8995 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8996 allow_undefined_flag=unsupported
8997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8998 # support --undefined. This deserves some investigation. FIXME
8999 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9005 cygwin* | mingw* | pw32* | cegcc*)
9006 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9007 # as there is no search path for DLLs.
9008 hardcode_libdir_flag_spec='-L$libdir'
9009 export_dynamic_flag_spec='${wl}--export-all-symbols'
9010 allow_undefined_flag=unsupported
9011 always_export_symbols=no
9012 enable_shared_with_static_runtimes=yes
9013 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'
9014 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9016 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9018 # If the export-symbols file already is a .def file (1st line
9019 # is EXPORTS), use it as is; otherwise, prepend...
9020 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9021 cp $export_symbols $output_objdir/$soname.def;
9023 echo EXPORTS > $output_objdir/$soname.def;
9024 cat $export_symbols >> $output_objdir/$soname.def;
9026 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9034 link_all_deplibs=yes
9039 hardcode_shlibpath_var=no
9040 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9041 export_dynamic_flag_spec='${wl}-E'
9042 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9043 # Instead, shared libraries are loaded at an image base (0x10000000 by
9044 # default) and relocated if they conflict, which is a slow very memory
9045 # consuming and fragmenting process. To avoid this, we pick a random,
9046 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9047 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9048 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9049 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'
9052 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9054 if test "$host_os" = linux-dietlibc; then
9055 case $cc_basename in
9056 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9059 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9060 && test "$tmp_diet" = no
9062 tmp_addflag=' $pic_flag'
9063 tmp_sharedflag='-shared'
9064 case $cc_basename,$host_cpu in
9065 pgcc*) # Portland Group C compiler
9066 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'
9067 tmp_addflag=' $pic_flag'
9069 pgf77* | pgf90* | pgf95* | pgfortran*)
9070 # Portland Group f77 and f90 compilers
9071 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'
9072 tmp_addflag=' $pic_flag -Mnomain' ;;
9073 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9074 tmp_addflag=' -i_dynamic' ;;
9075 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9076 tmp_addflag=' -i_dynamic -nofor_main' ;;
9077 ifc* | ifort*) # Intel Fortran compiler
9078 tmp_addflag=' -nofor_main' ;;
9079 lf95*) # Lahey Fortran 8.1
9080 whole_archive_flag_spec=
9081 tmp_sharedflag='--shared' ;;
9082 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9083 tmp_sharedflag='-qmkshrobj'
9085 nvcc*) # Cuda Compiler Driver 2.2
9086 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'
9087 compiler_needs_object=yes
9090 case `$CC -V 2>&1 | sed 5q` in
9091 *Sun\ C*) # Sun C 5.9
9092 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'
9093 compiler_needs_object=yes
9094 tmp_sharedflag='-G' ;;
9095 *Sun\ F*) # Sun Fortran 8.3
9096 tmp_sharedflag='-G' ;;
9098 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9100 if test "x$supports_anon_versioning" = xyes; then
9101 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9102 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9103 echo "local: *; };" >> $output_objdir/$libname.ver~
9104 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9107 case $cc_basename in
9108 xlf* | bgf* | bgxlf* | mpixlf*)
9109 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9110 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9111 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9112 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9113 if test "x$supports_anon_versioning" = xyes; then
9114 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9115 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9116 echo "local: *; };" >> $output_objdir/$libname.ver~
9117 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9127 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9128 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9131 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9132 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9137 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9141 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9142 *** create shared libraries on Solaris systems. Therefore, libtool
9143 *** is disabling shared libraries support. We urge you to upgrade GNU
9144 *** binutils to release 2.9.1 or newer. Another option is to modify
9145 *** your PATH or compiler configuration so that the native linker is
9146 *** used, and then restart.
9149 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9150 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9158 case `$LD -v 2>&1` in
9159 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9163 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9164 *** reliably create shared libraries on SCO systems. Therefore, libtool
9165 *** is disabling shared libraries support. We urge you to upgrade GNU
9166 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9167 *** your PATH or compiler configuration so that the native linker is
9168 *** used, and then restart.
9173 # For security reasons, it is highly recommended that you always
9174 # use absolute paths for naming shared libraries, and exclude the
9175 # DT_RUNPATH tag from executables and libraries. But doing so
9176 # requires that you compile everything twice, which is a pain.
9177 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9180 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9189 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9192 hardcode_shlibpath_var=no
9196 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9197 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9198 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9205 if test "$ld_shlibs" = no; then
9207 hardcode_libdir_flag_spec=
9208 export_dynamic_flag_spec=
9209 whole_archive_flag_spec=
9212 # PORTME fill in a description of your system's linker (not GNU ld)
9215 allow_undefined_flag=unsupported
9216 always_export_symbols=yes
9217 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'
9218 # Note: this linker hardcodes the directories in LIBPATH if there
9219 # are no directories specified by -L.
9220 hardcode_minus_L=yes
9221 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9222 # Neither direct hardcoding nor static linking is supported with a
9224 hardcode_direct=unsupported
9229 if test "$host_cpu" = ia64; then
9230 # On IA64, the linker does run time linking by default, so we don't
9231 # have to do anything special.
9232 aix_use_runtimelinking=no
9233 exp_sym_flag='-Bexport'
9236 # If we're using GNU nm, then we don't want the "-C" option.
9237 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9238 # Also, AIX nm treats weak defined symbols like other global
9239 # defined symbols, whereas GNU nm marks them as "W".
9240 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9241 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'
9243 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'
9245 aix_use_runtimelinking=no
9247 # Test if we are trying to use run time linking or normal
9248 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9249 # need to do runtime linking.
9250 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9251 for ld_flag in $LDFLAGS; do
9252 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9253 aix_use_runtimelinking=yes
9260 exp_sym_flag='-bexport'
9261 no_entry_flag='-bnoentry'
9264 # When large executables or shared objects are built, AIX ld can
9265 # have problems creating the table of contents. If linking a library
9266 # or program results in "error TOC overflow" add -mminimal-toc to
9267 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9268 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9272 hardcode_direct_absolute=yes
9273 hardcode_libdir_separator=':'
9274 link_all_deplibs=yes
9275 file_list_spec='${wl}-f,'
9277 if test "$GCC" = yes; then
9278 case $host_os in aix4.[012]|aix4.[012].*)
9279 # We only want to do this on AIX 4.2 and lower, the check
9280 # below for broken collect2 doesn't work under 4.3+
9281 collect2name=`${CC} -print-prog-name=collect2`
9282 if test -f "$collect2name" &&
9283 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9285 # We have reworked collect2
9288 # We have old collect2
9289 hardcode_direct=unsupported
9290 # It fails to find uninstalled libraries when the uninstalled
9291 # path is not listed in the libpath. Setting hardcode_minus_L
9292 # to unsupported forces relinking
9293 hardcode_minus_L=yes
9294 hardcode_libdir_flag_spec='-L$libdir'
9295 hardcode_libdir_separator=
9299 shared_flag='-shared'
9300 if test "$aix_use_runtimelinking" = yes; then
9301 shared_flag="$shared_flag "'${wl}-G'
9305 if test "$host_cpu" = ia64; then
9306 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9307 # chokes on -Wl,-G. The following line is correct:
9310 if test "$aix_use_runtimelinking" = yes; then
9311 shared_flag='${wl}-G'
9313 shared_flag='${wl}-bM:SRE'
9318 export_dynamic_flag_spec='${wl}-bexpall'
9319 # It seems that -bexpall does not export symbols beginning with
9320 # underscore (_), so it is better to generate a list of symbols to export.
9321 always_export_symbols=yes
9322 if test "$aix_use_runtimelinking" = yes; then
9323 # Warning - without using the other runtime loading flags (-brtl),
9324 # -berok will link without error, but may produce a broken library.
9325 allow_undefined_flag='-berok'
9326 # Determine the default libpath from the value encoded in an
9328 if test "${lt_cv_aix_libpath+set}" = set; then
9329 aix_libpath=$lt_cv_aix_libpath
9331 if ${lt_cv_aix_libpath_+:} false; then :
9332 $as_echo_n "(cached) " >&6
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9345 if ac_fn_c_try_link "$LINENO"; then :
9347 lt_aix_libpath_sed='
9348 /Import File Strings/,/^$/ {
9350 s/^0 *\([^ ]*\) *$/\1/
9354 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9355 # Check for a 64-bit object if we didn't find anything.
9356 if test -z "$lt_cv_aix_libpath_"; then
9357 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9360 rm -f core conftest.err conftest.$ac_objext \
9361 conftest$ac_exeext conftest.$ac_ext
9362 if test -z "$lt_cv_aix_libpath_"; then
9363 lt_cv_aix_libpath_="/usr/lib:/lib"
9368 aix_libpath=$lt_cv_aix_libpath_
9371 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9372 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"
9374 if test "$host_cpu" = ia64; then
9375 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9376 allow_undefined_flag="-z nodefs"
9377 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"
9379 # Determine the default libpath from the value encoded in an
9381 if test "${lt_cv_aix_libpath+set}" = set; then
9382 aix_libpath=$lt_cv_aix_libpath
9384 if ${lt_cv_aix_libpath_+:} false; then :
9385 $as_echo_n "(cached) " >&6
9387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9388 /* end confdefs.h. */
9398 if ac_fn_c_try_link "$LINENO"; then :
9400 lt_aix_libpath_sed='
9401 /Import File Strings/,/^$/ {
9403 s/^0 *\([^ ]*\) *$/\1/
9407 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9408 # Check for a 64-bit object if we didn't find anything.
9409 if test -z "$lt_cv_aix_libpath_"; then
9410 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9413 rm -f core conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
9415 if test -z "$lt_cv_aix_libpath_"; then
9416 lt_cv_aix_libpath_="/usr/lib:/lib"
9421 aix_libpath=$lt_cv_aix_libpath_
9424 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9425 # Warning - without using the other run time loading flags,
9426 # -berok will link without error, but may produce a broken library.
9427 no_undefined_flag=' ${wl}-bernotok'
9428 allow_undefined_flag=' ${wl}-berok'
9429 if test "$with_gnu_ld" = yes; then
9430 # We only use this code for GNU lds that support --whole-archive.
9431 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9433 # Exported symbols can be pulled into shared objects from archives
9434 whole_archive_flag_spec='$convenience'
9436 archive_cmds_need_lc=yes
9437 # This is similar to how AIX traditionally builds its shared libraries.
9438 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'
9446 # see comment about AmigaOS4 .so support
9447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9448 archive_expsym_cmds=''
9451 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)'
9452 hardcode_libdir_flag_spec='-L$libdir'
9453 hardcode_minus_L=yes
9459 export_dynamic_flag_spec=-rdynamic
9462 cygwin* | mingw* | pw32* | cegcc*)
9463 # When not using gcc, we currently assume that we are using
9464 # Microsoft Visual C++.
9465 # hardcode_libdir_flag_spec is actually meaningless, as there is
9466 # no search path for DLLs.
9467 case $cc_basename in
9470 hardcode_libdir_flag_spec=' '
9471 allow_undefined_flag=unsupported
9472 always_export_symbols=yes
9474 # Tell ltmain to make .lib files, not .a files.
9476 # Tell ltmain to make .dll files, not .so files.
9478 # FIXME: Setting linknames here is a bad hack.
9479 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9480 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9481 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9483 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9485 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9487 # The linker will not automatically build a static lib if we build a DLL.
9488 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9489 enable_shared_with_static_runtimes=yes
9490 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9491 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9493 old_postinstall_cmds='chmod 644 $oldlib'
9494 postlink_cmds='lt_outputfile="@OUTPUT@"~
9495 lt_tool_outputfile="@TOOL_OUTPUT@"~
9496 case $lt_outputfile in
9499 lt_outputfile="$lt_outputfile.exe"
9500 lt_tool_outputfile="$lt_tool_outputfile.exe"
9503 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9504 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9505 $RM "$lt_outputfile.manifest";
9509 # Assume MSVC wrapper
9510 hardcode_libdir_flag_spec=' '
9511 allow_undefined_flag=unsupported
9512 # Tell ltmain to make .lib files, not .a files.
9514 # Tell ltmain to make .dll files, not .so files.
9516 # FIXME: Setting linknames here is a bad hack.
9517 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9518 # The linker will automatically build a .lib file if we build a DLL.
9519 old_archive_from_new_cmds='true'
9520 # FIXME: Should let the user specify the lib program.
9521 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9522 enable_shared_with_static_runtimes=yes
9527 darwin* | rhapsody*)
9530 archive_cmds_need_lc=no
9532 hardcode_automatic=yes
9533 hardcode_shlibpath_var=unsupported
9534 if test "$lt_cv_ld_force_load" = "yes"; then
9535 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\"`'
9538 whole_archive_flag_spec=''
9540 link_all_deplibs=yes
9541 allow_undefined_flag="$_lt_dar_allow_undefined"
9542 case $cc_basename in
9543 ifort*) _lt_dar_can_shared=yes ;;
9544 *) _lt_dar_can_shared=$GCC ;;
9546 if test "$_lt_dar_can_shared" = "yes"; then
9547 output_verbose_link_cmd=func_echo_all
9548 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9549 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9550 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}"
9551 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}"
9560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 hardcode_shlibpath_var=no
9565 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9566 # support. Future versions do this automatically, but an explicit c++rt0.o
9567 # does not break anything, and helps significantly (at the cost of a little
9570 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9571 hardcode_libdir_flag_spec='-R$libdir'
9573 hardcode_shlibpath_var=no
9576 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9578 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9580 hardcode_minus_L=yes
9581 hardcode_shlibpath_var=no
9584 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9585 freebsd* | dragonfly*)
9586 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9587 hardcode_libdir_flag_spec='-R$libdir'
9589 hardcode_shlibpath_var=no
9593 if test "$GCC" = yes; then
9594 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'
9596 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'
9598 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9599 hardcode_libdir_separator=:
9602 # hardcode_minus_L: Not really in the search PATH,
9603 # but as the default location of the library.
9604 hardcode_minus_L=yes
9605 export_dynamic_flag_spec='${wl}-E'
9609 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9610 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9612 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9614 if test "$with_gnu_ld" = no; then
9615 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9616 hardcode_libdir_separator=:
9618 hardcode_direct_absolute=yes
9619 export_dynamic_flag_spec='${wl}-E'
9620 # hardcode_minus_L: Not really in the search PATH,
9621 # but as the default location of the library.
9622 hardcode_minus_L=yes
9627 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9630 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9633 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9636 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9642 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9645 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9649 # Older versions of the 11.00 compiler do not understand -b yet
9650 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9652 $as_echo_n "checking if $CC understands -b... " >&6; }
9653 if ${lt_cv_prog_compiler__b+:} false; then :
9654 $as_echo_n "(cached) " >&6
9656 lt_cv_prog_compiler__b=no
9657 save_LDFLAGS="$LDFLAGS"
9658 LDFLAGS="$LDFLAGS -b"
9659 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9660 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9661 # The linker can only warn and ignore the option if not recognized
9662 # So say no if there are warnings
9663 if test -s conftest.err; then
9664 # Append any errors to the config.log.
9665 cat conftest.err 1>&5
9666 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9667 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9668 if diff conftest.exp conftest.er2 >/dev/null; then
9669 lt_cv_prog_compiler__b=yes
9672 lt_cv_prog_compiler__b=yes
9676 LDFLAGS="$save_LDFLAGS"
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9680 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9682 if test x"$lt_cv_prog_compiler__b" = xyes; then
9683 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9685 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9691 if test "$with_gnu_ld" = no; then
9692 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9693 hardcode_libdir_separator=:
9698 hardcode_shlibpath_var=no
9702 hardcode_direct_absolute=yes
9703 export_dynamic_flag_spec='${wl}-E'
9705 # hardcode_minus_L: Not really in the search PATH,
9706 # but as the default location of the library.
9707 hardcode_minus_L=yes
9713 irix5* | irix6* | nonstopux*)
9714 if test "$GCC" = yes; then
9715 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'
9716 # Try to use the -exported_symbol ld option, if it does not
9717 # work, assume that -exports_file does not work either and
9718 # implicitly export all symbols.
9719 # This should be the same for all languages, so no per-tag cache variable.
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9721 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9722 if ${lt_cv_irix_exported_symbol+:} false; then :
9723 $as_echo_n "(cached) " >&6
9725 save_LDFLAGS="$LDFLAGS"
9726 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h. */
9729 int foo (void) { return 0; }
9731 if ac_fn_c_try_link "$LINENO"; then :
9732 lt_cv_irix_exported_symbol=yes
9734 lt_cv_irix_exported_symbol=no
9736 rm -f core conftest.err conftest.$ac_objext \
9737 conftest$ac_exeext conftest.$ac_ext
9738 LDFLAGS="$save_LDFLAGS"
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9741 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9742 if test "$lt_cv_irix_exported_symbol" = yes; then
9743 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'
9746 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'
9747 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'
9749 archive_cmds_need_lc='no'
9750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9751 hardcode_libdir_separator=:
9753 link_all_deplibs=yes
9757 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9758 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9760 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9762 hardcode_libdir_flag_spec='-R$libdir'
9764 hardcode_shlibpath_var=no
9768 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9770 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9771 hardcode_libdir_separator=:
9772 hardcode_shlibpath_var=no
9779 if test -f /usr/libexec/ld.so; then
9781 hardcode_shlibpath_var=no
9782 hardcode_direct_absolute=yes
9783 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9785 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9786 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9787 export_dynamic_flag_spec='${wl}-E'
9790 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9792 hardcode_libdir_flag_spec='-R$libdir'
9795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9796 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9806 hardcode_libdir_flag_spec='-L$libdir'
9807 hardcode_minus_L=yes
9808 allow_undefined_flag=unsupported
9809 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'
9810 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9814 if test "$GCC" = yes; then
9815 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9816 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'
9818 allow_undefined_flag=' -expect_unresolved \*'
9819 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'
9821 archive_cmds_need_lc='no'
9822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9823 hardcode_libdir_separator=:
9826 osf4* | osf5*) # as osf3* with the addition of -msym flag
9827 if test "$GCC" = yes; then
9828 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9829 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'
9830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9832 allow_undefined_flag=' -expect_unresolved \*'
9833 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'
9834 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~
9835 $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'
9837 # Both c and cxx compiler support -rpath directly
9838 hardcode_libdir_flag_spec='-rpath $libdir'
9840 archive_cmds_need_lc='no'
9841 hardcode_libdir_separator=:
9845 no_undefined_flag=' -z defs'
9846 if test "$GCC" = yes; then
9848 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9849 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9850 $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'
9852 case `$CC -V 2>&1` in
9855 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9856 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9857 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9861 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9862 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9863 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9867 hardcode_libdir_flag_spec='-R$libdir'
9868 hardcode_shlibpath_var=no
9870 solaris2.[0-5] | solaris2.[0-5].*) ;;
9872 # The compiler driver will combine and reorder linker options,
9873 # but understands `-z linker_flag'. GCC discards it without `$wl',
9874 # but is careful enough not to reorder.
9875 # Supported since Solaris 2.6 (maybe 2.5.1?)
9876 if test "$GCC" = yes; then
9877 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9879 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9883 link_all_deplibs=yes
9887 if test "x$host_vendor" = xsequent; then
9888 # Use $CC to link under sequent, because it throws in some extra .o
9889 # files that make .init and .fini sections work.
9890 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9892 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9894 hardcode_libdir_flag_spec='-L$libdir'
9896 hardcode_minus_L=yes
9897 hardcode_shlibpath_var=no
9901 case $host_vendor in
9903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9904 hardcode_direct=yes # is this really true???
9907 ## LD is ld it makes a PLAMLIB
9908 ## CC just makes a GrossModule.
9909 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9910 reload_cmds='$CC -r -o $output$reload_objs'
9914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9915 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9918 runpath_var='LD_RUN_PATH'
9919 hardcode_shlibpath_var=no
9923 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9924 hardcode_shlibpath_var=no
9925 export_dynamic_flag_spec='-Bexport'
9929 if test -d /usr/nec; then
9930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9931 hardcode_shlibpath_var=no
9932 runpath_var=LD_RUN_PATH
9933 hardcode_runpath_var=yes
9938 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9939 no_undefined_flag='${wl}-z,text'
9940 archive_cmds_need_lc=no
9941 hardcode_shlibpath_var=no
9942 runpath_var='LD_RUN_PATH'
9944 if test "$GCC" = yes; then
9945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9946 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9948 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9949 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9953 sysv5* | sco3.2v5* | sco5v6*)
9954 # Note: We can NOT use -z defs as we might desire, because we do not
9955 # link with -lc, and that would cause any symbols used from libc to
9956 # always be unresolved, which means just about no library would
9957 # ever link correctly. If we're not using GNU ld we use -z text
9958 # though, which does catch some bad symbols but isn't as heavy-handed
9960 no_undefined_flag='${wl}-z,text'
9961 allow_undefined_flag='${wl}-z,nodefs'
9962 archive_cmds_need_lc=no
9963 hardcode_shlibpath_var=no
9964 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9965 hardcode_libdir_separator=':'
9966 link_all_deplibs=yes
9967 export_dynamic_flag_spec='${wl}-Bexport'
9968 runpath_var='LD_RUN_PATH'
9970 if test "$GCC" = yes; then
9971 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9972 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9974 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9975 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9980 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9981 hardcode_libdir_flag_spec='-L$libdir'
9982 hardcode_shlibpath_var=no
9990 if test x$host_vendor = xsni; then
9992 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9993 export_dynamic_flag_spec='${wl}-Blargedynsym'
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10000 $as_echo "$ld_shlibs" >&6; }
10001 test "$ld_shlibs" = no && can_build_shared=no
10003 with_gnu_ld=$with_gnu_ld
10020 # Do we need to explicitly link libc?
10022 case "x$archive_cmds_need_lc" in
10024 # Assume -lc should be added
10025 archive_cmds_need_lc=yes
10027 if test "$enable_shared" = yes && test "$GCC" = yes; then
10028 case $archive_cmds in
10030 # FIXME: we may have to deal with multi-command sequences.
10033 # Test whether the compiler implicitly links with -lc since on some
10034 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10035 # to ld, don't add -lc before -lgcc.
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10037 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10038 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10039 $as_echo_n "(cached) " >&6
10042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10045 (eval $ac_compile) 2>&5
10047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10048 test $ac_status = 0; } 2>conftest.err; then
10051 libobjs=conftest.$ac_objext
10053 wl=$lt_prog_compiler_wl
10054 pic_flag=$lt_prog_compiler_pic
10060 lt_save_allow_undefined_flag=$allow_undefined_flag
10061 allow_undefined_flag=
10062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10063 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10066 test $ac_status = 0; }
10068 lt_cv_archive_cmds_need_lc=no
10070 lt_cv_archive_cmds_need_lc=yes
10072 allow_undefined_flag=$lt_save_allow_undefined_flag
10074 cat conftest.err 1>&5
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10080 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10081 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10240 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10242 if test "$GCC" = yes; then
10244 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10245 *) lt_awk_arg="/^libraries:/" ;;
10248 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10249 *) lt_sed_strip_eq="s,=/,/,g" ;;
10251 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10252 case $lt_search_path_spec in
10254 # if the path contains ";" then we assume it to be the separator
10255 # otherwise default to the standard path separator (i.e. ":") - it is
10256 # assumed that no part of a normal pathname contains ";" but that should
10257 # okay in the real world where ";" in dirpaths is itself problematic.
10258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10261 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10264 # Ok, now we have the path, separated by spaces, we can step through it
10265 # and add multilib dir if necessary.
10266 lt_tmp_lt_search_path_spec=
10267 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10268 for lt_sys_path in $lt_search_path_spec; do
10269 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10270 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10272 test -d "$lt_sys_path" && \
10273 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10276 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10277 BEGIN {RS=" "; FS="/|\n";} {
10280 for (lt_i = NF; lt_i > 0; lt_i--) {
10281 if ($lt_i != "" && $lt_i != ".") {
10282 if ($lt_i == "..") {
10285 if (lt_count == 0) {
10286 lt_foo="/" $lt_i lt_foo;
10293 if (lt_foo != "") { lt_freq[lt_foo]++; }
10294 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10296 # AWK program above erroneously prepends '/' to C:/dos/paths
10299 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10300 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10302 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10304 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10306 library_names_spec=
10307 libname_spec='lib$name'
10311 postuninstall_cmds=
10315 shlibpath_overrides_runpath=unknown
10317 dynamic_linker="$host_os ld.so"
10318 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10319 need_lib_prefix=unknown
10320 hardcode_into_libs=no
10322 # when you set need_version to no, make sure it does not cause -set_version
10323 # flags to be left without arguments
10324 need_version=unknown
10328 version_type=linux # correct to gnu/linux during the next big refactor
10329 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10330 shlibpath_var=LIBPATH
10332 # AIX 3 has no versioning support, so we append a major version to the name.
10333 soname_spec='${libname}${release}${shared_ext}$major'
10337 version_type=linux # correct to gnu/linux during the next big refactor
10340 hardcode_into_libs=yes
10341 if test "$host_cpu" = ia64; then
10342 # AIX 5 supports IA64
10343 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10344 shlibpath_var=LD_LIBRARY_PATH
10346 # With GCC up to 2.95.x, collect2 would create an import file
10347 # for dependence libraries. The import file would start with
10348 # the line `#! .'. This would cause the generated library to
10349 # depend on `.', always an invalid library. This was fixed in
10350 # development snapshots of GCC prior to 3.0.
10352 aix4 | aix4.[01] | aix4.[01].*)
10353 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10355 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10358 can_build_shared=no
10362 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10363 # soname into executable. Probably we can add versioning support to
10364 # collect2, so additional links can be useful in future.
10365 if test "$aix_use_runtimelinking" = yes; then
10366 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10367 # instead of lib<name>.a to let people know that these are not
10368 # typical AIX shared libraries.
10369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10371 # We preserve .a as extension for shared libraries through AIX4.2
10372 # and later when we are not doing run time linking.
10373 library_names_spec='${libname}${release}.a $libname.a'
10374 soname_spec='${libname}${release}${shared_ext}$major'
10376 shlibpath_var=LIBPATH
10383 # Since July 2007 AmigaOS4 officially supports .so libraries.
10384 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 library_names_spec='$libname.ixlibrary $libname.a'
10389 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10390 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'
10396 library_names_spec='${libname}${shared_ext}'
10397 dynamic_linker="$host_os ld.so"
10398 shlibpath_var=LIBRARY_PATH
10402 version_type=linux # correct to gnu/linux during the next big refactor
10404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405 soname_spec='${libname}${release}${shared_ext}$major'
10406 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10409 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10410 # the default ld.so.conf also contains /usr/contrib/lib and
10411 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10412 # libtool to hard-code these into programs
10415 cygwin* | mingw* | pw32* | cegcc*)
10416 version_type=windows
10421 case $GCC,$cc_basename in
10424 library_names_spec='$libname.dll.a'
10425 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10426 postinstall_cmds='base_file=`basename \${file}`~
10427 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10428 dldir=$destdir/`dirname \$dlpath`~
10429 test -d \$dldir || mkdir -p \$dldir~
10430 $install_prog $dir/$dlname \$dldir/$dlname~
10431 chmod a+x \$dldir/$dlname~
10432 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10433 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10435 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10436 dlpath=$dir/\$dldll~
10438 shlibpath_overrides_runpath=yes
10442 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10443 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10445 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10448 # MinGW DLLs use traditional 'lib' prefix
10449 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10452 # pw32 DLLs use 'pw' prefix rather than 'lib'
10453 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10456 dynamic_linker='Win32 ld.exe'
10461 libname_spec='$name'
10462 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10463 library_names_spec='${libname}.dll.lib'
10467 sys_lib_search_path_spec=
10470 for lt_path in $LIB
10473 # Let DOS variable expansion print the short 8.3 style file name.
10474 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10475 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10478 # Convert to MSYS style.
10479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10482 # Convert to unix form, then to dos form, then back to unix form
10483 # but this time dos style (no spaces!) so that the unix form looks
10484 # like /cygdrive/c/PROGRA~1:/cygdr...
10485 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10486 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10487 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10490 sys_lib_search_path_spec="$LIB"
10491 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10492 # It is most probably a Windows format PATH.
10493 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10495 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10497 # FIXME: find the short name or the path components, as spaces are
10498 # common. (e.g. "Program Files" -> "PROGRA~1")
10502 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10503 postinstall_cmds='base_file=`basename \${file}`~
10504 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10505 dldir=$destdir/`dirname \$dlpath`~
10506 test -d \$dldir || mkdir -p \$dldir~
10507 $install_prog $dir/$dlname \$dldir/$dlname'
10508 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10509 dlpath=$dir/\$dldll~
10511 shlibpath_overrides_runpath=yes
10512 dynamic_linker='Win32 link.exe'
10516 # Assume MSVC wrapper
10517 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10518 dynamic_linker='Win32 ld.exe'
10521 # FIXME: first we should search . and the directory the executable is in
10525 darwin* | rhapsody*)
10526 dynamic_linker="$host_os dyld"
10527 version_type=darwin
10530 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10531 soname_spec='${libname}${release}${major}$shared_ext'
10532 shlibpath_overrides_runpath=yes
10533 shlibpath_var=DYLD_LIBRARY_PATH
10534 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10536 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10537 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10541 version_type=linux # correct to gnu/linux during the next big refactor
10544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10545 soname_spec='${libname}${release}${shared_ext}$major'
10546 shlibpath_var=LD_LIBRARY_PATH
10549 freebsd* | dragonfly*)
10550 # DragonFly does not have aout. When/if they implement a new
10551 # versioning mechanism, adjust this.
10552 if test -x /usr/bin/objformat; then
10553 objformat=`/usr/bin/objformat`
10556 freebsd[23].*) objformat=aout ;;
10557 *) objformat=elf ;;
10560 version_type=freebsd-$objformat
10561 case $version_type in
10563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10572 shlibpath_var=LD_LIBRARY_PATH
10575 shlibpath_overrides_runpath=yes
10577 freebsd3.[01]* | freebsdelf3.[01]*)
10578 shlibpath_overrides_runpath=yes
10579 hardcode_into_libs=yes
10581 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10582 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10583 shlibpath_overrides_runpath=no
10584 hardcode_into_libs=yes
10586 *) # from 4.6 on, and DragonFly
10587 shlibpath_overrides_runpath=yes
10588 hardcode_into_libs=yes
10594 version_type=linux # correct to gnu/linux during the next big refactor
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 shlibpath_var=LD_LIBRARY_PATH
10600 shlibpath_overrides_runpath=no
10601 hardcode_into_libs=yes
10605 version_type=linux # correct to gnu/linux during the next big refactor
10608 dynamic_linker="$host_os runtime_loader"
10609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10610 soname_spec='${libname}${release}${shared_ext}$major'
10611 shlibpath_var=LIBRARY_PATH
10612 shlibpath_overrides_runpath=yes
10613 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10614 hardcode_into_libs=yes
10617 hpux9* | hpux10* | hpux11*)
10618 # Give a soname corresponding to the major version so that dld.sl refuses to
10619 # link against other versions.
10626 hardcode_into_libs=yes
10627 dynamic_linker="$host_os dld.so"
10628 shlibpath_var=LD_LIBRARY_PATH
10629 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 if test "X$HPUX_IA64_MODE" = X32; then
10633 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10635 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10641 hardcode_into_libs=yes
10642 dynamic_linker="$host_os dld.sl"
10643 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10644 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10646 soname_spec='${libname}${release}${shared_ext}$major'
10647 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10648 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10652 dynamic_linker="$host_os dld.sl"
10653 shlibpath_var=SHLIB_PATH
10654 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10656 soname_spec='${libname}${release}${shared_ext}$major'
10659 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10660 postinstall_cmds='chmod 555 $lib'
10661 # or fails outright, so override atomically:
10662 install_override_mode=555
10666 version_type=linux # correct to gnu/linux during the next big refactor
10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10670 soname_spec='${libname}${release}${shared_ext}$major'
10671 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10672 shlibpath_var=LD_LIBRARY_PATH
10673 shlibpath_overrides_runpath=no
10674 hardcode_into_libs=yes
10677 irix5* | irix6* | nonstopux*)
10679 nonstopux*) version_type=nonstopux ;;
10681 if test "$lt_cv_prog_gnu_ld" = yes; then
10682 version_type=linux # correct to gnu/linux during the next big refactor
10689 soname_spec='${libname}${release}${shared_ext}$major'
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10692 irix5* | nonstopux*)
10693 libsuff= shlibsuff=
10696 case $LD in # libtool.m4 will add one of these switches to LD
10697 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10698 libsuff= shlibsuff= libmagic=32-bit;;
10699 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10700 libsuff=32 shlibsuff=N32 libmagic=N32;;
10701 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10702 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10703 *) libsuff= shlibsuff= libmagic=never-match;;
10707 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10708 shlibpath_overrides_runpath=no
10709 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10710 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10711 hardcode_into_libs=yes
10714 # No shared lib support for Linux oldld, aout, or coff.
10715 linux*oldld* | linux*aout* | linux*coff*)
10719 # This must be glibc/ELF.
10720 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10721 version_type=linux # correct to gnu/linux during the next big refactor
10724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10725 soname_spec='${libname}${release}${shared_ext}$major'
10726 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10727 shlibpath_var=LD_LIBRARY_PATH
10728 shlibpath_overrides_runpath=no
10730 # Some binutils ld are patched to set DT_RUNPATH
10731 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10732 $as_echo_n "(cached) " >&6
10734 lt_cv_shlibpath_overrides_runpath=no
10735 save_LDFLAGS=$LDFLAGS
10736 save_libdir=$libdir
10737 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10738 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10740 /* end confdefs.h. */
10750 if ac_fn_c_try_link "$LINENO"; then :
10751 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10752 lt_cv_shlibpath_overrides_runpath=yes
10755 rm -f core conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 LDFLAGS=$save_LDFLAGS
10758 libdir=$save_libdir
10762 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10764 # This implies no fast_install, which is unacceptable.
10765 # Some rework will be needed to allow for fast_install
10766 # before this can be enabled.
10767 hardcode_into_libs=yes
10769 # Append ld.so.conf contents to the search path
10770 if test -f /etc/ld.so.conf; then
10771 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' ' '`
10772 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10775 # We used to test for /lib/ld.so.1 and disable shared libraries on
10776 # powerpc, because MkLinux only supported shared libraries with the
10777 # GNU dynamic linker. Since this was broken with cross compilers,
10778 # most powerpc-linux boxes support dynamic linking these days and
10779 # people can always --disable-shared, the test was removed, and we
10780 # assume the GNU/Linux dynamic linker is in use.
10781 dynamic_linker='GNU/Linux ld.so'
10788 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10791 dynamic_linker='NetBSD (a.out) ld.so'
10793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10794 soname_spec='${libname}${release}${shared_ext}$major'
10795 dynamic_linker='NetBSD ld.elf_so'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 shlibpath_overrides_runpath=yes
10799 hardcode_into_libs=yes
10803 version_type=linux # correct to gnu/linux during the next big refactor
10804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10805 shlibpath_var=LD_LIBRARY_PATH
10806 shlibpath_overrides_runpath=yes
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 shlibpath_var=LD_LIBRARY_PATH
10816 shlibpath_overrides_runpath=no
10817 hardcode_into_libs=yes
10818 dynamic_linker='ldqnx.so'
10823 sys_lib_dlsearch_path_spec="/usr/lib"
10825 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10827 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10828 *) need_version=no ;;
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10831 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10832 shlibpath_var=LD_LIBRARY_PATH
10833 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10835 openbsd2.[89] | openbsd2.[89].*)
10836 shlibpath_overrides_runpath=no
10839 shlibpath_overrides_runpath=yes
10843 shlibpath_overrides_runpath=yes
10848 libname_spec='$name'
10851 library_names_spec='$libname${shared_ext} $libname.a'
10852 dynamic_linker='OS/2 ld.exe'
10853 shlibpath_var=LIBPATH
10856 osf3* | osf4* | osf5*)
10860 soname_spec='${libname}${release}${shared_ext}$major'
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10864 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10872 version_type=linux # correct to gnu/linux during the next big refactor
10875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10876 soname_spec='${libname}${release}${shared_ext}$major'
10877 shlibpath_var=LD_LIBRARY_PATH
10878 shlibpath_overrides_runpath=yes
10879 hardcode_into_libs=yes
10880 # ldd complains unless libraries are executable
10881 postinstall_cmds='chmod +x $lib'
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10887 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10888 shlibpath_var=LD_LIBRARY_PATH
10889 shlibpath_overrides_runpath=yes
10890 if test "$with_gnu_ld" = yes; then
10897 version_type=linux # correct to gnu/linux during the next big refactor
10898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10899 soname_spec='${libname}${release}${shared_ext}$major'
10900 shlibpath_var=LD_LIBRARY_PATH
10901 case $host_vendor in
10903 shlibpath_overrides_runpath=no
10905 runpath_var=LD_RUN_PATH
10913 shlibpath_overrides_runpath=no
10914 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10920 if test -d /usr/nec ;then
10921 version_type=linux # correct to gnu/linux during the next big refactor
10922 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10923 soname_spec='$libname${shared_ext}.$major'
10924 shlibpath_var=LD_LIBRARY_PATH
10928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10929 version_type=freebsd-elf
10932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10933 soname_spec='${libname}${release}${shared_ext}$major'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 shlibpath_overrides_runpath=yes
10936 hardcode_into_libs=yes
10937 if test "$with_gnu_ld" = yes; then
10938 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10940 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10943 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10947 sys_lib_dlsearch_path_spec='/usr/lib'
10951 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10952 version_type=linux # correct to gnu/linux during the next big refactor
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956 shlibpath_var=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath=no
10958 hardcode_into_libs=yes
10962 version_type=linux # correct to gnu/linux during the next big refactor
10963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10964 soname_spec='${libname}${release}${shared_ext}$major'
10965 shlibpath_var=LD_LIBRARY_PATH
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10973 $as_echo "$dynamic_linker" >&6; }
10974 test "$dynamic_linker" = no && can_build_shared=no
10976 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10977 if test "$GCC" = yes; then
10978 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10981 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10982 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10984 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10985 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11080 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11082 if test -n "$hardcode_libdir_flag_spec" ||
11083 test -n "$runpath_var" ||
11084 test "X$hardcode_automatic" = "Xyes" ; then
11086 # We can hardcode non-existent directories.
11087 if test "$hardcode_direct" != no &&
11088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11089 # have to relink, otherwise we might link with an installed library
11090 # when we should be linking with a yet-to-be-installed one
11091 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11092 test "$hardcode_minus_L" != no; then
11093 # Linking always hardcodes the temporary library directory.
11094 hardcode_action=relink
11096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11097 hardcode_action=immediate
11100 # We cannot hardcode anything, or else we can only hardcode existing
11102 hardcode_action=unsupported
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11105 $as_echo "$hardcode_action" >&6; }
11107 if test "$hardcode_action" = relink ||
11108 test "$inherit_rpath" = yes; then
11109 # Fast installation is not supported
11110 enable_fast_install=no
11111 elif test "$shlibpath_overrides_runpath" = yes ||
11112 test "$enable_shared" = no; then
11113 # Fast installation is not necessary
11114 enable_fast_install=needless
11122 if test "x$enable_dlopen" != xyes; then
11123 enable_dlopen=unknown
11124 enable_dlopen_self=unknown
11125 enable_dlopen_self_static=unknown
11132 lt_cv_dlopen="load_add_on"
11134 lt_cv_dlopen_self=yes
11137 mingw* | pw32* | cegcc*)
11138 lt_cv_dlopen="LoadLibrary"
11143 lt_cv_dlopen="dlopen"
11148 # if libdl is installed we need to link against it
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11150 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11151 if ${ac_cv_lib_dl_dlopen+:} false; then :
11152 $as_echo_n "(cached) " >&6
11154 ac_check_lib_save_LIBS=$LIBS
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h. */
11159 /* Override any GCC internal prototype to avoid an error.
11160 Use char because int might match the return type of a GCC
11161 builtin and then its argument prototype would still apply. */
11174 if ac_fn_c_try_link "$LINENO"; then :
11175 ac_cv_lib_dl_dlopen=yes
11177 ac_cv_lib_dl_dlopen=no
11179 rm -f core conftest.err conftest.$ac_objext \
11180 conftest$ac_exeext conftest.$ac_ext
11181 LIBS=$ac_check_lib_save_LIBS
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11184 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11185 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11186 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11189 lt_cv_dlopen="dyld"
11191 lt_cv_dlopen_self=yes
11198 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11199 if test "x$ac_cv_func_shl_load" = xyes; then :
11200 lt_cv_dlopen="shl_load"
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11203 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11204 if ${ac_cv_lib_dld_shl_load+:} false; then :
11205 $as_echo_n "(cached) " >&6
11207 ac_check_lib_save_LIBS=$LIBS
11209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210 /* end confdefs.h. */
11212 /* Override any GCC internal prototype to avoid an error.
11213 Use char because int might match the return type of a GCC
11214 builtin and then its argument prototype would still apply. */
11222 return shl_load ();
11227 if ac_fn_c_try_link "$LINENO"; then :
11228 ac_cv_lib_dld_shl_load=yes
11230 ac_cv_lib_dld_shl_load=no
11232 rm -f core conftest.err conftest.$ac_objext \
11233 conftest$ac_exeext conftest.$ac_ext
11234 LIBS=$ac_check_lib_save_LIBS
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11237 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11238 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11239 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11241 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11242 if test "x$ac_cv_func_dlopen" = xyes; then :
11243 lt_cv_dlopen="dlopen"
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11246 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11247 if ${ac_cv_lib_dl_dlopen+:} false; then :
11248 $as_echo_n "(cached) " >&6
11250 ac_check_lib_save_LIBS=$LIBS
11252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h. */
11255 /* Override any GCC internal prototype to avoid an error.
11256 Use char because int might match the return type of a GCC
11257 builtin and then its argument prototype would still apply. */
11270 if ac_fn_c_try_link "$LINENO"; then :
11271 ac_cv_lib_dl_dlopen=yes
11273 ac_cv_lib_dl_dlopen=no
11275 rm -f core conftest.err conftest.$ac_objext \
11276 conftest$ac_exeext conftest.$ac_ext
11277 LIBS=$ac_check_lib_save_LIBS
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11280 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11281 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11282 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11285 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11286 if ${ac_cv_lib_svld_dlopen+:} false; then :
11287 $as_echo_n "(cached) " >&6
11289 ac_check_lib_save_LIBS=$LIBS
11290 LIBS="-lsvld $LIBS"
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h. */
11294 /* Override any GCC internal prototype to avoid an error.
11295 Use char because int might match the return type of a GCC
11296 builtin and then its argument prototype would still apply. */
11309 if ac_fn_c_try_link "$LINENO"; then :
11310 ac_cv_lib_svld_dlopen=yes
11312 ac_cv_lib_svld_dlopen=no
11314 rm -f core conftest.err conftest.$ac_objext \
11315 conftest$ac_exeext conftest.$ac_ext
11316 LIBS=$ac_check_lib_save_LIBS
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11319 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11320 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11321 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11324 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11325 if ${ac_cv_lib_dld_dld_link+:} false; then :
11326 $as_echo_n "(cached) " >&6
11328 ac_check_lib_save_LIBS=$LIBS
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h. */
11333 /* Override any GCC internal prototype to avoid an error.
11334 Use char because int might match the return type of a GCC
11335 builtin and then its argument prototype would still apply. */
11343 return dld_link ();
11348 if ac_fn_c_try_link "$LINENO"; then :
11349 ac_cv_lib_dld_dld_link=yes
11351 ac_cv_lib_dld_dld_link=no
11353 rm -f core conftest.err conftest.$ac_objext \
11354 conftest$ac_exeext conftest.$ac_ext
11355 LIBS=$ac_check_lib_save_LIBS
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11358 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11359 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11360 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11381 if test "x$lt_cv_dlopen" != xno; then
11387 case $lt_cv_dlopen in
11389 save_CPPFLAGS="$CPPFLAGS"
11390 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11392 save_LDFLAGS="$LDFLAGS"
11393 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11396 LIBS="$lt_cv_dlopen_libs $LIBS"
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11399 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11400 if ${lt_cv_dlopen_self+:} false; then :
11401 $as_echo_n "(cached) " >&6
11403 if test "$cross_compiling" = yes; then :
11404 lt_cv_dlopen_self=cross
11406 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11407 lt_status=$lt_dlunknown
11408 cat > conftest.$ac_ext <<_LT_EOF
11409 #line $LINENO "configure"
11410 #include "confdefs.h"
11419 # define LT_DLGLOBAL RTLD_GLOBAL
11422 # define LT_DLGLOBAL DL_GLOBAL
11424 # define LT_DLGLOBAL 0
11428 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11429 find out it does not work in some platform. */
11430 #ifndef LT_DLLAZY_OR_NOW
11432 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11435 # define LT_DLLAZY_OR_NOW DL_LAZY
11438 # define LT_DLLAZY_OR_NOW RTLD_NOW
11441 # define LT_DLLAZY_OR_NOW DL_NOW
11443 # define LT_DLLAZY_OR_NOW 0
11450 /* When -fvisbility=hidden is used, assume the code has been annotated
11451 correspondingly for the symbols needed. */
11452 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11453 int fnord () __attribute__((visibility("default")));
11456 int fnord () { return 42; }
11459 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11460 int status = $lt_dlunknown;
11464 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11467 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11468 else puts (dlerror ());
11470 /* dlclose (self); */
11478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11479 (eval $ac_link) 2>&5
11481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11482 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11483 (./conftest; exit; ) >&5 2>/dev/null
11485 case x$lt_status in
11486 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11487 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11488 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11491 # compilation failed
11492 lt_cv_dlopen_self=no
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11500 $as_echo "$lt_cv_dlopen_self" >&6; }
11502 if test "x$lt_cv_dlopen_self" = xyes; then
11503 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11505 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11506 if ${lt_cv_dlopen_self_static+:} false; then :
11507 $as_echo_n "(cached) " >&6
11509 if test "$cross_compiling" = yes; then :
11510 lt_cv_dlopen_self_static=cross
11512 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11513 lt_status=$lt_dlunknown
11514 cat > conftest.$ac_ext <<_LT_EOF
11515 #line $LINENO "configure"
11516 #include "confdefs.h"
11525 # define LT_DLGLOBAL RTLD_GLOBAL
11528 # define LT_DLGLOBAL DL_GLOBAL
11530 # define LT_DLGLOBAL 0
11534 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11535 find out it does not work in some platform. */
11536 #ifndef LT_DLLAZY_OR_NOW
11538 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11541 # define LT_DLLAZY_OR_NOW DL_LAZY
11544 # define LT_DLLAZY_OR_NOW RTLD_NOW
11547 # define LT_DLLAZY_OR_NOW DL_NOW
11549 # define LT_DLLAZY_OR_NOW 0
11556 /* When -fvisbility=hidden is used, assume the code has been annotated
11557 correspondingly for the symbols needed. */
11558 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11559 int fnord () __attribute__((visibility("default")));
11562 int fnord () { return 42; }
11565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11566 int status = $lt_dlunknown;
11570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11573 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11574 else puts (dlerror ());
11576 /* dlclose (self); */
11584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11585 (eval $ac_link) 2>&5
11587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11588 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11589 (./conftest; exit; ) >&5 2>/dev/null
11591 case x$lt_status in
11592 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11593 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11594 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11597 # compilation failed
11598 lt_cv_dlopen_self_static=no
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11606 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11609 CPPFLAGS="$save_CPPFLAGS"
11610 LDFLAGS="$save_LDFLAGS"
11615 case $lt_cv_dlopen_self in
11616 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11617 *) enable_dlopen_self=unknown ;;
11620 case $lt_cv_dlopen_self_static in
11621 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11622 *) enable_dlopen_self_static=unknown ;;
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11645 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11646 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11647 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11648 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11650 $as_echo "yes" >&6; }
11652 # FIXME - insert some real tests, host_os isn't really good enough
11655 if test -n "$STRIP" ; then
11656 striplib="$STRIP -x"
11657 old_striplib="$STRIP -S"
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11659 $as_echo "yes" >&6; }
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11662 $as_echo "no" >&6; }
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11667 $as_echo "no" >&6; }
11683 # Report which library types will actually be built
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11685 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11687 $as_echo "$can_build_shared" >&6; }
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11690 $as_echo_n "checking whether to build shared libraries... " >&6; }
11691 test "$can_build_shared" = "no" && enable_shared=no
11693 # On AIX, shared libraries and static libraries use the same namespace, and
11694 # are all built from PIC.
11697 test "$enable_shared" = yes && enable_static=no
11698 if test -n "$RANLIB"; then
11699 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11700 postinstall_cmds='$RANLIB $lib'
11705 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11706 test "$enable_shared" = yes && enable_static=no
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11711 $as_echo "$enable_shared" >&6; }
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11714 $as_echo_n "checking whether to build static libraries... " >&6; }
11715 # Make sure either enable_shared or enable_static is yes.
11716 test "$enable_shared" = yes || enable_static=yes
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11718 $as_echo "$enable_static" >&6; }
11725 ac_cpp='$CPP $CPPFLAGS'
11726 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11727 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11728 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11746 ac_config_commands="$ac_config_commands libtool"
11751 # Only expand once:
11756 ac_cpp='$CPP $CPPFLAGS'
11757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11760 if test -n "$ac_tool_prefix"; then
11761 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11762 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11764 $as_echo_n "checking for $ac_word... " >&6; }
11765 if ${ac_cv_prog_CC+:} false; then :
11766 $as_echo_n "(cached) " >&6
11768 if test -n "$CC"; then
11769 ac_cv_prog_CC="$CC" # Let the user override the test.
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $PATH
11775 test -z "$as_dir" && as_dir=.
11776 for ac_exec_ext in '' $ac_executable_extensions; do
11777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11778 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11789 if test -n "$CC"; then
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11791 $as_echo "$CC" >&6; }
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11794 $as_echo "no" >&6; }
11799 if test -z "$ac_cv_prog_CC"; then
11801 # Extract the first word of "gcc", so it can be a program name with args.
11802 set dummy gcc; ac_word=$2
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11804 $as_echo_n "checking for $ac_word... " >&6; }
11805 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11806 $as_echo_n "(cached) " >&6
11808 if test -n "$ac_ct_CC"; then
11809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812 for as_dir in $PATH
11815 test -z "$as_dir" && as_dir=.
11816 for ac_exec_ext in '' $ac_executable_extensions; do
11817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11818 ac_cv_prog_ac_ct_CC="gcc"
11819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
11829 if test -n "$ac_ct_CC"; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
11831 $as_echo "$ac_ct_CC" >&6; }
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834 $as_echo "no" >&6; }
11837 if test "x$ac_ct_CC" = x; then
11840 case $cross_compiling:$ac_tool_warned in
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11844 ac_tool_warned=yes ;;
11849 CC="$ac_cv_prog_CC"
11852 if test -z "$CC"; then
11853 if test -n "$ac_tool_prefix"; then
11854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
11855 set dummy ${ac_tool_prefix}cc; ac_word=$2
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11857 $as_echo_n "checking for $ac_word... " >&6; }
11858 if ${ac_cv_prog_CC+:} false; then :
11859 $as_echo_n "(cached) " >&6
11861 if test -n "$CC"; then
11862 ac_cv_prog_CC="$CC" # Let the user override the test.
11864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11865 for as_dir in $PATH
11868 test -z "$as_dir" && as_dir=.
11869 for ac_exec_ext in '' $ac_executable_extensions; do
11870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11871 ac_cv_prog_CC="${ac_tool_prefix}cc"
11872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11882 if test -n "$CC"; then
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11884 $as_echo "$CC" >&6; }
11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11887 $as_echo "no" >&6; }
11893 if test -z "$CC"; then
11894 # Extract the first word of "cc", so it can be a program name with args.
11895 set dummy cc; ac_word=$2
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11897 $as_echo_n "checking for $ac_word... " >&6; }
11898 if ${ac_cv_prog_CC+:} false; then :
11899 $as_echo_n "(cached) " >&6
11901 if test -n "$CC"; then
11902 ac_cv_prog_CC="$CC" # Let the user override the test.
11904 ac_prog_rejected=no
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
11913 ac_prog_rejected=yes
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11924 if test $ac_prog_rejected = yes; then
11925 # We found a bogon in the path, so make sure we never use it.
11926 set dummy $ac_cv_prog_CC
11928 if test $# != 0; then
11929 # We chose a different compiler from the bogus one.
11930 # However, it has the same basename, so the bogon will be chosen
11931 # first if we set CC to just the basename; use the full file name.
11933 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
11939 if test -n "$CC"; then
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11941 $as_echo "$CC" >&6; }
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11944 $as_echo "no" >&6; }
11949 if test -z "$CC"; then
11950 if test -n "$ac_tool_prefix"; then
11951 for ac_prog in cl.exe
11953 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11954 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956 $as_echo_n "checking for $ac_word... " >&6; }
11957 if ${ac_cv_prog_CC+:} false; then :
11958 $as_echo_n "(cached) " >&6
11960 if test -n "$CC"; then
11961 ac_cv_prog_CC="$CC" # Let the user override the test.
11963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11964 for as_dir in $PATH
11967 test -z "$as_dir" && as_dir=.
11968 for ac_exec_ext in '' $ac_executable_extensions; do
11969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11970 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
11971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11981 if test -n "$CC"; then
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11983 $as_echo "$CC" >&6; }
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11990 test -n "$CC" && break
11993 if test -z "$CC"; then
11995 for ac_prog in cl.exe
11997 # Extract the first word of "$ac_prog", so it can be a program name with args.
11998 set dummy $ac_prog; ac_word=$2
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12000 $as_echo_n "checking for $ac_word... " >&6; }
12001 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12002 $as_echo_n "(cached) " >&6
12004 if test -n "$ac_ct_CC"; then
12005 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12008 for as_dir in $PATH
12011 test -z "$as_dir" && as_dir=.
12012 for ac_exec_ext in '' $ac_executable_extensions; do
12013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12014 ac_cv_prog_ac_ct_CC="$ac_prog"
12015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12024 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12025 if test -n "$ac_ct_CC"; then
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12027 $as_echo "$ac_ct_CC" >&6; }
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12030 $as_echo "no" >&6; }
12034 test -n "$ac_ct_CC" && break
12037 if test "x$ac_ct_CC" = x; then
12040 case $cross_compiling:$ac_tool_warned in
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12043 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12044 ac_tool_warned=yes ;;
12053 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12055 as_fn_error $? "no acceptable C compiler found in \$PATH
12056 See \`config.log' for more details" "$LINENO" 5; }
12058 # Provide some information about the compiler.
12059 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12062 for ac_option in --version -v -V -qversion; do
12063 { { ac_try="$ac_compiler $ac_option >&5"
12064 case "(($ac_try" in
12065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12066 *) ac_try_echo=$ac_try;;
12068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12069 $as_echo "$ac_try_echo"; } >&5
12070 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12072 if test -s conftest.err; then
12074 ... rest of stderr output deleted ...
12075 10q' conftest.err >conftest.er1
12076 cat conftest.er1 >&5
12078 rm -f conftest.er1 conftest.err
12079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12080 test $ac_status = 0; }
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12084 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12085 if ${ac_cv_c_compiler_gnu+:} false; then :
12086 $as_echo_n "(cached) " >&6
12088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12089 /* end confdefs.h. */
12102 if ac_fn_c_try_compile "$LINENO"; then :
12103 ac_compiler_gnu=yes
12107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12112 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12113 if test $ac_compiler_gnu = yes; then
12118 ac_test_CFLAGS=${CFLAGS+set}
12119 ac_save_CFLAGS=$CFLAGS
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12121 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12122 if ${ac_cv_prog_cc_g+:} false; then :
12123 $as_echo_n "(cached) " >&6
12125 ac_save_c_werror_flag=$ac_c_werror_flag
12126 ac_c_werror_flag=yes
12129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12130 /* end confdefs.h. */
12140 if ac_fn_c_try_compile "$LINENO"; then :
12141 ac_cv_prog_cc_g=yes
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12155 if ac_fn_c_try_compile "$LINENO"; then :
12158 ac_c_werror_flag=$ac_save_c_werror_flag
12160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12161 /* end confdefs.h. */
12171 if ac_fn_c_try_compile "$LINENO"; then :
12172 ac_cv_prog_cc_g=yes
12174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12179 ac_c_werror_flag=$ac_save_c_werror_flag
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12182 $as_echo "$ac_cv_prog_cc_g" >&6; }
12183 if test "$ac_test_CFLAGS" = set; then
12184 CFLAGS=$ac_save_CFLAGS
12185 elif test $ac_cv_prog_cc_g = yes; then
12186 if test "$GCC" = yes; then
12192 if test "$GCC" = yes; then
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12199 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12200 if ${ac_cv_prog_cc_c89+:} false; then :
12201 $as_echo_n "(cached) " >&6
12203 ac_cv_prog_cc_c89=no
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12207 #include <stdarg.h>
12210 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12211 struct buf { int x; };
12212 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12213 static char *e (p, i)
12219 static char *f (char * (*g) (char **, int), char **p, ...)
12224 s = g (p, va_arg (v,int));
12229 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12230 function prototypes and stuff, but not '\xHH' hex character constants.
12231 These don't provoke an error unfortunately, instead are silently treated
12232 as 'x'. The following induces an error, until -std is added to get
12233 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12234 array size at least. It's necessary to write '\x00'==0 to get something
12235 that's true only with -std. */
12236 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12238 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12239 inside strings and character constants. */
12241 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12243 int test (int i, double x);
12244 struct s1 {int (*f) (int a);};
12245 struct s2 {int (*f) (double a);};
12246 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12252 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12257 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12258 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12260 CC="$ac_save_CC $ac_arg"
12261 if ac_fn_c_try_compile "$LINENO"; then :
12262 ac_cv_prog_cc_c89=$ac_arg
12264 rm -f core conftest.err conftest.$ac_objext
12265 test "x$ac_cv_prog_cc_c89" != "xno" && break
12267 rm -f conftest.$ac_ext
12272 case "x$ac_cv_prog_cc_c89" in
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12275 $as_echo "none needed" >&6; } ;;
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12278 $as_echo "unsupported" >&6; } ;;
12280 CC="$CC $ac_cv_prog_cc_c89"
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12282 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12284 if test "x$ac_cv_prog_cc_c89" != xno; then :
12289 ac_cpp='$CPP $CPPFLAGS'
12290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12295 ac_cpp='$CPP $CPPFLAGS'
12296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12300 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
12301 if ${am_cv_prog_cc_c_o+:} false; then :
12302 $as_echo_n "(cached) " >&6
12304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12305 /* end confdefs.h. */
12315 # Make sure it works both with $CC and with simple cc.
12316 # Following AC_PROG_CC_C_O, we do the test twice because some
12317 # compilers refuse to overwrite an existing .o file with -o,
12318 # though they will create one.
12319 am_cv_prog_cc_c_o=yes
12320 for am_i in 1 2; do
12321 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
12322 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } \
12326 && test -f conftest2.$ac_objext; then
12329 am_cv_prog_cc_c_o=no
12333 rm -f core conftest*
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
12337 $as_echo "$am_cv_prog_cc_c_o" >&6; }
12338 if test "$am_cv_prog_cc_c_o" != yes; then
12339 # Losing compiler, so override with the script.
12340 # FIXME: It is wrong to rewrite CC.
12341 # But if we don't then we get into trouble of one sort or another.
12342 # A longer-term fix would be to have automake use am__CC in this case,
12343 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12344 CC="$am_aux_dir/compile $CC"
12347 ac_cpp='$CPP $CPPFLAGS'
12348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12353 depcc="$CC" am_compiler_list=
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12356 $as_echo_n "checking dependency style of $depcc... " >&6; }
12357 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12358 $as_echo_n "(cached) " >&6
12360 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12361 # We make a subdir and do the tests there. Otherwise we can end up
12362 # making bogus files that we don't know about and never remove. For
12363 # instance it was reported that on HP-UX the gcc test will end up
12364 # making a dummy file named 'D' -- because '-MD' means "put the output
12366 rm -rf conftest.dir
12368 # Copy depcomp to subdir because otherwise we won't find it if we're
12369 # using a relative directory.
12370 cp "$am_depcomp" conftest.dir
12372 # We will build objects and dependencies in a subdirectory because
12373 # it helps to detect inapplicable dependency modes. For instance
12374 # both Tru64's cc and ICC support -MD to output dependencies as a
12375 # side effect of compilation, but ICC will put the dependencies in
12376 # the current directory while Tru64 will put them in the object
12380 am_cv_CC_dependencies_compiler_type=none
12381 if test "$am_compiler_list" = ""; then
12382 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12384 am__universal=false
12385 case " $depcc " in #(
12386 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12389 for depmode in $am_compiler_list; do
12390 # Setup a source with many dependencies, because some compilers
12391 # like to wrap large dependency lists on column 80 (with \), and
12392 # we should not choose a depcomp mode which is confused by this.
12394 # We need to recreate these files for each test, as the compiler may
12395 # overwrite some of them when testing with obscure command lines.
12396 # This happens at least with the AIX C compiler.
12398 for i in 1 2 3 4 5 6; do
12399 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12400 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12401 # Solaris 10 /bin/sh.
12402 echo '/* dummy */' > sub/conftst$i.h
12404 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12406 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12407 # mode. It turns out that the SunPro C++ compiler does not properly
12408 # handle '-M -o', and we need to detect this. Also, some Intel
12409 # versions had trouble with output in subdirs.
12410 am__obj=sub/conftest.${OBJEXT-o}
12411 am__minus_obj="-o $am__obj"
12414 # This depmode causes a compiler race in universal mode.
12415 test "$am__universal" = false || continue
12418 # After this tag, mechanisms are not by side-effect, so they'll
12419 # only be used when explicitly requested.
12420 if test "x$enable_dependency_tracking" = xyes; then
12426 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12427 # This compiler won't grok '-c -o', but also, the minuso test has
12428 # not run yet. These depmodes are late enough in the game, and
12429 # so weak that their functioning should not be impacted.
12430 am__obj=conftest.${OBJEXT-o}
12435 if depmode=$depmode \
12436 source=sub/conftest.c object=$am__obj \
12437 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12438 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12439 >/dev/null 2>conftest.err &&
12440 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12441 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12442 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12443 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12444 # icc doesn't choke on unknown options, it will just issue warnings
12445 # or remarks (even with -Werror). So we grep stderr for any message
12446 # that says an option was ignored or not supported.
12447 # When given -MP, icc 7.0 and 7.1 complain thusly:
12448 # icc: Command line warning: ignoring option '-M'; no argument required
12449 # The diagnosis changed in icc 8.0:
12450 # icc: Command line remark: option '-MP' not supported
12451 if (grep 'ignoring option' conftest.err ||
12452 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12453 am_cv_CC_dependencies_compiler_type=$depmode
12460 rm -rf conftest.dir
12462 am_cv_CC_dependencies_compiler_type=none
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12467 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12468 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12471 test "x$enable_dependency_tracking" != xno \
12472 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12473 am__fastdepCC_TRUE=
12474 am__fastdepCC_FALSE='#'
12476 am__fastdepCC_TRUE='#'
12477 am__fastdepCC_FALSE=
12483 ac_cpp='$CXXCPP $CPPFLAGS'
12484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12487 if test -z "$CXX"; then
12488 if test -n "$CCC"; then
12491 if test -n "$ac_tool_prefix"; then
12492 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12495 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497 $as_echo_n "checking for $ac_word... " >&6; }
12498 if ${ac_cv_prog_CXX+:} false; then :
12499 $as_echo_n "(cached) " >&6
12501 if test -n "$CXX"; then
12502 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505 for as_dir in $PATH
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
12510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12511 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12521 CXX=$ac_cv_prog_CXX
12522 if test -n "$CXX"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12524 $as_echo "$CXX" >&6; }
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527 $as_echo "no" >&6; }
12531 test -n "$CXX" && break
12534 if test -z "$CXX"; then
12536 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12538 # Extract the first word of "$ac_prog", so it can be a program name with args.
12539 set dummy $ac_prog; ac_word=$2
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12541 $as_echo_n "checking for $ac_word... " >&6; }
12542 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12543 $as_echo_n "(cached) " >&6
12545 if test -n "$ac_ct_CXX"; then
12546 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12549 for as_dir in $PATH
12552 test -z "$as_dir" && as_dir=.
12553 for ac_exec_ext in '' $ac_executable_extensions; do
12554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12555 ac_cv_prog_ac_ct_CXX="$ac_prog"
12556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12565 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12566 if test -n "$ac_ct_CXX"; then
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12568 $as_echo "$ac_ct_CXX" >&6; }
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12571 $as_echo "no" >&6; }
12575 test -n "$ac_ct_CXX" && break
12578 if test "x$ac_ct_CXX" = x; then
12581 case $cross_compiling:$ac_tool_warned in
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12585 ac_tool_warned=yes ;;
12593 # Provide some information about the compiler.
12594 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12597 for ac_option in --version -v -V -qversion; do
12598 { { ac_try="$ac_compiler $ac_option >&5"
12599 case "(($ac_try" in
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12604 $as_echo "$ac_try_echo"; } >&5
12605 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12607 if test -s conftest.err; then
12609 ... rest of stderr output deleted ...
12610 10q' conftest.err >conftest.er1
12611 cat conftest.er1 >&5
12613 rm -f conftest.er1 conftest.err
12614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12615 test $ac_status = 0; }
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12619 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12620 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12621 $as_echo_n "(cached) " >&6
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12637 if ac_fn_cxx_try_compile "$LINENO"; then :
12638 ac_compiler_gnu=yes
12642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12643 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12647 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12648 if test $ac_compiler_gnu = yes; then
12653 ac_test_CXXFLAGS=${CXXFLAGS+set}
12654 ac_save_CXXFLAGS=$CXXFLAGS
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12656 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12657 if ${ac_cv_prog_cxx_g+:} false; then :
12658 $as_echo_n "(cached) " >&6
12660 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12661 ac_cxx_werror_flag=yes
12662 ac_cv_prog_cxx_g=no
12664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12665 /* end confdefs.h. */
12675 if ac_fn_cxx_try_compile "$LINENO"; then :
12676 ac_cv_prog_cxx_g=yes
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12690 if ac_fn_cxx_try_compile "$LINENO"; then :
12693 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12696 /* end confdefs.h. */
12706 if ac_fn_cxx_try_compile "$LINENO"; then :
12707 ac_cv_prog_cxx_g=yes
12709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12717 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12718 if test "$ac_test_CXXFLAGS" = set; then
12719 CXXFLAGS=$ac_save_CXXFLAGS
12720 elif test $ac_cv_prog_cxx_g = yes; then
12721 if test "$GXX" = yes; then
12727 if test "$GXX" = yes; then
12734 ac_cpp='$CPP $CPPFLAGS'
12735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12739 depcc="$CXX" am_compiler_list=
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12742 $as_echo_n "checking dependency style of $depcc... " >&6; }
12743 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12744 $as_echo_n "(cached) " >&6
12746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12747 # We make a subdir and do the tests there. Otherwise we can end up
12748 # making bogus files that we don't know about and never remove. For
12749 # instance it was reported that on HP-UX the gcc test will end up
12750 # making a dummy file named 'D' -- because '-MD' means "put the output
12752 rm -rf conftest.dir
12754 # Copy depcomp to subdir because otherwise we won't find it if we're
12755 # using a relative directory.
12756 cp "$am_depcomp" conftest.dir
12758 # We will build objects and dependencies in a subdirectory because
12759 # it helps to detect inapplicable dependency modes. For instance
12760 # both Tru64's cc and ICC support -MD to output dependencies as a
12761 # side effect of compilation, but ICC will put the dependencies in
12762 # the current directory while Tru64 will put them in the object
12766 am_cv_CXX_dependencies_compiler_type=none
12767 if test "$am_compiler_list" = ""; then
12768 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12770 am__universal=false
12771 case " $depcc " in #(
12772 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12775 for depmode in $am_compiler_list; do
12776 # Setup a source with many dependencies, because some compilers
12777 # like to wrap large dependency lists on column 80 (with \), and
12778 # we should not choose a depcomp mode which is confused by this.
12780 # We need to recreate these files for each test, as the compiler may
12781 # overwrite some of them when testing with obscure command lines.
12782 # This happens at least with the AIX C compiler.
12784 for i in 1 2 3 4 5 6; do
12785 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12786 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12787 # Solaris 10 /bin/sh.
12788 echo '/* dummy */' > sub/conftst$i.h
12790 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12792 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12793 # mode. It turns out that the SunPro C++ compiler does not properly
12794 # handle '-M -o', and we need to detect this. Also, some Intel
12795 # versions had trouble with output in subdirs.
12796 am__obj=sub/conftest.${OBJEXT-o}
12797 am__minus_obj="-o $am__obj"
12800 # This depmode causes a compiler race in universal mode.
12801 test "$am__universal" = false || continue
12804 # After this tag, mechanisms are not by side-effect, so they'll
12805 # only be used when explicitly requested.
12806 if test "x$enable_dependency_tracking" = xyes; then
12812 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12813 # This compiler won't grok '-c -o', but also, the minuso test has
12814 # not run yet. These depmodes are late enough in the game, and
12815 # so weak that their functioning should not be impacted.
12816 am__obj=conftest.${OBJEXT-o}
12821 if depmode=$depmode \
12822 source=sub/conftest.c object=$am__obj \
12823 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12824 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12825 >/dev/null 2>conftest.err &&
12826 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12827 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12828 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12829 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12830 # icc doesn't choke on unknown options, it will just issue warnings
12831 # or remarks (even with -Werror). So we grep stderr for any message
12832 # that says an option was ignored or not supported.
12833 # When given -MP, icc 7.0 and 7.1 complain thusly:
12834 # icc: Command line warning: ignoring option '-M'; no argument required
12835 # The diagnosis changed in icc 8.0:
12836 # icc: Command line remark: option '-MP' not supported
12837 if (grep 'ignoring option' conftest.err ||
12838 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12839 am_cv_CXX_dependencies_compiler_type=$depmode
12846 rm -rf conftest.dir
12848 am_cv_CXX_dependencies_compiler_type=none
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12853 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12854 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12857 test "x$enable_dependency_tracking" != xno \
12858 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12859 am__fastdepCXX_TRUE=
12860 am__fastdepCXX_FALSE='#'
12862 am__fastdepCXX_TRUE='#'
12863 am__fastdepCXX_FALSE=
12869 func_stripname_cnf ()
12872 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12873 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12875 } # func_stripname_cnf
12877 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12878 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12879 (test "X$CXX" != "Xg++"))) ; then
12881 ac_cpp='$CXXCPP $CPPFLAGS'
12882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12886 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12887 if test -z "$CXXCPP"; then
12888 if ${ac_cv_prog_CXXCPP+:} false; then :
12889 $as_echo_n "(cached) " >&6
12891 # Double quotes because CXXCPP needs to be expanded
12892 for CXXCPP in "$CXX -E" "/lib/cpp"
12894 ac_preproc_ok=false
12895 for ac_cxx_preproc_warn_flag in '' yes
12897 # Use a header file that comes with gcc, so configuring glibc
12898 # with a fresh cross-compiler works.
12899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12900 # <limits.h> exists even on freestanding compilers.
12901 # On the NeXT, cc -E runs the code through the compiler's parser,
12902 # not just through cpp. "Syntax error" is here to catch this case.
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12906 # include <limits.h>
12908 # include <assert.h>
12912 if ac_fn_cxx_try_cpp "$LINENO"; then :
12915 # Broken: fails on valid input.
12918 rm -f conftest.err conftest.i conftest.$ac_ext
12920 # OK, works on sane cases. Now check whether nonexistent headers
12921 # can be detected and how.
12922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12923 /* end confdefs.h. */
12924 #include <ac_nonexistent.h>
12926 if ac_fn_cxx_try_cpp "$LINENO"; then :
12927 # Broken: success on invalid input.
12930 # Passes both tests.
12934 rm -f conftest.err conftest.i conftest.$ac_ext
12937 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12938 rm -f conftest.i conftest.err conftest.$ac_ext
12939 if $ac_preproc_ok; then :
12944 ac_cv_prog_CXXCPP=$CXXCPP
12947 CXXCPP=$ac_cv_prog_CXXCPP
12949 ac_cv_prog_CXXCPP=$CXXCPP
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12952 $as_echo "$CXXCPP" >&6; }
12953 ac_preproc_ok=false
12954 for ac_cxx_preproc_warn_flag in '' yes
12956 # Use a header file that comes with gcc, so configuring glibc
12957 # with a fresh cross-compiler works.
12958 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12959 # <limits.h> exists even on freestanding compilers.
12960 # On the NeXT, cc -E runs the code through the compiler's parser,
12961 # not just through cpp. "Syntax error" is here to catch this case.
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12965 # include <limits.h>
12967 # include <assert.h>
12971 if ac_fn_cxx_try_cpp "$LINENO"; then :
12974 # Broken: fails on valid input.
12977 rm -f conftest.err conftest.i conftest.$ac_ext
12979 # OK, works on sane cases. Now check whether nonexistent headers
12980 # can be detected and how.
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12983 #include <ac_nonexistent.h>
12985 if ac_fn_cxx_try_cpp "$LINENO"; then :
12986 # Broken: success on invalid input.
12989 # Passes both tests.
12993 rm -f conftest.err conftest.i conftest.$ac_ext
12996 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12997 rm -f conftest.i conftest.err conftest.$ac_ext
12998 if $ac_preproc_ok; then :
13001 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13002 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13003 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13004 See \`config.log' for more details" "$LINENO" 5; }
13008 ac_cpp='$CPP $CPPFLAGS'
13009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13014 _lt_caught_CXX_error=yes
13018 ac_cpp='$CXXCPP $CPPFLAGS'
13019 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13020 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13021 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13023 archive_cmds_need_lc_CXX=no
13024 allow_undefined_flag_CXX=
13025 always_export_symbols_CXX=no
13026 archive_expsym_cmds_CXX=
13027 compiler_needs_object_CXX=no
13028 export_dynamic_flag_spec_CXX=
13029 hardcode_direct_CXX=no
13030 hardcode_direct_absolute_CXX=no
13031 hardcode_libdir_flag_spec_CXX=
13032 hardcode_libdir_separator_CXX=
13033 hardcode_minus_L_CXX=no
13034 hardcode_shlibpath_var_CXX=unsupported
13035 hardcode_automatic_CXX=no
13036 inherit_rpath_CXX=no
13038 module_expsym_cmds_CXX=
13039 link_all_deplibs_CXX=unknown
13040 old_archive_cmds_CXX=$old_archive_cmds
13041 reload_flag_CXX=$reload_flag
13042 reload_cmds_CXX=$reload_cmds
13043 no_undefined_flag_CXX=
13044 whole_archive_flag_spec_CXX=
13045 enable_shared_with_static_runtimes_CXX=no
13047 # Source file extension for C++ test sources.
13050 # Object file extension for compiled C++ test sources.
13054 # No sense in running all these tests if we already determined that
13055 # the CXX compiler isn't working. Some variables (like enable_shared)
13056 # are currently assumed to apply to all compilers on this platform,
13057 # and will be corrupted by setting them based on a non-working compiler.
13058 if test "$_lt_caught_CXX_error" != yes; then
13059 # Code to be used in simple compile tests
13060 lt_simple_compile_test_code="int some_variable = 0;"
13062 # Code to be used in simple link tests
13063 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13065 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13072 # If no C compiler was specified, use CC.
13075 # If no C compiler flags were specified, use CFLAGS.
13076 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13078 # Allow CC to be a program name with arguments.
13082 # save warnings/boilerplate of simple test code
13083 ac_outfile=conftest.$ac_objext
13084 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13085 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13086 _lt_compiler_boilerplate=`cat conftest.err`
13089 ac_outfile=conftest.$ac_objext
13090 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13091 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13092 _lt_linker_boilerplate=`cat conftest.err`
13096 # Allow CC to be a program name with arguments.
13098 lt_save_CFLAGS=$CFLAGS
13102 lt_save_with_gnu_ld=$with_gnu_ld
13103 lt_save_path_LD=$lt_cv_path_LD
13104 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13105 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13107 $as_unset lt_cv_prog_gnu_ld
13109 if test -n "${lt_cv_path_LDCXX+set}"; then
13110 lt_cv_path_LD=$lt_cv_path_LDCXX
13112 $as_unset lt_cv_path_LD
13114 test -z "${LDCXX+set}" || LD=$LDCXX
13119 for cc_temp in $compiler""; do
13121 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13122 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13127 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13130 if test -n "$compiler"; then
13131 # We don't want -fno-exception when compiling C++ code, so set the
13132 # no_builtin_flag separately
13133 if test "$GXX" = yes; then
13134 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13136 lt_prog_compiler_no_builtin_flag_CXX=
13139 if test "$GXX" = yes; then
13140 # Set up default GNU C++ configuration
13144 # Check whether --with-gnu-ld was given.
13145 if test "${with_gnu_ld+set}" = set; then :
13146 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13152 if test "$GCC" = yes; then
13153 # Check if gcc -print-prog-name=ld gives a path.
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13155 $as_echo_n "checking for ld used by $CC... " >&6; }
13158 # gcc leaves a trailing carriage return which upsets mingw
13159 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13161 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13164 # Accept absolute paths.
13166 re_direlt='/[^/][^/]*/\.\./'
13167 # Canonicalize the pathname of ld
13168 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13169 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13170 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13172 test -z "$LD" && LD="$ac_prog"
13175 # If it fails, then pretend we aren't using GCC.
13179 # If it is relative, then search for the first ld in PATH.
13180 with_gnu_ld=unknown
13183 elif test "$with_gnu_ld" = yes; then
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13185 $as_echo_n "checking for GNU ld... " >&6; }
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13188 $as_echo_n "checking for non-GNU ld... " >&6; }
13190 if ${lt_cv_path_LD+:} false; then :
13191 $as_echo_n "(cached) " >&6
13193 if test -z "$LD"; then
13194 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13195 for ac_dir in $PATH; do
13197 test -z "$ac_dir" && ac_dir=.
13198 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13199 lt_cv_path_LD="$ac_dir/$ac_prog"
13200 # Check to see if the program is GNU ld. I'd rather use --version,
13201 # but apparently some variants of GNU ld only accept -v.
13202 # Break only if it was the GNU/non-GNU ld that we prefer.
13203 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13204 *GNU* | *'with BFD'*)
13205 test "$with_gnu_ld" != no && break
13208 test "$with_gnu_ld" != yes && break
13215 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13219 LD="$lt_cv_path_LD"
13220 if test -n "$LD"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13222 $as_echo "$LD" >&6; }
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225 $as_echo "no" >&6; }
13227 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13229 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13230 if ${lt_cv_prog_gnu_ld+:} false; then :
13231 $as_echo_n "(cached) " >&6
13233 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13234 case `$LD -v 2>&1 </dev/null` in
13235 *GNU* | *'with BFD'*)
13236 lt_cv_prog_gnu_ld=yes
13239 lt_cv_prog_gnu_ld=no
13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13244 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13245 with_gnu_ld=$lt_cv_prog_gnu_ld
13253 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13254 # archiving commands below assume that GNU ld is being used.
13255 if test "$with_gnu_ld" = yes; then
13256 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13257 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13259 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13260 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13262 # If archive_cmds runs LD, not CC, wlarc should be empty
13263 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13264 # investigate it a little bit more. (MM)
13267 # ancient GNU ld didn't support --whole-archive et. al.
13268 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13269 $GREP 'no-whole-archive' > /dev/null; then
13270 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13272 whole_archive_flag_spec_CXX=
13278 # A generic and very simple default shared library creation
13279 # command for GNU C++ for the case where it uses the native
13280 # linker, instead of GNU ld. If possible, this setting should
13281 # overridden to take advantage of the native linker features on
13282 # the platform it is being used on.
13283 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13286 # Commands to make compiler produce verbose output that lists
13287 # what "hidden" libraries, object files and flags are used when
13288 # linking a shared library.
13289 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13297 # PORTME: fill in a description of your system's C++ link characteristics
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13299 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13303 # FIXME: insert proper C++ library support
13307 if test "$host_cpu" = ia64; then
13308 # On IA64, the linker does run time linking by default, so we don't
13309 # have to do anything special.
13310 aix_use_runtimelinking=no
13311 exp_sym_flag='-Bexport'
13314 aix_use_runtimelinking=no
13316 # Test if we are trying to use run time linking or normal
13317 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13318 # need to do runtime linking.
13319 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13320 for ld_flag in $LDFLAGS; do
13323 aix_use_runtimelinking=yes
13331 exp_sym_flag='-bexport'
13332 no_entry_flag='-bnoentry'
13335 # When large executables or shared objects are built, AIX ld can
13336 # have problems creating the table of contents. If linking a library
13337 # or program results in "error TOC overflow" add -mminimal-toc to
13338 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13339 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13341 archive_cmds_CXX=''
13342 hardcode_direct_CXX=yes
13343 hardcode_direct_absolute_CXX=yes
13344 hardcode_libdir_separator_CXX=':'
13345 link_all_deplibs_CXX=yes
13346 file_list_spec_CXX='${wl}-f,'
13348 if test "$GXX" = yes; then
13349 case $host_os in aix4.[012]|aix4.[012].*)
13350 # We only want to do this on AIX 4.2 and lower, the check
13351 # below for broken collect2 doesn't work under 4.3+
13352 collect2name=`${CC} -print-prog-name=collect2`
13353 if test -f "$collect2name" &&
13354 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13356 # We have reworked collect2
13359 # We have old collect2
13360 hardcode_direct_CXX=unsupported
13361 # It fails to find uninstalled libraries when the uninstalled
13362 # path is not listed in the libpath. Setting hardcode_minus_L
13363 # to unsupported forces relinking
13364 hardcode_minus_L_CXX=yes
13365 hardcode_libdir_flag_spec_CXX='-L$libdir'
13366 hardcode_libdir_separator_CXX=
13369 shared_flag='-shared'
13370 if test "$aix_use_runtimelinking" = yes; then
13371 shared_flag="$shared_flag "'${wl}-G'
13375 if test "$host_cpu" = ia64; then
13376 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13377 # chokes on -Wl,-G. The following line is correct:
13380 if test "$aix_use_runtimelinking" = yes; then
13381 shared_flag='${wl}-G'
13383 shared_flag='${wl}-bM:SRE'
13388 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13389 # It seems that -bexpall does not export symbols beginning with
13390 # underscore (_), so it is better to generate a list of symbols to
13392 always_export_symbols_CXX=yes
13393 if test "$aix_use_runtimelinking" = yes; then
13394 # Warning - without using the other runtime loading flags (-brtl),
13395 # -berok will link without error, but may produce a broken library.
13396 allow_undefined_flag_CXX='-berok'
13397 # Determine the default libpath from the value encoded in an empty
13399 if test "${lt_cv_aix_libpath+set}" = set; then
13400 aix_libpath=$lt_cv_aix_libpath
13402 if ${lt_cv_aix_libpath__CXX+:} false; then :
13403 $as_echo_n "(cached) " >&6
13405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13406 /* end confdefs.h. */
13416 if ac_fn_cxx_try_link "$LINENO"; then :
13418 lt_aix_libpath_sed='
13419 /Import File Strings/,/^$/ {
13421 s/^0 *\([^ ]*\) *$/\1/
13425 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13426 # Check for a 64-bit object if we didn't find anything.
13427 if test -z "$lt_cv_aix_libpath__CXX"; then
13428 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13431 rm -f core conftest.err conftest.$ac_objext \
13432 conftest$ac_exeext conftest.$ac_ext
13433 if test -z "$lt_cv_aix_libpath__CXX"; then
13434 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13439 aix_libpath=$lt_cv_aix_libpath__CXX
13442 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13444 archive_expsym_cmds_CXX='$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"
13446 if test "$host_cpu" = ia64; then
13447 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13448 allow_undefined_flag_CXX="-z nodefs"
13449 archive_expsym_cmds_CXX="\$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"
13451 # Determine the default libpath from the value encoded in an
13452 # empty executable.
13453 if test "${lt_cv_aix_libpath+set}" = set; then
13454 aix_libpath=$lt_cv_aix_libpath
13456 if ${lt_cv_aix_libpath__CXX+:} false; then :
13457 $as_echo_n "(cached) " >&6
13459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13460 /* end confdefs.h. */
13470 if ac_fn_cxx_try_link "$LINENO"; then :
13472 lt_aix_libpath_sed='
13473 /Import File Strings/,/^$/ {
13475 s/^0 *\([^ ]*\) *$/\1/
13479 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13480 # Check for a 64-bit object if we didn't find anything.
13481 if test -z "$lt_cv_aix_libpath__CXX"; then
13482 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13485 rm -f core conftest.err conftest.$ac_objext \
13486 conftest$ac_exeext conftest.$ac_ext
13487 if test -z "$lt_cv_aix_libpath__CXX"; then
13488 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13493 aix_libpath=$lt_cv_aix_libpath__CXX
13496 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13497 # Warning - without using the other run time loading flags,
13498 # -berok will link without error, but may produce a broken library.
13499 no_undefined_flag_CXX=' ${wl}-bernotok'
13500 allow_undefined_flag_CXX=' ${wl}-berok'
13501 if test "$with_gnu_ld" = yes; then
13502 # We only use this code for GNU lds that support --whole-archive.
13503 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13505 # Exported symbols can be pulled into shared objects from archives
13506 whole_archive_flag_spec_CXX='$convenience'
13508 archive_cmds_need_lc_CXX=yes
13509 # This is similar to how AIX traditionally builds its shared
13511 archive_expsym_cmds_CXX="\$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'
13517 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13518 allow_undefined_flag_CXX=unsupported
13519 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13520 # support --undefined. This deserves some investigation. FIXME
13521 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13528 case $cc_basename in
13530 # FIXME: insert proper C++ library support
13536 cygwin* | mingw* | pw32* | cegcc*)
13537 case $GXX,$cc_basename in
13540 # hardcode_libdir_flag_spec is actually meaningless, as there is
13541 # no search path for DLLs.
13542 hardcode_libdir_flag_spec_CXX=' '
13543 allow_undefined_flag_CXX=unsupported
13544 always_export_symbols_CXX=yes
13545 file_list_spec_CXX='@'
13546 # Tell ltmain to make .lib files, not .a files.
13548 # Tell ltmain to make .dll files, not .so files.
13550 # FIXME: Setting linknames here is a bad hack.
13551 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13552 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13553 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13555 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13557 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13559 # The linker will not automatically build a static lib if we build a DLL.
13560 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13561 enable_shared_with_static_runtimes_CXX=yes
13563 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13564 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13565 lt_tool_outputfile="@TOOL_OUTPUT@"~
13566 case $lt_outputfile in
13569 lt_outputfile="$lt_outputfile.exe"
13570 lt_tool_outputfile="$lt_tool_outputfile.exe"
13573 func_to_tool_file "$lt_outputfile"~
13574 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13575 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13576 $RM "$lt_outputfile.manifest";
13581 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13582 # as there is no search path for DLLs.
13583 hardcode_libdir_flag_spec_CXX='-L$libdir'
13584 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13585 allow_undefined_flag_CXX=unsupported
13586 always_export_symbols_CXX=no
13587 enable_shared_with_static_runtimes_CXX=yes
13589 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13590 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13591 # If the export-symbols file already is a .def file (1st line
13592 # is EXPORTS), use it as is; otherwise, prepend...
13593 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13594 cp $export_symbols $output_objdir/$soname.def;
13596 echo EXPORTS > $output_objdir/$soname.def;
13597 cat $export_symbols >> $output_objdir/$soname.def;
13599 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13606 darwin* | rhapsody*)
13609 archive_cmds_need_lc_CXX=no
13610 hardcode_direct_CXX=no
13611 hardcode_automatic_CXX=yes
13612 hardcode_shlibpath_var_CXX=unsupported
13613 if test "$lt_cv_ld_force_load" = "yes"; then
13614 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13617 whole_archive_flag_spec_CXX=''
13619 link_all_deplibs_CXX=yes
13620 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13621 case $cc_basename in
13622 ifort*) _lt_dar_can_shared=yes ;;
13623 *) _lt_dar_can_shared=$GCC ;;
13625 if test "$_lt_dar_can_shared" = "yes"; then
13626 output_verbose_link_cmd=func_echo_all
13627 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13628 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13629 archive_expsym_cmds_CXX="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}"
13630 module_expsym_cmds_CXX="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}"
13631 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13632 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13633 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13643 case $cc_basename in
13645 # FIXME: insert proper C++ library support
13649 # Green Hills C++ Compiler
13650 # FIXME: insert proper C++ library support
13654 # FIXME: insert proper C++ library support
13661 # C++ shared libraries reported to be fairly broken before
13667 archive_cmds_need_lc_CXX=no
13670 freebsd* | dragonfly*)
13671 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13680 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13681 link_all_deplibs_CXX=yes
13685 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13686 hardcode_libdir_separator_CXX=:
13687 export_dynamic_flag_spec_CXX='${wl}-E'
13688 hardcode_direct_CXX=yes
13689 hardcode_minus_L_CXX=yes # Not in the search PATH,
13690 # but as the default
13691 # location of the library.
13693 case $cc_basename in
13695 # FIXME: insert proper C++ library support
13699 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13700 # Commands to make compiler produce verbose output that lists
13701 # what "hidden" libraries, object files and flags are used when
13702 # linking a shared library.
13704 # There doesn't appear to be a way to prevent this compiler from
13705 # explicitly linking system object files so we need to strip them
13706 # from the output so that they don't get included in the library
13708 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13711 if test "$GXX" = yes; then
13712 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13714 # FIXME: insert proper C++ library support
13722 if test $with_gnu_ld = no; then
13723 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13724 hardcode_libdir_separator_CXX=:
13730 export_dynamic_flag_spec_CXX='${wl}-E'
13736 hardcode_direct_CXX=no
13737 hardcode_shlibpath_var_CXX=no
13740 hardcode_direct_CXX=yes
13741 hardcode_direct_absolute_CXX=yes
13742 hardcode_minus_L_CXX=yes # Not in the search PATH,
13743 # but as the default
13744 # location of the library.
13748 case $cc_basename in
13750 # FIXME: insert proper C++ library support
13756 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13759 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13762 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13765 # Commands to make compiler produce verbose output that lists
13766 # what "hidden" libraries, object files and flags are used when
13767 # linking a shared library.
13769 # There doesn't appear to be a way to prevent this compiler from
13770 # explicitly linking system object files so we need to strip them
13771 # from the output so that they don't get included in the library
13773 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13776 if test "$GXX" = yes; then
13777 if test $with_gnu_ld = no; then
13780 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13783 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13786 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13791 # FIXME: insert proper C++ library support
13799 hardcode_direct_CXX=no
13800 hardcode_shlibpath_var_CXX=no
13801 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13802 export_dynamic_flag_spec_CXX='${wl}-E'
13803 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13804 # Instead, shared libraries are loaded at an image base (0x10000000 by
13805 # default) and relocated if they conflict, which is a slow very memory
13806 # consuming and fragmenting process. To avoid this, we pick a random,
13807 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13808 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13809 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13810 archive_expsym_cmds_CXX='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'
13813 case $cc_basename in
13816 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13818 # Archives containing C++ object files must be created using
13819 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13820 # necessary to make sure instantiated templates are included
13822 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13825 if test "$GXX" = yes; then
13826 if test "$with_gnu_ld" = no; then
13827 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13829 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13832 link_all_deplibs_CXX=yes
13835 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13836 hardcode_libdir_separator_CXX=:
13837 inherit_rpath_CXX=yes
13840 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13841 case $cc_basename in
13843 # Kuck and Associates, Inc. (KAI) C++ Compiler
13845 # KCC will only create a shared library if the output file
13846 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13847 # to its proper name (with version) after linking.
13848 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13849 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13850 # Commands to make compiler produce verbose output that lists
13851 # what "hidden" libraries, object files and flags are used when
13852 # linking a shared library.
13854 # There doesn't appear to be a way to prevent this compiler from
13855 # explicitly linking system object files so we need to strip them
13856 # from the output so that they don't get included in the library
13858 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13860 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13861 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13863 # Archives containing C++ object files must be created using
13864 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13865 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13870 # version 8.0 and above of icpc choke on multiply defined symbols
13871 # if we add $predep_objects and $postdep_objects, however 7.1 and
13872 # earlier do not add the objects themselves.
13873 case `$CC -V 2>&1` in
13875 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13876 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13878 *) # Version 8.0 or newer
13881 ia64*) tmp_idyn=' -i_dynamic';;
13883 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13884 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13887 archive_cmds_need_lc_CXX=no
13888 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13890 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13893 # Portland Group C++ compiler
13895 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13896 prelink_cmds_CXX='tpldir=Template.dir~
13898 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13899 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13900 old_archive_cmds_CXX='tpldir=Template.dir~
13902 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13903 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13905 archive_cmds_CXX='tpldir=Template.dir~
13907 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13908 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13909 archive_expsym_cmds_CXX='tpldir=Template.dir~
13911 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13912 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13914 *) # Version 6 and above use weak symbols
13915 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13916 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13920 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13921 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13922 whole_archive_flag_spec_CXX='${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'
13926 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13927 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
13929 runpath_var=LD_RUN_PATH
13930 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13931 hardcode_libdir_separator_CXX=:
13933 # Commands to make compiler produce verbose output that lists
13934 # what "hidden" libraries, object files and flags are used when
13935 # linking a shared library.
13937 # There doesn't appear to be a way to prevent this compiler from
13938 # explicitly linking system object files so we need to strip them
13939 # from the output so that they don't get included in the library
13941 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13943 xl* | mpixl* | bgxl*)
13944 # IBM XL 8.0 on PPC, with GNU ld
13945 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13946 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13947 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13948 if test "x$supports_anon_versioning" = xyes; then
13949 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13950 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13951 echo "local: *; };" >> $output_objdir/$libname.ver~
13952 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13956 case `$CC -V 2>&1 | sed 5q` in
13959 no_undefined_flag_CXX=' -zdefs'
13960 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13961 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13962 hardcode_libdir_flag_spec_CXX='-R$libdir'
13963 whole_archive_flag_spec_CXX='${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'
13964 compiler_needs_object_CXX=yes
13966 # Not sure whether something based on
13967 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13969 output_verbose_link_cmd='func_echo_all'
13971 # Archives containing C++ object files must be created using
13972 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13973 # necessary to make sure instantiated templates are included
13975 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13983 # FIXME: insert proper C++ library support
13988 # FIXME: insert proper C++ library support
13993 case $cc_basename in
13995 # FIXME: insert proper C++ library support
13999 # FIXME: insert proper C++ library support
14006 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14007 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14009 hardcode_libdir_flag_spec_CXX='-R$libdir'
14010 hardcode_direct_CXX=yes
14011 hardcode_shlibpath_var_CXX=no
14013 # Workaround some broken pre-1.5 toolchains
14014 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14022 # C++ shared libraries are fairly broken
14027 if test -f /usr/libexec/ld.so; then
14028 hardcode_direct_CXX=yes
14029 hardcode_shlibpath_var_CXX=no
14030 hardcode_direct_absolute_CXX=yes
14031 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14032 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14033 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14034 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14035 export_dynamic_flag_spec_CXX='${wl}-E'
14036 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14038 output_verbose_link_cmd=func_echo_all
14044 osf3* | osf4* | osf5*)
14045 case $cc_basename in
14047 # Kuck and Associates, Inc. (KAI) C++ Compiler
14049 # KCC will only create a shared library if the output file
14050 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14051 # to its proper name (with version) after linking.
14052 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14054 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14055 hardcode_libdir_separator_CXX=:
14057 # Archives containing C++ object files must be created using
14058 # the KAI C++ compiler.
14060 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14061 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14065 # Rational C++ 2.4.1
14066 # FIXME: insert proper C++ library support
14072 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14073 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14074 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14077 allow_undefined_flag_CXX=' -expect_unresolved \*'
14078 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14079 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14080 echo "-hidden">> $lib.exp~
14081 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14083 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14087 hardcode_libdir_separator_CXX=:
14089 # Commands to make compiler produce verbose output that lists
14090 # what "hidden" libraries, object files and flags are used when
14091 # linking a shared library.
14093 # There doesn't appear to be a way to prevent this compiler from
14094 # explicitly linking system object files so we need to strip them
14095 # from the output so that they don't get included in the library
14097 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14100 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14101 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14104 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14107 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14111 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14112 hardcode_libdir_separator_CXX=:
14114 # Commands to make compiler produce verbose output that lists
14115 # what "hidden" libraries, object files and flags are used when
14116 # linking a shared library.
14117 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14120 # FIXME: insert proper C++ library support
14128 # FIXME: insert proper C++ library support
14133 case $cc_basename in
14136 # FIXME: insert proper C++ library support
14141 # FIXME: insert proper C++ library support
14145 # FIXME: insert proper C++ library support
14152 case $cc_basename in
14154 # Sun C++ 4.2, 5.x and Centerline C++
14155 archive_cmds_need_lc_CXX=yes
14156 no_undefined_flag_CXX=' -zdefs'
14157 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14158 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14159 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14161 hardcode_libdir_flag_spec_CXX='-R$libdir'
14162 hardcode_shlibpath_var_CXX=no
14164 solaris2.[0-5] | solaris2.[0-5].*) ;;
14166 # The compiler driver will combine and reorder linker options,
14167 # but understands `-z linker_flag'.
14168 # Supported since Solaris 2.6 (maybe 2.5.1?)
14169 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14172 link_all_deplibs_CXX=yes
14174 output_verbose_link_cmd='func_echo_all'
14176 # Archives containing C++ object files must be created using
14177 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14178 # necessary to make sure instantiated templates are included
14180 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14183 # Green Hills C++ Compiler
14184 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14186 # The C++ compiler must be used to create the archive.
14187 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14190 # GNU C++ compiler with Solaris linker
14191 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14192 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14193 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14194 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14195 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14196 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14198 # Commands to make compiler produce verbose output that lists
14199 # what "hidden" libraries, object files and flags are used when
14200 # linking a shared library.
14201 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14203 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14205 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14206 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14207 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14209 # Commands to make compiler produce verbose output that lists
14210 # what "hidden" libraries, object files and flags are used when
14211 # linking a shared library.
14212 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14215 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14217 solaris2.[0-5] | solaris2.[0-5].*) ;;
14219 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14227 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14228 no_undefined_flag_CXX='${wl}-z,text'
14229 archive_cmds_need_lc_CXX=no
14230 hardcode_shlibpath_var_CXX=no
14231 runpath_var='LD_RUN_PATH'
14233 case $cc_basename in
14235 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14236 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14239 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14240 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14245 sysv5* | sco3.2v5* | sco5v6*)
14246 # Note: We can NOT use -z defs as we might desire, because we do not
14247 # link with -lc, and that would cause any symbols used from libc to
14248 # always be unresolved, which means just about no library would
14249 # ever link correctly. If we're not using GNU ld we use -z text
14250 # though, which does catch some bad symbols but isn't as heavy-handed
14252 no_undefined_flag_CXX='${wl}-z,text'
14253 allow_undefined_flag_CXX='${wl}-z,nodefs'
14254 archive_cmds_need_lc_CXX=no
14255 hardcode_shlibpath_var_CXX=no
14256 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14257 hardcode_libdir_separator_CXX=':'
14258 link_all_deplibs_CXX=yes
14259 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14260 runpath_var='LD_RUN_PATH'
14262 case $cc_basename in
14264 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14265 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14266 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14267 '"$old_archive_cmds_CXX"
14268 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14269 '"$reload_cmds_CXX"
14272 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14273 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14279 case $cc_basename in
14281 # NonStop-UX NCC 3.20
14282 # FIXME: insert proper C++ library support
14286 # FIXME: insert proper C++ library support
14293 # FIXME: insert proper C++ library support
14298 # FIXME: insert proper C++ library support
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14304 $as_echo "$ld_shlibs_CXX" >&6; }
14305 test "$ld_shlibs_CXX" = no && can_build_shared=no
14311 ## There is no encapsulation within the following macros, do not change
14312 ## the running order or otherwise move them around unless you know exactly
14313 ## what you are doing...
14314 # Dependencies to place before and after the object being linked:
14315 predep_objects_CXX=
14316 postdep_objects_CXX=
14319 compiler_lib_search_path_CXX=
14321 cat > conftest.$ac_ext <<_LT_EOF
14325 Foo (void) { a = 0; }
14332 _lt_libdeps_save_CFLAGS=$CFLAGS
14333 case "$CC $CFLAGS " in #(
14334 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14335 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14336 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14340 (eval $ac_compile) 2>&5
14342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14343 test $ac_status = 0; }; then
14344 # Parse the compiler output and extract the necessary
14345 # objects, libraries and library flags.
14347 # Sentinel used to keep track of whether or not we are before
14348 # the conftest object file.
14349 pre_test_object_deps_done=no
14351 for p in `eval "$output_verbose_link_cmd"`; do
14352 case ${prev}${p} in
14355 # Some compilers place space between "-{L,R}" and the path.
14356 # Remove the space.
14357 if test $p = "-L" ||
14358 test $p = "-R"; then
14363 # Expand the sysroot to ease extracting the directories later.
14364 if test -z "$prev"; then
14366 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14367 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14368 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14372 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14374 if test "$pre_test_object_deps_done" = no; then
14377 # Internal compiler library paths should come after those
14378 # provided the user. The postdeps already come after the
14379 # user supplied libs so there is no need to process them.
14380 if test -z "$compiler_lib_search_path_CXX"; then
14381 compiler_lib_search_path_CXX="${prev}${p}"
14383 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14386 # The "-l" case would never come before the object being
14387 # linked, so don't bother handling this case.
14390 if test -z "$postdeps_CXX"; then
14391 postdeps_CXX="${prev}${p}"
14393 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14399 *.lto.$objext) ;; # Ignore GCC LTO objects
14401 # This assumes that the test object file only shows up
14402 # once in the compiler output.
14403 if test "$p" = "conftest.$objext"; then
14404 pre_test_object_deps_done=yes
14408 if test "$pre_test_object_deps_done" = no; then
14409 if test -z "$predep_objects_CXX"; then
14410 predep_objects_CXX="$p"
14412 predep_objects_CXX="$predep_objects_CXX $p"
14415 if test -z "$postdep_objects_CXX"; then
14416 postdep_objects_CXX="$p"
14418 postdep_objects_CXX="$postdep_objects_CXX $p"
14423 *) ;; # Ignore the rest.
14431 echo "libtool.m4: error: problem compiling CXX test program"
14434 $RM -f confest.$objext
14435 CFLAGS=$_lt_libdeps_save_CFLAGS
14437 # PORTME: override above test on systems where it is broken
14440 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14441 # hack all around it, let's just trust "g++" to DTRT.
14442 predep_objects_CXX=
14443 postdep_objects_CXX=
14448 case `$CC -V 2>&1 | sed 5q` in
14452 # The more standards-conforming stlport4 library is
14453 # incompatible with the Cstd library. Avoid specifying
14454 # it if it's in CXXFLAGS. Ignore libCrun as
14455 # -library=stlport4 depends on it.
14456 case " $CXX $CXXFLAGS " in
14457 *" -library=stlport4 "*)
14458 solaris_use_stlport4=yes
14462 if test "$solaris_use_stlport4" != yes; then
14463 postdeps_CXX='-library=Cstd -library=Crun'
14470 case $cc_basename in
14472 # The more standards-conforming stlport4 library is
14473 # incompatible with the Cstd library. Avoid specifying
14474 # it if it's in CXXFLAGS. Ignore libCrun as
14475 # -library=stlport4 depends on it.
14476 case " $CXX $CXXFLAGS " in
14477 *" -library=stlport4 "*)
14478 solaris_use_stlport4=yes
14482 # Adding this requires a known-good setup of shared libraries for
14483 # Sun compiler versions before 5.6, else PIC objects from an old
14484 # archive will be linked into the output, leading to subtle bugs.
14485 if test "$solaris_use_stlport4" != yes; then
14486 postdeps_CXX='-library=Cstd -library=Crun'
14494 case " $postdeps_CXX " in
14495 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14497 compiler_lib_search_dirs_CXX=
14498 if test -n "${compiler_lib_search_path_CXX}"; then
14499 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14532 lt_prog_compiler_wl_CXX=
14533 lt_prog_compiler_pic_CXX=
14534 lt_prog_compiler_static_CXX=
14537 # C++ specific cases for pic, static, wl, etc.
14538 if test "$GXX" = yes; then
14539 lt_prog_compiler_wl_CXX='-Wl,'
14540 lt_prog_compiler_static_CXX='-static'
14544 # All AIX code is PIC.
14545 if test "$host_cpu" = ia64; then
14546 # AIX 5 now supports IA64 processor
14547 lt_prog_compiler_static_CXX='-Bstatic'
14554 # see comment about AmigaOS4 .so support
14555 lt_prog_compiler_pic_CXX='-fPIC'
14558 # FIXME: we need at least 68020 code to build shared libraries, but
14559 # adding the `-m68020' flag to GCC prevents building anything better,
14561 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14566 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14567 # PIC is the default for these OSes.
14569 mingw* | cygwin* | os2* | pw32* | cegcc*)
14570 # This hack is so that the source file can tell whether it is being
14571 # built for inclusion in a dll (and should export symbols for example).
14572 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14573 # (--disable-auto-import) libraries
14574 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14576 darwin* | rhapsody*)
14577 # PIC is the default on this platform
14578 # Common symbols not allowed in MH_DYLIB files
14579 lt_prog_compiler_pic_CXX='-fno-common'
14582 # DJGPP does not support shared libraries at all
14583 lt_prog_compiler_pic_CXX=
14586 # PIC is the default for Haiku.
14587 # The "-static" flag exists, but is broken.
14588 lt_prog_compiler_static_CXX=
14591 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14592 # Instead, we relocate shared libraries at runtime.
14595 if test -d /usr/nec; then
14596 lt_prog_compiler_pic_CXX=-Kconform_pic
14600 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14601 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14602 # sets the default TLS model and affects inlining.
14607 lt_prog_compiler_pic_CXX='-fPIC'
14612 # QNX uses GNU C++, but need to define -shared option too, otherwise
14613 # it will coredump.
14614 lt_prog_compiler_pic_CXX='-fPIC -shared'
14617 lt_prog_compiler_pic_CXX='-fPIC'
14623 # All AIX code is PIC.
14624 if test "$host_cpu" = ia64; then
14625 # AIX 5 now supports IA64 processor
14626 lt_prog_compiler_static_CXX='-Bstatic'
14628 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14632 case $cc_basename in
14634 # Green Hills C++ Compiler
14635 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14639 mingw* | cygwin* | os2* | pw32* | cegcc*)
14640 # This hack is so that the source file can tell whether it is being
14641 # built for inclusion in a dll (and should export symbols for example).
14642 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14645 case $cc_basename in
14647 lt_prog_compiler_pic_CXX='-KPIC'
14650 # Green Hills C++ Compiler
14651 lt_prog_compiler_pic_CXX='-pic'
14657 freebsd* | dragonfly*)
14658 # FreeBSD uses GNU C++
14660 hpux9* | hpux10* | hpux11*)
14661 case $cc_basename in
14663 lt_prog_compiler_wl_CXX='-Wl,'
14664 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14665 if test "$host_cpu" != ia64; then
14666 lt_prog_compiler_pic_CXX='+Z'
14670 lt_prog_compiler_wl_CXX='-Wl,'
14671 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14677 lt_prog_compiler_pic_CXX='+Z'
14686 # This is c89, which is MS Visual C++ (no shared libs)
14687 # Anyone wants to do a port?
14689 irix5* | irix6* | nonstopux*)
14690 case $cc_basename in
14692 lt_prog_compiler_wl_CXX='-Wl,'
14693 lt_prog_compiler_static_CXX='-non_shared'
14694 # CC pic flag -KPIC is the default.
14700 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14701 case $cc_basename in
14704 lt_prog_compiler_wl_CXX='--backend -Wl,'
14705 lt_prog_compiler_pic_CXX='-fPIC'
14708 # old Intel C++ for x86_64 which still supported -KPIC.
14709 lt_prog_compiler_wl_CXX='-Wl,'
14710 lt_prog_compiler_pic_CXX='-KPIC'
14711 lt_prog_compiler_static_CXX='-static'
14714 # Intel C++, used to be incompatible with GCC.
14715 # ICC 10 doesn't accept -KPIC any more.
14716 lt_prog_compiler_wl_CXX='-Wl,'
14717 lt_prog_compiler_pic_CXX='-fPIC'
14718 lt_prog_compiler_static_CXX='-static'
14721 # Portland Group C++ compiler
14722 lt_prog_compiler_wl_CXX='-Wl,'
14723 lt_prog_compiler_pic_CXX='-fpic'
14724 lt_prog_compiler_static_CXX='-Bstatic'
14728 # Make sure the PIC flag is empty. It appears that all Alpha
14729 # Linux and Compaq Tru64 Unix objects are PIC.
14730 lt_prog_compiler_pic_CXX=
14731 lt_prog_compiler_static_CXX='-non_shared'
14733 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14734 # IBM XL 8.0, 9.0 on PPC and BlueGene
14735 lt_prog_compiler_wl_CXX='-Wl,'
14736 lt_prog_compiler_pic_CXX='-qpic'
14737 lt_prog_compiler_static_CXX='-qstaticlink'
14740 case `$CC -V 2>&1 | sed 5q` in
14743 lt_prog_compiler_pic_CXX='-KPIC'
14744 lt_prog_compiler_static_CXX='-Bstatic'
14745 lt_prog_compiler_wl_CXX='-Qoption ld '
14756 case $cc_basename in
14758 lt_prog_compiler_pic_CXX='-W c,exportall'
14767 # QNX uses GNU C++, but need to define -shared option too, otherwise
14768 # it will coredump.
14769 lt_prog_compiler_pic_CXX='-fPIC -shared'
14771 osf3* | osf4* | osf5*)
14772 case $cc_basename in
14774 lt_prog_compiler_wl_CXX='--backend -Wl,'
14777 # Rational C++ 2.4.1
14778 lt_prog_compiler_pic_CXX='-pic'
14781 # Digital/Compaq C++
14782 lt_prog_compiler_wl_CXX='-Wl,'
14783 # Make sure the PIC flag is empty. It appears that all Alpha
14784 # Linux and Compaq Tru64 Unix objects are PIC.
14785 lt_prog_compiler_pic_CXX=
14786 lt_prog_compiler_static_CXX='-non_shared'
14795 case $cc_basename in
14797 # Sun C++ 4.2, 5.x and Centerline C++
14798 lt_prog_compiler_pic_CXX='-KPIC'
14799 lt_prog_compiler_static_CXX='-Bstatic'
14800 lt_prog_compiler_wl_CXX='-Qoption ld '
14803 # Green Hills C++ Compiler
14804 lt_prog_compiler_pic_CXX='-PIC'
14811 case $cc_basename in
14814 lt_prog_compiler_pic_CXX='-pic'
14815 lt_prog_compiler_static_CXX='-Bstatic'
14819 lt_prog_compiler_pic_CXX='-pic'
14825 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14826 case $cc_basename in
14828 lt_prog_compiler_wl_CXX='-Wl,'
14829 lt_prog_compiler_pic_CXX='-KPIC'
14830 lt_prog_compiler_static_CXX='-Bstatic'
14835 case $cc_basename in
14837 # NonStop-UX NCC 3.20
14838 lt_prog_compiler_pic_CXX='-KPIC'
14847 lt_prog_compiler_can_build_shared_CXX=no
14853 # For platforms which do not support PIC, -DPIC is meaningless:
14855 lt_prog_compiler_pic_CXX=
14858 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14863 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14864 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14865 $as_echo_n "(cached) " >&6
14867 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14870 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14871 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14874 # Check to make sure the PIC flag actually works.
14876 if test -n "$lt_prog_compiler_pic_CXX"; then
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14878 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14879 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14880 $as_echo_n "(cached) " >&6
14882 lt_cv_prog_compiler_pic_works_CXX=no
14883 ac_outfile=conftest.$ac_objext
14884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14885 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14886 # Insert the option either (1) after the last *FLAGS variable, or
14887 # (2) before a word containing "conftest.", or (3) at the end.
14888 # Note that $ac_compile itself does not contain backslashes and begins
14889 # with a dollar sign (not a hyphen), so the echo should work correctly.
14890 # The option is referenced via a variable to avoid confusing sed.
14891 lt_compile=`echo "$ac_compile" | $SED \
14892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14894 -e 's:$: $lt_compiler_flag:'`
14895 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14896 (eval "$lt_compile" 2>conftest.err)
14898 cat conftest.err >&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 if (exit $ac_status) && test -s "$ac_outfile"; then
14901 # The compiler can only warn and ignore the option if not recognized
14902 # So say no if there are warnings other than the usual output.
14903 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14905 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14906 lt_cv_prog_compiler_pic_works_CXX=yes
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14913 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14915 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14916 case $lt_prog_compiler_pic_CXX in
14918 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14921 lt_prog_compiler_pic_CXX=
14922 lt_prog_compiler_can_build_shared_CXX=no
14932 # Check to make sure the static flag actually works.
14934 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14936 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14937 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14938 $as_echo_n "(cached) " >&6
14940 lt_cv_prog_compiler_static_works_CXX=no
14941 save_LDFLAGS="$LDFLAGS"
14942 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14943 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14944 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14945 # The linker can only warn and ignore the option if not recognized
14946 # So say no if there are warnings
14947 if test -s conftest.err; then
14948 # Append any errors to the config.log.
14949 cat conftest.err 1>&5
14950 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14951 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14952 if diff conftest.exp conftest.er2 >/dev/null; then
14953 lt_cv_prog_compiler_static_works_CXX=yes
14956 lt_cv_prog_compiler_static_works_CXX=yes
14960 LDFLAGS="$save_LDFLAGS"
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14964 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14966 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14969 lt_prog_compiler_static_CXX=
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14976 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14977 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14978 $as_echo_n "(cached) " >&6
14980 lt_cv_prog_compiler_c_o_CXX=no
14981 $RM -r conftest 2>/dev/null
14985 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14987 lt_compiler_flag="-o out/conftest2.$ac_objext"
14988 # Insert the option either (1) after the last *FLAGS variable, or
14989 # (2) before a word containing "conftest.", or (3) at the end.
14990 # Note that $ac_compile itself does not contain backslashes and begins
14991 # with a dollar sign (not a hyphen), so the echo should work correctly.
14992 lt_compile=`echo "$ac_compile" | $SED \
14993 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14994 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14995 -e 's:$: $lt_compiler_flag:'`
14996 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14997 (eval "$lt_compile" 2>out/conftest.err)
14999 cat out/conftest.err >&5
15000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15003 # The compiler can only warn and ignore the option if not recognized
15004 # So say no if there are warnings
15005 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15006 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15007 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15008 lt_cv_prog_compiler_c_o_CXX=yes
15013 # SGI C++ compiler will create directory out/ii_files/ for
15014 # template instantiation
15015 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15016 $RM out/* && rmdir out
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15023 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15028 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15029 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15030 $as_echo_n "(cached) " >&6
15032 lt_cv_prog_compiler_c_o_CXX=no
15033 $RM -r conftest 2>/dev/null
15037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15039 lt_compiler_flag="-o out/conftest2.$ac_objext"
15040 # Insert the option either (1) after the last *FLAGS variable, or
15041 # (2) before a word containing "conftest.", or (3) at the end.
15042 # Note that $ac_compile itself does not contain backslashes and begins
15043 # with a dollar sign (not a hyphen), so the echo should work correctly.
15044 lt_compile=`echo "$ac_compile" | $SED \
15045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15047 -e 's:$: $lt_compiler_flag:'`
15048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15049 (eval "$lt_compile" 2>out/conftest.err)
15051 cat out/conftest.err >&5
15052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15053 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15055 # The compiler can only warn and ignore the option if not recognized
15056 # So say no if there are warnings
15057 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15058 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15059 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15060 lt_cv_prog_compiler_c_o_CXX=yes
15065 # SGI C++ compiler will create directory out/ii_files/ for
15066 # template instantiation
15067 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15068 $RM out/* && rmdir out
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15075 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15080 hard_links="nottested"
15081 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15082 # do not overwrite the value of need_locks provided by the user
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15084 $as_echo_n "checking if we can lock with hard links... " >&6; }
15087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15089 ln conftest.a conftest.b 2>&5 || hard_links=no
15090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15092 $as_echo "$hard_links" >&6; }
15093 if test "$hard_links" = no; then
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15095 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15105 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15107 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15108 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15111 # If we're using GNU nm, then we don't want the "-C" option.
15112 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15113 # Also, AIX nm treats weak defined symbols like other global defined
15114 # symbols, whereas GNU nm marks them as "W".
15115 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15116 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15118 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15122 export_symbols_cmds_CXX="$ltdll_cmds"
15124 cygwin* | mingw* | cegcc*)
15125 case $cc_basename in
15127 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15130 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15131 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15136 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15141 $as_echo "$ld_shlibs_CXX" >&6; }
15142 test "$ld_shlibs_CXX" = no && can_build_shared=no
15144 with_gnu_ld_CXX=$with_gnu_ld
15152 # Do we need to explicitly link libc?
15154 case "x$archive_cmds_need_lc_CXX" in
15156 # Assume -lc should be added
15157 archive_cmds_need_lc_CXX=yes
15159 if test "$enable_shared" = yes && test "$GCC" = yes; then
15160 case $archive_cmds_CXX in
15162 # FIXME: we may have to deal with multi-command sequences.
15165 # Test whether the compiler implicitly links with -lc since on some
15166 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15167 # to ld, don't add -lc before -lgcc.
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15169 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15170 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15171 $as_echo_n "(cached) " >&6
15174 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15177 (eval $ac_compile) 2>&5
15179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15180 test $ac_status = 0; } 2>conftest.err; then
15183 libobjs=conftest.$ac_objext
15185 wl=$lt_prog_compiler_wl_CXX
15186 pic_flag=$lt_prog_compiler_pic_CXX
15192 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15193 allow_undefined_flag_CXX=
15194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15195 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15198 test $ac_status = 0; }
15200 lt_cv_archive_cmds_need_lc_CXX=no
15202 lt_cv_archive_cmds_need_lc_CXX=yes
15204 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15206 cat conftest.err 1>&5
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15212 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15213 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15282 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15284 library_names_spec=
15285 libname_spec='lib$name'
15289 postuninstall_cmds=
15293 shlibpath_overrides_runpath=unknown
15295 dynamic_linker="$host_os ld.so"
15296 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15297 need_lib_prefix=unknown
15298 hardcode_into_libs=no
15300 # when you set need_version to no, make sure it does not cause -set_version
15301 # flags to be left without arguments
15302 need_version=unknown
15306 version_type=linux # correct to gnu/linux during the next big refactor
15307 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15308 shlibpath_var=LIBPATH
15310 # AIX 3 has no versioning support, so we append a major version to the name.
15311 soname_spec='${libname}${release}${shared_ext}$major'
15315 version_type=linux # correct to gnu/linux during the next big refactor
15318 hardcode_into_libs=yes
15319 if test "$host_cpu" = ia64; then
15320 # AIX 5 supports IA64
15321 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15322 shlibpath_var=LD_LIBRARY_PATH
15324 # With GCC up to 2.95.x, collect2 would create an import file
15325 # for dependence libraries. The import file would start with
15326 # the line `#! .'. This would cause the generated library to
15327 # depend on `.', always an invalid library. This was fixed in
15328 # development snapshots of GCC prior to 3.0.
15330 aix4 | aix4.[01] | aix4.[01].*)
15331 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15333 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15336 can_build_shared=no
15340 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15341 # soname into executable. Probably we can add versioning support to
15342 # collect2, so additional links can be useful in future.
15343 if test "$aix_use_runtimelinking" = yes; then
15344 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15345 # instead of lib<name>.a to let people know that these are not
15346 # typical AIX shared libraries.
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349 # We preserve .a as extension for shared libraries through AIX4.2
15350 # and later when we are not doing run time linking.
15351 library_names_spec='${libname}${release}.a $libname.a'
15352 soname_spec='${libname}${release}${shared_ext}$major'
15354 shlibpath_var=LIBPATH
15361 # Since July 2007 AmigaOS4 officially supports .so libraries.
15362 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15366 library_names_spec='$libname.ixlibrary $libname.a'
15367 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15368 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'
15374 library_names_spec='${libname}${shared_ext}'
15375 dynamic_linker="$host_os ld.so"
15376 shlibpath_var=LIBRARY_PATH
15380 version_type=linux # correct to gnu/linux during the next big refactor
15382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383 soname_spec='${libname}${release}${shared_ext}$major'
15384 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15385 shlibpath_var=LD_LIBRARY_PATH
15386 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15387 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15388 # the default ld.so.conf also contains /usr/contrib/lib and
15389 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15390 # libtool to hard-code these into programs
15393 cygwin* | mingw* | pw32* | cegcc*)
15394 version_type=windows
15399 case $GCC,$cc_basename in
15402 library_names_spec='$libname.dll.a'
15403 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15404 postinstall_cmds='base_file=`basename \${file}`~
15405 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15406 dldir=$destdir/`dirname \$dlpath`~
15407 test -d \$dldir || mkdir -p \$dldir~
15408 $install_prog $dir/$dlname \$dldir/$dlname~
15409 chmod a+x \$dldir/$dlname~
15410 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15411 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15413 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15414 dlpath=$dir/\$dldll~
15416 shlibpath_overrides_runpath=yes
15420 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15421 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15425 # MinGW DLLs use traditional 'lib' prefix
15426 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15429 # pw32 DLLs use 'pw' prefix rather than 'lib'
15430 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15433 dynamic_linker='Win32 ld.exe'
15438 libname_spec='$name'
15439 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15440 library_names_spec='${libname}.dll.lib'
15444 sys_lib_search_path_spec=
15447 for lt_path in $LIB
15450 # Let DOS variable expansion print the short 8.3 style file name.
15451 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15452 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15455 # Convert to MSYS style.
15456 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15459 # Convert to unix form, then to dos form, then back to unix form
15460 # but this time dos style (no spaces!) so that the unix form looks
15461 # like /cygdrive/c/PROGRA~1:/cygdr...
15462 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15463 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15464 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15467 sys_lib_search_path_spec="$LIB"
15468 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15469 # It is most probably a Windows format PATH.
15470 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15472 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15474 # FIXME: find the short name or the path components, as spaces are
15475 # common. (e.g. "Program Files" -> "PROGRA~1")
15479 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15480 postinstall_cmds='base_file=`basename \${file}`~
15481 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15482 dldir=$destdir/`dirname \$dlpath`~
15483 test -d \$dldir || mkdir -p \$dldir~
15484 $install_prog $dir/$dlname \$dldir/$dlname'
15485 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15486 dlpath=$dir/\$dldll~
15488 shlibpath_overrides_runpath=yes
15489 dynamic_linker='Win32 link.exe'
15493 # Assume MSVC wrapper
15494 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15495 dynamic_linker='Win32 ld.exe'
15498 # FIXME: first we should search . and the directory the executable is in
15502 darwin* | rhapsody*)
15503 dynamic_linker="$host_os dyld"
15504 version_type=darwin
15507 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15508 soname_spec='${libname}${release}${major}$shared_ext'
15509 shlibpath_overrides_runpath=yes
15510 shlibpath_var=DYLD_LIBRARY_PATH
15511 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15513 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15517 version_type=linux # correct to gnu/linux during the next big refactor
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15521 soname_spec='${libname}${release}${shared_ext}$major'
15522 shlibpath_var=LD_LIBRARY_PATH
15525 freebsd* | dragonfly*)
15526 # DragonFly does not have aout. When/if they implement a new
15527 # versioning mechanism, adjust this.
15528 if test -x /usr/bin/objformat; then
15529 objformat=`/usr/bin/objformat`
15532 freebsd[23].*) objformat=aout ;;
15533 *) objformat=elf ;;
15536 version_type=freebsd-$objformat
15537 case $version_type in
15539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15548 shlibpath_var=LD_LIBRARY_PATH
15551 shlibpath_overrides_runpath=yes
15553 freebsd3.[01]* | freebsdelf3.[01]*)
15554 shlibpath_overrides_runpath=yes
15555 hardcode_into_libs=yes
15557 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15558 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15559 shlibpath_overrides_runpath=no
15560 hardcode_into_libs=yes
15562 *) # from 4.6 on, and DragonFly
15563 shlibpath_overrides_runpath=yes
15564 hardcode_into_libs=yes
15570 version_type=linux # correct to gnu/linux during the next big refactor
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15574 soname_spec='${libname}${release}${shared_ext}$major'
15575 shlibpath_var=LD_LIBRARY_PATH
15576 shlibpath_overrides_runpath=no
15577 hardcode_into_libs=yes
15581 version_type=linux # correct to gnu/linux during the next big refactor
15584 dynamic_linker="$host_os runtime_loader"
15585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15586 soname_spec='${libname}${release}${shared_ext}$major'
15587 shlibpath_var=LIBRARY_PATH
15588 shlibpath_overrides_runpath=yes
15589 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15590 hardcode_into_libs=yes
15593 hpux9* | hpux10* | hpux11*)
15594 # Give a soname corresponding to the major version so that dld.sl refuses to
15595 # link against other versions.
15602 hardcode_into_libs=yes
15603 dynamic_linker="$host_os dld.so"
15604 shlibpath_var=LD_LIBRARY_PATH
15605 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15607 soname_spec='${libname}${release}${shared_ext}$major'
15608 if test "X$HPUX_IA64_MODE" = X32; then
15609 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15611 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15613 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15617 hardcode_into_libs=yes
15618 dynamic_linker="$host_os dld.sl"
15619 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15620 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15622 soname_spec='${libname}${release}${shared_ext}$major'
15623 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15624 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15628 dynamic_linker="$host_os dld.sl"
15629 shlibpath_var=SHLIB_PATH
15630 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632 soname_spec='${libname}${release}${shared_ext}$major'
15635 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15636 postinstall_cmds='chmod 555 $lib'
15637 # or fails outright, so override atomically:
15638 install_override_mode=555
15642 version_type=linux # correct to gnu/linux during the next big refactor
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15646 soname_spec='${libname}${release}${shared_ext}$major'
15647 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15648 shlibpath_var=LD_LIBRARY_PATH
15649 shlibpath_overrides_runpath=no
15650 hardcode_into_libs=yes
15653 irix5* | irix6* | nonstopux*)
15655 nonstopux*) version_type=nonstopux ;;
15657 if test "$lt_cv_prog_gnu_ld" = yes; then
15658 version_type=linux # correct to gnu/linux during the next big refactor
15665 soname_spec='${libname}${release}${shared_ext}$major'
15666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15668 irix5* | nonstopux*)
15669 libsuff= shlibsuff=
15672 case $LD in # libtool.m4 will add one of these switches to LD
15673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15674 libsuff= shlibsuff= libmagic=32-bit;;
15675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15676 libsuff=32 shlibsuff=N32 libmagic=N32;;
15677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15679 *) libsuff= shlibsuff= libmagic=never-match;;
15683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15684 shlibpath_overrides_runpath=no
15685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15687 hardcode_into_libs=yes
15690 # No shared lib support for Linux oldld, aout, or coff.
15691 linux*oldld* | linux*aout* | linux*coff*)
15695 # This must be glibc/ELF.
15696 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15697 version_type=linux # correct to gnu/linux during the next big refactor
15700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701 soname_spec='${libname}${release}${shared_ext}$major'
15702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15703 shlibpath_var=LD_LIBRARY_PATH
15704 shlibpath_overrides_runpath=no
15706 # Some binutils ld are patched to set DT_RUNPATH
15707 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15708 $as_echo_n "(cached) " >&6
15710 lt_cv_shlibpath_overrides_runpath=no
15711 save_LDFLAGS=$LDFLAGS
15712 save_libdir=$libdir
15713 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15714 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716 /* end confdefs.h. */
15726 if ac_fn_cxx_try_link "$LINENO"; then :
15727 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15728 lt_cv_shlibpath_overrides_runpath=yes
15731 rm -f core conftest.err conftest.$ac_objext \
15732 conftest$ac_exeext conftest.$ac_ext
15733 LDFLAGS=$save_LDFLAGS
15734 libdir=$save_libdir
15738 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15740 # This implies no fast_install, which is unacceptable.
15741 # Some rework will be needed to allow for fast_install
15742 # before this can be enabled.
15743 hardcode_into_libs=yes
15745 # Append ld.so.conf contents to the search path
15746 if test -f /etc/ld.so.conf; then
15747 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' ' '`
15748 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15751 # We used to test for /lib/ld.so.1 and disable shared libraries on
15752 # powerpc, because MkLinux only supported shared libraries with the
15753 # GNU dynamic linker. Since this was broken with cross compilers,
15754 # most powerpc-linux boxes support dynamic linking these days and
15755 # people can always --disable-shared, the test was removed, and we
15756 # assume the GNU/Linux dynamic linker is in use.
15757 dynamic_linker='GNU/Linux ld.so'
15764 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15766 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15767 dynamic_linker='NetBSD (a.out) ld.so'
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15770 soname_spec='${libname}${release}${shared_ext}$major'
15771 dynamic_linker='NetBSD ld.elf_so'
15773 shlibpath_var=LD_LIBRARY_PATH
15774 shlibpath_overrides_runpath=yes
15775 hardcode_into_libs=yes
15779 version_type=linux # correct to gnu/linux during the next big refactor
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15781 shlibpath_var=LD_LIBRARY_PATH
15782 shlibpath_overrides_runpath=yes
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790 soname_spec='${libname}${release}${shared_ext}$major'
15791 shlibpath_var=LD_LIBRARY_PATH
15792 shlibpath_overrides_runpath=no
15793 hardcode_into_libs=yes
15794 dynamic_linker='ldqnx.so'
15799 sys_lib_dlsearch_path_spec="/usr/lib"
15801 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15803 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15804 *) need_version=no ;;
15806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15807 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15808 shlibpath_var=LD_LIBRARY_PATH
15809 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15811 openbsd2.[89] | openbsd2.[89].*)
15812 shlibpath_overrides_runpath=no
15815 shlibpath_overrides_runpath=yes
15819 shlibpath_overrides_runpath=yes
15824 libname_spec='$name'
15827 library_names_spec='$libname${shared_ext} $libname.a'
15828 dynamic_linker='OS/2 ld.exe'
15829 shlibpath_var=LIBPATH
15832 osf3* | osf4* | osf5*)
15836 soname_spec='${libname}${release}${shared_ext}$major'
15837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15838 shlibpath_var=LD_LIBRARY_PATH
15839 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15840 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15848 version_type=linux # correct to gnu/linux during the next big refactor
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15852 soname_spec='${libname}${release}${shared_ext}$major'
15853 shlibpath_var=LD_LIBRARY_PATH
15854 shlibpath_overrides_runpath=yes
15855 hardcode_into_libs=yes
15856 # ldd complains unless libraries are executable
15857 postinstall_cmds='chmod +x $lib'
15862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15863 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15864 shlibpath_var=LD_LIBRARY_PATH
15865 shlibpath_overrides_runpath=yes
15866 if test "$with_gnu_ld" = yes; then
15873 version_type=linux # correct to gnu/linux during the next big refactor
15874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15875 soname_spec='${libname}${release}${shared_ext}$major'
15876 shlibpath_var=LD_LIBRARY_PATH
15877 case $host_vendor in
15879 shlibpath_overrides_runpath=no
15881 runpath_var=LD_RUN_PATH
15889 shlibpath_overrides_runpath=no
15890 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15896 if test -d /usr/nec ;then
15897 version_type=linux # correct to gnu/linux during the next big refactor
15898 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15899 soname_spec='$libname${shared_ext}.$major'
15900 shlibpath_var=LD_LIBRARY_PATH
15904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15905 version_type=freebsd-elf
15908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15909 soname_spec='${libname}${release}${shared_ext}$major'
15910 shlibpath_var=LD_LIBRARY_PATH
15911 shlibpath_overrides_runpath=yes
15912 hardcode_into_libs=yes
15913 if test "$with_gnu_ld" = yes; then
15914 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15916 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15919 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15923 sys_lib_dlsearch_path_spec='/usr/lib'
15927 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15928 version_type=linux # correct to gnu/linux during the next big refactor
15931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15932 shlibpath_var=LD_LIBRARY_PATH
15933 shlibpath_overrides_runpath=no
15934 hardcode_into_libs=yes
15938 version_type=linux # correct to gnu/linux during the next big refactor
15939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15940 soname_spec='${libname}${release}${shared_ext}$major'
15941 shlibpath_var=LD_LIBRARY_PATH
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15949 $as_echo "$dynamic_linker" >&6; }
15950 test "$dynamic_linker" = no && can_build_shared=no
15952 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15953 if test "$GCC" = yes; then
15954 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15957 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15958 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15960 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15961 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16002 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16003 hardcode_action_CXX=
16004 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16005 test -n "$runpath_var_CXX" ||
16006 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16008 # We can hardcode non-existent directories.
16009 if test "$hardcode_direct_CXX" != no &&
16010 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16011 # have to relink, otherwise we might link with an installed library
16012 # when we should be linking with a yet-to-be-installed one
16013 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16014 test "$hardcode_minus_L_CXX" != no; then
16015 # Linking always hardcodes the temporary library directory.
16016 hardcode_action_CXX=relink
16018 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16019 hardcode_action_CXX=immediate
16022 # We cannot hardcode anything, or else we can only hardcode existing
16024 hardcode_action_CXX=unsupported
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16027 $as_echo "$hardcode_action_CXX" >&6; }
16029 if test "$hardcode_action_CXX" = relink ||
16030 test "$inherit_rpath_CXX" = yes; then
16031 # Fast installation is not supported
16032 enable_fast_install=no
16033 elif test "$shlibpath_overrides_runpath" = yes ||
16034 test "$enable_shared" = no; then
16035 # Fast installation is not necessary
16036 enable_fast_install=needless
16045 fi # test -n "$compiler"
16048 CFLAGS=$lt_save_CFLAGS
16052 with_gnu_ld=$lt_save_with_gnu_ld
16053 lt_cv_path_LDCXX=$lt_cv_path_LD
16054 lt_cv_path_LD=$lt_save_path_LD
16055 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16056 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16057 fi # test "$_lt_caught_CXX_error" != yes
16060 ac_cpp='$CPP $CPPFLAGS'
16061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16066 enable_win32_dll=yes
16069 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
16070 if test -n "$ac_tool_prefix"; then
16071 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
16072 set dummy ${ac_tool_prefix}as; ac_word=$2
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16074 $as_echo_n "checking for $ac_word... " >&6; }
16075 if ${ac_cv_prog_AS+:} false; then :
16076 $as_echo_n "(cached) " >&6
16078 if test -n "$AS"; then
16079 ac_cv_prog_AS="$AS" # Let the user override the test.
16081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16082 for as_dir in $PATH
16085 test -z "$as_dir" && as_dir=.
16086 for ac_exec_ext in '' $ac_executable_extensions; do
16087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16088 ac_cv_prog_AS="${ac_tool_prefix}as"
16089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16099 if test -n "$AS"; then
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
16101 $as_echo "$AS" >&6; }
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16104 $as_echo "no" >&6; }
16109 if test -z "$ac_cv_prog_AS"; then
16111 # Extract the first word of "as", so it can be a program name with args.
16112 set dummy as; ac_word=$2
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16114 $as_echo_n "checking for $ac_word... " >&6; }
16115 if ${ac_cv_prog_ac_ct_AS+:} false; then :
16116 $as_echo_n "(cached) " >&6
16118 if test -n "$ac_ct_AS"; then
16119 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
16121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16122 for as_dir in $PATH
16125 test -z "$as_dir" && as_dir=.
16126 for ac_exec_ext in '' $ac_executable_extensions; do
16127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16128 ac_cv_prog_ac_ct_AS="as"
16129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16138 ac_ct_AS=$ac_cv_prog_ac_ct_AS
16139 if test -n "$ac_ct_AS"; then
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
16141 $as_echo "$ac_ct_AS" >&6; }
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16144 $as_echo "no" >&6; }
16147 if test "x$ac_ct_AS" = x; then
16150 case $cross_compiling:$ac_tool_warned in
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16154 ac_tool_warned=yes ;;
16159 AS="$ac_cv_prog_AS"
16162 if test -n "$ac_tool_prefix"; then
16163 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
16164 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16166 $as_echo_n "checking for $ac_word... " >&6; }
16167 if ${ac_cv_prog_DLLTOOL+:} false; then :
16168 $as_echo_n "(cached) " >&6
16170 if test -n "$DLLTOOL"; then
16171 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
16173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16174 for as_dir in $PATH
16177 test -z "$as_dir" && as_dir=.
16178 for ac_exec_ext in '' $ac_executable_extensions; do
16179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16180 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
16181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16190 DLLTOOL=$ac_cv_prog_DLLTOOL
16191 if test -n "$DLLTOOL"; then
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
16193 $as_echo "$DLLTOOL" >&6; }
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16196 $as_echo "no" >&6; }
16201 if test -z "$ac_cv_prog_DLLTOOL"; then
16202 ac_ct_DLLTOOL=$DLLTOOL
16203 # Extract the first word of "dlltool", so it can be a program name with args.
16204 set dummy dlltool; ac_word=$2
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16206 $as_echo_n "checking for $ac_word... " >&6; }
16207 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
16208 $as_echo_n "(cached) " >&6
16210 if test -n "$ac_ct_DLLTOOL"; then
16211 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
16213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16214 for as_dir in $PATH
16217 test -z "$as_dir" && as_dir=.
16218 for ac_exec_ext in '' $ac_executable_extensions; do
16219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16220 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
16221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16230 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
16231 if test -n "$ac_ct_DLLTOOL"; then
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
16233 $as_echo "$ac_ct_DLLTOOL" >&6; }
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16236 $as_echo "no" >&6; }
16239 if test "x$ac_ct_DLLTOOL" = x; then
16242 case $cross_compiling:$ac_tool_warned in
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16246 ac_tool_warned=yes ;;
16248 DLLTOOL=$ac_ct_DLLTOOL
16251 DLLTOOL="$ac_cv_prog_DLLTOOL"
16254 if test -n "$ac_tool_prefix"; then
16255 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
16256 set dummy ${ac_tool_prefix}objdump; ac_word=$2
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16258 $as_echo_n "checking for $ac_word... " >&6; }
16259 if ${ac_cv_prog_OBJDUMP+:} false; then :
16260 $as_echo_n "(cached) " >&6
16262 if test -n "$OBJDUMP"; then
16263 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
16265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16266 for as_dir in $PATH
16269 test -z "$as_dir" && as_dir=.
16270 for ac_exec_ext in '' $ac_executable_extensions; do
16271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16272 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
16273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16282 OBJDUMP=$ac_cv_prog_OBJDUMP
16283 if test -n "$OBJDUMP"; then
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
16285 $as_echo "$OBJDUMP" >&6; }
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16288 $as_echo "no" >&6; }
16293 if test -z "$ac_cv_prog_OBJDUMP"; then
16294 ac_ct_OBJDUMP=$OBJDUMP
16295 # Extract the first word of "objdump", so it can be a program name with args.
16296 set dummy objdump; ac_word=$2
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16298 $as_echo_n "checking for $ac_word... " >&6; }
16299 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
16300 $as_echo_n "(cached) " >&6
16302 if test -n "$ac_ct_OBJDUMP"; then
16303 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
16305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16306 for as_dir in $PATH
16309 test -z "$as_dir" && as_dir=.
16310 for ac_exec_ext in '' $ac_executable_extensions; do
16311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16312 ac_cv_prog_ac_ct_OBJDUMP="objdump"
16313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16322 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
16323 if test -n "$ac_ct_OBJDUMP"; then
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
16325 $as_echo "$ac_ct_OBJDUMP" >&6; }
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16328 $as_echo "no" >&6; }
16331 if test "x$ac_ct_OBJDUMP" = x; then
16334 case $cross_compiling:$ac_tool_warned in
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16338 ac_tool_warned=yes ;;
16340 OBJDUMP=$ac_ct_OBJDUMP
16343 OBJDUMP="$ac_cv_prog_OBJDUMP"
16349 test -z "$AS" && AS=as
16355 test -z "$DLLTOOL" && DLLTOOL=dlltool
16358 test -z "$OBJDUMP" && OBJDUMP=objdump
16365 for ac_prog in flex lex
16367 # Extract the first word of "$ac_prog", so it can be a program name with args.
16368 set dummy $ac_prog; ac_word=$2
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16370 $as_echo_n "checking for $ac_word... " >&6; }
16371 if ${ac_cv_prog_LEX+:} false; then :
16372 $as_echo_n "(cached) " >&6
16374 if test -n "$LEX"; then
16375 ac_cv_prog_LEX="$LEX" # Let the user override the test.
16377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16378 for as_dir in $PATH
16381 test -z "$as_dir" && as_dir=.
16382 for ac_exec_ext in '' $ac_executable_extensions; do
16383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16384 ac_cv_prog_LEX="$ac_prog"
16385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16394 LEX=$ac_cv_prog_LEX
16395 if test -n "$LEX"; then
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
16397 $as_echo "$LEX" >&6; }
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16400 $as_echo "no" >&6; }
16404 test -n "$LEX" && break
16406 test -n "$LEX" || LEX=":"
16408 if test "x$LEX" != "x:"; then
16409 cat >conftest.l <<_ACEOF
16415 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
16416 yyless ((input () != 0)); }
16417 f { unput (yytext[0]); }
16418 . { BEGIN INITIAL; }
16420 #ifdef YYTEXT_POINTER
16421 extern char *yytext;
16426 return ! yylex () + ! yywrap ();
16429 { { ac_try="$LEX conftest.l"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16435 $as_echo "$ac_try_echo"; } >&5
16436 (eval "$LEX conftest.l") 2>&5
16438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16439 test $ac_status = 0; }
16440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
16441 $as_echo_n "checking lex output file root... " >&6; }
16442 if ${ac_cv_prog_lex_root+:} false; then :
16443 $as_echo_n "(cached) " >&6
16446 if test -f lex.yy.c; then
16447 ac_cv_prog_lex_root=lex.yy
16448 elif test -f lexyy.c; then
16449 ac_cv_prog_lex_root=lexyy
16451 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
16455 $as_echo "$ac_cv_prog_lex_root" >&6; }
16456 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
16458 if test -z "${LEXLIB+set}"; then
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
16460 $as_echo_n "checking lex library... " >&6; }
16461 if ${ac_cv_lib_lex+:} false; then :
16462 $as_echo_n "(cached) " >&6
16466 ac_cv_lib_lex='none needed'
16467 for ac_lib in '' -lfl -ll; do
16468 LIBS="$ac_lib $ac_save_LIBS"
16469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h. */
16471 `cat $LEX_OUTPUT_ROOT.c`
16473 if ac_fn_c_try_link "$LINENO"; then :
16474 ac_cv_lib_lex=$ac_lib
16476 rm -f core conftest.err conftest.$ac_objext \
16477 conftest$ac_exeext conftest.$ac_ext
16478 test "$ac_cv_lib_lex" != 'none needed' && break
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
16484 $as_echo "$ac_cv_lib_lex" >&6; }
16485 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
16490 $as_echo_n "checking whether yytext is a pointer... " >&6; }
16491 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
16492 $as_echo_n "(cached) " >&6
16494 # POSIX says lex can declare yytext either as a pointer or an array; the
16495 # default is implementation-dependent. Figure out which it is, since
16496 # not all implementations provide the %pointer and %array declarations.
16497 ac_cv_prog_lex_yytext_pointer=no
16499 LIBS="$LEXLIB $ac_save_LIBS"
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16503 #define YYTEXT_POINTER 1
16504 `cat $LEX_OUTPUT_ROOT.c`
16506 if ac_fn_c_try_link "$LINENO"; then :
16507 ac_cv_prog_lex_yytext_pointer=yes
16509 rm -f core conftest.err conftest.$ac_objext \
16510 conftest$ac_exeext conftest.$ac_ext
16514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
16515 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
16516 if test $ac_cv_prog_lex_yytext_pointer = yes; then
16518 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
16521 rm -f conftest.l $LEX_OUTPUT_ROOT.c
16524 if test "$LEX" = :; then
16525 LEX=${am_missing_run}flex
16527 if test Z"$LEX" != Zflex; then
16529 *******************************************************************
16530 You do not seem to have flex. While flex is not required to build
16531 libconfig, you may need it to regenerate the lexer if you change
16532 the scanner.l file.
16533 *******************************************************************
16537 for ac_prog in 'bison -y' byacc
16539 # Extract the first word of "$ac_prog", so it can be a program name with args.
16540 set dummy $ac_prog; ac_word=$2
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16542 $as_echo_n "checking for $ac_word... " >&6; }
16543 if ${ac_cv_prog_YACC+:} false; then :
16544 $as_echo_n "(cached) " >&6
16546 if test -n "$YACC"; then
16547 ac_cv_prog_YACC="$YACC" # Let the user override the test.
16549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16550 for as_dir in $PATH
16553 test -z "$as_dir" && as_dir=.
16554 for ac_exec_ext in '' $ac_executable_extensions; do
16555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16556 ac_cv_prog_YACC="$ac_prog"
16557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16566 YACC=$ac_cv_prog_YACC
16567 if test -n "$YACC"; then
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
16569 $as_echo "$YACC" >&6; }
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16572 $as_echo "no" >&6; }
16576 test -n "$YACC" && break
16578 test -n "$YACC" || YACC="yacc"
16580 if test Z"$YACC" != "Zbison -y"; then
16582 *******************************************************************
16583 You do not seem to have bison. While bison is not required to build
16584 libconfig, you may need it to regenerate the parser if you change
16585 the grammar.y file.
16586 *******************************************************************
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler switch to enable full C/C++ warnings" >&5
16591 $as_echo_n "checking for compiler switch to enable full C/C++ warnings... " >&6; };
16597 warn_c_sw="-Wall -Wshadow -Wextra -Wdeclaration-after-statement -Wno-unused-parameter"
16598 warn_cxx_sw="-Wall -Wshadow -Wextra -Wno-unused-parameter";;
16604 if test -n "${warn_c_sw}";
16606 CFLAGS="${CFLAGS} ${warn_c_sw}";
16607 CXXFLAGS="${CXXFLAGS} ${warn_cxx_sw}";
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${warn_c_sw}, ${warn_cxx_sw}" >&5
16609 $as_echo "${warn_c_sw}, ${warn_cxx_sw}" >&6; }
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (cannot determine)" >&5
16612 $as_echo "(cannot determine)" >&6; }
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16617 $as_echo_n "checking for ANSI C header files... " >&6; }
16618 if ${ac_cv_header_stdc+:} false; then :
16619 $as_echo_n "(cached) " >&6
16621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h. */
16623 #include <stdlib.h>
16624 #include <stdarg.h>
16625 #include <string.h>
16636 if ac_fn_c_try_compile "$LINENO"; then :
16637 ac_cv_header_stdc=yes
16639 ac_cv_header_stdc=no
16641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16643 if test $ac_cv_header_stdc = yes; then
16644 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16647 #include <string.h>
16650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16651 $EGREP "memchr" >/dev/null 2>&1; then :
16654 ac_cv_header_stdc=no
16660 if test $ac_cv_header_stdc = yes; then
16661 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16664 #include <stdlib.h>
16667 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16668 $EGREP "free" >/dev/null 2>&1; then :
16671 ac_cv_header_stdc=no
16677 if test $ac_cv_header_stdc = yes; then
16678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16679 if test "$cross_compiling" = yes; then :
16682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16683 /* end confdefs.h. */
16685 #include <stdlib.h>
16686 #if ((' ' & 0x0FF) == 0x020)
16687 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16688 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16690 # define ISLOWER(c) \
16691 (('a' <= (c) && (c) <= 'i') \
16692 || ('j' <= (c) && (c) <= 'r') \
16693 || ('s' <= (c) && (c) <= 'z'))
16694 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16697 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16702 for (i = 0; i < 256; i++)
16703 if (XOR (islower (i), ISLOWER (i))
16704 || toupper (i) != TOUPPER (i))
16709 if ac_fn_c_try_run "$LINENO"; then :
16712 ac_cv_header_stdc=no
16714 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16715 conftest.$ac_objext conftest.beam conftest.$ac_ext
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16721 $as_echo "$ac_cv_header_stdc" >&6; }
16722 if test $ac_cv_header_stdc = yes; then
16724 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16728 for ac_header in unistd.h stdint.h xlocale.h
16730 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16731 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16732 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16733 cat >>confdefs.h <<_ACEOF
16734 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16743 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16744 if ${ac_cv_c_const+:} false; then :
16745 $as_echo_n "(cached) " >&6
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748 /* end confdefs.h. */
16754 #ifndef __cplusplus
16755 /* Ultrix mips cc rejects this sort of thing. */
16756 typedef int charset[2];
16757 const charset cs = { 0, 0 };
16758 /* SunOS 4.1.1 cc rejects this. */
16759 char const *const *pcpcc;
16761 /* NEC SVR4.0.2 mips cc rejects this. */
16762 struct point {int x, y;};
16763 static struct point const zero = {0,0};
16764 /* AIX XL C 1.02.0.0 rejects this.
16765 It does not let you subtract one const X* pointer from another in
16766 an arm of an if-expression whose if-part is not a constant
16768 const char *g = "string";
16769 pcpcc = &g + (g ? g-g : 0);
16770 /* HPUX 7.0 cc rejects these. */
16772 ppc = (char**) pcpcc;
16773 pcpcc = (char const *const *) ppc;
16774 { /* SCO 3.2v4 cc rejects this sort of thing. */
16777 char const *s = 0 ? (char *) 0 : (char const *) 0;
16782 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16783 int x[] = {25, 17};
16784 const int *foo = &x[0];
16787 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16788 typedef const int *iptr;
16792 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16793 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16794 struct s { int j; const int *ap[3]; } bx;
16795 struct s *b = &bx; b->j = 5;
16797 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16798 const int foo = 10;
16799 if (!foo) return 0;
16801 return !cs[0] && !zero.x;
16808 if ac_fn_c_try_compile "$LINENO"; then :
16813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16816 $as_echo "$ac_cv_c_const" >&6; }
16817 if test $ac_cv_c_const = no; then
16819 $as_echo "#define const /**/" >>confdefs.h
16825 for ac_func in newlocale uselocale freelocale
16827 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16828 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16829 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16830 cat >>confdefs.h <<_ACEOF
16831 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16841 # Check whether --enable-cxx was given.
16842 if test "${enable_cxx+set}" = set; then :
16843 enableval=$enable_cxx; if test "$enableval" = "no"; then docxx="no"; fi
16852 if test x$docxx = xyes; then
16863 # Check whether --enable-examples was given.
16864 if test "${enable_examples+set}" = set; then :
16865 enableval=$enable_examples; if test "$enableval" = "no"; then doexamples="no"; fi
16874 if test x$doexamples = xyes; then
16875 BUILDEXAMPLES_TRUE=
16876 BUILDEXAMPLES_FALSE='#'
16878 BUILDEXAMPLES_TRUE='#'
16879 BUILDEXAMPLES_FALSE=
16885 *-*-cygwin* | *-*-mingw*)
16889 if test x$gnuwin = xyes; then
16899 ac_config_files="$ac_config_files Makefile lib/Makefile lib/libconfig.pc lib/libconfig++.pc doc/Makefile examples/Makefile examples/c/Makefile examples/c++/Makefile tinytest/Makefile tests/Makefile libconfig.spec"
16901 cat >confcache <<\_ACEOF
16902 # This file is a shell script that caches the results of configure
16903 # tests run on this system so they can be shared between configure
16904 # scripts and configure runs, see configure's option --config-cache.
16905 # It is not useful on other systems. If it contains results you don't
16906 # want to keep, you may remove or edit it.
16908 # config.status only pays attention to the cache file if you give it
16909 # the --recheck option to rerun configure.
16911 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16912 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16913 # following values.
16917 # The following way of writing the cache mishandles newlines in values,
16918 # but we know of no workaround that is simple, portable, and efficient.
16919 # So, we kill variables containing newlines.
16920 # Ultrix sh set writes to stderr and can't be redirected directly,
16921 # and sets the high bit in the cache file unless we assign to the vars.
16923 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16924 eval ac_val=\$$ac_var
16928 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16932 _ | IFS | as_nl) ;; #(
16933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16934 *) { eval $ac_var=; unset $ac_var;} ;;
16940 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16941 *${as_nl}ac_space=\ *)
16942 # `set' does not quote correctly, so add quotes: double-quote
16943 # substitution turns \\\\ into \\, and sed turns \\ into \.
16946 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16949 # `set' quotes correctly as required by POSIX, so do not add quotes.
16950 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16959 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16961 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16963 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16964 if test -w "$cache_file"; then
16965 if test "x$cache_file" != "x/dev/null"; then
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16967 $as_echo "$as_me: updating cache $cache_file" >&6;}
16968 if test ! -f "$cache_file" || test -h "$cache_file"; then
16969 cat confcache >"$cache_file"
16971 case $cache_file in #(
16973 mv -f confcache "$cache_file"$$ &&
16974 mv -f "$cache_file"$$ "$cache_file" ;; #(
16976 mv -f confcache "$cache_file" ;;
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16982 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16987 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16988 # Let make expand exec_prefix.
16989 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16991 DEFS=-DHAVE_CONFIG_H
16995 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16996 # 1. Remove the extension, and $U if already installed.
16997 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16998 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16999 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17000 # will be set to the directory where LIBOBJS objects are built.
17001 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17002 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17004 LIBOBJS=$ac_libobjs
17006 LTLIBOBJS=$ac_ltlibobjs
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17010 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17011 if test -n "$am_sleep_pid"; then
17012 # Hide warnings about reused PIDs.
17013 wait $am_sleep_pid 2>/dev/null
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17016 $as_echo "done" >&6; }
17017 if test -n "$EXEEXT"; then
17019 am__EXEEXT_FALSE='#'
17021 am__EXEEXT_TRUE='#'
17025 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17026 as_fn_error $? "conditional \"AMDEP\" was never defined.
17027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17029 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17030 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17033 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17034 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17037 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17038 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17041 if test -z "${BUILDCXX_TRUE}" && test -z "${BUILDCXX_FALSE}"; then
17042 as_fn_error $? "conditional \"BUILDCXX\" was never defined.
17043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17045 if test -z "${BUILDEXAMPLES_TRUE}" && test -z "${BUILDEXAMPLES_FALSE}"; then
17046 as_fn_error $? "conditional \"BUILDEXAMPLES\" was never defined.
17047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17049 if test -z "${GNU_WIN_TRUE}" && test -z "${GNU_WIN_FALSE}"; then
17050 as_fn_error $? "conditional \"GNU_WIN\" was never defined.
17051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17054 : "${CONFIG_STATUS=./config.status}"
17056 ac_clean_files_save=$ac_clean_files
17057 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17059 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17061 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17063 # Generated by $as_me.
17064 # Run this file to recreate the current configuration.
17065 # Compiler output produced by configure, useful for debugging
17066 # configure, is in config.log if it exists.
17069 ac_cs_recheck=false
17072 SHELL=\${CONFIG_SHELL-$SHELL}
17075 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17076 ## -------------------- ##
17077 ## M4sh Initialization. ##
17078 ## -------------------- ##
17080 # Be more Bourne compatible
17081 DUALCASE=1; export DUALCASE # for MKS sh
17082 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17085 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17086 # is contrary to our usage. Disable this feature.
17087 alias -g '${1+"$@"}'='"$@"'
17088 setopt NO_GLOB_SUBST
17090 case `(set -o) 2>/dev/null` in #(
17102 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17103 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17104 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17105 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17106 # Prefer a ksh shell builtin over an external printf program on Solaris,
17107 # but without wasting forks for bash or zsh.
17108 if test -z "$BASH_VERSION$ZSH_VERSION" \
17109 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17110 as_echo='print -r --'
17111 as_echo_n='print -rn --'
17112 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17113 as_echo='printf %s\n'
17114 as_echo_n='printf %s'
17116 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17117 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17118 as_echo_n='/usr/ucb/echo -n'
17120 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17121 as_echo_n_body='eval
17125 expr "X$arg" : "X\\(.*\\)$as_nl";
17126 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17128 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17130 export as_echo_n_body
17131 as_echo_n='sh -c $as_echo_n_body as_echo'
17133 export as_echo_body
17134 as_echo='sh -c $as_echo_body as_echo'
17137 # The user is always right.
17138 if test "${PATH_SEPARATOR+set}" != set; then
17140 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17141 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17148 # We need space, tab and new line, in precisely that order. Quoting is
17149 # there to prevent editors from complaining about space-tab.
17150 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17151 # splitting by setting IFS to empty value.)
17154 # Find who we are. Look in the path if we contain no directory separator.
17157 *[\\/]* ) as_myself=$0 ;;
17158 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17159 for as_dir in $PATH
17162 test -z "$as_dir" && as_dir=.
17163 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17169 # We did not find ourselves, most probably we were run as `sh COMMAND'
17170 # in which case we are not to be found in the path.
17171 if test "x$as_myself" = x; then
17174 if test ! -f "$as_myself"; then
17175 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17179 # Unset variables that we do not need and which cause bugs (e.g. in
17180 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17181 # suppresses any "Segmentation fault" message there. '((' could
17182 # trigger a bug in pdksh 5.2.14.
17183 for as_var in BASH_ENV ENV MAIL MAILPATH
17184 do eval test x\${$as_var+set} = xset \
17185 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17198 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17201 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17202 # ----------------------------------------
17203 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17204 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17205 # script with STATUS, using 1 if that was 0.
17208 as_status=$1; test $as_status -eq 0 && as_status=1
17210 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17211 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17213 $as_echo "$as_me: error: $2" >&2
17214 as_fn_exit $as_status
17218 # as_fn_set_status STATUS
17219 # -----------------------
17220 # Set $? to STATUS, without forking.
17221 as_fn_set_status ()
17224 } # as_fn_set_status
17226 # as_fn_exit STATUS
17227 # -----------------
17228 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17232 as_fn_set_status $1
17238 # Portably unset VAR.
17241 { eval $1=; unset $1;}
17243 as_unset=as_fn_unset
17244 # as_fn_append VAR VALUE
17245 # ----------------------
17246 # Append the text in VALUE to the end of the definition contained in VAR. Take
17247 # advantage of any shell optimizations that allow amortized linear growth over
17248 # repeated appends, instead of the typical quadratic growth present in naive
17250 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17251 eval 'as_fn_append ()
17262 # as_fn_arith ARG...
17263 # ------------------
17264 # Perform arithmetic evaluation on the ARGs, and store the result in the
17265 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17266 # must be portable across $(()) and expr.
17267 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17268 eval 'as_fn_arith ()
17275 as_val=`expr "$@" || test $? -eq 1`
17280 if expr a : '\(a\)' >/dev/null 2>&1 &&
17281 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17287 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17288 as_basename=basename
17293 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17299 as_me=`$as_basename -- "$0" ||
17300 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17301 X"$0" : 'X\(//\)$' \| \
17302 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17304 sed '/^.*\/\([^/][^/]*\)\/*$/{
17318 # Avoid depending upon Character Ranges.
17319 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17320 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17321 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17322 as_cr_digits='0123456789'
17323 as_cr_alnum=$as_cr_Letters$as_cr_digits
17325 ECHO_C= ECHO_N= ECHO_T=
17326 case `echo -n x` in #(((((
17328 case `echo 'xy\c'` in
17329 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17331 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17338 rm -f conf$$ conf$$.exe conf$$.file
17339 if test -d conf$$.dir; then
17340 rm -f conf$$.dir/conf$$.file
17343 mkdir conf$$.dir 2>/dev/null
17345 if (echo >conf$$.file) 2>/dev/null; then
17346 if ln -s conf$$.file conf$$ 2>/dev/null; then
17348 # ... but there are two gotchas:
17349 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17350 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17351 # In both cases, we have to default to `cp -pR'.
17352 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17354 elif ln conf$$.file conf$$ 2>/dev/null; then
17362 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17363 rmdir conf$$.dir 2>/dev/null
17368 # Create "$as_dir" as a directory, including parents if necessary.
17373 -*) as_dir=./$as_dir;;
17375 test -d "$as_dir" || eval $as_mkdir_p || {
17379 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17380 *) as_qdir=$as_dir;;
17382 as_dirs="'$as_qdir' $as_dirs"
17383 as_dir=`$as_dirname -- "$as_dir" ||
17384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17385 X"$as_dir" : 'X\(//\)[^/]' \| \
17386 X"$as_dir" : 'X\(//\)$' \| \
17387 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17388 $as_echo X"$as_dir" |
17389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17393 /^X\(\/\/\)[^/].*/{
17406 test -d "$as_dir" && break
17408 test -z "$as_dirs" || eval "mkdir $as_dirs"
17409 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17413 if mkdir -p . 2>/dev/null; then
17414 as_mkdir_p='mkdir -p "$as_dir"'
17416 test -d ./-p && rmdir ./-p
17421 # as_fn_executable_p FILE
17422 # -----------------------
17423 # Test if FILE is an executable regular file.
17424 as_fn_executable_p ()
17426 test -f "$1" && test -x "$1"
17427 } # as_fn_executable_p
17428 as_test_x='test -x'
17429 as_executable_p=as_fn_executable_p
17431 # Sed expression to map a string onto a valid CPP name.
17432 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17434 # Sed expression to map a string onto a valid variable name.
17435 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17439 ## ----------------------------------- ##
17440 ## Main body of $CONFIG_STATUS script. ##
17441 ## ----------------------------------- ##
17443 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17446 # Save the log message, to keep $0 and so on meaningful, and to
17447 # report actual input values of CONFIG_FILES etc. instead of their
17448 # values after options handling.
17450 This file was extended by libconfig $as_me 1.5, which was
17451 generated by GNU Autoconf 2.69. Invocation command line was
17453 CONFIG_FILES = $CONFIG_FILES
17454 CONFIG_HEADERS = $CONFIG_HEADERS
17455 CONFIG_LINKS = $CONFIG_LINKS
17456 CONFIG_COMMANDS = $CONFIG_COMMANDS
17459 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17464 case $ac_config_files in *"
17465 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17468 case $ac_config_headers in *"
17469 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17473 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17474 # Files that config.status was made for.
17475 config_files="$ac_config_files"
17476 config_headers="$ac_config_headers"
17477 config_commands="$ac_config_commands"
17481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17483 \`$as_me' instantiates files and other configuration actions
17484 from templates according to the current configuration. Unless the files
17485 and actions are specified as TAGs, all are instantiated by default.
17487 Usage: $0 [OPTION]... [TAG]...
17489 -h, --help print this help, then exit
17490 -V, --version print version number and configuration settings, then exit
17491 --config print configuration, then exit
17492 -q, --quiet, --silent
17493 do not print progress messages
17494 -d, --debug don't remove temporary files
17495 --recheck update $as_me by reconfiguring in the same conditions
17496 --file=FILE[:TEMPLATE]
17497 instantiate the configuration file FILE
17498 --header=FILE[:TEMPLATE]
17499 instantiate the configuration header FILE
17501 Configuration files:
17504 Configuration headers:
17507 Configuration commands:
17510 Report bugs to <hyperrealm@gmail.com>.
17511 libconfig home page: <http://www.hyperrealm.com/main.php?s=libconfig>."
17514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17515 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17517 libconfig config.status 1.5
17518 configured by $0, generated by GNU Autoconf 2.69,
17519 with options \\"\$ac_cs_config\\"
17521 Copyright (C) 2012 Free Software Foundation, Inc.
17522 This config.status script is free software; the Free Software Foundation
17523 gives unlimited permission to copy, distribute and modify it."
17530 test -n "\$AWK" || AWK=awk
17533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17534 # The default lists apply if the user does not specify any file.
17540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17541 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17545 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17557 # Handling of the options.
17558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17560 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17561 $as_echo "$ac_cs_version"; exit ;;
17562 --config | --confi | --conf | --con | --co | --c )
17563 $as_echo "$ac_cs_config"; exit ;;
17564 --debug | --debu | --deb | --de | --d | -d )
17566 --file | --fil | --fi | --f )
17569 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17570 '') as_fn_error $? "missing file argument" ;;
17572 as_fn_append CONFIG_FILES " '$ac_optarg'"
17573 ac_need_defaults=false;;
17574 --header | --heade | --head | --hea )
17577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17579 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17580 ac_need_defaults=false;;
17582 # Conflict between --help and --header
17583 as_fn_error $? "ambiguous option: \`$1'
17584 Try \`$0 --help' for more information.";;
17585 --help | --hel | -h )
17586 $as_echo "$ac_cs_usage"; exit ;;
17587 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17588 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17591 # This is an error.
17592 -*) as_fn_error $? "unrecognized option: \`$1'
17593 Try \`$0 --help' for more information." ;;
17595 *) as_fn_append ac_config_targets " $1"
17596 ac_need_defaults=false ;;
17602 ac_configure_extra_args=
17604 if $ac_cs_silent; then
17606 ac_configure_extra_args="$ac_configure_extra_args --silent"
17610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17611 if \$ac_cs_recheck; then
17612 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17614 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17615 CONFIG_SHELL='$SHELL'
17616 export CONFIG_SHELL
17621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17625 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17626 ## Running $as_me. ##
17632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17636 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17639 # The HP-UX ksh and POSIX shell print the target directory to stdout
17640 # if CDPATH is set.
17641 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17643 sed_quote_subst='$sed_quote_subst'
17644 double_quote_subst='$double_quote_subst'
17645 delay_variable_subst='$delay_variable_subst'
17646 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17647 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17648 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17649 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17650 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17651 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17652 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17653 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17654 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17655 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17656 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17657 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17658 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17659 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17660 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17661 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17662 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17663 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17664 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17665 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17666 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17667 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17668 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17669 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17670 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17671 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17672 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17673 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17674 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17675 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17676 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17677 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17678 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17679 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17680 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17681 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17682 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17683 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17684 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17685 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17686 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17687 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17688 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17689 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17690 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17691 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17692 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17693 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17694 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17695 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17696 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17697 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17698 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17699 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17700 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17701 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17702 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"`'
17703 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17704 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17705 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17706 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17707 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17708 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17709 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17710 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17711 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17712 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17713 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17714 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17715 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17716 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17717 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17718 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17719 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17720 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17721 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17722 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17723 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17724 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17725 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17726 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17727 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17728 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17729 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17730 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17731 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17732 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17733 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17734 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17735 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17736 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17737 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17738 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17739 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17740 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17741 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17742 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17743 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17744 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17745 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17746 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17747 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17748 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17749 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17750 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17751 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17752 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17753 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17754 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17755 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17756 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17757 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17758 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17759 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17760 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17761 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17762 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17763 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17764 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17765 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17766 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17767 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17768 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17769 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17770 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17771 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17772 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17773 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17774 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17775 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17776 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17777 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17778 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17779 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17780 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17781 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17782 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17783 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17784 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17785 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17786 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17787 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17788 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17789 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17790 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17791 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17792 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17793 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17794 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17795 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17796 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17797 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17798 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17799 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17800 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17801 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17802 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17803 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17804 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17805 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17806 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17807 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17808 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17809 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17810 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17811 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17812 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17813 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17814 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17815 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17816 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17817 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17818 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17819 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17820 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17821 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17822 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17823 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17824 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17825 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17826 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17827 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17828 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17829 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17830 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17833 LTCFLAGS='$LTCFLAGS'
17834 compiler='$compiler_DEFAULT'
17836 # A function that is used when there is no print builtin or printf.
17837 func_fallback_echo ()
17839 eval 'cat <<_LTECHO_EOF
17844 # Quote evaled strings.
17859 deplibs_check_method \
17864 sharedlib_from_linklib_cmd \
17867 archiver_list_spec \
17873 lt_cv_sys_global_symbol_pipe \
17874 lt_cv_sys_global_symbol_to_cdecl \
17875 lt_cv_sys_global_symbol_to_c_name_address \
17876 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17877 nm_file_list_spec \
17878 lt_prog_compiler_no_builtin_flag \
17879 lt_prog_compiler_pic \
17880 lt_prog_compiler_wl \
17881 lt_prog_compiler_static \
17882 lt_cv_prog_compiler_c_o \
17891 export_dynamic_flag_spec \
17892 whole_archive_flag_spec \
17893 compiler_needs_object \
17895 allow_undefined_flag \
17896 no_undefined_flag \
17897 hardcode_libdir_flag_spec \
17898 hardcode_libdir_separator \
17902 variables_saved_for_relink \
17904 library_names_spec \
17906 install_override_mode \
17910 compiler_lib_search_dirs \
17915 compiler_lib_search_path \
17920 lt_prog_compiler_no_builtin_flag_CXX \
17921 lt_prog_compiler_pic_CXX \
17922 lt_prog_compiler_wl_CXX \
17923 lt_prog_compiler_static_CXX \
17924 lt_cv_prog_compiler_c_o_CXX \
17925 export_dynamic_flag_spec_CXX \
17926 whole_archive_flag_spec_CXX \
17927 compiler_needs_object_CXX \
17929 allow_undefined_flag_CXX \
17930 no_undefined_flag_CXX \
17931 hardcode_libdir_flag_spec_CXX \
17932 hardcode_libdir_separator_CXX \
17933 exclude_expsyms_CXX \
17934 include_expsyms_CXX \
17935 file_list_spec_CXX \
17936 compiler_lib_search_dirs_CXX \
17937 predep_objects_CXX \
17938 postdep_objects_CXX \
17941 compiler_lib_search_path_CXX; do
17942 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17943 *[\\\\\\\`\\"\\\$]*)
17944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17952 # Double-quote double-evaled strings.
17953 for var in reload_cmds \
17954 old_postinstall_cmds \
17955 old_postuninstall_cmds \
17957 extract_expsyms_cmds \
17958 old_archive_from_new_cmds \
17959 old_archive_from_expsyms_cmds \
17961 archive_expsym_cmds \
17963 module_expsym_cmds \
17964 export_symbols_cmds \
17968 postuninstall_cmds \
17970 sys_lib_search_path_spec \
17971 sys_lib_dlsearch_path_spec \
17973 old_archive_cmds_CXX \
17974 old_archive_from_new_cmds_CXX \
17975 old_archive_from_expsyms_cmds_CXX \
17977 archive_expsym_cmds_CXX \
17979 module_expsym_cmds_CXX \
17980 export_symbols_cmds_CXX \
17982 postlink_cmds_CXX; do
17983 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17984 *[\\\\\\\`\\"\\\$]*)
17985 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17988 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17993 ac_aux_dir='$ac_aux_dir'
17994 xsi_shell='$xsi_shell'
17995 lt_shell_append='$lt_shell_append'
17997 # See if we are running on zsh, and set the options which allow our
17998 # commands through without removal of \ escapes INIT.
17999 if test -n "\${ZSH_VERSION+set}" ; then
18000 setopt NO_GLOB_SUBST
18006 TIMESTAMP='$TIMESTAMP'
18017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18019 # Handling of arguments.
18020 for ac_config_target in $ac_config_targets
18022 case $ac_config_target in
18023 "ac_config.h") CONFIG_HEADERS="$CONFIG_HEADERS ac_config.h" ;;
18024 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18025 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18026 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18027 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
18028 "lib/libconfig.pc") CONFIG_FILES="$CONFIG_FILES lib/libconfig.pc" ;;
18029 "lib/libconfig++.pc") CONFIG_FILES="$CONFIG_FILES lib/libconfig++.pc" ;;
18030 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18031 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
18032 "examples/c/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c/Makefile" ;;
18033 "examples/c++/Makefile") CONFIG_FILES="$CONFIG_FILES examples/c++/Makefile" ;;
18034 "tinytest/Makefile") CONFIG_FILES="$CONFIG_FILES tinytest/Makefile" ;;
18035 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18036 "libconfig.spec") CONFIG_FILES="$CONFIG_FILES libconfig.spec" ;;
18038 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18043 # If the user did not use the arguments to specify the items to instantiate,
18044 # then the envvar interface is used. Set only those that are not.
18045 # We use the long form for the default assignment because of an extremely
18046 # bizarre bug on SunOS 4.1.3.
18047 if $ac_need_defaults; then
18048 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18049 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18050 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18053 # Have a temporary directory for convenience. Make it in the build tree
18054 # simply because there is no reason against having it here, and in addition,
18055 # creating and moving files from /tmp can sometimes cause problems.
18056 # Hook for its removal unless debugging.
18057 # Note that there is a small window in which the directory will not be cleaned:
18058 # after its creation but before its name has been assigned to `$tmp'.
18062 trap 'exit_status=$?
18063 : "${ac_tmp:=$tmp}"
18064 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18066 trap 'as_fn_exit 1' 1 2 13 15
18068 # Create a (secure) tmp directory for tmp files.
18071 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18075 tmp=./conf$$-$RANDOM
18076 (umask 077 && mkdir "$tmp")
18077 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18080 # Set up the scripts for CONFIG_FILES section.
18081 # No need to generate them if there are no CONFIG_FILES.
18082 # This happens for instance with `./config.status config.h'.
18083 if test -n "$CONFIG_FILES"; then
18086 ac_cr=`echo X | tr X '\015'`
18087 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18088 # But we know of no other shell where ac_cr would be empty at this
18089 # point, so we can use a bashism as a fallback.
18090 if test "x$ac_cr" = x; then
18091 eval ac_cr=\$\'\\r\'
18093 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18094 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18097 ac_cs_awk_cr=$ac_cr
18100 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18105 echo "cat >conf$$subs.awk <<_ACEOF" &&
18106 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18108 } >conf$$subs.sh ||
18109 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18110 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18112 for ac_last_try in false false false false false :; do
18113 . ./conf$$subs.sh ||
18114 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18116 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18117 if test $ac_delim_n = $ac_delim_num; then
18119 elif $ac_last_try; then
18120 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18122 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18125 rm -f conf$$subs.sh
18127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18128 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18132 s/^/S["/; s/!.*/"]=/
18142 s/\(.\{148\}\)..*/\1/
18144 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18149 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18156 s/\(.\{148\}\)..*/\1/
18158 s/["\\]/\\&/g; s/^/"/; s/$/"/
18162 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18167 ' <conf$$subs.awk | sed '
18172 ' >>$CONFIG_STATUS || ac_write_fail=1
18173 rm -f conf$$subs.awk
18174 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18176 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18177 for (key in S) S_is_set[key] = 1
18183 nfields = split(line, field, "@")
18185 len = length(field[1])
18186 for (i = 2; i < nfields; i++) {
18188 keylen = length(key)
18189 if (S_is_set[key]) {
18191 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18192 len += length(value) + length(field[++i])
18203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18204 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18205 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18208 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18209 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18212 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18213 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18214 # trailing colons and then remove the whole line if VPATH becomes empty
18215 # (actually we leave an empty line to preserve line numbers).
18216 if test "x$srcdir" = x.; then
18217 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18235 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18236 fi # test -n "$CONFIG_FILES"
18238 # Set up the scripts for CONFIG_HEADERS section.
18239 # No need to generate them if there are no CONFIG_HEADERS.
18240 # This happens for instance with `./config.status Makefile'.
18241 if test -n "$CONFIG_HEADERS"; then
18242 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18246 # Transform confdefs.h into an awk script `defines.awk', embedded as
18247 # here-document in config.status, that substitutes the proper values into
18248 # config.h.in to produce config.h.
18250 # Create a delimiter string that does not exist in confdefs.h, to ease
18251 # handling of long lines.
18253 for ac_last_try in false false :; do
18254 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18255 if test -z "$ac_tt"; then
18257 elif $ac_last_try; then
18258 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18260 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18264 # For the awk script, D is an array of macro values keyed by name,
18265 # likewise P contains macro parameters if any. Preserve backslash
18266 # newline sequences.
18268 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18270 s/.\{148\}/&'"$ac_delim"'/g
18273 s/^[ ]*#[ ]*define[ ][ ]*/ /
18280 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18282 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18286 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18287 D["\1"]=" \3\\\\\\n"\\/p
18289 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18294 s/.\{148\}/&'"$ac_delim"'/g
18299 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18302 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18304 ' <confdefs.h | sed '
18305 s/'"$ac_delim"'/"\\\
18306 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18308 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18309 for (key in D) D_is_set[key] = 1
18312 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18314 split(line, arg, " ")
18315 if (arg[1] == "#") {
18319 defundef = substr(arg[1], 2)
18322 split(mac1, mac2, "(") #)
18324 prefix = substr(line, 1, index(line, defundef) - 1)
18325 if (D_is_set[macro]) {
18326 # Preserve the white space surrounding the "#".
18327 print prefix "define", macro P[macro] D[macro]
18330 # Replace #undef with comments. This is necessary, for example,
18331 # in the case of _POSIX_SOURCE, which is predefined and required
18332 # on some systems where configure will not decide to define it.
18333 if (defundef == "undef") {
18334 print "/*", prefix defundef, macro, "*/"
18342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18343 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18344 fi # test -n "$CONFIG_HEADERS"
18347 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18352 :[FHLC]) ac_mode=$ac_tag; continue;;
18354 case $ac_mode$ac_tag in
18356 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18357 :[FH]-) ac_tag=-:-;;
18358 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18375 -) ac_f="$ac_tmp/stdin";;
18376 *) # Look for the file first in the build tree, then in the source tree
18377 # (if the path is not absolute). The absolute path cannot be DOS-style,
18378 # because $ac_f cannot contain `:'.
18382 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18384 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18386 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18387 as_fn_append ac_file_inputs " '$ac_f'"
18390 # Let's still pretend it is `configure' which instantiates (i.e., don't
18391 # use $as_me), people would be surprised to read:
18392 # /* config.h. Generated by config.status. */
18393 configure_input='Generated from '`
18394 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18396 if test x"$ac_file" != x-; then
18397 configure_input="$ac_file. $configure_input"
18398 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18399 $as_echo "$as_me: creating $ac_file" >&6;}
18401 # Neutralize special characters interpreted by sed in replacement strings.
18402 case $configure_input in #(
18403 *\&* | *\|* | *\\* )
18404 ac_sed_conf_input=`$as_echo "$configure_input" |
18405 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18406 *) ac_sed_conf_input=$configure_input;;
18410 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18416 ac_dir=`$as_dirname -- "$ac_file" ||
18417 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18418 X"$ac_file" : 'X\(//\)[^/]' \| \
18419 X"$ac_file" : 'X\(//\)$' \| \
18420 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18421 $as_echo X"$ac_file" |
18422 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18426 /^X\(\/\/\)[^/].*/{
18439 as_dir="$ac_dir"; as_fn_mkdir_p
18443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18446 # A ".." for each directory in $ac_dir_suffix.
18447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18448 case $ac_top_builddir_sub in
18449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18453 ac_abs_top_builddir=$ac_pwd
18454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18455 # for backward compatibility:
18456 ac_top_builddir=$ac_top_build_prefix
18459 .) # We are building in place.
18461 ac_top_srcdir=$ac_top_builddir_sub
18462 ac_abs_top_srcdir=$ac_pwd ;;
18463 [\\/]* | ?:[\\/]* ) # Absolute name.
18464 ac_srcdir=$srcdir$ac_dir_suffix;
18465 ac_top_srcdir=$srcdir
18466 ac_abs_top_srcdir=$srcdir ;;
18467 *) # Relative name.
18468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18469 ac_top_srcdir=$ac_top_build_prefix$srcdir
18470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18482 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18483 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18485 ac_MKDIR_P=$MKDIR_P
18487 [\\/$]* | ?:[\\/]* ) ;;
18488 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18493 # If the template does not know about datarootdir, expand it.
18494 # FIXME: This hack should be removed a few years after 2.60.
18495 ac_datarootdir_hack=; ac_datarootdir_seen=
18506 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18507 *datarootdir*) ac_datarootdir_seen=yes;;
18508 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18510 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18513 ac_datarootdir_hack='
18514 s&@datadir@&$datadir&g
18515 s&@docdir@&$docdir&g
18516 s&@infodir@&$infodir&g
18517 s&@localedir@&$localedir&g
18518 s&@mandir@&$mandir&g
18519 s&\\\${datarootdir}&$datarootdir&g' ;;
18523 # Neutralize VPATH when `$srcdir' = `.'.
18524 # Shell code in configure.ac might set extrasub.
18525 # FIXME: do we really want to maintain this feature?
18526 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18527 ac_sed_extra="$ac_vpsub
18530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18532 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18533 s|@configure_input@|$ac_sed_conf_input|;t t
18534 s&@top_builddir@&$ac_top_builddir_sub&;t t
18535 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18536 s&@srcdir@&$ac_srcdir&;t t
18537 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18538 s&@top_srcdir@&$ac_top_srcdir&;t t
18539 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18540 s&@builddir@&$ac_builddir&;t t
18541 s&@abs_builddir@&$ac_abs_builddir&;t t
18542 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18543 s&@INSTALL@&$ac_INSTALL&;t t
18544 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18545 $ac_datarootdir_hack
18547 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18548 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18550 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18551 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18552 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18553 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18555 which seems to be undefined. Please make sure it is defined" >&5
18556 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18557 which seems to be undefined. Please make sure it is defined" >&2;}
18559 rm -f "$ac_tmp/stdin"
18561 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18562 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18564 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18570 if test x"$ac_file" != x-; then
18572 $as_echo "/* $configure_input */" \
18573 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18574 } >"$ac_tmp/config.h" \
18575 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18576 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18578 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18581 mv "$ac_tmp/config.h" "$ac_file" \
18582 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18585 $as_echo "/* $configure_input */" \
18586 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18587 || as_fn_error $? "could not create -" "$LINENO" 5
18589 # Compute "$ac_file"'s index in $config_headers.
18592 for _am_header in $config_headers :; do
18593 case $_am_header in
18594 $_am_arg | $_am_arg:* )
18597 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18600 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18601 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18602 X"$_am_arg" : 'X\(//\)[^/]' \| \
18603 X"$_am_arg" : 'X\(//\)$' \| \
18604 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18605 $as_echo X"$_am_arg" |
18606 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18610 /^X\(\/\/\)[^/].*/{
18622 s/.*/./; q'`/stamp-h$_am_stamp_count
18625 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18626 $as_echo "$as_me: executing $ac_file commands" >&6;}
18631 case $ac_file$ac_mode in
18632 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18633 # Older Autoconf quotes --file arguments for eval, but not when files
18634 # are listed without --file. Let's play safe and only enable the eval
18635 # if we detect the quoting.
18636 case $CONFIG_FILES in
18637 *\'*) eval set x "$CONFIG_FILES" ;;
18638 *) set x $CONFIG_FILES ;;
18643 # Strip MF so we end up with the name of the file.
18644 mf=`echo "$mf" | sed -e 's/:.*$//'`
18645 # Check whether this is an Automake generated Makefile or not.
18646 # We used to match only the files named 'Makefile.in', but
18647 # some people rename them; so instead we look at the file content.
18648 # Grep'ing the first line is not enough: some people post-process
18649 # each Makefile.in and add a new line on top of each file to say so.
18650 # Grep'ing the whole file is not good either: AIX grep has a line
18651 # limit of 2048, but all sed's we know have understand at least 4000.
18652 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18653 dirpart=`$as_dirname -- "$mf" ||
18654 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18655 X"$mf" : 'X\(//\)[^/]' \| \
18656 X"$mf" : 'X\(//\)$' \| \
18657 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18663 /^X\(\/\/\)[^/].*/{
18679 # Extract the definition of DEPDIR, am__include, and am__quote
18680 # from the Makefile without running 'make'.
18681 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18682 test -z "$DEPDIR" && continue
18683 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18684 test -z "$am__include" && continue
18685 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18686 # Find all dependency output files, they are included files with
18687 # $(DEPDIR) in their names. We invoke sed twice because it is the
18688 # simplest approach to changing $(DEPDIR) to its actual value in the
18690 for file in `sed -n "
18691 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18692 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18693 # Make sure the directory exists.
18694 test -f "$dirpart/$file" && continue
18695 fdir=`$as_dirname -- "$file" ||
18696 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18697 X"$file" : 'X\(//\)[^/]' \| \
18698 X"$file" : 'X\(//\)$' \| \
18699 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18700 $as_echo X"$file" |
18701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18705 /^X\(\/\/\)[^/].*/{
18718 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18719 # echo "creating $dirpart/$file"
18720 echo '# dummy' > "$dirpart/$file"
18727 # See if we are running on zsh, and set the options which allow our
18728 # commands through without removal of \ escapes.
18729 if test -n "${ZSH_VERSION+set}" ; then
18730 setopt NO_GLOB_SUBST
18733 cfgfile="${ofile}T"
18734 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18737 cat <<_LT_EOF >> "$cfgfile"
18740 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18741 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18743 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18745 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18746 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
18748 # Written by Gordon Matzigkeit, 1996
18750 # This file is part of GNU Libtool.
18752 # GNU Libtool is free software; you can redistribute it and/or
18753 # modify it under the terms of the GNU General Public License as
18754 # published by the Free Software Foundation; either version 2 of
18755 # the License, or (at your option) any later version.
18757 # As a special exception to the GNU General Public License,
18758 # if you distribute this file as part of a program or library that
18759 # is built using GNU Libtool, you may include this file under the
18760 # same distribution terms that you use for the rest of that program.
18762 # GNU Libtool is distributed in the hope that it will be useful,
18763 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18764 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18765 # GNU General Public License for more details.
18767 # You should have received a copy of the GNU General Public License
18768 # along with GNU Libtool; see the file COPYING. If not, a copy
18769 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18770 # obtained by writing to the Free Software Foundation, Inc.,
18771 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18774 # The names of the tagged configurations supported by this script.
18775 available_tags="CXX "
18777 # ### BEGIN LIBTOOL CONFIG
18779 # Which release of libtool.m4 was used?
18780 macro_version=$macro_version
18781 macro_revision=$macro_revision
18783 # Whether or not to build shared libraries.
18784 build_libtool_libs=$enable_shared
18786 # Whether or not to build static libraries.
18787 build_old_libs=$enable_static
18789 # What type of objects to build.
18792 # Whether or not to optimize for fast installation.
18793 fast_install=$enable_fast_install
18795 # Shell to use when invoking shell scripts.
18798 # An echo program that protects backslashes.
18801 # The PATH separator for the build system.
18802 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18805 host_alias=$host_alias
18809 # The build system.
18810 build_alias=$build_alias
18814 # A sed program that does not truncate output.
18817 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18818 Xsed="\$SED -e 1s/^X//"
18820 # A grep program that handles long lines.
18826 # A literal string matcher.
18829 # A BSD- or MS-compatible name lister.
18832 # Whether we need soft or hard links.
18835 # What is the maximum length of a command?
18836 max_cmd_len=$max_cmd_len
18838 # Object file suffix (normally "o").
18841 # Executable file suffix (normally "").
18844 # whether the shell understands "unset".
18847 # turn spaces into newlines.
18850 # turn newlines into spaces.
18853 # convert \$build file names to \$host format.
18854 to_host_file_cmd=$lt_cv_to_host_file_cmd
18856 # convert \$build files to toolchain format.
18857 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18859 # An object symbol dumper.
18860 OBJDUMP=$lt_OBJDUMP
18862 # Method to check whether dependent libraries are shared objects.
18863 deplibs_check_method=$lt_deplibs_check_method
18865 # Command to use when deplibs_check_method = "file_magic".
18866 file_magic_cmd=$lt_file_magic_cmd
18868 # How to find potential files when deplibs_check_method = "file_magic".
18869 file_magic_glob=$lt_file_magic_glob
18871 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18872 want_nocaseglob=$lt_want_nocaseglob
18874 # DLL creation program.
18875 DLLTOOL=$lt_DLLTOOL
18877 # Command to associate shared and link libraries.
18878 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18883 # Flags to create an archive.
18884 AR_FLAGS=$lt_AR_FLAGS
18886 # How to feed a file listing to the archiver.
18887 archiver_list_spec=$lt_archiver_list_spec
18889 # A symbol stripping program.
18892 # Commands used to install an old-style archive.
18894 old_postinstall_cmds=$lt_old_postinstall_cmds
18895 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18897 # Whether to use a lock for old archive extraction.
18898 lock_old_archive_extraction=$lock_old_archive_extraction
18903 # LTCC compiler flags.
18904 LTCFLAGS=$lt_CFLAGS
18906 # Take the output of nm and produce a listing of raw symbols and C names.
18907 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18909 # Transform the output of nm in a proper C declaration.
18910 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18912 # Transform the output of nm in a C name address pair.
18913 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18915 # Transform the output of nm in a C name address pair when lib prefix is needed.
18916 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18918 # Specify filename containing input files for \$NM.
18919 nm_file_list_spec=$lt_nm_file_list_spec
18921 # The root where to search for dependent libraries,and in which our libraries should be installed.
18922 lt_sysroot=$lt_sysroot
18924 # The name of the directory that contains temporary libtool files.
18927 # Used to examine libraries when file_magic_cmd begins with "file".
18928 MAGIC_CMD=$MAGIC_CMD
18930 # Must we lock files when doing compilation?
18931 need_locks=$lt_need_locks
18934 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18936 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18937 DSYMUTIL=$lt_DSYMUTIL
18939 # Tool to change global to local symbols on Mac OS X.
18942 # Tool to manipulate fat objects and archives on Mac OS X.
18945 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18948 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18949 OTOOL64=$lt_OTOOL64
18951 # Old archive suffix (normally "a").
18954 # Shared library suffix (normally ".so").
18955 shrext_cmds=$lt_shrext_cmds
18957 # The commands to extract the exported symbol list from a shared archive.
18958 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18960 # Variables whose values should be saved in libtool wrapper scripts and
18961 # restored at link time.
18962 variables_saved_for_relink=$lt_variables_saved_for_relink
18964 # Do we need the "lib" prefix for modules?
18965 need_lib_prefix=$need_lib_prefix
18967 # Do we need a version for libraries?
18968 need_version=$need_version
18970 # Library versioning type.
18971 version_type=$version_type
18973 # Shared library runtime path variable.
18974 runpath_var=$runpath_var
18976 # Shared library path variable.
18977 shlibpath_var=$shlibpath_var
18979 # Is shlibpath searched before the hard-coded library search path?
18980 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18982 # Format of library name prefix.
18983 libname_spec=$lt_libname_spec
18985 # List of archive names. First name is the real one, the rest are links.
18986 # The last name is the one that the linker finds with -lNAME
18987 library_names_spec=$lt_library_names_spec
18989 # The coded name of the library, if different from the real name.
18990 soname_spec=$lt_soname_spec
18992 # Permission mode override for installation of shared libraries.
18993 install_override_mode=$lt_install_override_mode
18995 # Command to use after installation of a shared archive.
18996 postinstall_cmds=$lt_postinstall_cmds
18998 # Command to use after uninstallation of a shared archive.
18999 postuninstall_cmds=$lt_postuninstall_cmds
19001 # Commands used to finish a libtool library installation in a directory.
19002 finish_cmds=$lt_finish_cmds
19004 # As "finish_cmds", except a single script fragment to be evaled but
19006 finish_eval=$lt_finish_eval
19008 # Whether we should hardcode library paths into libraries.
19009 hardcode_into_libs=$hardcode_into_libs
19011 # Compile-time system search path for libraries.
19012 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19014 # Run-time system search path for libraries.
19015 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19017 # Whether dlopen is supported.
19018 dlopen_support=$enable_dlopen
19020 # Whether dlopen of programs is supported.
19021 dlopen_self=$enable_dlopen_self
19023 # Whether dlopen of statically linked programs is supported.
19024 dlopen_self_static=$enable_dlopen_self_static
19026 # Commands to strip libraries.
19027 old_striplib=$lt_old_striplib
19028 striplib=$lt_striplib
19030 # Assembler program.
19034 # The linker used to build libraries.
19037 # How to create reloadable object files.
19038 reload_flag=$lt_reload_flag
19039 reload_cmds=$lt_reload_cmds
19041 # Commands used to build an old-style archive.
19042 old_archive_cmds=$lt_old_archive_cmds
19044 # A language specific compiler.
19047 # Is the compiler the GNU compiler?
19050 # Compiler flag to turn off builtin functions.
19051 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19053 # Additional compiler flags for building library objects.
19054 pic_flag=$lt_lt_prog_compiler_pic
19056 # How to pass a linker flag through the compiler.
19057 wl=$lt_lt_prog_compiler_wl
19059 # Compiler flag to prevent dynamic linking.
19060 link_static_flag=$lt_lt_prog_compiler_static
19062 # Does compiler simultaneously support -c and -o options?
19063 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19065 # Whether or not to add -lc for building shared libraries.
19066 build_libtool_need_lc=$archive_cmds_need_lc
19068 # Whether or not to disallow shared libs when runtime libs are static.
19069 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19071 # Compiler flag to allow reflexive dlopens.
19072 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19074 # Compiler flag to generate shared objects directly from archives.
19075 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19077 # Whether the compiler copes with passing no objects directly.
19078 compiler_needs_object=$lt_compiler_needs_object
19080 # Create an old-style archive from a shared archive.
19081 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19083 # Create a temporary old-style archive to link instead of a shared archive.
19084 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19086 # Commands used to build a shared archive.
19087 archive_cmds=$lt_archive_cmds
19088 archive_expsym_cmds=$lt_archive_expsym_cmds
19090 # Commands used to build a loadable module if different from building
19091 # a shared archive.
19092 module_cmds=$lt_module_cmds
19093 module_expsym_cmds=$lt_module_expsym_cmds
19095 # Whether we are building with GNU ld or not.
19096 with_gnu_ld=$lt_with_gnu_ld
19098 # Flag that allows shared libraries with undefined symbols to be built.
19099 allow_undefined_flag=$lt_allow_undefined_flag
19101 # Flag that enforces no undefined symbols.
19102 no_undefined_flag=$lt_no_undefined_flag
19104 # Flag to hardcode \$libdir into a binary during linking.
19105 # This must work even if \$libdir does not exist
19106 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19108 # Whether we need a single "-rpath" flag with a separated argument.
19109 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19111 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19112 # DIR into the resulting binary.
19113 hardcode_direct=$hardcode_direct
19115 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19116 # DIR into the resulting binary and the resulting library dependency is
19117 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19118 # library is relocated.
19119 hardcode_direct_absolute=$hardcode_direct_absolute
19121 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19122 # into the resulting binary.
19123 hardcode_minus_L=$hardcode_minus_L
19125 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19126 # into the resulting binary.
19127 hardcode_shlibpath_var=$hardcode_shlibpath_var
19129 # Set to "yes" if building a shared library automatically hardcodes DIR
19130 # into the library and all subsequent libraries and executables linked
19132 hardcode_automatic=$hardcode_automatic
19134 # Set to yes if linker adds runtime paths of dependent libraries
19135 # to runtime path list.
19136 inherit_rpath=$inherit_rpath
19138 # Whether libtool must link a program against all its dependency libraries.
19139 link_all_deplibs=$link_all_deplibs
19141 # Set to "yes" if exported symbols are required.
19142 always_export_symbols=$always_export_symbols
19144 # The commands to list exported symbols.
19145 export_symbols_cmds=$lt_export_symbols_cmds
19147 # Symbols that should not be listed in the preloaded symbols.
19148 exclude_expsyms=$lt_exclude_expsyms
19150 # Symbols that must always be exported.
19151 include_expsyms=$lt_include_expsyms
19153 # Commands necessary for linking programs (against libraries) with templates.
19154 prelink_cmds=$lt_prelink_cmds
19156 # Commands necessary for finishing linking programs.
19157 postlink_cmds=$lt_postlink_cmds
19159 # Specify filename containing input files.
19160 file_list_spec=$lt_file_list_spec
19162 # How to hardcode a shared library path into an executable.
19163 hardcode_action=$hardcode_action
19165 # The directories searched by this compiler when creating a shared library.
19166 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19168 # Dependencies to place before and after the objects being linked to
19169 # create a shared library.
19170 predep_objects=$lt_predep_objects
19171 postdep_objects=$lt_postdep_objects
19172 predeps=$lt_predeps
19173 postdeps=$lt_postdeps
19175 # The library search path used internally by the compiler when linking
19176 # a shared library.
19177 compiler_lib_search_path=$lt_compiler_lib_search_path
19179 # ### END LIBTOOL CONFIG
19185 cat <<\_LT_EOF >> "$cfgfile"
19186 # AIX sometimes has problems with the GCC collect2 program. For some
19187 # reason, if we set the COLLECT_NAMES environment variable, the problems
19188 # vanish in a puff of smoke.
19189 if test "X${COLLECT_NAMES+set}" != Xset; then
19191 export COLLECT_NAMES
19198 ltmain="$ac_aux_dir/ltmain.sh"
19201 # We use sed instead of cat because bash on DJGPP gets confused if
19202 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19203 # text mode, it properly converts lines to CR/LF. This bash problem
19204 # is reportedly fixed, but why not run on old versions too?
19205 sed '$q' "$ltmain" >> "$cfgfile" \
19206 || (rm -f "$cfgfile"; exit 1)
19208 if test x"$xsi_shell" = xyes; then
19209 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19213 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19214 \ * ) func_dirname_result="${3}" ;;\
19216 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19217 && mv -f "$cfgfile.tmp" "$cfgfile" \
19218 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19219 test 0 -eq $? || _lt_function_replace_fail=:
19222 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19225 \ func_basename_result="${1##*/}"\
19226 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19227 && mv -f "$cfgfile.tmp" "$cfgfile" \
19228 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19229 test 0 -eq $? || _lt_function_replace_fail=:
19232 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19233 func_dirname_and_basename ()\
19236 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19237 \ * ) func_dirname_result="${3}" ;;\
19239 \ func_basename_result="${1##*/}"\
19240 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19241 && mv -f "$cfgfile.tmp" "$cfgfile" \
19242 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19243 test 0 -eq $? || _lt_function_replace_fail=:
19246 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19249 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19250 \ # positional parameters, so assign one to ordinary parameter first.\
19251 \ func_stripname_result=${3}\
19252 \ func_stripname_result=${func_stripname_result#"${1}"}\
19253 \ func_stripname_result=${func_stripname_result%"${2}"}\
19254 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19255 && mv -f "$cfgfile.tmp" "$cfgfile" \
19256 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19257 test 0 -eq $? || _lt_function_replace_fail=:
19260 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19261 func_split_long_opt ()\
19263 \ func_split_long_opt_name=${1%%=*}\
19264 \ func_split_long_opt_arg=${1#*=}\
19265 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19266 && mv -f "$cfgfile.tmp" "$cfgfile" \
19267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19268 test 0 -eq $? || _lt_function_replace_fail=:
19271 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19272 func_split_short_opt ()\
19274 \ func_split_short_opt_arg=${1#??}\
19275 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19276 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19277 && mv -f "$cfgfile.tmp" "$cfgfile" \
19278 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19279 test 0 -eq $? || _lt_function_replace_fail=:
19282 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19286 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19287 \ *) func_lo2o_result=${1} ;;\
19289 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19290 && mv -f "$cfgfile.tmp" "$cfgfile" \
19291 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19292 test 0 -eq $? || _lt_function_replace_fail=:
19295 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19298 func_xform_result=${1%.*}.lo\
19299 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19300 && mv -f "$cfgfile.tmp" "$cfgfile" \
19301 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19302 test 0 -eq $? || _lt_function_replace_fail=:
19305 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19308 func_arith_result=$(( $* ))\
19309 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19310 && mv -f "$cfgfile.tmp" "$cfgfile" \
19311 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19312 test 0 -eq $? || _lt_function_replace_fail=:
19315 sed -e '/^func_len ()$/,/^} # func_len /c\
19318 func_len_result=${#1}\
19319 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19320 && mv -f "$cfgfile.tmp" "$cfgfile" \
19321 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19322 test 0 -eq $? || _lt_function_replace_fail=:
19326 if test x"$lt_shell_append" = xyes; then
19327 sed -e '/^func_append ()$/,/^} # func_append /c\
19330 eval "${1}+=\\${2}"\
19331 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19332 && mv -f "$cfgfile.tmp" "$cfgfile" \
19333 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19334 test 0 -eq $? || _lt_function_replace_fail=:
19337 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19338 func_append_quoted ()\
19340 \ func_quote_for_eval "${2}"\
19341 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19342 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19343 && mv -f "$cfgfile.tmp" "$cfgfile" \
19344 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19345 test 0 -eq $? || _lt_function_replace_fail=:
19348 # Save a `func_append' function call where possible by direct use of '+='
19349 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19350 && mv -f "$cfgfile.tmp" "$cfgfile" \
19351 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19352 test 0 -eq $? || _lt_function_replace_fail=:
19354 # Save a `func_append' function call even when '+=' is not available
19355 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19356 && mv -f "$cfgfile.tmp" "$cfgfile" \
19357 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19358 test 0 -eq $? || _lt_function_replace_fail=:
19361 if test x"$_lt_function_replace_fail" = x":"; then
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19363 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19367 mv -f "$cfgfile" "$ofile" ||
19368 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19372 cat <<_LT_EOF >> "$ofile"
19374 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19376 # The linker used to build libraries.
19379 # How to create reloadable object files.
19380 reload_flag=$lt_reload_flag_CXX
19381 reload_cmds=$lt_reload_cmds_CXX
19383 # Commands used to build an old-style archive.
19384 old_archive_cmds=$lt_old_archive_cmds_CXX
19386 # A language specific compiler.
19387 CC=$lt_compiler_CXX
19389 # Is the compiler the GNU compiler?
19392 # Compiler flag to turn off builtin functions.
19393 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19395 # Additional compiler flags for building library objects.
19396 pic_flag=$lt_lt_prog_compiler_pic_CXX
19398 # How to pass a linker flag through the compiler.
19399 wl=$lt_lt_prog_compiler_wl_CXX
19401 # Compiler flag to prevent dynamic linking.
19402 link_static_flag=$lt_lt_prog_compiler_static_CXX
19404 # Does compiler simultaneously support -c and -o options?
19405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19407 # Whether or not to add -lc for building shared libraries.
19408 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19410 # Whether or not to disallow shared libs when runtime libs are static.
19411 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19413 # Compiler flag to allow reflexive dlopens.
19414 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19416 # Compiler flag to generate shared objects directly from archives.
19417 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19419 # Whether the compiler copes with passing no objects directly.
19420 compiler_needs_object=$lt_compiler_needs_object_CXX
19422 # Create an old-style archive from a shared archive.
19423 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19425 # Create a temporary old-style archive to link instead of a shared archive.
19426 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19428 # Commands used to build a shared archive.
19429 archive_cmds=$lt_archive_cmds_CXX
19430 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19432 # Commands used to build a loadable module if different from building
19433 # a shared archive.
19434 module_cmds=$lt_module_cmds_CXX
19435 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19437 # Whether we are building with GNU ld or not.
19438 with_gnu_ld=$lt_with_gnu_ld_CXX
19440 # Flag that allows shared libraries with undefined symbols to be built.
19441 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19443 # Flag that enforces no undefined symbols.
19444 no_undefined_flag=$lt_no_undefined_flag_CXX
19446 # Flag to hardcode \$libdir into a binary during linking.
19447 # This must work even if \$libdir does not exist
19448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19450 # Whether we need a single "-rpath" flag with a separated argument.
19451 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19453 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19454 # DIR into the resulting binary.
19455 hardcode_direct=$hardcode_direct_CXX
19457 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19458 # DIR into the resulting binary and the resulting library dependency is
19459 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19460 # library is relocated.
19461 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19463 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19464 # into the resulting binary.
19465 hardcode_minus_L=$hardcode_minus_L_CXX
19467 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19468 # into the resulting binary.
19469 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19471 # Set to "yes" if building a shared library automatically hardcodes DIR
19472 # into the library and all subsequent libraries and executables linked
19474 hardcode_automatic=$hardcode_automatic_CXX
19476 # Set to yes if linker adds runtime paths of dependent libraries
19477 # to runtime path list.
19478 inherit_rpath=$inherit_rpath_CXX
19480 # Whether libtool must link a program against all its dependency libraries.
19481 link_all_deplibs=$link_all_deplibs_CXX
19483 # Set to "yes" if exported symbols are required.
19484 always_export_symbols=$always_export_symbols_CXX
19486 # The commands to list exported symbols.
19487 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19489 # Symbols that should not be listed in the preloaded symbols.
19490 exclude_expsyms=$lt_exclude_expsyms_CXX
19492 # Symbols that must always be exported.
19493 include_expsyms=$lt_include_expsyms_CXX
19495 # Commands necessary for linking programs (against libraries) with templates.
19496 prelink_cmds=$lt_prelink_cmds_CXX
19498 # Commands necessary for finishing linking programs.
19499 postlink_cmds=$lt_postlink_cmds_CXX
19501 # Specify filename containing input files.
19502 file_list_spec=$lt_file_list_spec_CXX
19504 # How to hardcode a shared library path into an executable.
19505 hardcode_action=$hardcode_action_CXX
19507 # The directories searched by this compiler when creating a shared library.
19508 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19510 # Dependencies to place before and after the objects being linked to
19511 # create a shared library.
19512 predep_objects=$lt_predep_objects_CXX
19513 postdep_objects=$lt_postdep_objects_CXX
19514 predeps=$lt_predeps_CXX
19515 postdeps=$lt_postdeps_CXX
19517 # The library search path used internally by the compiler when linking
19518 # a shared library.
19519 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19521 # ### END LIBTOOL TAG CONFIG: CXX
19532 ac_clean_files=$ac_clean_files_save
19534 test $ac_write_fail = 0 ||
19535 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19538 # configure is writing to config.log, and then calls config.status.
19539 # config.status does its own redirection, appending to config.log.
19540 # Unfortunately, on DOS this fails, as config.log is still kept open
19541 # by configure, so config.status won't be able to write to it; its
19542 # output is simply discarded. So we exec the FD to /dev/null,
19543 # effectively closing config.log, so it can be properly (re)opened and
19544 # appended to by config.status. When coming back to configure, we
19545 # need to make the FD available again.
19546 if test "$no_create" != yes; then
19548 ac_config_status_args=
19549 test "$silent" = yes &&
19550 ac_config_status_args="$ac_config_status_args --quiet"
19552 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19554 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19555 # would make configure fail if this is the last instruction.
19556 $ac_cs_success || as_fn_exit 1
19558 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19560 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}