2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.68 for libunwind 1.1.
5 @%:@ Report bugs to <libunwind-devel@nongnu.org>.
8 @%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 @%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 @%:@ This configure script is free software; the Free Software Foundation
14 @%:@ gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in @%:@(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in @%:@(
150 set -o posix ;; @%:@(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
201 case $as_dir in @%:@(
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and libunwind-devel@nongnu.org
250 $0: about your system, including any error possibly output
251 $0: before this message. Then install a modern shell, or
252 $0: manually run the script under such a shell if you do
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 @%:@ Portably unset VAR.
273 { eval $1=; unset $1;}
277 @%:@ as_fn_set_status STATUS
278 @%:@ -----------------------
279 @%:@ Set @S|@? to STATUS, without forking.
283 } @%:@ as_fn_set_status
285 @%:@ as_fn_exit STATUS
286 @%:@ -----------------
287 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 @%:@ as_fn_append VAR VALUE
343 @%:@ ----------------------
344 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
345 @%:@ advantage of any shell optimizations that allow amortized linear growth over
346 @%:@ repeated appends, instead of the typical quadratic growth present in naive
347 @%:@ implementations.
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
360 @%:@ as_fn_arith ARG...
361 @%:@ ------------------
362 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
363 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
364 @%:@ must be portable across @S|@(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
379 @%:@ ----------------------------------------
380 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 @%:@ script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in @%:@(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
550 test -n "$DJDIR" || exec 7<&0 </dev/null
554 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555 # so uname gets run too.
556 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561 ac_default_prefix=/usr/local
563 ac_config_libobj_dir=.
570 # Identity of this package.
571 PACKAGE_NAME='libunwind'
572 PACKAGE_TARNAME='libunwind'
573 PACKAGE_VERSION='1.1'
574 PACKAGE_STRING='libunwind 1.1'
575 PACKAGE_BUGREPORT='libunwind-devel@nongnu.org'
578 ac_unique_file="src/mi/backtrace.c"
579 # Factoring default headers for most tests.
580 ac_includes_default="\
582 #ifdef HAVE_SYS_TYPES_H
583 # include <sys/types.h>
585 #ifdef HAVE_SYS_STAT_H
586 # include <sys/stat.h>
592 # ifdef HAVE_STDLIB_H
597 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602 #ifdef HAVE_STRINGS_H
603 # include <strings.h>
605 #ifdef HAVE_INTTYPES_H
606 # include <inttypes.h>
615 ac_subst_vars='am__EXEEXT_FALSE
621 enable_cxx_exceptions
627 LDFLAGS_STATIC_LIBCXA
634 SUPPORT_CXX_EXCEPTIONS_FALSE
635 SUPPORT_CXX_EXCEPTIONS_TRUE
674 am__fastdepCCAS_FALSE
726 MAINTAINER_MODE_FALSE
736 INSTALL_STRIP_PROGRAM
790 program_transform_name
803 enable_option_checking
804 enable_maintainer_mode
805 enable_dependency_tracking
815 enable_cxx_exceptions
818 enable_conservative_checks
822 ac_precious_vars='build_alias
839 # Initialize some variables set by options.
841 ac_init_version=false
842 ac_unrecognized_opts=
844 # The variables have the same names as the options, with
845 # dashes changed to underlines.
853 program_transform_name=s,x,x,
861 # Installation directory options.
862 # These are left unexpanded so users can "make install exec_prefix=/foo"
863 # and all the variables that are supposed to be based on exec_prefix
864 # by default will actually change.
865 # Use braces instead of parens because sh, perl, etc. also accept them.
866 # (The list follows the same order as the GNU Coding Standards.)
867 bindir='${exec_prefix}/bin'
868 sbindir='${exec_prefix}/sbin'
869 libexecdir='${exec_prefix}/libexec'
870 datarootdir='${prefix}/share'
871 datadir='${datarootdir}'
872 sysconfdir='${prefix}/etc'
873 sharedstatedir='${prefix}/com'
874 localstatedir='${prefix}/var'
875 includedir='${prefix}/include'
876 oldincludedir='/usr/include'
877 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
878 infodir='${datarootdir}/info'
883 libdir='${exec_prefix}/lib'
884 localedir='${datarootdir}/locale'
885 mandir='${datarootdir}/man'
891 # If the previous option needs an argument, assign it.
892 if test -n "$ac_prev"; then
893 eval $ac_prev=\$ac_option
899 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 # Accept the important Cygnus configure options, so we can diagnose typos.
906 case $ac_dashdash$ac_option in
910 -bindir | --bindir | --bindi | --bind | --bin | --bi)
912 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
915 -build | --build | --buil | --bui | --bu)
916 ac_prev=build_alias ;;
917 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
918 build_alias=$ac_optarg ;;
920 -cache-file | --cache-file | --cache-fil | --cache-fi \
921 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
922 ac_prev=cache_file ;;
923 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
924 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
925 cache_file=$ac_optarg ;;
928 cache_file=config.cache ;;
930 -datadir | --datadir | --datadi | --datad)
932 -datadir=* | --datadir=* | --datadi=* | --datad=*)
933 datadir=$ac_optarg ;;
935 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
936 | --dataroo | --dataro | --datar)
937 ac_prev=datarootdir ;;
938 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
939 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
940 datarootdir=$ac_optarg ;;
942 -disable-* | --disable-*)
943 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
946 as_fn_error $? "invalid feature name: $ac_useropt"
947 ac_useropt_orig=$ac_useropt
948 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
949 case $ac_user_opts in
953 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
954 ac_unrecognized_sep=', ';;
956 eval enable_$ac_useropt=no ;;
958 -docdir | --docdir | --docdi | --doc | --do)
960 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
963 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
965 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
968 -enable-* | --enable-*)
969 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
970 # Reject names that are not valid shell variable names.
971 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
972 as_fn_error $? "invalid feature name: $ac_useropt"
973 ac_useropt_orig=$ac_useropt
974 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
975 case $ac_user_opts in
979 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
980 ac_unrecognized_sep=', ';;
982 eval enable_$ac_useropt=\$ac_optarg ;;
984 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
985 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
986 | --exec | --exe | --ex)
987 ac_prev=exec_prefix ;;
988 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
989 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
990 | --exec=* | --exe=* | --ex=*)
991 exec_prefix=$ac_optarg ;;
993 -gas | --gas | --ga | --g)
994 # Obsolete; use --with-gas.
997 -help | --help | --hel | --he | -h)
999 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1000 ac_init_help=recursive ;;
1001 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1002 ac_init_help=short ;;
1004 -host | --host | --hos | --ho)
1005 ac_prev=host_alias ;;
1006 -host=* | --host=* | --hos=* | --ho=*)
1007 host_alias=$ac_optarg ;;
1009 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1011 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1013 htmldir=$ac_optarg ;;
1015 -includedir | --includedir | --includedi | --included | --include \
1016 | --includ | --inclu | --incl | --inc)
1017 ac_prev=includedir ;;
1018 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1019 | --includ=* | --inclu=* | --incl=* | --inc=*)
1020 includedir=$ac_optarg ;;
1022 -infodir | --infodir | --infodi | --infod | --info | --inf)
1024 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1025 infodir=$ac_optarg ;;
1027 -libdir | --libdir | --libdi | --libd)
1029 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1030 libdir=$ac_optarg ;;
1032 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1033 | --libexe | --libex | --libe)
1034 ac_prev=libexecdir ;;
1035 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1036 | --libexe=* | --libex=* | --libe=*)
1037 libexecdir=$ac_optarg ;;
1039 -localedir | --localedir | --localedi | --localed | --locale)
1040 ac_prev=localedir ;;
1041 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1042 localedir=$ac_optarg ;;
1044 -localstatedir | --localstatedir | --localstatedi | --localstated \
1045 | --localstate | --localstat | --localsta | --localst | --locals)
1046 ac_prev=localstatedir ;;
1047 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1048 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1049 localstatedir=$ac_optarg ;;
1051 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1053 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1054 mandir=$ac_optarg ;;
1056 -nfp | --nfp | --nf)
1057 # Obsolete; use --without-fp.
1060 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1061 | --no-cr | --no-c | -n)
1064 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1065 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1068 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1069 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1070 | --oldin | --oldi | --old | --ol | --o)
1071 ac_prev=oldincludedir ;;
1072 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1073 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1074 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1075 oldincludedir=$ac_optarg ;;
1077 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1079 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1080 prefix=$ac_optarg ;;
1082 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1083 | --program-pre | --program-pr | --program-p)
1084 ac_prev=program_prefix ;;
1085 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1086 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1087 program_prefix=$ac_optarg ;;
1089 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1090 | --program-suf | --program-su | --program-s)
1091 ac_prev=program_suffix ;;
1092 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1093 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1094 program_suffix=$ac_optarg ;;
1096 -program-transform-name | --program-transform-name \
1097 | --program-transform-nam | --program-transform-na \
1098 | --program-transform-n | --program-transform- \
1099 | --program-transform | --program-transfor \
1100 | --program-transfo | --program-transf \
1101 | --program-trans | --program-tran \
1102 | --progr-tra | --program-tr | --program-t)
1103 ac_prev=program_transform_name ;;
1104 -program-transform-name=* | --program-transform-name=* \
1105 | --program-transform-nam=* | --program-transform-na=* \
1106 | --program-transform-n=* | --program-transform-=* \
1107 | --program-transform=* | --program-transfor=* \
1108 | --program-transfo=* | --program-transf=* \
1109 | --program-trans=* | --program-tran=* \
1110 | --progr-tra=* | --program-tr=* | --program-t=*)
1111 program_transform_name=$ac_optarg ;;
1113 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1115 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1116 pdfdir=$ac_optarg ;;
1118 -psdir | --psdir | --psdi | --psd | --ps)
1120 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1124 | -silent | --silent | --silen | --sile | --sil)
1127 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1129 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1131 sbindir=$ac_optarg ;;
1133 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1134 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1135 | --sharedst | --shareds | --shared | --share | --shar \
1137 ac_prev=sharedstatedir ;;
1138 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1139 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1140 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1142 sharedstatedir=$ac_optarg ;;
1144 -site | --site | --sit)
1146 -site=* | --site=* | --sit=*)
1149 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1151 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1152 srcdir=$ac_optarg ;;
1154 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1155 | --syscon | --sysco | --sysc | --sys | --sy)
1156 ac_prev=sysconfdir ;;
1157 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1158 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1159 sysconfdir=$ac_optarg ;;
1161 -target | --target | --targe | --targ | --tar | --ta | --t)
1162 ac_prev=target_alias ;;
1163 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1164 target_alias=$ac_optarg ;;
1166 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1169 -version | --version | --versio | --versi | --vers | -V)
1170 ac_init_version=: ;;
1173 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1186 eval with_$ac_useropt=\$ac_optarg ;;
1188 -without-* | --without-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error $? "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1202 eval with_$ac_useropt=no ;;
1205 # Obsolete; use --with-x.
1208 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1209 | --x-incl | --x-inc | --x-in | --x-i)
1210 ac_prev=x_includes ;;
1211 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1212 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1213 x_includes=$ac_optarg ;;
1215 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1216 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1217 ac_prev=x_libraries ;;
1218 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1219 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1220 x_libraries=$ac_optarg ;;
1222 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1223 Try \`$0 --help' for more information"
1227 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1228 # Reject names that are not valid shell variable names.
1229 case $ac_envvar in #(
1230 '' | [0-9]* | *[!_$as_cr_alnum]* )
1231 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1233 eval $ac_envvar=\$ac_optarg
1234 export $ac_envvar ;;
1237 # FIXME: should be removed in autoconf 3.0.
1238 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1239 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1241 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1247 if test -n "$ac_prev"; then
1248 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1249 as_fn_error $? "missing argument to $ac_option"
1252 if test -n "$ac_unrecognized_opts"; then
1253 case $enable_option_checking in
1255 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1256 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1260 # Check all directory arguments for consistency.
1261 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1262 datadir sysconfdir sharedstatedir localstatedir includedir \
1263 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1264 libdir localedir mandir
1266 eval ac_val=\$$ac_var
1267 # Remove trailing slashes.
1270 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1271 eval $ac_var=\$ac_val;;
1273 # Be sure to have absolute directory names.
1275 [\\/$]* | ?:[\\/]* ) continue;;
1276 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1278 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1281 # There might be people who depend on the old broken behavior: `$host'
1282 # used to hold the argument of --host etc.
1283 # FIXME: To remove some day.
1286 target=$target_alias
1288 # FIXME: To remove some day.
1289 if test "x$host_alias" != x; then
1290 if test "x$build_alias" = x; then
1291 cross_compiling=maybe
1292 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1293 If a cross compiler is detected then cross compile mode will be used" >&2
1294 elif test "x$build_alias" != "x$host_alias"; then
1300 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1302 test "$silent" = yes && exec 6>/dev/null
1305 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1306 ac_ls_di=`ls -di .` &&
1307 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1308 as_fn_error $? "working directory cannot be determined"
1309 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1310 as_fn_error $? "pwd does not report name of working directory"
1313 # Find the source files, if location was not specified.
1314 if test -z "$srcdir"; then
1315 ac_srcdir_defaulted=yes
1316 # Try the directory containing this script, then the parent directory.
1317 ac_confdir=`$as_dirname -- "$as_myself" ||
1318 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1319 X"$as_myself" : 'X\(//\)[^/]' \| \
1320 X"$as_myself" : 'X\(//\)$' \| \
1321 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1322 $as_echo X"$as_myself" |
1323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 if test ! -r "$srcdir/$ac_unique_file"; then
1345 ac_srcdir_defaulted=no
1347 if test ! -r "$srcdir/$ac_unique_file"; then
1348 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1349 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1351 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1353 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1355 # When building in place, set srcdir=.
1356 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 # Remove unnecessary trailing slashes from srcdir.
1360 # Double slashes in file names in object file debugging info
1361 # mess up M-x gdb in Emacs.
1363 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1365 for ac_var in $ac_precious_vars; do
1366 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_env_${ac_var}_value=\$${ac_var}
1368 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1373 # Report the --help message.
1375 if test "$ac_init_help" = "long"; then
1376 # Omit some internal or obsolete options to make the list less imposing.
1377 # This message is too long to be a string in the A/UX 3.1 sh.
1379 \`configure' configures libunwind 1.1 to adapt to many kinds of systems.
1381 Usage: $0 [OPTION]... [VAR=VALUE]...
1383 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1384 VAR=VALUE. See below for descriptions of some of the useful variables.
1386 Defaults for the options are specified in brackets.
1389 -h, --help display this help and exit
1390 --help=short display options specific to this package
1391 --help=recursive display the short help of all the included packages
1392 -V, --version display version information and exit
1393 -q, --quiet, --silent do not print \`checking ...' messages
1394 --cache-file=FILE cache test results in FILE [disabled]
1395 -C, --config-cache alias for \`--cache-file=config.cache'
1396 -n, --no-create do not create output files
1397 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1399 Installation directories:
1400 --prefix=PREFIX install architecture-independent files in PREFIX
1401 @<:@@S|@ac_default_prefix@:>@
1402 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 By default, \`make install' will install all the files in
1406 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1407 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1408 for instance \`--prefix=\$HOME'.
1410 For better control, use the options below.
1412 Fine tuning of the installation directories:
1413 --bindir=DIR user executables [EPREFIX/bin]
1414 --sbindir=DIR system admin executables [EPREFIX/sbin]
1415 --libexecdir=DIR program executables [EPREFIX/libexec]
1416 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1417 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1418 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1419 --libdir=DIR object code libraries [EPREFIX/lib]
1420 --includedir=DIR C header files [PREFIX/include]
1421 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1422 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1423 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1424 --infodir=DIR info documentation [DATAROOTDIR/info]
1425 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1426 --mandir=DIR man documentation [DATAROOTDIR/man]
1427 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libunwind@:>@
1428 --htmldir=DIR html documentation [DOCDIR]
1429 --dvidir=DIR dvi documentation [DOCDIR]
1430 --pdfdir=DIR pdf documentation [DOCDIR]
1431 --psdir=DIR ps documentation [DOCDIR]
1437 --program-prefix=PREFIX prepend PREFIX to installed program names
1438 --program-suffix=SUFFIX append SUFFIX to installed program names
1439 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1442 --build=BUILD configure for building on BUILD [guessed]
1443 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1444 --target=TARGET configure for building compilers for TARGET [HOST]
1448 if test -n "$ac_init_help"; then
1449 case $ac_init_help in
1450 short | recursive ) echo "Configuration of libunwind 1.1:";;
1455 --disable-option-checking ignore unrecognized --enable/--with options
1456 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1457 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1458 --enable-maintainer-mode enable make rules and dependencies not useful
1459 (and sometimes confusing) to the casual installer
1460 --disable-dependency-tracking speeds up one-time build
1461 --enable-dependency-tracking do not reject slow dependency extractors
1462 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1463 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1464 --enable-fast-install@<:@=PKGS@:>@
1465 optimize for fast installation @<:@default=yes@:>@
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467 --enable-coredump building libunwind-coredump library
1468 --enable-debug turn on debug support (slows down execution)
1469 --enable-cxx-exceptions use libunwind to handle C++ exceptions
1470 --enable-debug-frame Load the ".debug_frame" section if available
1471 --enable-block-signals Block signals before performing mutex operations
1472 --enable-conservative-checks
1473 Validate all memory addresses before use
1474 --enable-msabi-support Enables support for Microsoft ABI extensions
1475 --enable-minidebuginfo Enables support for LZMA-compressed symbol tables
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1482 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1483 --with-sysroot=DIR Search for dependent libraries within DIR
1484 (or the compiler's sysroot if not specified).
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1497 CXXCPP C++ preprocessor
1498 CCAS assembler compiler command (defaults to CC)
1499 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1504 Report bugs to <libunwind-devel@nongnu.org>.
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1534 .) # We are building in place.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1567 libunwind configure 1.1
1568 generated by GNU Autoconf 2.68
1570 Copyright (C) 2010 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1581 @%:@ ac_fn_c_try_compile LINENO
1582 @%:@ --------------------------
1583 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1617 } @%:@ ac_fn_c_try_compile
1619 @%:@ ac_fn_cxx_try_compile LINENO
1620 @%:@ ----------------------------
1621 @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1622 ac_fn_cxx_try_compile ()
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_cxx_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1655 } @%:@ ac_fn_cxx_try_compile
1657 @%:@ ac_fn_c_try_link LINENO
1658 @%:@ -----------------------
1659 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext conftest$ac_exeext
1664 if { { ac_try="$ac_link"
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>conftest.err
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest$ac_exeext && {
1683 test "$cross_compiling" = yes ||
1684 $as_test_x conftest$ac_exeext
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695 # interfere with the next link command; also delete a directory that is
1696 # left behind by Apple's compiler. We do this before executing the actions.
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1701 } @%:@ ac_fn_c_try_link
1703 @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 @%:@ -------------------------------------------------------
1705 @%:@ Tests whether HEADER exists and can be compiled using the include files in
1706 @%:@ INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1720 if ac_fn_c_try_compile "$LINENO"; then :
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 } @%:@ ac_fn_c_check_header_compile
1734 @%:@ ac_fn_c_try_cpp LINENO
1735 @%:@ ----------------------
1736 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_cpp conftest.$ac_ext"
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } > conftest.i && {
1756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1769 } @%:@ ac_fn_c_try_cpp
1771 @%:@ ac_fn_c_try_run LINENO
1772 @%:@ ----------------------
1773 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1774 @%:@ that executables *can* be run.
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_link"
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1805 ac_retval=$ac_status
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1811 } @%:@ ac_fn_c_try_run
1813 @%:@ ac_fn_c_check_func LINENO FUNC VAR
1814 @%:@ ----------------------------------
1815 @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1836 # include <limits.h>
1838 # include <assert.h>
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1865 if ac_fn_c_try_link "$LINENO"; then :
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 } @%:@ ac_fn_c_check_func
1880 @%:@ ac_fn_cxx_try_cpp LINENO
1881 @%:@ ------------------------
1882 @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_cpp ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_cpp conftest.$ac_ext"
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } > conftest.i && {
1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1915 } @%:@ ac_fn_cxx_try_cpp
1917 @%:@ ac_fn_cxx_try_link LINENO
1918 @%:@ -------------------------
1919 @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_link ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 $as_test_x conftest$ac_exeext
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1961 } @%:@ ac_fn_cxx_try_link
1963 @%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1964 @%:@ -------------------------------------------------------
1965 @%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1966 @%:@ the include files in INCLUDES and setting the cache variable VAR
1968 ac_fn_c_check_header_mongrel ()
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 if eval \${$3+:} false; then :
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1979 $as_echo "$ac_res" >&6; }
1981 # Is the header compilable?
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1983 $as_echo_n "checking $2 usability... " >&6; }
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1989 if ac_fn_c_try_compile "$LINENO"; then :
1990 ac_header_compiler=yes
1992 ac_header_compiler=no
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1996 $as_echo "$ac_header_compiler" >&6; }
1998 # Is the header present?
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2000 $as_echo_n "checking $2 presence... " >&6; }
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2005 if ac_fn_c_try_cpp "$LINENO"; then :
2006 ac_header_preproc=yes
2008 ac_header_preproc=no
2010 rm -f conftest.err conftest.i conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2012 $as_echo "$ac_header_preproc" >&6; }
2014 # So? What about this header?
2015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2018 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2020 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2024 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2026 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2028 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2030 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2033 ( $as_echo "## ----------------------------------------- ##
2034 ## Report this to libunwind-devel@nongnu.org ##
2035 ## ----------------------------------------- ##"
2036 ) | sed "s/^/$as_me: WARNING: /" >&2
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2044 eval "$3=\$ac_header_compiler"
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 } @%:@ ac_fn_c_check_header_mongrel
2054 @%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055 @%:@ -------------------------------------------
2056 @%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2057 @%:@ variable VAR accordingly.
2058 ac_fn_c_check_type ()
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if eval \${$3+:} false; then :
2064 $as_echo_n "(cached) " >&6
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2092 if ac_fn_c_try_compile "$LINENO"; then :
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 } @%:@ ac_fn_c_check_type
2108 @%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2109 @%:@ --------------------------------------------
2110 @%:@ Tries to find the compile-time value of EXPR in a program that includes
2111 @%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2113 ac_fn_c_compute_int ()
2115 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2116 if test "$cross_compiling" = yes; then
2117 # Depending upon the size, compute the lo and hi bounds.
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2124 static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2125 test_array @<:@0@:>@ = 0
2131 if ac_fn_c_try_compile "$LINENO"; then :
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2140 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2141 test_array @<:@0@:>@ = 0
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=$ac_mid; break
2150 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2151 if test $ac_lo -le $ac_mid; then
2155 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2166 static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2167 test_array @<:@0@:>@ = 0
2173 if ac_fn_c_try_compile "$LINENO"; then :
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177 /* end confdefs.h. */
2182 static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2183 test_array @<:@0@:>@ = 0
2189 if ac_fn_c_try_compile "$LINENO"; then :
2190 ac_lo=$ac_mid; break
2192 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2193 if test $ac_mid -le $ac_hi; then
2197 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 # Binary search between lo and hi bounds.
2208 while test "x$ac_lo" != "x$ac_hi"; do
2209 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h. */
2216 static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2217 test_array @<:@0@:>@ = 0
2223 if ac_fn_c_try_compile "$LINENO"; then :
2226 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230 case $ac_lo in @%:@((
2231 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2238 static long int longval () { return $2; }
2239 static unsigned long int ulongval () { return $2; }
2240 @%:@include <stdio.h>
2241 @%:@include <stdlib.h>
2246 FILE *f = fopen ("conftest.val", "w");
2251 long int i = longval ();
2254 fprintf (f, "%ld", i);
2258 unsigned long int i = ulongval ();
2261 fprintf (f, "%lu", i);
2263 /* Do not output a trailing newline, as this causes \r\n confusion
2264 on some platforms. */
2265 return ferror (f) || fclose (f) != 0;
2271 if ac_fn_c_try_run "$LINENO"; then :
2272 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2277 conftest.$ac_objext conftest.beam conftest.$ac_ext
2281 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282 as_fn_set_status $ac_retval
2284 } @%:@ ac_fn_c_compute_int
2286 @%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2287 @%:@ ----------------------------------------------------
2288 @%:@ Tries to find if the field MEMBER exists in type AGGR, after including
2289 @%:@ INCLUDES, setting cache variable VAR accordingly.
2290 ac_fn_c_check_member ()
2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2294 $as_echo_n "checking for $2.$3... " >&6; }
2295 if eval \${$4+:} false; then :
2296 $as_echo_n "(cached) " >&6
2298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2299 /* end confdefs.h. */
2311 if ac_fn_c_try_compile "$LINENO"; then :
2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2315 /* end confdefs.h. */
2321 if (sizeof ac_aggr.$3)
2327 if ac_fn_c_try_compile "$LINENO"; then :
2332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 $as_echo "$ac_res" >&6; }
2339 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2341 } @%:@ ac_fn_c_check_member
2343 @%:@ ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2344 @%:@ ---------------------------------------------
2345 @%:@ Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2347 ac_fn_c_check_decl ()
2349 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2350 as_decl_name=`echo $2|sed 's/ *(.*//'`
2351 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2353 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2354 if eval \${$3+:} false; then :
2355 $as_echo_n "(cached) " >&6
2357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2358 /* end confdefs.h. */
2363 @%:@ifndef $as_decl_name
2364 @%:@ifdef __cplusplus
2365 (void) $as_decl_use;
2367 (void) $as_decl_name;
2375 if ac_fn_c_try_compile "$LINENO"; then :
2380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 $as_echo "$ac_res" >&6; }
2385 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387 } @%:@ ac_fn_c_check_decl
2388 cat >config.log <<_ACEOF
2389 This file contains any messages produced by compilers while
2390 running configure, to aid debugging if configure makes a mistake.
2392 It was created by libunwind $as_me 1.1, which was
2393 generated by GNU Autoconf 2.68. Invocation command line was
2405 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2406 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2407 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2408 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2409 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2411 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2412 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2414 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2415 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2416 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2417 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2418 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2419 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2420 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 $as_echo "PATH: $as_dir"
2445 # Keep a trace of the command line.
2446 # Strip out --no-create and --no-recursion so they do not pile up.
2447 # Strip out --silent because we don't want to record it for future runs.
2448 # Also quote any args containing shell meta-characters.
2449 # Make two passes to allow for proper duplicate-argument suppression.
2453 ac_must_keep_next=false
2459 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2461 | -silent | --silent | --silen | --sile | --sil)
2464 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2467 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2469 as_fn_append ac_configure_args1 " '$ac_arg'"
2470 if test $ac_must_keep_next = true; then
2471 ac_must_keep_next=false # Got value, back to normal.
2474 *=* | --config-cache | -C | -disable-* | --disable-* \
2475 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2476 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2477 | -with-* | --with-* | -without-* | --without-* | --x)
2478 case "$ac_configure_args0 " in
2479 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2482 -* ) ac_must_keep_next=true ;;
2485 as_fn_append ac_configure_args " '$ac_arg'"
2490 { ac_configure_args0=; unset ac_configure_args0;}
2491 { ac_configure_args1=; unset ac_configure_args1;}
2493 # When interrupted or exit'd, cleanup temporary files, and complete
2494 # config.log. We remove comments because anyway the quotes in there
2495 # would cause problems or look ugly.
2496 # WARNING: Use '\'' to represent an apostrophe within the trap.
2497 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2498 trap 'exit_status=$?
2499 # Save into config.log some information that might help in debugging.
2503 $as_echo "## ---------------- ##
2504 ## Cache variables. ##
2505 ## ---------------- ##"
2507 # The following way of writing the cache mishandles newlines in values,
2509 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2510 eval ac_val=\$$ac_var
2514 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2515 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2518 _ | IFS | as_nl) ;; #(
2519 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2520 *) { eval $ac_var=; unset $ac_var;} ;;
2525 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2526 *${as_nl}ac_space=\ *)
2528 "s/'\''/'\''\\\\'\'''\''/g;
2529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2532 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2539 $as_echo "## ----------------- ##
2540 ## Output variables. ##
2541 ## ----------------- ##"
2543 for ac_var in $ac_subst_vars
2545 eval ac_val=\$$ac_var
2547 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2549 $as_echo "$ac_var='\''$ac_val'\''"
2553 if test -n "$ac_subst_files"; then
2554 $as_echo "## ------------------- ##
2555 ## File substitutions. ##
2556 ## ------------------- ##"
2558 for ac_var in $ac_subst_files
2560 eval ac_val=\$$ac_var
2562 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2564 $as_echo "$ac_var='\''$ac_val'\''"
2569 if test -s confdefs.h; then
2570 $as_echo "## ----------- ##
2577 test "$ac_signal" != 0 &&
2578 $as_echo "$as_me: caught signal $ac_signal"
2579 $as_echo "$as_me: exit $exit_status"
2581 rm -f core *.core core.conftest.* &&
2582 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2585 for ac_signal in 1 2 13 15; do
2586 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2590 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2591 rm -f -r conftest* confdefs.h
2593 $as_echo "/* confdefs.h */" > confdefs.h
2595 # Predefined preprocessor variables.
2597 cat >>confdefs.h <<_ACEOF
2598 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
2601 cat >>confdefs.h <<_ACEOF
2602 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2605 cat >>confdefs.h <<_ACEOF
2606 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2609 cat >>confdefs.h <<_ACEOF
2610 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
2613 cat >>confdefs.h <<_ACEOF
2614 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2617 cat >>confdefs.h <<_ACEOF
2618 @%:@define PACKAGE_URL "$PACKAGE_URL"
2622 # Let the site file select an alternate cache file if it wants to.
2623 # Prefer an explicitly selected file to automatically selected ones.
2626 if test -n "$CONFIG_SITE"; then
2627 # We do not want a PATH search for config.site.
2628 case $CONFIG_SITE in @%:@((
2629 -*) ac_site_file1=./$CONFIG_SITE;;
2630 */*) ac_site_file1=$CONFIG_SITE;;
2631 *) ac_site_file1=./$CONFIG_SITE;;
2633 elif test "x$prefix" != xNONE; then
2634 ac_site_file1=$prefix/share/config.site
2635 ac_site_file2=$prefix/etc/config.site
2637 ac_site_file1=$ac_default_prefix/share/config.site
2638 ac_site_file2=$ac_default_prefix/etc/config.site
2640 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2642 test "x$ac_site_file" = xNONE && continue
2643 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2645 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2646 sed 's/^/| /' "$ac_site_file" >&5
2648 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2650 as_fn_error $? "failed to load site script $ac_site_file
2651 See \`config.log' for more details" "$LINENO" 5; }
2655 if test -r "$cache_file"; then
2656 # Some versions of bash will fail to source /dev/null (special files
2657 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2658 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2660 $as_echo "$as_me: loading cache $cache_file" >&6;}
2662 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2663 *) . "./$cache_file";;
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2668 $as_echo "$as_me: creating cache $cache_file" >&6;}
2672 # Check that the precious variables saved in the cache have kept the same
2674 ac_cache_corrupted=false
2675 for ac_var in $ac_precious_vars; do
2676 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2677 eval ac_new_set=\$ac_env_${ac_var}_set
2678 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2679 eval ac_new_val=\$ac_env_${ac_var}_value
2680 case $ac_old_set,$ac_new_set in
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2683 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2684 ac_cache_corrupted=: ;;
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2687 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2688 ac_cache_corrupted=: ;;
2691 if test "x$ac_old_val" != "x$ac_new_val"; then
2692 # differences in whitespace do not lead to failure.
2693 ac_old_val_w=`echo x $ac_old_val`
2694 ac_new_val_w=`echo x $ac_new_val`
2695 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2697 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2698 ac_cache_corrupted=:
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2701 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2702 eval $ac_var=\$ac_old_val
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2705 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2707 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2710 # Pass precious variables to config.status.
2711 if test "$ac_new_set" = set; then
2713 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2714 *) ac_arg=$ac_var=$ac_new_val ;;
2716 case " $ac_configure_args " in
2717 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2718 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2722 if $ac_cache_corrupted; then
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2724 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2726 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2727 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2729 ## -------------------- ##
2730 ## Main body of script. ##
2731 ## -------------------- ##
2734 ac_cpp='$CPP $CPPFLAGS'
2735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742 for ac_dir in config "$srcdir"/config; do
2743 if test -f "$ac_dir/install-sh"; then
2745 ac_install_sh="$ac_aux_dir/install-sh -c"
2747 elif test -f "$ac_dir/install.sh"; then
2749 ac_install_sh="$ac_aux_dir/install.sh -c"
2751 elif test -f "$ac_dir/shtool"; then
2753 ac_install_sh="$ac_aux_dir/shtool install -c"
2757 if test -z "$ac_aux_dir"; then
2758 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2761 # These three variables are undocumented and unsupported,
2762 # and are intended to be withdrawn in a future Autoconf release.
2763 # They can cause serious problems if a builder's source tree is in a directory
2764 # whose full name contains unusual characters.
2765 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2766 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2767 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2770 # Make sure we can run config.sub.
2771 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2772 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2775 $as_echo_n "checking build system type... " >&6; }
2776 if ${ac_cv_build+:} false; then :
2777 $as_echo_n "(cached) " >&6
2779 ac_build_alias=$build_alias
2780 test "x$ac_build_alias" = x &&
2781 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2782 test "x$ac_build_alias" = x &&
2783 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2784 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2785 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2789 $as_echo "$ac_cv_build" >&6; }
2790 case $ac_cv_build in
2792 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2795 ac_save_IFS=$IFS; IFS='-'
2801 # Remember, the first character of IFS is used to create $*,
2802 # except with old shells:
2805 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2809 $as_echo_n "checking host system type... " >&6; }
2810 if ${ac_cv_host+:} false; then :
2811 $as_echo_n "(cached) " >&6
2813 if test "x$host_alias" = x; then
2814 ac_cv_host=$ac_cv_build
2816 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2817 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2822 $as_echo "$ac_cv_host" >&6; }
2825 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2828 ac_save_IFS=$IFS; IFS='-'
2834 # Remember, the first character of IFS is used to create $*,
2835 # except with old shells:
2838 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2842 $as_echo_n "checking target system type... " >&6; }
2843 if ${ac_cv_target+:} false; then :
2844 $as_echo_n "(cached) " >&6
2846 if test "x$target_alias" = x; then
2847 ac_cv_target=$ac_cv_host
2849 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2850 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2855 $as_echo "$ac_cv_target" >&6; }
2856 case $ac_cv_target in
2858 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2860 target=$ac_cv_target
2861 ac_save_IFS=$IFS; IFS='-'
2867 # Remember, the first character of IFS is used to create $*,
2868 # except with old shells:
2871 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2874 # The aliases save the names the user supplied, while $host etc.
2875 # will get canonicalized.
2876 test -n "$target_alias" &&
2877 test "$program_prefix$program_suffix$program_transform_name" = \
2879 program_prefix=${target_alias}-
2880 am__api_version='1.11'
2882 # Find a good install program. We prefer a C program (faster),
2883 # so one script is as good as another. But avoid the broken or
2884 # incompatible versions:
2885 # SysV /etc/install, /usr/sbin/install
2886 # SunOS /usr/etc/install
2887 # IRIX /sbin/install
2889 # AmigaOS /C/install, which installs bootblocks on floppy discs
2890 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2891 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2892 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2893 # OS/2's system install, which has a completely different semantic
2894 # ./install, which can be erroneously created by make from ./install.sh.
2895 # Reject install programs that cannot install multiple files.
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2897 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2898 if test -z "$INSTALL"; then
2899 if ${ac_cv_path_install+:} false; then :
2900 $as_echo_n "(cached) " >&6
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 test -z "$as_dir" && as_dir=.
2907 # Account for people who put trailing slashes in PATH elements.
2908 case $as_dir/ in @%:@((
2909 ./ | .// | /[cC]/* | \
2910 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2911 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2914 # OSF1 and SCO ODT 3.0 have their own names for install.
2915 # Don't use installbsd from OSF since it installs stuff as root
2917 for ac_prog in ginstall scoinst install; do
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2920 if test $ac_prog = install &&
2921 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2922 # AIX install. It has an incompatible calling convention.
2924 elif test $ac_prog = install &&
2925 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2926 # program-specific install script used by HP pwplus--don't use.
2929 rm -rf conftest.one conftest.two conftest.dir
2930 echo one > conftest.one
2931 echo two > conftest.two
2933 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2934 test -s conftest.one && test -s conftest.two &&
2935 test -s conftest.dir/conftest.one &&
2936 test -s conftest.dir/conftest.two
2938 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2951 rm -rf conftest.one conftest.two conftest.dir
2954 if test "${ac_cv_path_install+set}" = set; then
2955 INSTALL=$ac_cv_path_install
2957 # As a last resort, use the slow shell script. Don't cache a
2958 # value for INSTALL within a source directory, because that will
2959 # break other packages using the cache if that directory is
2960 # removed, or if the value is a relative name.
2961 INSTALL=$ac_install_sh
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2965 $as_echo "$INSTALL" >&6; }
2967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2968 # It thinks the first close brace ends the variable substitution.
2969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2973 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2976 $as_echo_n "checking whether build environment is sane... " >&6; }
2979 echo timestamp > conftest.file
2980 # Reject unsafe characters in $srcdir or the absolute working directory
2981 # name. Accept space and tab only in the latter.
2985 *[\\\"\#\$\&\'\`$am_lf]*)
2986 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2989 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2990 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2993 # Do `set' in a subshell so we don't clobber the current shell's
2994 # arguments. Must try -L first in case configure is actually a
2995 # symlink; some systems play weird games with the mod time of symlinks
2996 # (eg FreeBSD returns the mod time of the symlink's containing
2999 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3000 if test "$*" = "X"; then
3002 set X `ls -t "$srcdir/configure" conftest.file`
3005 if test "$*" != "X $srcdir/configure conftest.file" \
3006 && test "$*" != "X conftest.file $srcdir/configure"; then
3008 # If neither matched, then we have a broken ls. This can happen
3009 # if, for instance, CONFIG_SHELL is bash and it inherits a
3010 # broken ls alias from the environment. This has actually
3011 # happened. Such a system could not be considered "sane".
3012 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3013 alias in your environment" "$LINENO" 5
3016 test "$2" = conftest.file
3022 as_fn_error $? "newly created file is older than distributed files!
3023 Check your system clock" "$LINENO" 5
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3026 $as_echo "yes" >&6; }
3027 test "$program_prefix" != NONE &&
3028 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3029 # Use a double $ so make ignores it.
3030 test "$program_suffix" != NONE &&
3031 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3032 # Double any \ or $.
3033 # By default was `s,x,x', remove it if useless.
3034 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3035 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3037 # expand $ac_aux_dir to an absolute path
3038 am_aux_dir=`cd $ac_aux_dir && pwd`
3040 if test x"${MISSING+set}" != xset; then
3043 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3045 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3048 # Use eval to expand $SHELL
3049 if eval "$MISSING --run true"; then
3050 am_missing_run="$MISSING --run "
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3054 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3057 if test x"${install_sh}" != xset; then
3060 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3062 install_sh="\${SHELL} $am_aux_dir/install-sh"
3066 # Installed binaries are usually stripped using `strip' when the user
3067 # run `make install-strip'. However `strip' might not be the right
3068 # tool to use in cross-compilation environments, therefore Automake
3069 # will honor the `STRIP' environment variable to overrule this program.
3070 if test "$cross_compiling" != no; then
3071 if test -n "$ac_tool_prefix"; then
3072 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3073 set dummy ${ac_tool_prefix}strip; ac_word=$2
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3075 $as_echo_n "checking for $ac_word... " >&6; }
3076 if ${ac_cv_prog_STRIP+:} false; then :
3077 $as_echo_n "(cached) " >&6
3079 if test -n "$STRIP"; then
3080 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099 STRIP=$ac_cv_prog_STRIP
3100 if test -n "$STRIP"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3102 $as_echo "$STRIP" >&6; }
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3110 if test -z "$ac_cv_prog_STRIP"; then
3112 # Extract the first word of "strip", so it can be a program name with args.
3113 set dummy strip; ac_word=$2
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115 $as_echo_n "checking for $ac_word... " >&6; }
3116 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3117 $as_echo_n "(cached) " >&6
3119 if test -n "$ac_ct_STRIP"; then
3120 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126 test -z "$as_dir" && as_dir=.
3127 for ac_exec_ext in '' $ac_executable_extensions; do
3128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129 ac_cv_prog_ac_ct_STRIP="strip"
3130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3140 if test -n "$ac_ct_STRIP"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3142 $as_echo "$ac_ct_STRIP" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3148 if test "x$ac_ct_STRIP" = x; then
3151 case $cross_compiling:$ac_tool_warned in
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3155 ac_tool_warned=yes ;;
3160 STRIP="$ac_cv_prog_STRIP"
3164 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3167 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3168 if test -z "$MKDIR_P"; then
3169 if ${ac_cv_path_mkdir+:} false; then :
3170 $as_echo_n "(cached) " >&6
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3176 test -z "$as_dir" && as_dir=.
3177 for ac_prog in mkdir gmkdir; do
3178 for ac_exec_ext in '' $ac_executable_extensions; do
3179 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3180 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3181 'mkdir (GNU coreutils) '* | \
3182 'mkdir (coreutils) '* | \
3183 'mkdir (fileutils) '4.1*)
3184 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3194 test -d ./--version && rmdir ./--version
3195 if test "${ac_cv_path_mkdir+set}" = set; then
3196 MKDIR_P="$ac_cv_path_mkdir -p"
3198 # As a last resort, use the slow shell script. Don't cache a
3199 # value for MKDIR_P within a source directory, because that will
3200 # break other packages using the cache if that directory is
3201 # removed, or if the value is a relative name.
3202 MKDIR_P="$ac_install_sh -d"
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3206 $as_echo "$MKDIR_P" >&6; }
3210 [\\/$]* | ?:[\\/]*) ;;
3211 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3214 for ac_prog in gawk mawk nawk awk
3216 # Extract the first word of "$ac_prog", so it can be a program name with args.
3217 set dummy $ac_prog; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_AWK+:} false; then :
3221 $as_echo_n "(cached) " >&6
3223 if test -n "$AWK"; then
3224 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 ac_cv_prog_AWK="$ac_prog"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 if test -n "$AWK"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3246 $as_echo "$AWK" >&6; }
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3253 test -n "$AWK" && break
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3257 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3259 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3260 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3261 $as_echo_n "(cached) " >&6
3263 cat >conftest.make <<\_ACEOF
3266 @echo '@@@%%%=$(MAKE)=@@@%%%'
3268 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3269 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3271 eval ac_cv_prog_make_${ac_make}_set=yes;;
3273 eval ac_cv_prog_make_${ac_make}_set=no;;
3277 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3279 $as_echo "yes" >&6; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3283 $as_echo "no" >&6; }
3284 SET_MAKE="MAKE=${MAKE-make}"
3287 rm -rf .tst 2>/dev/null
3288 mkdir .tst 2>/dev/null
3289 if test -d .tst; then
3294 rmdir .tst 2>/dev/null
3296 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3297 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3298 # is not polluted with repeated "-I."
3299 am__isrc=' -I$(srcdir)'
3300 # test to see if srcdir already configured
3301 if test -f $srcdir/config.status; then
3302 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3306 # test whether we have cygpath
3307 if test -z "$CYGPATH_W"; then
3308 if (cygpath --version) >/dev/null 2>/dev/null; then
3309 CYGPATH_W='cygpath -w'
3316 # Define the identity of the package.
3321 cat >>confdefs.h <<_ACEOF
3322 @%:@define PACKAGE "$PACKAGE"
3326 cat >>confdefs.h <<_ACEOF
3327 @%:@define VERSION "$VERSION"
3330 # Some tools Automake needs.
3332 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3335 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3338 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3341 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3344 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3346 # We need awk for the "check" target. The system "awk" is bad on
3348 # Always define AMTAR for backward compatibility. Yes, it's still used
3349 # in the wild :-( We should find a proper way to deprecate it ...
3352 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3360 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3361 @%:@ Check whether --enable-maintainer-mode was given.
3362 if test "${enable_maintainer_mode+set}" = set; then :
3363 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3365 USE_MAINTAINER_MODE=no
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3369 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3370 if test $USE_MAINTAINER_MODE = yes; then
3371 MAINTAINER_MODE_TRUE=
3372 MAINTAINER_MODE_FALSE='#'
3374 MAINTAINER_MODE_TRUE='#'
3375 MAINTAINER_MODE_FALSE=
3378 MAINT=$MAINTAINER_MODE_TRUE
3381 ac_config_headers="$ac_config_headers include/config.h"
3385 ac_cpp='$CPP $CPPFLAGS'
3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 if test -n "$ac_tool_prefix"; then
3390 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3391 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_CC+:} false; then :
3395 $as_echo_n "(cached) " >&6
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC="$CC" # Let the user override the test.
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 test -z "$as_dir" && as_dir=.
3405 for ac_exec_ext in '' $ac_executable_extensions; do
3406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 if test -n "$CC"; then
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3420 $as_echo "$CC" >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423 $as_echo "no" >&6; }
3428 if test -z "$ac_cv_prog_CC"; then
3430 # Extract the first word of "gcc", so it can be a program name with args.
3431 set dummy gcc; ac_word=$2
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433 $as_echo_n "checking for $ac_word... " >&6; }
3434 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3435 $as_echo_n "(cached) " >&6
3437 if test -n "$ac_ct_CC"; then
3438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3447 ac_cv_prog_ac_ct_CC="gcc"
3448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3458 if test -n "$ac_ct_CC"; then
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3460 $as_echo "$ac_ct_CC" >&6; }
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3466 if test "x$ac_ct_CC" = x; then
3469 case $cross_compiling:$ac_tool_warned in
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3473 ac_tool_warned=yes ;;
3481 if test -z "$CC"; then
3482 if test -n "$ac_tool_prefix"; then
3483 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3484 set dummy ${ac_tool_prefix}cc; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if ${ac_cv_prog_CC+:} false; then :
3488 $as_echo_n "(cached) " >&6
3490 if test -n "$CC"; then
3491 ac_cv_prog_CC="$CC" # Let the user override the test.
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 test -z "$as_dir" && as_dir=.
3498 for ac_exec_ext in '' $ac_executable_extensions; do
3499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500 ac_cv_prog_CC="${ac_tool_prefix}cc"
3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 if test -n "$CC"; then
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513 $as_echo "$CC" >&6; }
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3522 if test -z "$CC"; then
3523 # Extract the first word of "cc", so it can be a program name with args.
3524 set dummy cc; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if ${ac_cv_prog_CC+:} false; then :
3528 $as_echo_n "(cached) " >&6
3530 if test -n "$CC"; then
3531 ac_cv_prog_CC="$CC" # Let the user override the test.
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 test -z "$as_dir" && as_dir=.
3539 for ac_exec_ext in '' $ac_executable_extensions; do
3540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3541 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3542 ac_prog_rejected=yes
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3553 if test $ac_prog_rejected = yes; then
3554 # We found a bogon in the path, so make sure we never use it.
3555 set dummy $ac_cv_prog_CC
3557 if test $@%:@ != 0; then
3558 # We chose a different compiler from the bogus one.
3559 # However, it has the same basename, so the bogon will be chosen
3560 # first if we set CC to just the basename; use the full file name.
3562 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3568 if test -n "$CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 $as_echo "$CC" >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3578 if test -z "$CC"; then
3579 if test -n "$ac_tool_prefix"; then
3580 for ac_prog in cl.exe
3582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if ${ac_cv_prog_CC+:} false; then :
3587 $as_echo_n "(cached) " >&6
3589 if test -n "$CC"; then
3590 ac_cv_prog_CC="$CC" # Let the user override the test.
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 if test -n "$CC"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3612 $as_echo "$CC" >&6; }
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3619 test -n "$CC" && break
3622 if test -z "$CC"; then
3624 for ac_prog in cl.exe
3626 # Extract the first word of "$ac_prog", so it can be a program name with args.
3627 set dummy $ac_prog; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$ac_ct_CC"; then
3634 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_ac_ct_CC="$ac_prog"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3654 if test -n "$ac_ct_CC"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3656 $as_echo "$ac_ct_CC" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3663 test -n "$ac_ct_CC" && break
3666 if test "x$ac_ct_CC" = x; then
3669 case $cross_compiling:$ac_tool_warned in
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3673 ac_tool_warned=yes ;;
3682 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3684 as_fn_error $? "no acceptable C compiler found in \$PATH
3685 See \`config.log' for more details" "$LINENO" 5; }
3687 # Provide some information about the compiler.
3688 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3691 for ac_option in --version -v -V -qversion; do
3692 { { ac_try="$ac_compiler $ac_option >&5"
3694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3698 $as_echo "$ac_try_echo"; } >&5
3699 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3701 if test -s conftest.err; then
3703 ... rest of stderr output deleted ...
3704 10q' conftest.err >conftest.er1
3705 cat conftest.er1 >&5
3707 rm -f conftest.er1 conftest.err
3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3723 ac_clean_files_save=$ac_clean_files
3724 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3725 # Try to create an executable without -o first, disregard a.out.
3726 # It will help us diagnose broken compilers, and finding out an intuition
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3729 $as_echo_n "checking whether the C compiler works... " >&6; }
3730 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3732 # The possible output files:
3733 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3736 for ac_file in $ac_files
3739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3745 if { { ac_try="$ac_link_default"
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_link_default") 2>&5
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }; then :
3756 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3757 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3758 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3759 # so that the user can short-circuit this test for compilers unknown to
3761 for ac_file in $ac_files ''
3763 test -f "$ac_file" || continue
3765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3768 # We found the default executable, but exeext='' is most
3772 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3774 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776 # We set ac_cv_exeext here because the later test for it is not
3777 # safe: cross compilers may not add the suffix if given an `-o'
3778 # argument, so we may need to know it at that point already.
3779 # Even if this section looks crufty: it has the advantage of
3786 test "$ac_cv_exeext" = no && ac_cv_exeext=
3791 if test -z "$ac_file"; then :
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3794 $as_echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error 77 "C compiler cannot create executables
3800 See \`config.log' for more details" "$LINENO" 5; }
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3803 $as_echo "yes" >&6; }
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3806 $as_echo_n "checking for C compiler default output file name... " >&6; }
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3808 $as_echo "$ac_file" >&6; }
3809 ac_exeext=$ac_cv_exeext
3811 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3812 ac_clean_files=$ac_clean_files_save
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3814 $as_echo_n "checking for suffix of executables... " >&6; }
3815 if { { ac_try="$ac_link"
3817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818 *) ac_try_echo=$ac_try;;
3820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821 $as_echo "$ac_try_echo"; } >&5
3822 (eval "$ac_link") 2>&5
3824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825 test $ac_status = 0; }; then :
3826 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3827 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3828 # work properly (i.e., refer to `conftest.exe'), while it won't with
3830 for ac_file in conftest.exe conftest conftest.*; do
3831 test -f "$ac_file" || continue
3833 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3834 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3842 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3843 See \`config.log' for more details" "$LINENO" 5; }
3845 rm -f conftest conftest$ac_cv_exeext
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3847 $as_echo "$ac_cv_exeext" >&6; }
3849 rm -f conftest.$ac_ext
3850 EXEEXT=$ac_cv_exeext
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854 @%:@include <stdio.h>
3858 FILE *f = fopen ("conftest.out", "w");
3859 return ferror (f) || fclose (f) != 0;
3865 ac_clean_files="$ac_clean_files conftest.out"
3866 # Check that the compiler produces executables we can run. If not, either
3867 # the compiler is broken, or we cross compile.
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3869 $as_echo_n "checking whether we are cross compiling... " >&6; }
3870 if test "$cross_compiling" != yes; then
3871 { { ac_try="$ac_link"
3873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3874 *) ac_try_echo=$ac_try;;
3876 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3877 $as_echo "$ac_try_echo"; } >&5
3878 (eval "$ac_link") 2>&5
3880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3881 test $ac_status = 0; }
3882 if { ac_try='./conftest$ac_cv_exeext'
3883 { { case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 $as_echo "$ac_try_echo"; } >&5
3889 (eval "$ac_try") 2>&5
3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892 test $ac_status = 0; }; }; then
3895 if test "$cross_compiling" = maybe; then
3898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3900 as_fn_error $? "cannot run C compiled programs.
3901 If you meant to cross compile, use \`--host'.
3902 See \`config.log' for more details" "$LINENO" 5; }
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3907 $as_echo "$cross_compiling" >&6; }
3909 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3910 ac_clean_files=$ac_clean_files_save
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3912 $as_echo_n "checking for suffix of object files... " >&6; }
3913 if ${ac_cv_objext+:} false; then :
3914 $as_echo_n "(cached) " >&6
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3927 rm -f conftest.o conftest.obj
3928 if { { ac_try="$ac_compile"
3930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931 *) ac_try_echo=$ac_try;;
3933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3934 $as_echo "$ac_try_echo"; } >&5
3935 (eval "$ac_compile") 2>&5
3937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3938 test $ac_status = 0; }; then :
3939 for ac_file in conftest.o conftest.obj conftest.*; do
3940 test -f "$ac_file" || continue;
3942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3943 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3948 $as_echo "$as_me: failed program was:" >&5
3949 sed 's/^/| /' conftest.$ac_ext >&5
3951 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3953 as_fn_error $? "cannot compute suffix of object files: cannot compile
3954 See \`config.log' for more details" "$LINENO" 5; }
3956 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3959 $as_echo "$ac_cv_objext" >&6; }
3960 OBJEXT=$ac_cv_objext
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3963 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3964 if ${ac_cv_c_compiler_gnu+:} false; then :
3965 $as_echo_n "(cached) " >&6
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3981 if ac_fn_c_try_compile "$LINENO"; then :
3986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3991 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3992 if test $ac_compiler_gnu = yes; then
3997 ac_test_CFLAGS=${CFLAGS+set}
3998 ac_save_CFLAGS=$CFLAGS
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4000 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4001 if ${ac_cv_prog_cc_g+:} false; then :
4002 $as_echo_n "(cached) " >&6
4004 ac_save_c_werror_flag=$ac_c_werror_flag
4005 ac_c_werror_flag=yes
4008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009 /* end confdefs.h. */
4019 if ac_fn_c_try_compile "$LINENO"; then :
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4034 if ac_fn_c_try_compile "$LINENO"; then :
4037 ac_c_werror_flag=$ac_save_c_werror_flag
4039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4040 /* end confdefs.h. */
4050 if ac_fn_c_try_compile "$LINENO"; then :
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4058 ac_c_werror_flag=$ac_save_c_werror_flag
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4061 $as_echo "$ac_cv_prog_cc_g" >&6; }
4062 if test "$ac_test_CFLAGS" = set; then
4063 CFLAGS=$ac_save_CFLAGS
4064 elif test $ac_cv_prog_cc_g = yes; then
4065 if test "$GCC" = yes; then
4071 if test "$GCC" = yes; then
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4078 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4079 if ${ac_cv_prog_cc_c89+:} false; then :
4080 $as_echo_n "(cached) " >&6
4082 ac_cv_prog_cc_c89=no
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4088 #include <sys/types.h>
4089 #include <sys/stat.h>
4090 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4091 struct buf { int x; };
4092 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4093 static char *e (p, i)
4099 static char *f (char * (*g) (char **, int), char **p, ...)
4104 s = g (p, va_arg (v,int));
4109 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4110 function prototypes and stuff, but not '\xHH' hex character constants.
4111 These don't provoke an error unfortunately, instead are silently treated
4112 as 'x'. The following induces an error, until -std is added to get
4113 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4114 array size at least. It's necessary to write '\x00'==0 to get something
4115 that's true only with -std. */
4116 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4118 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4119 inside strings and character constants. */
4121 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4123 int test (int i, double x);
4124 struct s1 {int (*f) (int a);};
4125 struct s2 {int (*f) (double a);};
4126 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4132 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4137 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4138 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4140 CC="$ac_save_CC $ac_arg"
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_prog_cc_c89=$ac_arg
4144 rm -f core conftest.err conftest.$ac_objext
4145 test "x$ac_cv_prog_cc_c89" != "xno" && break
4147 rm -f conftest.$ac_ext
4152 case "x$ac_cv_prog_cc_c89" in
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4155 $as_echo "none needed" >&6; } ;;
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4158 $as_echo "unsupported" >&6; } ;;
4160 CC="$CC $ac_cv_prog_cc_c89"
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4162 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4164 if test "x$ac_cv_prog_cc_c89" != xno; then :
4169 ac_cpp='$CPP $CPPFLAGS'
4170 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173 DEPDIR="${am__leading_dot}deps"
4175 ac_config_commands="$ac_config_commands depfiles"
4178 am_make=${MAKE-make}
4179 cat > confinc << 'END'
4181 @echo this is the am__doit target
4184 # If we don't find an include directive, just comment out the code.
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4186 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4190 # First try GNU make style include.
4191 echo "include confinc" > confmf
4192 # Ignore all kinds of additional output from `make'.
4193 case `$am_make -s -f confmf 2> /dev/null` in #(
4194 *the\ am__doit\ target*)
4200 # Now try BSD make style include.
4201 if test "$am__include" = "#"; then
4202 echo '.include "confinc"' > confmf
4203 case `$am_make -s -f confmf 2> /dev/null` in #(
4204 *the\ am__doit\ target*)
4205 am__include=.include
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4214 $as_echo "$_am_result" >&6; }
4215 rm -f confinc confmf
4217 @%:@ Check whether --enable-dependency-tracking was given.
4218 if test "${enable_dependency_tracking+set}" = set; then :
4219 enableval=$enable_dependency_tracking;
4222 if test "x$enable_dependency_tracking" != xno; then
4223 am_depcomp="$ac_aux_dir/depcomp"
4227 if test "x$enable_dependency_tracking" != xno; then
4237 depcc="$CC" am_compiler_list=
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4240 $as_echo_n "checking dependency style of $depcc... " >&6; }
4241 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4242 $as_echo_n "(cached) " >&6
4244 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4245 # We make a subdir and do the tests there. Otherwise we can end up
4246 # making bogus files that we don't know about and never remove. For
4247 # instance it was reported that on HP-UX the gcc test will end up
4248 # making a dummy file named `D' -- because `-MD' means `put the output
4252 # Copy depcomp to subdir because otherwise we won't find it if we're
4253 # using a relative directory.
4254 cp "$am_depcomp" conftest.dir
4256 # We will build objects and dependencies in a subdirectory because
4257 # it helps to detect inapplicable dependency modes. For instance
4258 # both Tru64's cc and ICC support -MD to output dependencies as a
4259 # side effect of compilation, but ICC will put the dependencies in
4260 # the current directory while Tru64 will put them in the object
4264 am_cv_CC_dependencies_compiler_type=none
4265 if test "$am_compiler_list" = ""; then
4266 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4269 case " $depcc " in #(
4270 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4273 for depmode in $am_compiler_list; do
4274 # Setup a source with many dependencies, because some compilers
4275 # like to wrap large dependency lists on column 80 (with \), and
4276 # we should not choose a depcomp mode which is confused by this.
4278 # We need to recreate these files for each test, as the compiler may
4279 # overwrite some of them when testing with obscure command lines.
4280 # This happens at least with the AIX C compiler.
4282 for i in 1 2 3 4 5 6; do
4283 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4284 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4285 # Solaris 8's {/usr,}/bin/sh.
4286 touch sub/conftst$i.h
4288 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4290 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4291 # mode. It turns out that the SunPro C++ compiler does not properly
4292 # handle `-M -o', and we need to detect this. Also, some Intel
4293 # versions had trouble with output in subdirs
4294 am__obj=sub/conftest.${OBJEXT-o}
4295 am__minus_obj="-o $am__obj"
4298 # This depmode causes a compiler race in universal mode.
4299 test "$am__universal" = false || continue
4302 # after this tag, mechanisms are not by side-effect, so they'll
4303 # only be used when explicitly requested
4304 if test "x$enable_dependency_tracking" = xyes; then
4310 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4311 # This compiler won't grok `-c -o', but also, the minuso test has
4312 # not run yet. These depmodes are late enough in the game, and
4313 # so weak that their functioning should not be impacted.
4314 am__obj=conftest.${OBJEXT-o}
4319 if depmode=$depmode \
4320 source=sub/conftest.c object=$am__obj \
4321 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4322 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4323 >/dev/null 2>conftest.err &&
4324 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4325 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4326 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4327 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4328 # icc doesn't choke on unknown options, it will just issue warnings
4329 # or remarks (even with -Werror). So we grep stderr for any message
4330 # that says an option was ignored or not supported.
4331 # When given -MP, icc 7.0 and 7.1 complain thusly:
4332 # icc: Command line warning: ignoring option '-M'; no argument required
4333 # The diagnosis changed in icc 8.0:
4334 # icc: Command line remark: option '-MP' not supported
4335 if (grep 'ignoring option' conftest.err ||
4336 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4337 am_cv_CC_dependencies_compiler_type=$depmode
4346 am_cv_CC_dependencies_compiler_type=none
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4351 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4352 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4355 test "x$enable_dependency_tracking" != xno \
4356 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4358 am__fastdepCC_FALSE='#'
4360 am__fastdepCC_TRUE='#'
4361 am__fastdepCC_FALSE=
4366 ac_cpp='$CXXCPP $CPPFLAGS'
4367 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4370 if test -z "$CXX"; then
4371 if test -n "$CCC"; then
4374 if test -n "$ac_tool_prefix"; then
4375 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4377 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_CXX+:} false; then :
4382 $as_echo_n "(cached) " >&6
4384 if test -n "$CXX"; then
4385 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 if test -n "$CXX"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4407 $as_echo "$CXX" >&6; }
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4414 test -n "$CXX" && break
4417 if test -z "$CXX"; then
4419 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4421 # Extract the first word of "$ac_prog", so it can be a program name with args.
4422 set dummy $ac_prog; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4426 $as_echo_n "(cached) " >&6
4428 if test -n "$ac_ct_CXX"; then
4429 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_prog_ac_ct_CXX="$ac_prog"
4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4449 if test -n "$ac_ct_CXX"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4451 $as_echo "$ac_ct_CXX" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4458 test -n "$ac_ct_CXX" && break
4461 if test "x$ac_ct_CXX" = x; then
4464 case $cross_compiling:$ac_tool_warned in
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4468 ac_tool_warned=yes ;;
4476 # Provide some information about the compiler.
4477 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4480 for ac_option in --version -v -V -qversion; do
4481 { { ac_try="$ac_compiler $ac_option >&5"
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
4486 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4487 $as_echo "$ac_try_echo"; } >&5
4488 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4490 if test -s conftest.err; then
4492 ... rest of stderr output deleted ...
4493 10q' conftest.err >conftest.er1
4494 cat conftest.er1 >&5
4496 rm -f conftest.er1 conftest.err
4497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4498 test $ac_status = 0; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4502 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4503 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4504 $as_echo_n "(cached) " >&6
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4520 if ac_fn_cxx_try_compile "$LINENO"; then :
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4530 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4531 if test $ac_compiler_gnu = yes; then
4536 ac_test_CXXFLAGS=${CXXFLAGS+set}
4537 ac_save_CXXFLAGS=$CXXFLAGS
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4539 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4540 if ${ac_cv_prog_cxx_g+:} false; then :
4541 $as_echo_n "(cached) " >&6
4543 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4544 ac_cxx_werror_flag=yes
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4558 if ac_fn_cxx_try_compile "$LINENO"; then :
4559 ac_cv_prog_cxx_g=yes
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4573 if ac_fn_cxx_try_compile "$LINENO"; then :
4576 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4589 if ac_fn_cxx_try_compile "$LINENO"; then :
4590 ac_cv_prog_cxx_g=yes
4592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4600 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4601 if test "$ac_test_CXXFLAGS" = set; then
4602 CXXFLAGS=$ac_save_CXXFLAGS
4603 elif test $ac_cv_prog_cxx_g = yes; then
4604 if test "$GXX" = yes; then
4610 if test "$GXX" = yes; then
4617 ac_cpp='$CPP $CPPFLAGS'
4618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4622 depcc="$CXX" am_compiler_list=
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4625 $as_echo_n "checking dependency style of $depcc... " >&6; }
4626 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4627 $as_echo_n "(cached) " >&6
4629 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4630 # We make a subdir and do the tests there. Otherwise we can end up
4631 # making bogus files that we don't know about and never remove. For
4632 # instance it was reported that on HP-UX the gcc test will end up
4633 # making a dummy file named `D' -- because `-MD' means `put the output
4637 # Copy depcomp to subdir because otherwise we won't find it if we're
4638 # using a relative directory.
4639 cp "$am_depcomp" conftest.dir
4641 # We will build objects and dependencies in a subdirectory because
4642 # it helps to detect inapplicable dependency modes. For instance
4643 # both Tru64's cc and ICC support -MD to output dependencies as a
4644 # side effect of compilation, but ICC will put the dependencies in
4645 # the current directory while Tru64 will put them in the object
4649 am_cv_CXX_dependencies_compiler_type=none
4650 if test "$am_compiler_list" = ""; then
4651 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4654 case " $depcc " in #(
4655 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4658 for depmode in $am_compiler_list; do
4659 # Setup a source with many dependencies, because some compilers
4660 # like to wrap large dependency lists on column 80 (with \), and
4661 # we should not choose a depcomp mode which is confused by this.
4663 # We need to recreate these files for each test, as the compiler may
4664 # overwrite some of them when testing with obscure command lines.
4665 # This happens at least with the AIX C compiler.
4667 for i in 1 2 3 4 5 6; do
4668 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4669 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4670 # Solaris 8's {/usr,}/bin/sh.
4671 touch sub/conftst$i.h
4673 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4675 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4676 # mode. It turns out that the SunPro C++ compiler does not properly
4677 # handle `-M -o', and we need to detect this. Also, some Intel
4678 # versions had trouble with output in subdirs
4679 am__obj=sub/conftest.${OBJEXT-o}
4680 am__minus_obj="-o $am__obj"
4683 # This depmode causes a compiler race in universal mode.
4684 test "$am__universal" = false || continue
4687 # after this tag, mechanisms are not by side-effect, so they'll
4688 # only be used when explicitly requested
4689 if test "x$enable_dependency_tracking" = xyes; then
4695 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4696 # This compiler won't grok `-c -o', but also, the minuso test has
4697 # not run yet. These depmodes are late enough in the game, and
4698 # so weak that their functioning should not be impacted.
4699 am__obj=conftest.${OBJEXT-o}
4704 if depmode=$depmode \
4705 source=sub/conftest.c object=$am__obj \
4706 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4707 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4708 >/dev/null 2>conftest.err &&
4709 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4710 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4711 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4712 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4713 # icc doesn't choke on unknown options, it will just issue warnings
4714 # or remarks (even with -Werror). So we grep stderr for any message
4715 # that says an option was ignored or not supported.
4716 # When given -MP, icc 7.0 and 7.1 complain thusly:
4717 # icc: Command line warning: ignoring option '-M'; no argument required
4718 # The diagnosis changed in icc 8.0:
4719 # icc: Command line remark: option '-MP' not supported
4720 if (grep 'ignoring option' conftest.err ||
4721 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4722 am_cv_CXX_dependencies_compiler_type=$depmode
4731 am_cv_CXX_dependencies_compiler_type=none
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4736 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4737 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4740 test "x$enable_dependency_tracking" != xno \
4741 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4742 am__fastdepCXX_TRUE=
4743 am__fastdepCXX_FALSE='#'
4745 am__fastdepCXX_TRUE='#'
4746 am__fastdepCXX_FALSE=
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4752 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4754 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4755 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4756 $as_echo_n "(cached) " >&6
4758 cat >conftest.make <<\_ACEOF
4761 @echo '@@@%%%=$(MAKE)=@@@%%%'
4763 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4764 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4766 eval ac_cv_prog_make_${ac_make}_set=yes;;
4768 eval ac_cv_prog_make_${ac_make}_set=no;;
4772 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4774 $as_echo "yes" >&6; }
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4779 SET_MAKE="MAKE=${MAKE-make}"
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4785 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4790 macro_version='2.4.2'
4791 macro_revision='1.3337'
4805 ltmain="$ac_aux_dir/ltmain.sh"
4807 # Backslashify metacharacters that are still active within
4808 # double-quoted strings.
4809 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4811 # Same as above, but do not quote variable references.
4812 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4814 # Sed substitution to delay expansion of an escaped shell variable in a
4815 # double_quote_subst'ed string.
4816 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4818 # Sed substitution to delay expansion of an escaped single quote.
4819 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4821 # Sed substitution to avoid accidental globbing in evaled expressions
4822 no_glob_subst='s/\*/\\\*/g'
4824 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4825 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4826 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4829 $as_echo_n "checking how to print strings... " >&6; }
4830 # Test print first, because it will be a builtin if present.
4831 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4832 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4834 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4837 # Use this function as a fallback that always works.
4838 func_fallback_echo ()
4840 eval 'cat <<_LTECHO_EOF
4844 ECHO='func_fallback_echo'
4847 # func_echo_all arg...
4848 # Invoke $ECHO with all args, space-separated.
4855 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4856 $as_echo "printf" >&6; } ;;
4857 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4858 $as_echo "print -r" >&6; } ;;
4859 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4860 $as_echo "cat" >&6; } ;;
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4877 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4878 if ${ac_cv_path_SED+:} false; then :
4879 $as_echo_n "(cached) " >&6
4881 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4882 for ac_i in 1 2 3 4 5 6 7; do
4883 ac_script="$ac_script$as_nl$ac_script"
4885 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4886 { ac_script=; unset ac_script;}
4887 if test -z "$SED"; then
4888 ac_path_SED_found=false
4889 # Loop through the user's path and test for each of PROGNAME-LIST
4890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 test -z "$as_dir" && as_dir=.
4895 for ac_prog in sed gsed; do
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4898 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4899 # Check for GNU ac_path_SED and select it if it is found.
4900 # Check for GNU $ac_path_SED
4901 case `"$ac_path_SED" --version 2>&1` in
4903 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4906 $as_echo_n 0123456789 >"conftest.in"
4909 cat "conftest.in" "conftest.in" >"conftest.tmp"
4910 mv "conftest.tmp" "conftest.in"
4911 cp "conftest.in" "conftest.nl"
4912 $as_echo '' >> "conftest.nl"
4913 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4915 as_fn_arith $ac_count + 1 && ac_count=$as_val
4916 if test $ac_count -gt ${ac_path_SED_max-0}; then
4917 # Best one so far, save it but keep looking for a better one
4918 ac_cv_path_SED="$ac_path_SED"
4919 ac_path_SED_max=$ac_count
4921 # 10*(2^10) chars as input seems more than enough
4922 test $ac_count -gt 10 && break
4924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4927 $ac_path_SED_found && break 3
4932 if test -z "$ac_cv_path_SED"; then
4933 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4941 $as_echo "$ac_cv_path_SED" >&6; }
4942 SED="$ac_cv_path_SED"
4945 test -z "$SED" && SED=sed
4946 Xsed="$SED -e 1s/^X//"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4959 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4960 if ${ac_cv_path_GREP+:} false; then :
4961 $as_echo_n "(cached) " >&6
4963 if test -z "$GREP"; then
4964 ac_path_GREP_found=false
4965 # Loop through the user's path and test for each of PROGNAME-LIST
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4970 test -z "$as_dir" && as_dir=.
4971 for ac_prog in grep ggrep; do
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4974 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4975 # Check for GNU ac_path_GREP and select it if it is found.
4976 # Check for GNU $ac_path_GREP
4977 case `"$ac_path_GREP" --version 2>&1` in
4979 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4982 $as_echo_n 0123456789 >"conftest.in"
4985 cat "conftest.in" "conftest.in" >"conftest.tmp"
4986 mv "conftest.tmp" "conftest.in"
4987 cp "conftest.in" "conftest.nl"
4988 $as_echo 'GREP' >> "conftest.nl"
4989 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4991 as_fn_arith $ac_count + 1 && ac_count=$as_val
4992 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4993 # Best one so far, save it but keep looking for a better one
4994 ac_cv_path_GREP="$ac_path_GREP"
4995 ac_path_GREP_max=$ac_count
4997 # 10*(2^10) chars as input seems more than enough
4998 test $ac_count -gt 10 && break
5000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5003 $ac_path_GREP_found && break 3
5008 if test -z "$ac_cv_path_GREP"; then
5009 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5012 ac_cv_path_GREP=$GREP
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5017 $as_echo "$ac_cv_path_GREP" >&6; }
5018 GREP="$ac_cv_path_GREP"
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5022 $as_echo_n "checking for egrep... " >&6; }
5023 if ${ac_cv_path_EGREP+:} false; then :
5024 $as_echo_n "(cached) " >&6
5026 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5027 then ac_cv_path_EGREP="$GREP -E"
5029 if test -z "$EGREP"; then
5030 ac_path_EGREP_found=false
5031 # Loop through the user's path and test for each of PROGNAME-LIST
5032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5033 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5036 test -z "$as_dir" && as_dir=.
5037 for ac_prog in egrep; do
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5040 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5041 # Check for GNU ac_path_EGREP and select it if it is found.
5042 # Check for GNU $ac_path_EGREP
5043 case `"$ac_path_EGREP" --version 2>&1` in
5045 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5048 $as_echo_n 0123456789 >"conftest.in"
5051 cat "conftest.in" "conftest.in" >"conftest.tmp"
5052 mv "conftest.tmp" "conftest.in"
5053 cp "conftest.in" "conftest.nl"
5054 $as_echo 'EGREP' >> "conftest.nl"
5055 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5056 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5057 as_fn_arith $ac_count + 1 && ac_count=$as_val
5058 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5059 # Best one so far, save it but keep looking for a better one
5060 ac_cv_path_EGREP="$ac_path_EGREP"
5061 ac_path_EGREP_max=$ac_count
5063 # 10*(2^10) chars as input seems more than enough
5064 test $ac_count -gt 10 && break
5066 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5069 $ac_path_EGREP_found && break 3
5074 if test -z "$ac_cv_path_EGREP"; then
5075 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5078 ac_cv_path_EGREP=$EGREP
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5084 $as_echo "$ac_cv_path_EGREP" >&6; }
5085 EGREP="$ac_cv_path_EGREP"
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5089 $as_echo_n "checking for fgrep... " >&6; }
5090 if ${ac_cv_path_FGREP+:} false; then :
5091 $as_echo_n "(cached) " >&6
5093 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5094 then ac_cv_path_FGREP="$GREP -F"
5096 if test -z "$FGREP"; then
5097 ac_path_FGREP_found=false
5098 # Loop through the user's path and test for each of PROGNAME-LIST
5099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5100 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5103 test -z "$as_dir" && as_dir=.
5104 for ac_prog in fgrep; do
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5107 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5108 # Check for GNU ac_path_FGREP and select it if it is found.
5109 # Check for GNU $ac_path_FGREP
5110 case `"$ac_path_FGREP" --version 2>&1` in
5112 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5115 $as_echo_n 0123456789 >"conftest.in"
5118 cat "conftest.in" "conftest.in" >"conftest.tmp"
5119 mv "conftest.tmp" "conftest.in"
5120 cp "conftest.in" "conftest.nl"
5121 $as_echo 'FGREP' >> "conftest.nl"
5122 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5123 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5124 as_fn_arith $ac_count + 1 && ac_count=$as_val
5125 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5126 # Best one so far, save it but keep looking for a better one
5127 ac_cv_path_FGREP="$ac_path_FGREP"
5128 ac_path_FGREP_max=$ac_count
5130 # 10*(2^10) chars as input seems more than enough
5131 test $ac_count -gt 10 && break
5133 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5136 $ac_path_FGREP_found && break 3
5141 if test -z "$ac_cv_path_FGREP"; then
5142 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5145 ac_cv_path_FGREP=$FGREP
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5151 $as_echo "$ac_cv_path_FGREP" >&6; }
5152 FGREP="$ac_cv_path_FGREP"
5155 test -z "$GREP" && GREP=grep
5175 @%:@ Check whether --with-gnu-ld was given.
5176 if test "${with_gnu_ld+set}" = set; then :
5177 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5183 if test "$GCC" = yes; then
5184 # Check if gcc -print-prog-name=ld gives a path.
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5186 $as_echo_n "checking for ld used by $CC... " >&6; }
5189 # gcc leaves a trailing carriage return which upsets mingw
5190 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5192 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5195 # Accept absolute paths.
5197 re_direlt='/[^/][^/]*/\.\./'
5198 # Canonicalize the pathname of ld
5199 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5200 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5201 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5203 test -z "$LD" && LD="$ac_prog"
5206 # If it fails, then pretend we aren't using GCC.
5210 # If it is relative, then search for the first ld in PATH.
5214 elif test "$with_gnu_ld" = yes; then
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5216 $as_echo_n "checking for GNU ld... " >&6; }
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5219 $as_echo_n "checking for non-GNU ld... " >&6; }
5221 if ${lt_cv_path_LD+:} false; then :
5222 $as_echo_n "(cached) " >&6
5224 if test -z "$LD"; then
5225 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5226 for ac_dir in $PATH; do
5228 test -z "$ac_dir" && ac_dir=.
5229 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5230 lt_cv_path_LD="$ac_dir/$ac_prog"
5231 # Check to see if the program is GNU ld. I'd rather use --version,
5232 # but apparently some variants of GNU ld only accept -v.
5233 # Break only if it was the GNU/non-GNU ld that we prefer.
5234 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5235 *GNU* | *'with BFD'*)
5236 test "$with_gnu_ld" != no && break
5239 test "$with_gnu_ld" != yes && break
5246 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5251 if test -n "$LD"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5253 $as_echo "$LD" >&6; }
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5258 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5260 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5261 if ${lt_cv_prog_gnu_ld+:} false; then :
5262 $as_echo_n "(cached) " >&6
5264 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5265 case `$LD -v 2>&1 </dev/null` in
5266 *GNU* | *'with BFD'*)
5267 lt_cv_prog_gnu_ld=yes
5270 lt_cv_prog_gnu_ld=no
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5275 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5276 with_gnu_ld=$lt_cv_prog_gnu_ld
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5287 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5288 if ${lt_cv_path_NM+:} false; then :
5289 $as_echo_n "(cached) " >&6
5291 if test -n "$NM"; then
5292 # Let the user override the test.
5295 lt_nm_to_check="${ac_tool_prefix}nm"
5296 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5297 lt_nm_to_check="$lt_nm_to_check nm"
5299 for lt_tmp_nm in $lt_nm_to_check; do
5300 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5301 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5303 test -z "$ac_dir" && ac_dir=.
5304 tmp_nm="$ac_dir/$lt_tmp_nm"
5305 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5306 # Check to see if the nm accepts a BSD-compat flag.
5307 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5308 # nm: unknown option "B" ignored
5309 # Tru64's nm complains that /dev/null is an invalid object file
5310 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5311 */dev/null* | *'Invalid file or object type'*)
5312 lt_cv_path_NM="$tmp_nm -B"
5316 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5318 lt_cv_path_NM="$tmp_nm -p"
5322 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5323 continue # so that we can try to find one that supports BSD flags
5332 : ${lt_cv_path_NM=no}
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5336 $as_echo "$lt_cv_path_NM" >&6; }
5337 if test "$lt_cv_path_NM" != "no"; then
5340 # Didn't find any BSD compatible name lister, look for dumpbin.
5341 if test -n "$DUMPBIN"; then :
5342 # Let the user override the test.
5344 if test -n "$ac_tool_prefix"; then
5345 for ac_prog in dumpbin "link -dump"
5347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5348 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5350 $as_echo_n "checking for $ac_word... " >&6; }
5351 if ${ac_cv_prog_DUMPBIN+:} false; then :
5352 $as_echo_n "(cached) " >&6
5354 if test -n "$DUMPBIN"; then
5355 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 test -z "$as_dir" && as_dir=.
5362 for ac_exec_ext in '' $ac_executable_extensions; do
5363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5364 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 DUMPBIN=$ac_cv_prog_DUMPBIN
5375 if test -n "$DUMPBIN"; then
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5377 $as_echo "$DUMPBIN" >&6; }
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5380 $as_echo "no" >&6; }
5384 test -n "$DUMPBIN" && break
5387 if test -z "$DUMPBIN"; then
5388 ac_ct_DUMPBIN=$DUMPBIN
5389 for ac_prog in dumpbin "link -dump"
5391 # Extract the first word of "$ac_prog", so it can be a program name with args.
5392 set dummy $ac_prog; ac_word=$2
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5394 $as_echo_n "checking for $ac_word... " >&6; }
5395 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5396 $as_echo_n "(cached) " >&6
5398 if test -n "$ac_ct_DUMPBIN"; then
5399 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405 test -z "$as_dir" && as_dir=.
5406 for ac_exec_ext in '' $ac_executable_extensions; do
5407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5408 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5419 if test -n "$ac_ct_DUMPBIN"; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5421 $as_echo "$ac_ct_DUMPBIN" >&6; }
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5424 $as_echo "no" >&6; }
5428 test -n "$ac_ct_DUMPBIN" && break
5431 if test "x$ac_ct_DUMPBIN" = x; then
5434 case $cross_compiling:$ac_tool_warned in
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5440 DUMPBIN=$ac_ct_DUMPBIN
5444 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5446 DUMPBIN="$DUMPBIN -symbols"
5454 if test "$DUMPBIN" != ":"; then
5458 test -z "$NM" && NM=nm
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5466 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5467 if ${lt_cv_nm_interface+:} false; then :
5468 $as_echo_n "(cached) " >&6
5470 lt_cv_nm_interface="BSD nm"
5471 echo "int some_variable = 0;" > conftest.$ac_ext
5472 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5473 (eval "$ac_compile" 2>conftest.err)
5474 cat conftest.err >&5
5475 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5476 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5477 cat conftest.err >&5
5478 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5479 cat conftest.out >&5
5480 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5481 lt_cv_nm_interface="MS dumpbin"
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5486 $as_echo "$lt_cv_nm_interface" >&6; }
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5489 $as_echo_n "checking whether ln -s works... " >&6; }
5491 if test "$LN_S" = "ln -s"; then
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5493 $as_echo "yes" >&6; }
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5496 $as_echo "no, using $LN_S" >&6; }
5499 # find the maximum length of command line arguments
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5501 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5502 if ${lt_cv_sys_max_cmd_len+:} false; then :
5503 $as_echo_n "(cached) " >&6
5510 # On DJGPP, this test can blow up pretty badly due to problems in libc
5511 # (any single argument exceeding 2000 bytes causes a buffer overrun
5512 # during glob expansion). Even if it were fixed, the result of this
5513 # check would be larger than it should be.
5514 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5518 # Under GNU Hurd, this test is not required because there is
5519 # no limit to the length of command line arguments.
5520 # Libtool will interpret -1 as no limit whatsoever
5521 lt_cv_sys_max_cmd_len=-1;
5524 cygwin* | mingw* | cegcc*)
5525 # On Win9x/ME, this test blows up -- it succeeds, but takes
5526 # about 5 minutes as the teststring grows exponentially.
5527 # Worse, since 9x/ME are not pre-emptively multitasking,
5528 # you end up with a "frozen" computer, even though with patience
5529 # the test eventually succeeds (with a max line length of 256k).
5530 # Instead, let's just punt: use the minimum linelength reported by
5531 # all of the supported platforms: 8192 (on NT/2K/XP).
5532 lt_cv_sys_max_cmd_len=8192;
5536 # On MiNT this can take a long time and run out of memory.
5537 lt_cv_sys_max_cmd_len=8192;
5541 # On AmigaOS with pdksh, this test takes hours, literally.
5542 # So we just punt and use a minimum line length of 8192.
5543 lt_cv_sys_max_cmd_len=8192;
5546 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5547 # This has been around since 386BSD, at least. Likely further.
5548 if test -x /sbin/sysctl; then
5549 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5550 elif test -x /usr/sbin/sysctl; then
5551 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5553 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5555 # And add a safety zone
5556 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5561 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5562 lt_cv_sys_max_cmd_len=196608
5566 # The test takes a long time on OS/2.
5567 lt_cv_sys_max_cmd_len=8192
5571 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5572 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5573 # nice to cause kernel panics so lets avoid the loop below.
5574 # First set a reasonable default.
5575 lt_cv_sys_max_cmd_len=16384
5577 if test -x /sbin/sysconfig; then
5578 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5579 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5584 lt_cv_sys_max_cmd_len=102400
5586 sysv5* | sco5v6* | sysv4.2uw2*)
5587 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5588 if test -n "$kargmax"; then
5589 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5591 lt_cv_sys_max_cmd_len=32768
5595 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5596 if test -n "$lt_cv_sys_max_cmd_len"; then
5597 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5598 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5600 # Make teststring a little bigger before we do anything with it.
5601 # a 1K string should be a reasonable start.
5602 for i in 1 2 3 4 5 6 7 8 ; do
5603 teststring=$teststring$teststring
5605 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5606 # If test is not a shell built-in, we'll probably end up computing a
5607 # maximum length that is only half of the actual maximum length, but
5609 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5610 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5611 test $i != 17 # 1/2 MB should be enough
5614 teststring=$teststring$teststring
5616 # Only check the string length outside the loop.
5617 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5619 # Add a significant safety factor because C++ compilers can tack on
5620 # massive amounts of additional arguments before passing them to the
5621 # linker. It appears as though 1/2 is a usable value.
5622 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5629 if test -n $lt_cv_sys_max_cmd_len ; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5631 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5634 $as_echo "none" >&6; }
5636 max_cmd_len=$lt_cv_sys_max_cmd_len
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5648 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5649 # Try some XSI features
5652 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5654 && eval 'test $(( 1 + 1 )) -eq 2 \
5655 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5658 $as_echo "$xsi_shell" >&6; }
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5662 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5664 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5666 && lt_shell_append=yes
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5668 $as_echo "$lt_shell_append" >&6; }
5671 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5681 # test EBCDIC or ASCII
5682 case `echo X|tr X '\101'` in
5683 A) # ASCII based system
5684 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5685 lt_SP2NL='tr \040 \012'
5686 lt_NL2SP='tr \015\012 \040\040'
5688 *) # EBCDIC based system
5689 lt_SP2NL='tr \100 \n'
5690 lt_NL2SP='tr \r\n \100\100'
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5703 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5704 if ${lt_cv_to_host_file_cmd+:} false; then :
5705 $as_echo_n "(cached) " >&6
5710 *-*-mingw* ) # actually msys
5711 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5714 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5716 * ) # otherwise, assume *nix
5717 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5723 *-*-mingw* ) # actually msys
5724 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5727 lt_cv_to_host_file_cmd=func_convert_file_noop
5729 * ) # otherwise, assume *nix
5730 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5734 * ) # unhandled hosts (and "normal" native builds)
5735 lt_cv_to_host_file_cmd=func_convert_file_noop
5741 to_host_file_cmd=$lt_cv_to_host_file_cmd
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5743 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5750 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5751 if ${lt_cv_to_tool_file_cmd+:} false; then :
5752 $as_echo_n "(cached) " >&6
5754 #assume ordinary cross tools, or native build.
5755 lt_cv_to_tool_file_cmd=func_convert_file_noop
5759 *-*-mingw* ) # actually msys
5760 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5768 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5770 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5777 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5778 if ${lt_cv_ld_reload_flag+:} false; then :
5779 $as_echo_n "(cached) " >&6
5781 lt_cv_ld_reload_flag='-r'
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5784 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5785 reload_flag=$lt_cv_ld_reload_flag
5786 case $reload_flag in
5788 *) reload_flag=" $reload_flag" ;;
5790 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5792 cygwin* | mingw* | pw32* | cegcc*)
5793 if test "$GCC" != yes; then
5798 if test "$GCC" = yes; then
5799 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5801 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5814 if test -n "$ac_tool_prefix"; then
5815 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5816 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_OBJDUMP+:} false; then :
5820 $as_echo_n "(cached) " >&6
5822 if test -n "$OBJDUMP"; then
5823 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5842 OBJDUMP=$ac_cv_prog_OBJDUMP
5843 if test -n "$OBJDUMP"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5845 $as_echo "$OBJDUMP" >&6; }
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5853 if test -z "$ac_cv_prog_OBJDUMP"; then
5854 ac_ct_OBJDUMP=$OBJDUMP
5855 # Extract the first word of "objdump", so it can be a program name with args.
5856 set dummy objdump; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5860 $as_echo_n "(cached) " >&6
5862 if test -n "$ac_ct_OBJDUMP"; then
5863 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5882 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5883 if test -n "$ac_ct_OBJDUMP"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5885 $as_echo "$ac_ct_OBJDUMP" >&6; }
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5891 if test "x$ac_ct_OBJDUMP" = x; then
5894 case $cross_compiling:$ac_tool_warned in
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5900 OBJDUMP=$ac_ct_OBJDUMP
5903 OBJDUMP="$ac_cv_prog_OBJDUMP"
5906 test -z "$OBJDUMP" && OBJDUMP=objdump
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5917 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5918 if ${lt_cv_deplibs_check_method+:} false; then :
5919 $as_echo_n "(cached) " >&6
5921 lt_cv_file_magic_cmd='$MAGIC_CMD'
5922 lt_cv_file_magic_test_file=
5923 lt_cv_deplibs_check_method='unknown'
5924 # Need to set the preceding variable on all platforms that support
5925 # interlibrary dependencies.
5926 # 'none' -- dependencies not supported.
5927 # `unknown' -- same as none, but documents that we really don't know.
5928 # 'pass_all' -- all dependencies passed with no checks.
5929 # 'test_compile' -- check by making test program.
5930 # 'file_magic [[regex]]' -- check by looking for files in library path
5931 # which responds to the $file_magic_cmd with a given extended regex.
5932 # If you have `file' or equivalent on your system and you're not sure
5933 # whether `pass_all' will *always* work, you probably want this one.
5937 lt_cv_deplibs_check_method=pass_all
5941 lt_cv_deplibs_check_method=pass_all
5945 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5946 lt_cv_file_magic_cmd='/usr/bin/file -L'
5947 lt_cv_file_magic_test_file=/shlib/libc.so
5951 # func_win32_libid is a shell function defined in ltmain.sh
5952 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5953 lt_cv_file_magic_cmd='func_win32_libid'
5957 # Base MSYS/MinGW do not provide the 'file' command needed by
5958 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5959 # unless we find 'file', for example because we are cross-compiling.
5960 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5961 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5962 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5963 lt_cv_file_magic_cmd='func_win32_libid'
5965 # Keep this pattern in sync with the one in func_win32_libid.
5966 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5967 lt_cv_file_magic_cmd='$OBJDUMP -f'
5972 # use the weaker test based on 'objdump'. See mingw*.
5973 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5974 lt_cv_file_magic_cmd='$OBJDUMP -f'
5977 darwin* | rhapsody*)
5978 lt_cv_deplibs_check_method=pass_all
5981 freebsd* | dragonfly*)
5982 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5985 # Not sure whether the presence of OpenBSD here was a mistake.
5986 # Let's accept both of them until this is cleared up.
5987 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5988 lt_cv_file_magic_cmd=/usr/bin/file
5989 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5993 lt_cv_deplibs_check_method=pass_all
5998 lt_cv_deplibs_check_method=pass_all
6002 lt_cv_deplibs_check_method=pass_all
6005 hpux10.20* | hpux11*)
6006 lt_cv_file_magic_cmd=/usr/bin/file
6009 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6010 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6013 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]'
6014 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6017 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6018 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6024 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6025 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6028 irix5* | irix6* | nonstopux*)
6030 *-32|*"-32 ") libmagic=32-bit;;
6031 *-n32|*"-n32 ") libmagic=N32;;
6032 *-64|*"-64 ") libmagic=64-bit;;
6033 *) libmagic=never-match;;
6035 lt_cv_deplibs_check_method=pass_all
6038 # This must be glibc/ELF.
6039 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6040 lt_cv_deplibs_check_method=pass_all
6043 netbsd* | netbsdelf*-gnu)
6044 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6045 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6047 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6052 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6053 lt_cv_file_magic_cmd=/usr/bin/file
6054 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6058 lt_cv_deplibs_check_method=pass_all
6062 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6069 osf3* | osf4* | osf5*)
6070 lt_cv_deplibs_check_method=pass_all
6074 lt_cv_deplibs_check_method=pass_all
6078 lt_cv_deplibs_check_method=pass_all
6081 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6082 lt_cv_deplibs_check_method=pass_all
6086 case $host_vendor in
6088 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]'
6089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6092 lt_cv_deplibs_check_method=pass_all
6095 lt_cv_file_magic_cmd='/bin/file'
6096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6099 lt_cv_file_magic_cmd='/bin/file'
6100 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6101 lt_cv_file_magic_test_file=/lib/libc.so
6104 lt_cv_deplibs_check_method=pass_all
6107 lt_cv_deplibs_check_method=pass_all
6113 lt_cv_deplibs_check_method=pass_all
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6119 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6123 if test "$build" = "$host"; then
6126 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6129 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6135 file_magic_cmd=$lt_cv_file_magic_cmd
6136 deplibs_check_method=$lt_cv_deplibs_check_method
6137 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6160 if test -n "$ac_tool_prefix"; then
6161 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6162 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6164 $as_echo_n "checking for $ac_word... " >&6; }
6165 if ${ac_cv_prog_DLLTOOL+:} false; then :
6166 $as_echo_n "(cached) " >&6
6168 if test -n "$DLLTOOL"; then
6169 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 test -z "$as_dir" && as_dir=.
6176 for ac_exec_ext in '' $ac_executable_extensions; do
6177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6178 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 DLLTOOL=$ac_cv_prog_DLLTOOL
6189 if test -n "$DLLTOOL"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6191 $as_echo "$DLLTOOL" >&6; }
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6199 if test -z "$ac_cv_prog_DLLTOOL"; then
6200 ac_ct_DLLTOOL=$DLLTOOL
6201 # Extract the first word of "dlltool", so it can be a program name with args.
6202 set dummy dlltool; ac_word=$2
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6204 $as_echo_n "checking for $ac_word... " >&6; }
6205 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6206 $as_echo_n "(cached) " >&6
6208 if test -n "$ac_ct_DLLTOOL"; then
6209 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6215 test -z "$as_dir" && as_dir=.
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6218 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6229 if test -n "$ac_ct_DLLTOOL"; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6231 $as_echo "$ac_ct_DLLTOOL" >&6; }
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6237 if test "x$ac_ct_DLLTOOL" = x; then
6240 case $cross_compiling:$ac_tool_warned in
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6244 ac_tool_warned=yes ;;
6246 DLLTOOL=$ac_ct_DLLTOOL
6249 DLLTOOL="$ac_cv_prog_DLLTOOL"
6252 test -z "$DLLTOOL" && DLLTOOL=dlltool
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6264 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6265 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6266 $as_echo_n "(cached) " >&6
6268 lt_cv_sharedlib_from_linklib_cmd='unknown'
6271 cygwin* | mingw* | pw32* | cegcc*)
6272 # two different shell functions defined in ltmain.sh
6273 # decide which to use based on capabilities of $DLLTOOL
6274 case `$DLLTOOL --help 2>&1` in
6275 *--identify-strict*)
6276 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6279 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6284 # fallback: assume linklib IS sharedlib
6285 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6291 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6292 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6293 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6302 if test -n "$ac_tool_prefix"; then
6305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6308 $as_echo_n "checking for $ac_word... " >&6; }
6309 if ${ac_cv_prog_AR+:} false; then :
6310 $as_echo_n "(cached) " >&6
6312 if test -n "$AR"; then
6313 ac_cv_prog_AR="$AR" # Let the user override the test.
6315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6319 test -z "$as_dir" && as_dir=.
6320 for ac_exec_ext in '' $ac_executable_extensions; do
6321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6322 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 if test -n "$AR"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6335 $as_echo "$AR" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6342 test -n "$AR" && break
6345 if test -z "$AR"; then
6349 # Extract the first word of "$ac_prog", so it can be a program name with args.
6350 set dummy $ac_prog; ac_word=$2
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6352 $as_echo_n "checking for $ac_word... " >&6; }
6353 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6354 $as_echo_n "(cached) " >&6
6356 if test -n "$ac_ct_AR"; then
6357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 test -z "$as_dir" && as_dir=.
6364 for ac_exec_ext in '' $ac_executable_extensions; do
6365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366 ac_cv_prog_ac_ct_AR="$ac_prog"
6367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6377 if test -n "$ac_ct_AR"; then
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6379 $as_echo "$ac_ct_AR" >&6; }
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6382 $as_echo "no" >&6; }
6386 test -n "$ac_ct_AR" && break
6389 if test "x$ac_ct_AR" = x; then
6392 case $cross_compiling:$ac_tool_warned in
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6396 ac_tool_warned=yes ;;
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6416 $as_echo_n "checking for archiver @FILE support... " >&6; }
6417 if ${lt_cv_ar_at_file+:} false; then :
6418 $as_echo_n "(cached) " >&6
6421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6422 /* end confdefs.h. */
6432 if ac_fn_c_try_compile "$LINENO"; then :
6433 echo conftest.$ac_objext > conftest.lst
6434 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6436 (eval $lt_ar_try) 2>&5
6438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6439 test $ac_status = 0; }
6440 if test "$ac_status" -eq 0; then
6441 # Ensure the archiver fails upon bogus file names.
6442 rm -f conftest.$ac_objext libconftest.a
6443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6444 (eval $lt_ar_try) 2>&5
6446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6447 test $ac_status = 0; }
6448 if test "$ac_status" -ne 0; then
6452 rm -f conftest.* libconftest.a
6455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6459 $as_echo "$lt_cv_ar_at_file" >&6; }
6461 if test "x$lt_cv_ar_at_file" = xno; then
6464 archiver_list_spec=$lt_cv_ar_at_file
6473 if test -n "$ac_tool_prefix"; then
6474 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6475 set dummy ${ac_tool_prefix}strip; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_STRIP+:} false; then :
6479 $as_echo_n "(cached) " >&6
6481 if test -n "$STRIP"; then
6482 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6488 test -z "$as_dir" && as_dir=.
6489 for ac_exec_ext in '' $ac_executable_extensions; do
6490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501 STRIP=$ac_cv_prog_STRIP
6502 if test -n "$STRIP"; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6504 $as_echo "$STRIP" >&6; }
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6512 if test -z "$ac_cv_prog_STRIP"; then
6514 # Extract the first word of "strip", so it can be a program name with args.
6515 set dummy strip; ac_word=$2
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6517 $as_echo_n "checking for $ac_word... " >&6; }
6518 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6519 $as_echo_n "(cached) " >&6
6521 if test -n "$ac_ct_STRIP"; then
6522 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 test -z "$as_dir" && as_dir=.
6529 for ac_exec_ext in '' $ac_executable_extensions; do
6530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6531 ac_cv_prog_ac_ct_STRIP="strip"
6532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6542 if test -n "$ac_ct_STRIP"; then
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6544 $as_echo "$ac_ct_STRIP" >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6547 $as_echo "no" >&6; }
6550 if test "x$ac_ct_STRIP" = x; then
6553 case $cross_compiling:$ac_tool_warned in
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6557 ac_tool_warned=yes ;;
6562 STRIP="$ac_cv_prog_STRIP"
6565 test -z "$STRIP" && STRIP=:
6572 if test -n "$ac_tool_prefix"; then
6573 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6574 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if ${ac_cv_prog_RANLIB+:} false; then :
6578 $as_echo_n "(cached) " >&6
6580 if test -n "$RANLIB"; then
6581 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 RANLIB=$ac_cv_prog_RANLIB
6601 if test -n "$RANLIB"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6603 $as_echo "$RANLIB" >&6; }
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6611 if test -z "$ac_cv_prog_RANLIB"; then
6612 ac_ct_RANLIB=$RANLIB
6613 # Extract the first word of "ranlib", so it can be a program name with args.
6614 set dummy ranlib; ac_word=$2
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6616 $as_echo_n "checking for $ac_word... " >&6; }
6617 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6618 $as_echo_n "(cached) " >&6
6620 if test -n "$ac_ct_RANLIB"; then
6621 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6627 test -z "$as_dir" && as_dir=.
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6630 ac_cv_prog_ac_ct_RANLIB="ranlib"
6631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6641 if test -n "$ac_ct_RANLIB"; then
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6643 $as_echo "$ac_ct_RANLIB" >&6; }
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6646 $as_echo "no" >&6; }
6649 if test "x$ac_ct_RANLIB" = x; then
6652 case $cross_compiling:$ac_tool_warned in
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6656 ac_tool_warned=yes ;;
6658 RANLIB=$ac_ct_RANLIB
6661 RANLIB="$ac_cv_prog_RANLIB"
6664 test -z "$RANLIB" && RANLIB=:
6671 # Determine commands to create old-style static archives.
6672 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6673 old_postinstall_cmds='chmod 644 $oldlib'
6674 old_postuninstall_cmds=
6676 if test -n "$RANLIB"; then
6679 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6682 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6685 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6690 lock_old_archive_extraction=yes ;;
6692 lock_old_archive_extraction=no ;;
6733 # If no C compiler was specified, use CC.
6736 # If no C compiler flags were specified, use CFLAGS.
6737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6739 # Allow CC to be a program name with arguments.
6743 # Check for command to grab the raw symbol name followed by C symbol from nm.
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6745 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6746 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6747 $as_echo_n "(cached) " >&6
6750 # These are sane defaults that work on at least a few old systems.
6751 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6753 # Character class describing NM global symbol codes.
6754 symcode='[BCDEGRST]'
6756 # Regexp to match symbols that can be accessed directly from C.
6757 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6759 # Define system-specific variables.
6764 cygwin* | mingw* | pw32* | cegcc*)
6765 symcode='[ABCDGISTW]'
6768 if test "$host_cpu" = ia64; then
6769 symcode='[ABCDEGRST]'
6773 symcode='[BCDEGRST]'
6776 symcode='[BCDEGQRST]'
6787 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6795 # If we're using GNU nm, then use its standard symbol codes.
6796 case `$NM -V 2>&1` in
6797 *GNU* | *'with BFD'*)
6798 symcode='[ABCDGIRSTW]' ;;
6801 # Transform an extracted symbol line into a proper C declaration.
6802 # Some systems (esp. on ia64) link data and code symbols differently,
6803 # so use this general approach.
6804 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6806 # Transform an extracted symbol line into symbol name and symbol address
6807 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6808 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'"
6810 # Handle CRLF in mingw tool chain
6814 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6818 # Try without a prefix underscore, then with it.
6819 for ac_symprfx in "" "_"; do
6821 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6822 symxfrm="\\1 $ac_symprfx\\2 \\2"
6824 # Write the raw and C identifiers.
6825 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6826 # Fake it for dumpbin and say T for any non-static function
6827 # and D for any global variable.
6828 # Also find C++ and __fastcall symbols from MSVC++,
6829 # which start with @ or ?.
6830 lt_cv_sys_global_symbol_pipe="$AWK '"\
6831 " {last_section=section; section=\$ 3};"\
6832 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6833 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6834 " \$ 0!~/External *\|/{next};"\
6835 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6836 " {if(hide[section]) next};"\
6837 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6838 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6839 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6840 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6841 " ' prfx=^$ac_symprfx"
6843 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6845 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6847 # Check to see that the pipe works correctly.
6851 cat > conftest.$ac_ext <<_LT_EOF
6856 void nm_test_func(void);
6857 void nm_test_func(void){}
6861 int main(){nm_test_var='a';nm_test_func();return(0);}
6864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6865 (eval $ac_compile) 2>&5
6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868 test $ac_status = 0; }; then
6869 # Now try to grab the symbols.
6871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6872 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875 test $ac_status = 0; } && test -s "$nlist"; then
6876 # Try sorting and uniquifying the output.
6877 if sort "$nlist" | uniq > "$nlist"T; then
6878 mv -f "$nlist"T "$nlist"
6883 # Make sure that we snagged all the symbols we need.
6884 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6885 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6886 cat <<_LT_EOF > conftest.$ac_ext
6887 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6888 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6889 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6890 relocations are performed -- see ld's documentation on pseudo-relocs. */
6891 # define LT@&t@_DLSYM_CONST
6892 #elif defined(__osf__)
6893 /* This system does not cope well with relocations in const data. */
6894 # define LT@&t@_DLSYM_CONST
6896 # define LT@&t@_DLSYM_CONST const
6904 # Now generate the symbol file.
6905 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6907 cat <<_LT_EOF >> conftest.$ac_ext
6909 /* The mapping between symbol names and symbols. */
6910 LT@&t@_DLSYM_CONST struct {
6914 lt__PROGRAM__LTX_preloaded_symbols[] =
6916 { "@PROGRAM@", (void *) 0 },
6918 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6919 cat <<\_LT_EOF >> conftest.$ac_ext
6923 /* This works around a problem in FreeBSD linker */
6924 #ifdef FREEBSD_WORKAROUND
6925 static const void *lt_preloaded_setup() {
6926 return lt__PROGRAM__LTX_preloaded_symbols;
6934 # Now try linking the two files.
6935 mv conftest.$ac_objext conftstm.$ac_objext
6936 lt_globsym_save_LIBS=$LIBS
6937 lt_globsym_save_CFLAGS=$CFLAGS
6938 LIBS="conftstm.$ac_objext"
6939 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6941 (eval $ac_link) 2>&5
6943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6944 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6947 LIBS=$lt_globsym_save_LIBS
6948 CFLAGS=$lt_globsym_save_CFLAGS
6950 echo "cannot find nm_test_func in $nlist" >&5
6953 echo "cannot find nm_test_var in $nlist" >&5
6956 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6959 echo "$progname: failed program was:" >&5
6960 cat conftest.$ac_ext >&5
6962 rm -rf conftest* conftst*
6964 # Do not use the global_symbol_pipe unless it works.
6965 if test "$pipe_works" = yes; then
6968 lt_cv_sys_global_symbol_pipe=
6974 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6975 lt_cv_sys_global_symbol_to_cdecl=
6977 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6979 $as_echo "failed" >&6; }
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6982 $as_echo "ok" >&6; }
6985 # Response file support.
6986 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6987 nm_file_list_spec='@'
6988 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6989 nm_file_list_spec='@'
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7019 $as_echo_n "checking for sysroot... " >&6; }
7021 @%:@ Check whether --with-sysroot was given.
7022 if test "${with_sysroot+set}" = set; then :
7023 withval=$with_sysroot;
7030 case ${with_sysroot} in #(
7032 if test "$GCC" = yes; then
7033 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7037 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7043 $as_echo "${with_sysroot}" >&6; }
7044 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7049 $as_echo "${lt_sysroot:-no}" >&6; }
7055 @%:@ Check whether --enable-libtool-lock was given.
7056 if test "${enable_libtool_lock+set}" = set; then :
7057 enableval=$enable_libtool_lock;
7060 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7062 # Some flags need to be propagated to the compiler or linker for good
7066 # Find out which ABI we are using.
7067 echo 'int i;' > conftest.$ac_ext
7068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7069 (eval $ac_compile) 2>&5
7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072 test $ac_status = 0; }; then
7073 case `/usr/bin/file conftest.$ac_objext` in
7085 # Find out which ABI we are using.
7086 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7087 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7088 (eval $ac_compile) 2>&5
7090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; }; then
7092 if test "$lt_cv_prog_gnu_ld" = yes; then
7093 case `/usr/bin/file conftest.$ac_objext` in
7095 LD="${LD-ld} -melf32bsmip"
7098 LD="${LD-ld} -melf32bmipn32"
7101 LD="${LD-ld} -melf64bmip"
7105 case `/usr/bin/file conftest.$ac_objext` in
7121 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7122 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7123 # Find out which ABI we are using.
7124 echo 'int i;' > conftest.$ac_ext
7125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7126 (eval $ac_compile) 2>&5
7128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7129 test $ac_status = 0; }; then
7130 case `/usr/bin/file conftest.o` in
7133 x86_64-*kfreebsd*-gnu)
7134 LD="${LD-ld} -m elf_i386_fbsd"
7137 LD="${LD-ld} -m elf_i386"
7139 ppc64-*linux*|powerpc64-*linux*)
7140 LD="${LD-ld} -m elf32ppclinux"
7143 LD="${LD-ld} -m elf_s390"
7146 LD="${LD-ld} -m elf32_sparc"
7152 x86_64-*kfreebsd*-gnu)
7153 LD="${LD-ld} -m elf_x86_64_fbsd"
7156 LD="${LD-ld} -m elf_x86_64"
7158 ppc*-*linux*|powerpc*-*linux*)
7159 LD="${LD-ld} -m elf64ppc"
7161 s390*-*linux*|s390*-*tpf*)
7162 LD="${LD-ld} -m elf64_s390"
7165 LD="${LD-ld} -m elf64_sparc"
7175 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7176 SAVE_CFLAGS="$CFLAGS"
7177 CFLAGS="$CFLAGS -belf"
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7179 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7180 if ${lt_cv_cc_needs_belf+:} false; then :
7181 $as_echo_n "(cached) " >&6
7184 ac_cpp='$CPP $CPPFLAGS'
7185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h. */
7200 if ac_fn_c_try_link "$LINENO"; then :
7201 lt_cv_cc_needs_belf=yes
7203 lt_cv_cc_needs_belf=no
7205 rm -f core conftest.err conftest.$ac_objext \
7206 conftest$ac_exeext conftest.$ac_ext
7208 ac_cpp='$CPP $CPPFLAGS'
7209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7215 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7216 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7217 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7218 CFLAGS="$SAVE_CFLAGS"
7222 # Find out which ABI we are using.
7223 echo 'int i;' > conftest.$ac_ext
7224 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7225 (eval $ac_compile) 2>&5
7227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7228 test $ac_status = 0; }; then
7229 case `/usr/bin/file conftest.o` in
7231 case $lt_cv_prog_gnu_ld in
7235 LD="${LD-ld} -m elf_x86_64"
7238 LD="${LD-ld} -m elf64_sparc"
7241 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7242 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7247 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7259 need_locks="$enable_libtool_lock"
7261 if test -n "$ac_tool_prefix"; then
7262 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7263 set dummy ${ac_tool_prefix}mt; ac_word=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7267 $as_echo_n "(cached) " >&6
7269 if test -n "$MANIFEST_TOOL"; then
7270 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir=.
7277 for ac_exec_ext in '' $ac_executable_extensions; do
7278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7279 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7290 if test -n "$MANIFEST_TOOL"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7292 $as_echo "$MANIFEST_TOOL" >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7300 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7301 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7302 # Extract the first word of "mt", so it can be a program name with args.
7303 set dummy mt; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7307 $as_echo_n "(cached) " >&6
7309 if test -n "$ac_ct_MANIFEST_TOOL"; then
7310 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7319 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7329 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7330 if test -n "$ac_ct_MANIFEST_TOOL"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7332 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7338 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7341 case $cross_compiling:$ac_tool_warned in
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7345 ac_tool_warned=yes ;;
7347 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7350 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7353 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7355 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7356 if ${lt_cv_path_mainfest_tool+:} false; then :
7357 $as_echo_n "(cached) " >&6
7359 lt_cv_path_mainfest_tool=no
7360 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7361 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7362 cat conftest.err >&5
7363 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7364 lt_cv_path_mainfest_tool=yes
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7369 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7370 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7380 rhapsody* | darwin*)
7381 if test -n "$ac_tool_prefix"; then
7382 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7383 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7387 $as_echo_n "(cached) " >&6
7389 if test -n "$DSYMUTIL"; then
7390 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396 test -z "$as_dir" && as_dir=.
7397 for ac_exec_ext in '' $ac_executable_extensions; do
7398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7410 if test -n "$DSYMUTIL"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7412 $as_echo "$DSYMUTIL" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7420 if test -z "$ac_cv_prog_DSYMUTIL"; then
7421 ac_ct_DSYMUTIL=$DSYMUTIL
7422 # Extract the first word of "dsymutil", so it can be a program name with args.
7423 set dummy dsymutil; ac_word=$2
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7425 $as_echo_n "checking for $ac_word... " >&6; }
7426 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7427 $as_echo_n "(cached) " >&6
7429 if test -n "$ac_ct_DSYMUTIL"; then
7430 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436 test -z "$as_dir" && as_dir=.
7437 for ac_exec_ext in '' $ac_executable_extensions; do
7438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7450 if test -n "$ac_ct_DSYMUTIL"; then
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7452 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7455 $as_echo "no" >&6; }
7458 if test "x$ac_ct_DSYMUTIL" = x; then
7461 case $cross_compiling:$ac_tool_warned in
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7465 ac_tool_warned=yes ;;
7467 DSYMUTIL=$ac_ct_DSYMUTIL
7470 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7473 if test -n "$ac_tool_prefix"; then
7474 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7475 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_NMEDIT+:} false; then :
7479 $as_echo_n "(cached) " >&6
7481 if test -n "$NMEDIT"; then
7482 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7488 test -z "$as_dir" && as_dir=.
7489 for ac_exec_ext in '' $ac_executable_extensions; do
7490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7501 NMEDIT=$ac_cv_prog_NMEDIT
7502 if test -n "$NMEDIT"; then
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7504 $as_echo "$NMEDIT" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7512 if test -z "$ac_cv_prog_NMEDIT"; then
7513 ac_ct_NMEDIT=$NMEDIT
7514 # Extract the first word of "nmedit", so it can be a program name with args.
7515 set dummy nmedit; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7519 $as_echo_n "(cached) " >&6
7521 if test -n "$ac_ct_NMEDIT"; then
7522 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7531 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7541 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7542 if test -n "$ac_ct_NMEDIT"; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7544 $as_echo "$ac_ct_NMEDIT" >&6; }
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7550 if test "x$ac_ct_NMEDIT" = x; then
7553 case $cross_compiling:$ac_tool_warned in
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7559 NMEDIT=$ac_ct_NMEDIT
7562 NMEDIT="$ac_cv_prog_NMEDIT"
7565 if test -n "$ac_tool_prefix"; then
7566 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7567 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569 $as_echo_n "checking for $ac_word... " >&6; }
7570 if ${ac_cv_prog_LIPO+:} false; then :
7571 $as_echo_n "(cached) " >&6
7573 if test -n "$LIPO"; then
7574 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7580 test -z "$as_dir" && as_dir=.
7581 for ac_exec_ext in '' $ac_executable_extensions; do
7582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593 LIPO=$ac_cv_prog_LIPO
7594 if test -n "$LIPO"; then
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7596 $as_echo "$LIPO" >&6; }
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599 $as_echo "no" >&6; }
7604 if test -z "$ac_cv_prog_LIPO"; then
7606 # Extract the first word of "lipo", so it can be a program name with args.
7607 set dummy lipo; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7611 $as_echo_n "(cached) " >&6
7613 if test -n "$ac_ct_LIPO"; then
7614 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7620 test -z "$as_dir" && as_dir=.
7621 for ac_exec_ext in '' $ac_executable_extensions; do
7622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7623 ac_cv_prog_ac_ct_LIPO="lipo"
7624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7634 if test -n "$ac_ct_LIPO"; then
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7636 $as_echo "$ac_ct_LIPO" >&6; }
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7639 $as_echo "no" >&6; }
7642 if test "x$ac_ct_LIPO" = x; then
7645 case $cross_compiling:$ac_tool_warned in
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7649 ac_tool_warned=yes ;;
7654 LIPO="$ac_cv_prog_LIPO"
7657 if test -n "$ac_tool_prefix"; then
7658 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}otool; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if ${ac_cv_prog_OTOOL+:} false; then :
7663 $as_echo_n "(cached) " >&6
7665 if test -n "$OTOOL"; then
7666 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7685 OTOOL=$ac_cv_prog_OTOOL
7686 if test -n "$OTOOL"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7688 $as_echo "$OTOOL" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7696 if test -z "$ac_cv_prog_OTOOL"; then
7698 # Extract the first word of "otool", so it can be a program name with args.
7699 set dummy otool; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7703 $as_echo_n "(cached) " >&6
7705 if test -n "$ac_ct_OTOOL"; then
7706 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7712 test -z "$as_dir" && as_dir=.
7713 for ac_exec_ext in '' $ac_executable_extensions; do
7714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715 ac_cv_prog_ac_ct_OTOOL="otool"
7716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7726 if test -n "$ac_ct_OTOOL"; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7728 $as_echo "$ac_ct_OTOOL" >&6; }
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7734 if test "x$ac_ct_OTOOL" = x; then
7737 case $cross_compiling:$ac_tool_warned in
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7746 OTOOL="$ac_cv_prog_OTOOL"
7749 if test -n "$ac_tool_prefix"; then
7750 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7751 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if ${ac_cv_prog_OTOOL64+:} false; then :
7755 $as_echo_n "(cached) " >&6
7757 if test -n "$OTOOL64"; then
7758 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 OTOOL64=$ac_cv_prog_OTOOL64
7778 if test -n "$OTOOL64"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7780 $as_echo "$OTOOL64" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7788 if test -z "$ac_cv_prog_OTOOL64"; then
7789 ac_ct_OTOOL64=$OTOOL64
7790 # Extract the first word of "otool64", so it can be a program name with args.
7791 set dummy otool64; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7795 $as_echo_n "(cached) " >&6
7797 if test -n "$ac_ct_OTOOL64"; then
7798 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_ac_ct_OTOOL64="otool64"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7818 if test -n "$ac_ct_OTOOL64"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7820 $as_echo "$ac_ct_OTOOL64" >&6; }
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7826 if test "x$ac_ct_OTOOL64" = x; then
7829 case $cross_compiling:$ac_tool_warned in
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833 ac_tool_warned=yes ;;
7835 OTOOL64=$ac_ct_OTOOL64
7838 OTOOL64="$ac_cv_prog_OTOOL64"
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7868 $as_echo_n "checking for -single_module linker flag... " >&6; }
7869 if ${lt_cv_apple_cc_single_mod+:} false; then :
7870 $as_echo_n "(cached) " >&6
7872 lt_cv_apple_cc_single_mod=no
7873 if test -z "${LT_MULTI_MODULE}"; then
7874 # By default we will add the -single_module flag. You can override
7875 # by either setting the environment variable LT_MULTI_MODULE
7876 # non-empty at configure time, or by adding -multi_module to the
7878 rm -rf libconftest.dylib*
7879 echo "int foo(void){return 1;}" > conftest.c
7880 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7881 -dynamiclib -Wl,-single_module conftest.c" >&5
7882 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7883 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7885 # If there is a non-empty error log, and "single_module"
7886 # appears in it, assume the flag caused a linker warning
7887 if test -s conftest.err && $GREP single_module conftest.err; then
7888 cat conftest.err >&5
7889 # Otherwise, if the output was created with a 0 exit code from
7890 # the compiler, it worked.
7891 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7892 lt_cv_apple_cc_single_mod=yes
7894 cat conftest.err >&5
7896 rm -rf libconftest.dylib*
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7901 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7904 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7905 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7906 $as_echo_n "(cached) " >&6
7908 lt_cv_ld_exported_symbols_list=no
7909 save_LDFLAGS=$LDFLAGS
7910 echo "_main" > conftest.sym
7911 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7923 if ac_fn_c_try_link "$LINENO"; then :
7924 lt_cv_ld_exported_symbols_list=yes
7926 lt_cv_ld_exported_symbols_list=no
7928 rm -f core conftest.err conftest.$ac_objext \
7929 conftest$ac_exeext conftest.$ac_ext
7930 LDFLAGS="$save_LDFLAGS"
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7934 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7937 $as_echo_n "checking for -force_load linker flag... " >&6; }
7938 if ${lt_cv_ld_force_load+:} false; then :
7939 $as_echo_n "(cached) " >&6
7941 lt_cv_ld_force_load=no
7942 cat > conftest.c << _LT_EOF
7943 int forced_loaded() { return 2;}
7945 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7946 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7947 echo "$AR cru libconftest.a conftest.o" >&5
7948 $AR cru libconftest.a conftest.o 2>&5
7949 echo "$RANLIB libconftest.a" >&5
7950 $RANLIB libconftest.a 2>&5
7951 cat > conftest.c << _LT_EOF
7952 int main() { return 0;}
7954 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7955 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7957 if test -s conftest.err && $GREP force_load conftest.err; then
7958 cat conftest.err >&5
7959 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7960 lt_cv_ld_force_load=yes
7962 cat conftest.err >&5
7964 rm -f conftest.err libconftest.a conftest conftest.c
7965 rm -rf conftest.dSYM
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7969 $as_echo "$lt_cv_ld_force_load" >&6; }
7971 rhapsody* | darwin1.[012])
7972 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7974 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7975 darwin*) # darwin 5.x on
7976 # if running on 10.5 or later, the deployment target defaults
7977 # to the OS version, if on x86, and 10.4, the deployment
7978 # target defaults to 10.4. Don't you love it?
7979 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7980 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7981 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7983 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7985 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7989 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7990 _lt_dar_single_mod='$single_module'
7992 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7993 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7995 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7997 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7998 _lt_dsymutil='~$DSYMUTIL $lib || :'
8006 ac_cpp='$CPP $CPPFLAGS'
8007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8011 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8012 # On Suns, sometimes $CPP names a directory.
8013 if test -n "$CPP" && test -d "$CPP"; then
8016 if test -z "$CPP"; then
8017 if ${ac_cv_prog_CPP+:} false; then :
8018 $as_echo_n "(cached) " >&6
8020 # Double quotes because CPP needs to be expanded
8021 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8024 for ac_c_preproc_warn_flag in '' yes
8026 # Use a header file that comes with gcc, so configuring glibc
8027 # with a fresh cross-compiler works.
8028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8029 # <limits.h> exists even on freestanding compilers.
8030 # On the NeXT, cc -E runs the code through the compiler's parser,
8031 # not just through cpp. "Syntax error" is here to catch this case.
8032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8033 /* end confdefs.h. */
8035 @%:@ include <limits.h>
8037 @%:@ include <assert.h>
8041 if ac_fn_c_try_cpp "$LINENO"; then :
8044 # Broken: fails on valid input.
8047 rm -f conftest.err conftest.i conftest.$ac_ext
8049 # OK, works on sane cases. Now check whether nonexistent headers
8050 # can be detected and how.
8051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8053 @%:@include <ac_nonexistent.h>
8055 if ac_fn_c_try_cpp "$LINENO"; then :
8056 # Broken: success on invalid input.
8059 # Passes both tests.
8063 rm -f conftest.err conftest.i conftest.$ac_ext
8066 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8067 rm -f conftest.i conftest.err conftest.$ac_ext
8068 if $ac_preproc_ok; then :
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8081 $as_echo "$CPP" >&6; }
8083 for ac_c_preproc_warn_flag in '' yes
8085 # Use a header file that comes with gcc, so configuring glibc
8086 # with a fresh cross-compiler works.
8087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8088 # <limits.h> exists even on freestanding compilers.
8089 # On the NeXT, cc -E runs the code through the compiler's parser,
8090 # not just through cpp. "Syntax error" is here to catch this case.
8091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8094 @%:@ include <limits.h>
8096 @%:@ include <assert.h>
8100 if ac_fn_c_try_cpp "$LINENO"; then :
8103 # Broken: fails on valid input.
8106 rm -f conftest.err conftest.i conftest.$ac_ext
8108 # OK, works on sane cases. Now check whether nonexistent headers
8109 # can be detected and how.
8110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8111 /* end confdefs.h. */
8112 @%:@include <ac_nonexistent.h>
8114 if ac_fn_c_try_cpp "$LINENO"; then :
8115 # Broken: success on invalid input.
8118 # Passes both tests.
8122 rm -f conftest.err conftest.i conftest.$ac_ext
8125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8126 rm -f conftest.i conftest.err conftest.$ac_ext
8127 if $ac_preproc_ok; then :
8130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8132 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8133 See \`config.log' for more details" "$LINENO" 5; }
8137 ac_cpp='$CPP $CPPFLAGS'
8138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8144 $as_echo_n "checking for ANSI C header files... " >&6; }
8145 if ${ac_cv_header_stdc+:} false; then :
8146 $as_echo_n "(cached) " >&6
8148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8163 if ac_fn_c_try_compile "$LINENO"; then :
8164 ac_cv_header_stdc=yes
8166 ac_cv_header_stdc=no
8168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170 if test $ac_cv_header_stdc = yes; then
8171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8173 /* end confdefs.h. */
8177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8178 $EGREP "memchr" >/dev/null 2>&1; then :
8181 ac_cv_header_stdc=no
8187 if test $ac_cv_header_stdc = yes; then
8188 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8190 /* end confdefs.h. */
8194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8195 $EGREP "free" >/dev/null 2>&1; then :
8198 ac_cv_header_stdc=no
8204 if test $ac_cv_header_stdc = yes; then
8205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8206 if test "$cross_compiling" = yes; then :
8209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8210 /* end confdefs.h. */
8213 #if ((' ' & 0x0FF) == 0x020)
8214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8217 # define ISLOWER(c) \
8218 (('a' <= (c) && (c) <= 'i') \
8219 || ('j' <= (c) && (c) <= 'r') \
8220 || ('s' <= (c) && (c) <= 'z'))
8221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8229 for (i = 0; i < 256; i++)
8230 if (XOR (islower (i), ISLOWER (i))
8231 || toupper (i) != TOUPPER (i))
8236 if ac_fn_c_try_run "$LINENO"; then :
8239 ac_cv_header_stdc=no
8241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8242 conftest.$ac_objext conftest.beam conftest.$ac_ext
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8248 $as_echo "$ac_cv_header_stdc" >&6; }
8249 if test $ac_cv_header_stdc = yes; then
8251 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
8255 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8256 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8257 inttypes.h stdint.h unistd.h
8259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8260 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8262 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8263 cat >>confdefs.h <<_ACEOF
8264 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8272 for ac_header in dlfcn.h
8274 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8276 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8277 cat >>confdefs.h <<_ACEOF
8278 @%:@define HAVE_DLFCN_H 1
8288 func_stripname_cnf ()
8291 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
8292 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
8294 } # func_stripname_cnf
8310 @%:@ Check whether --enable-shared was given.
8311 if test "${enable_shared+set}" = set; then :
8312 enableval=$enable_shared; p=${PACKAGE-default}
8314 yes) enable_shared=yes ;;
8315 no) enable_shared=no ;;
8318 # Look at the argument we got. We use all the common list separators.
8319 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8320 for pkg in $enableval; do
8322 if test "X$pkg" = "X$p"; then
8341 @%:@ Check whether --enable-static was given.
8342 if test "${enable_static+set}" = set; then :
8343 enableval=$enable_static; p=${PACKAGE-default}
8345 yes) enable_static=yes ;;
8346 no) enable_static=no ;;
8349 # Look at the argument we got. We use all the common list separators.
8350 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8351 for pkg in $enableval; do
8353 if test "X$pkg" = "X$p"; then
8373 @%:@ Check whether --with-pic was given.
8374 if test "${with_pic+set}" = set; then :
8375 withval=$with_pic; lt_p=${PACKAGE-default}
8377 yes|no) pic_mode=$withval ;;
8380 # Look at the argument we got. We use all the common list separators.
8381 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8382 for lt_pkg in $withval; do
8384 if test "X$lt_pkg" = "X$lt_p"; then
8396 test -z "$pic_mode" && pic_mode=default
8404 @%:@ Check whether --enable-fast-install was given.
8405 if test "${enable_fast_install+set}" = set; then :
8406 enableval=$enable_fast_install; p=${PACKAGE-default}
8408 yes) enable_fast_install=yes ;;
8409 no) enable_fast_install=no ;;
8411 enable_fast_install=no
8412 # Look at the argument we got. We use all the common list separators.
8413 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8414 for pkg in $enableval; do
8416 if test "X$pkg" = "X$p"; then
8417 enable_fast_install=yes
8424 enable_fast_install=yes
8437 # This can be used to rebuild libtool when needed
8438 LIBTOOL_DEPS="$ltmain"
8440 # Always use our own libtool.
8441 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8472 test -z "$LN_S" && LN_S="ln -s"
8487 if test -n "${ZSH_VERSION+set}" ; then
8488 setopt NO_GLOB_SUBST
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8492 $as_echo_n "checking for objdir... " >&6; }
8493 if ${lt_cv_objdir+:} false; then :
8494 $as_echo_n "(cached) " >&6
8496 rm -f .libs 2>/dev/null
8497 mkdir .libs 2>/dev/null
8498 if test -d .libs; then
8501 # MS-DOS does not allow filenames that begin with a dot.
8504 rmdir .libs 2>/dev/null
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8507 $as_echo "$lt_cv_objdir" >&6; }
8508 objdir=$lt_cv_objdir
8514 cat >>confdefs.h <<_ACEOF
8515 @%:@define LT_OBJDIR "$lt_cv_objdir/"
8523 # AIX sometimes has problems with the GCC collect2 program. For some
8524 # reason, if we set the COLLECT_NAMES environment variable, the problems
8525 # vanish in a puff of smoke.
8526 if test "X${COLLECT_NAMES+set}" != Xset; then
8528 export COLLECT_NAMES
8535 can_build_shared=yes
8537 # All known linkers require a `.a' archive for static linking (except MSVC,
8538 # which needs '.lib').
8541 with_gnu_ld="$lt_cv_prog_gnu_ld"
8544 old_CFLAGS="$CFLAGS"
8546 # Set sane defaults for various variables
8547 test -z "$CC" && CC=cc
8548 test -z "$LTCC" && LTCC=$CC
8549 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8550 test -z "$LD" && LD=ld
8551 test -z "$ac_objext" && ac_objext=o
8553 for cc_temp in $compiler""; do
8555 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8556 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8561 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8564 # Only perform the check for file, if the check method requires it
8565 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8566 case $deplibs_check_method in
8568 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8570 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8571 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8572 $as_echo_n "(cached) " >&6
8576 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8579 lt_save_MAGIC_CMD="$MAGIC_CMD"
8580 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8581 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8582 for ac_dir in $ac_dummy; do
8584 test -z "$ac_dir" && ac_dir=.
8585 if test -f $ac_dir/${ac_tool_prefix}file; then
8586 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8587 if test -n "$file_magic_test_file"; then
8588 case $deplibs_check_method in
8590 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8591 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8592 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8593 $EGREP "$file_magic_regex" > /dev/null; then
8598 *** Warning: the command libtool uses to detect shared libraries,
8599 *** $file_magic_cmd, produces output that libtool cannot recognize.
8600 *** The result is that libtool may fail to recognize shared libraries
8601 *** as such. This will affect the creation of libtool libraries that
8602 *** depend on shared libraries, but programs linked with such libtool
8603 *** libraries will work regardless of this problem. Nevertheless, you
8604 *** may want to report the problem to your system manager and/or to
8605 *** bug-libtool@gnu.org
8615 MAGIC_CMD="$lt_save_MAGIC_CMD"
8620 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8621 if test -n "$MAGIC_CMD"; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8623 $as_echo "$MAGIC_CMD" >&6; }
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8626 $as_echo "no" >&6; }
8633 if test -z "$lt_cv_path_MAGIC_CMD"; then
8634 if test -n "$ac_tool_prefix"; then
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8636 $as_echo_n "checking for file... " >&6; }
8637 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8638 $as_echo_n "(cached) " >&6
8642 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8645 lt_save_MAGIC_CMD="$MAGIC_CMD"
8646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8647 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8648 for ac_dir in $ac_dummy; do
8650 test -z "$ac_dir" && ac_dir=.
8651 if test -f $ac_dir/file; then
8652 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8653 if test -n "$file_magic_test_file"; then
8654 case $deplibs_check_method in
8656 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8657 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8658 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8659 $EGREP "$file_magic_regex" > /dev/null; then
8664 *** Warning: the command libtool uses to detect shared libraries,
8665 *** $file_magic_cmd, produces output that libtool cannot recognize.
8666 *** The result is that libtool may fail to recognize shared libraries
8667 *** as such. This will affect the creation of libtool libraries that
8668 *** depend on shared libraries, but programs linked with such libtool
8669 *** libraries will work regardless of this problem. Nevertheless, you
8670 *** may want to report the problem to your system manager and/or to
8671 *** bug-libtool@gnu.org
8681 MAGIC_CMD="$lt_save_MAGIC_CMD"
8686 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8687 if test -n "$MAGIC_CMD"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8689 $as_echo "$MAGIC_CMD" >&6; }
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8705 # Use C for the default configuration in the libtool script
8709 ac_cpp='$CPP $CPPFLAGS'
8710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8715 # Source file extension for C test sources.
8718 # Object file extension for compiled C test sources.
8722 # Code to be used in simple compile tests
8723 lt_simple_compile_test_code="int some_variable = 0;"
8725 # Code to be used in simple link tests
8726 lt_simple_link_test_code='int main(){return(0);}'
8734 # If no C compiler was specified, use CC.
8737 # If no C compiler flags were specified, use CFLAGS.
8738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8740 # Allow CC to be a program name with arguments.
8743 # Save the default compiler, since it gets overwritten when the other
8744 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8745 compiler_DEFAULT=$CC
8747 # save warnings/boilerplate of simple test code
8748 ac_outfile=conftest.$ac_objext
8749 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8750 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8751 _lt_compiler_boilerplate=`cat conftest.err`
8754 ac_outfile=conftest.$ac_objext
8755 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8756 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8757 _lt_linker_boilerplate=`cat conftest.err`
8762 ## There is no encapsulation within the following macros, do not change
8763 ## the running order or otherwise move them around unless you know exactly
8764 ## what you are doing...
8765 if test -n "$compiler"; then
8767 lt_prog_compiler_no_builtin_flag=
8769 if test "$GCC" = yes; then
8770 case $cc_basename in
8772 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8774 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8778 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8779 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8780 $as_echo_n "(cached) " >&6
8782 lt_cv_prog_compiler_rtti_exceptions=no
8783 ac_outfile=conftest.$ac_objext
8784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8785 lt_compiler_flag="-fno-rtti -fno-exceptions"
8786 # Insert the option either (1) after the last *FLAGS variable, or
8787 # (2) before a word containing "conftest.", or (3) at the end.
8788 # Note that $ac_compile itself does not contain backslashes and begins
8789 # with a dollar sign (not a hyphen), so the echo should work correctly.
8790 # The option is referenced via a variable to avoid confusing sed.
8791 lt_compile=`echo "$ac_compile" | $SED \
8792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8794 -e 's:$: $lt_compiler_flag:'`
8795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8796 (eval "$lt_compile" 2>conftest.err)
8798 cat conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 if (exit $ac_status) && test -s "$ac_outfile"; then
8801 # The compiler can only warn and ignore the option if not recognized
8802 # So say no if there are warnings other than the usual output.
8803 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8804 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8805 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8806 lt_cv_prog_compiler_rtti_exceptions=yes
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8813 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8815 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8816 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8828 lt_prog_compiler_wl=
8829 lt_prog_compiler_pic=
8830 lt_prog_compiler_static=
8833 if test "$GCC" = yes; then
8834 lt_prog_compiler_wl='-Wl,'
8835 lt_prog_compiler_static='-static'
8839 # All AIX code is PIC.
8840 if test "$host_cpu" = ia64; then
8841 # AIX 5 now supports IA64 processor
8842 lt_prog_compiler_static='-Bstatic'
8849 # see comment about AmigaOS4 .so support
8850 lt_prog_compiler_pic='-fPIC'
8853 # FIXME: we need at least 68020 code to build shared libraries, but
8854 # adding the `-m68020' flag to GCC prevents building anything better,
8856 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8861 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8862 # PIC is the default for these OSes.
8865 mingw* | cygwin* | pw32* | os2* | cegcc*)
8866 # This hack is so that the source file can tell whether it is being
8867 # built for inclusion in a dll (and should export symbols for example).
8868 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8869 # (--disable-auto-import) libraries
8870 lt_prog_compiler_pic='-DDLL_EXPORT'
8873 darwin* | rhapsody*)
8874 # PIC is the default on this platform
8875 # Common symbols not allowed in MH_DYLIB files
8876 lt_prog_compiler_pic='-fno-common'
8880 # PIC is the default for Haiku.
8881 # The "-static" flag exists, but is broken.
8882 lt_prog_compiler_static=
8886 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8887 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8888 # sets the default TLS model and affects inlining.
8894 lt_prog_compiler_pic='-fPIC'
8900 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8901 # Instead, we relocate shared libraries at runtime.
8905 # Just because we use GCC doesn't mean we suddenly get shared libraries
8906 # on systems that don't support them.
8907 lt_prog_compiler_can_build_shared=no
8912 # QNX uses GNU C++, but need to define -shared option too, otherwise
8914 lt_prog_compiler_pic='-fPIC -shared'
8918 if test -d /usr/nec; then
8919 lt_prog_compiler_pic=-Kconform_pic
8924 lt_prog_compiler_pic='-fPIC'
8928 case $cc_basename in
8929 nvcc*) # Cuda Compiler Driver 2.2
8930 lt_prog_compiler_wl='-Xlinker '
8931 if test -n "$lt_prog_compiler_pic"; then
8932 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8937 # PORTME Check for flag to pass linker flags through the system compiler.
8940 lt_prog_compiler_wl='-Wl,'
8941 if test "$host_cpu" = ia64; then
8942 # AIX 5 now supports IA64 processor
8943 lt_prog_compiler_static='-Bstatic'
8945 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8949 mingw* | cygwin* | pw32* | os2* | cegcc*)
8950 # This hack is so that the source file can tell whether it is being
8951 # built for inclusion in a dll (and should export symbols for example).
8952 lt_prog_compiler_pic='-DDLL_EXPORT'
8955 hpux9* | hpux10* | hpux11*)
8956 lt_prog_compiler_wl='-Wl,'
8957 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8964 lt_prog_compiler_pic='+Z'
8967 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8968 lt_prog_compiler_static='${wl}-a ${wl}archive'
8971 irix5* | irix6* | nonstopux*)
8972 lt_prog_compiler_wl='-Wl,'
8973 # PIC (with -KPIC) is the default.
8974 lt_prog_compiler_static='-non_shared'
8977 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8978 case $cc_basename in
8979 # old Intel for x86_64 which still supported -KPIC.
8981 lt_prog_compiler_wl='-Wl,'
8982 lt_prog_compiler_pic='-KPIC'
8983 lt_prog_compiler_static='-static'
8985 # icc used to be incompatible with GCC.
8986 # ICC 10 doesn't accept -KPIC any more.
8988 lt_prog_compiler_wl='-Wl,'
8989 lt_prog_compiler_pic='-fPIC'
8990 lt_prog_compiler_static='-static'
8992 # Lahey Fortran 8.1.
8994 lt_prog_compiler_wl='-Wl,'
8995 lt_prog_compiler_pic='--shared'
8996 lt_prog_compiler_static='--static'
8999 # NAG Fortran compiler
9000 lt_prog_compiler_wl='-Wl,-Wl,,'
9001 lt_prog_compiler_pic='-PIC'
9002 lt_prog_compiler_static='-Bstatic'
9004 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9005 # Portland Group compilers (*not* the Pentium gcc compiler,
9006 # which looks to be a dead project)
9007 lt_prog_compiler_wl='-Wl,'
9008 lt_prog_compiler_pic='-fpic'
9009 lt_prog_compiler_static='-Bstatic'
9012 lt_prog_compiler_wl='-Wl,'
9013 # All Alpha code is PIC.
9014 lt_prog_compiler_static='-non_shared'
9016 xl* | bgxl* | bgf* | mpixl*)
9017 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9018 lt_prog_compiler_wl='-Wl,'
9019 lt_prog_compiler_pic='-qpic'
9020 lt_prog_compiler_static='-qstaticlink'
9023 case `$CC -V 2>&1 | sed 5q` in
9024 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9025 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9026 lt_prog_compiler_pic='-KPIC'
9027 lt_prog_compiler_static='-Bstatic'
9028 lt_prog_compiler_wl=''
9030 *Sun\ F* | *Sun*Fortran*)
9031 lt_prog_compiler_pic='-KPIC'
9032 lt_prog_compiler_static='-Bstatic'
9033 lt_prog_compiler_wl='-Qoption ld '
9037 lt_prog_compiler_pic='-KPIC'
9038 lt_prog_compiler_static='-Bstatic'
9039 lt_prog_compiler_wl='-Wl,'
9041 *Intel*\ [CF]*Compiler*)
9042 lt_prog_compiler_wl='-Wl,'
9043 lt_prog_compiler_pic='-fPIC'
9044 lt_prog_compiler_static='-static'
9047 lt_prog_compiler_wl='-Wl,'
9048 lt_prog_compiler_pic='-fpic'
9049 lt_prog_compiler_static='-Bstatic'
9057 lt_prog_compiler_pic='-KPIC'
9058 lt_prog_compiler_static='-Bstatic'
9062 # QNX uses GNU C++, but need to define -shared option too, otherwise
9064 lt_prog_compiler_pic='-fPIC -shared'
9067 osf3* | osf4* | osf5*)
9068 lt_prog_compiler_wl='-Wl,'
9069 # All OSF/1 code is PIC.
9070 lt_prog_compiler_static='-non_shared'
9074 lt_prog_compiler_static='-non_shared'
9078 lt_prog_compiler_pic='-KPIC'
9079 lt_prog_compiler_static='-Bstatic'
9080 case $cc_basename in
9081 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9082 lt_prog_compiler_wl='-Qoption ld ';;
9084 lt_prog_compiler_wl='-Wl,';;
9089 lt_prog_compiler_wl='-Qoption ld '
9090 lt_prog_compiler_pic='-PIC'
9091 lt_prog_compiler_static='-Bstatic'
9094 sysv4 | sysv4.2uw2* | sysv4.3*)
9095 lt_prog_compiler_wl='-Wl,'
9096 lt_prog_compiler_pic='-KPIC'
9097 lt_prog_compiler_static='-Bstatic'
9101 if test -d /usr/nec ;then
9102 lt_prog_compiler_pic='-Kconform_pic'
9103 lt_prog_compiler_static='-Bstatic'
9107 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9108 lt_prog_compiler_wl='-Wl,'
9109 lt_prog_compiler_pic='-KPIC'
9110 lt_prog_compiler_static='-Bstatic'
9114 lt_prog_compiler_wl='-Wl,'
9115 lt_prog_compiler_can_build_shared=no
9119 lt_prog_compiler_pic='-pic'
9120 lt_prog_compiler_static='-Bstatic'
9124 lt_prog_compiler_can_build_shared=no
9130 # For platforms which do not support PIC, -DPIC is meaningless:
9132 lt_prog_compiler_pic=
9135 lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9140 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9141 if ${lt_cv_prog_compiler_pic+:} false; then :
9142 $as_echo_n "(cached) " >&6
9144 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9147 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9148 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9151 # Check to make sure the PIC flag actually works.
9153 if test -n "$lt_prog_compiler_pic"; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9155 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9156 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9157 $as_echo_n "(cached) " >&6
9159 lt_cv_prog_compiler_pic_works=no
9160 ac_outfile=conftest.$ac_objext
9161 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9162 lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
9163 # Insert the option either (1) after the last *FLAGS variable, or
9164 # (2) before a word containing "conftest.", or (3) at the end.
9165 # Note that $ac_compile itself does not contain backslashes and begins
9166 # with a dollar sign (not a hyphen), so the echo should work correctly.
9167 # The option is referenced via a variable to avoid confusing sed.
9168 lt_compile=`echo "$ac_compile" | $SED \
9169 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9170 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9171 -e 's:$: $lt_compiler_flag:'`
9172 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9173 (eval "$lt_compile" 2>conftest.err)
9175 cat conftest.err >&5
9176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9177 if (exit $ac_status) && test -s "$ac_outfile"; then
9178 # The compiler can only warn and ignore the option if not recognized
9179 # So say no if there are warnings other than the usual output.
9180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9181 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9182 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9183 lt_cv_prog_compiler_pic_works=yes
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9190 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9192 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9193 case $lt_prog_compiler_pic in
9195 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9198 lt_prog_compiler_pic=
9199 lt_prog_compiler_can_build_shared=no
9215 # Check to make sure the static flag actually works.
9217 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9219 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9220 if ${lt_cv_prog_compiler_static_works+:} false; then :
9221 $as_echo_n "(cached) " >&6
9223 lt_cv_prog_compiler_static_works=no
9224 save_LDFLAGS="$LDFLAGS"
9225 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9226 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9227 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9228 # The linker can only warn and ignore the option if not recognized
9229 # So say no if there are warnings
9230 if test -s conftest.err; then
9231 # Append any errors to the config.log.
9232 cat conftest.err 1>&5
9233 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9234 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9235 if diff conftest.exp conftest.er2 >/dev/null; then
9236 lt_cv_prog_compiler_static_works=yes
9239 lt_cv_prog_compiler_static_works=yes
9243 LDFLAGS="$save_LDFLAGS"
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9247 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9249 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9252 lt_prog_compiler_static=
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9262 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9263 if ${lt_cv_prog_compiler_c_o+:} false; then :
9264 $as_echo_n "(cached) " >&6
9266 lt_cv_prog_compiler_c_o=no
9267 $RM -r conftest 2>/dev/null
9271 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9273 lt_compiler_flag="-o out/conftest2.$ac_objext"
9274 # Insert the option either (1) after the last *FLAGS variable, or
9275 # (2) before a word containing "conftest.", or (3) at the end.
9276 # Note that $ac_compile itself does not contain backslashes and begins
9277 # with a dollar sign (not a hyphen), so the echo should work correctly.
9278 lt_compile=`echo "$ac_compile" | $SED \
9279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9281 -e 's:$: $lt_compiler_flag:'`
9282 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9283 (eval "$lt_compile" 2>out/conftest.err)
9285 cat out/conftest.err >&5
9286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9287 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9289 # The compiler can only warn and ignore the option if not recognized
9290 # So say no if there are warnings
9291 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9292 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9293 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9294 lt_cv_prog_compiler_c_o=yes
9299 # SGI C++ compiler will create directory out/ii_files/ for
9300 # template instantiation
9301 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9302 $RM out/* && rmdir out
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9309 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9317 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9318 if ${lt_cv_prog_compiler_c_o+:} false; then :
9319 $as_echo_n "(cached) " >&6
9321 lt_cv_prog_compiler_c_o=no
9322 $RM -r conftest 2>/dev/null
9326 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9328 lt_compiler_flag="-o out/conftest2.$ac_objext"
9329 # Insert the option either (1) after the last *FLAGS variable, or
9330 # (2) before a word containing "conftest.", or (3) at the end.
9331 # Note that $ac_compile itself does not contain backslashes and begins
9332 # with a dollar sign (not a hyphen), so the echo should work correctly.
9333 lt_compile=`echo "$ac_compile" | $SED \
9334 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9335 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9336 -e 's:$: $lt_compiler_flag:'`
9337 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9338 (eval "$lt_compile" 2>out/conftest.err)
9340 cat out/conftest.err >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9344 # The compiler can only warn and ignore the option if not recognized
9345 # So say no if there are warnings
9346 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9347 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9348 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9349 lt_cv_prog_compiler_c_o=yes
9354 # SGI C++ compiler will create directory out/ii_files/ for
9355 # template instantiation
9356 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9357 $RM out/* && rmdir out
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9364 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9369 hard_links="nottested"
9370 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9371 # do not overwrite the value of need_locks provided by the user
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9373 $as_echo_n "checking if we can lock with hard links... " >&6; }
9376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9378 ln conftest.a conftest.b 2>&5 || hard_links=no
9379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9381 $as_echo "$hard_links" >&6; }
9382 if test "$hard_links" = no; then
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9384 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9397 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9400 allow_undefined_flag=
9401 always_export_symbols=no
9403 archive_expsym_cmds=
9404 compiler_needs_object=no
9405 enable_shared_with_static_runtimes=no
9406 export_dynamic_flag_spec=
9407 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9408 hardcode_automatic=no
9410 hardcode_direct_absolute=no
9411 hardcode_libdir_flag_spec=
9412 hardcode_libdir_separator=
9414 hardcode_shlibpath_var=unsupported
9416 link_all_deplibs=unknown
9419 old_archive_from_new_cmds=
9420 old_archive_from_expsyms_cmds=
9421 thread_safe_flag_spec=
9422 whole_archive_flag_spec=
9423 # include_expsyms should be a list of space-separated symbols to be *always*
9424 # included in the symbol list
9426 # exclude_expsyms can be an extended regexp of symbols to exclude
9427 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9428 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9429 # as well as any symbol that contains `d'.
9430 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9431 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9432 # platforms (ab)use it in PIC code, but their linkers get confused if
9433 # the symbol is explicitly referenced. Since portable code cannot
9434 # rely on this symbol name, it's probably fine to never include it in
9435 # preloaded symbol tables.
9436 # Exclude shared library initialization/finalization symbols.
9437 extract_expsyms_cmds=
9440 cygwin* | mingw* | pw32* | cegcc*)
9441 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9442 # When not using gcc, we currently assume that we are using
9443 # Microsoft Visual C++.
9444 if test "$GCC" != yes; then
9449 # we just hope/assume this is gcc and not c89 (= MSVC++)
9455 linux* | k*bsd*-gnu | gnu*)
9462 # On some targets, GNU ld is compatible enough with the native linker
9463 # that we're better off using the native interface for both.
9464 lt_use_gnu_ld_interface=no
9465 if test "$with_gnu_ld" = yes; then
9468 # The AIX port of GNU ld has always aspired to compatibility
9469 # with the native linker. However, as the warning in the GNU ld
9470 # block says, versions before 2.19.5* couldn't really create working
9471 # shared libraries, regardless of the interface used.
9472 case `$LD -v 2>&1` in
9473 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9474 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9475 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9477 lt_use_gnu_ld_interface=yes
9482 lt_use_gnu_ld_interface=yes
9487 if test "$lt_use_gnu_ld_interface" = yes; then
9488 # If archive_cmds runs LD, not CC, wlarc should be empty
9491 # Set some defaults for GNU ld with shared library support. These
9492 # are reset later if shared libraries are not supported. Putting them
9493 # here allows them to be overridden if necessary.
9494 runpath_var=LD_RUN_PATH
9495 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9496 export_dynamic_flag_spec='${wl}--export-dynamic'
9497 # ancient GNU ld didn't support --whole-archive et. al.
9498 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9499 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9501 whole_archive_flag_spec=
9503 supports_anon_versioning=no
9504 case `$LD -v 2>&1` in
9505 *GNU\ gold*) supports_anon_versioning=yes ;;
9506 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9507 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9508 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9509 *\ 2.11.*) ;; # other 2.11 versions
9510 *) supports_anon_versioning=yes ;;
9513 # See if GNU ld supports shared libraries.
9516 # On AIX/PPC, the GNU linker is very broken
9517 if test "$host_cpu" != ia64; then
9521 *** Warning: the GNU linker, at least up to release 2.19, is reported
9522 *** to be unable to reliably create shared libraries on AIX.
9523 *** Therefore, libtool is disabling shared libraries support. If you
9524 *** really care for shared libraries, you may want to install binutils
9525 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9526 *** You will then need to restart the configuration process.
9535 # see comment about AmigaOS4 .so support
9536 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9537 archive_expsym_cmds=''
9540 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)'
9541 hardcode_libdir_flag_spec='-L$libdir'
9542 hardcode_minus_L=yes
9548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9549 allow_undefined_flag=unsupported
9550 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9551 # support --undefined. This deserves some investigation. FIXME
9552 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9558 cygwin* | mingw* | pw32* | cegcc*)
9559 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9560 # as there is no search path for DLLs.
9561 hardcode_libdir_flag_spec='-L$libdir'
9562 export_dynamic_flag_spec='${wl}--export-all-symbols'
9563 allow_undefined_flag=unsupported
9564 always_export_symbols=no
9565 enable_shared_with_static_runtimes=yes
9566 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'
9567 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9569 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9571 # If the export-symbols file already is a .def file (1st line
9572 # is EXPORTS), use it as is; otherwise, prepend...
9573 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9574 cp $export_symbols $output_objdir/$soname.def;
9576 echo EXPORTS > $output_objdir/$soname.def;
9577 cat $export_symbols >> $output_objdir/$soname.def;
9579 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9586 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587 link_all_deplibs=yes
9592 hardcode_shlibpath_var=no
9593 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9594 export_dynamic_flag_spec='${wl}-E'
9595 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9596 # Instead, shared libraries are loaded at an image base (0x10000000 by
9597 # default) and relocated if they conflict, which is a slow very memory
9598 # consuming and fragmenting process. To avoid this, we pick a random,
9599 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9600 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9601 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9602 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'
9605 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9607 if test "$host_os" = linux-dietlibc; then
9608 case $cc_basename in
9609 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9612 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9613 && test "$tmp_diet" = no
9615 tmp_addflag=' $pic_flag'
9616 tmp_sharedflag='-shared'
9617 case $cc_basename,$host_cpu in
9618 pgcc*) # Portland Group C compiler
9619 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'
9620 tmp_addflag=' $pic_flag'
9622 pgf77* | pgf90* | pgf95* | pgfortran*)
9623 # Portland Group f77 and f90 compilers
9624 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'
9625 tmp_addflag=' $pic_flag -Mnomain' ;;
9626 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9627 tmp_addflag=' -i_dynamic' ;;
9628 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9629 tmp_addflag=' -i_dynamic -nofor_main' ;;
9630 ifc* | ifort*) # Intel Fortran compiler
9631 tmp_addflag=' -nofor_main' ;;
9632 lf95*) # Lahey Fortran 8.1
9633 whole_archive_flag_spec=
9634 tmp_sharedflag='--shared' ;;
9635 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9636 tmp_sharedflag='-qmkshrobj'
9638 nvcc*) # Cuda Compiler Driver 2.2
9639 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'
9640 compiler_needs_object=yes
9643 case `$CC -V 2>&1 | sed 5q` in
9644 *Sun\ C*) # Sun C 5.9
9645 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'
9646 compiler_needs_object=yes
9647 tmp_sharedflag='-G' ;;
9648 *Sun\ F*) # Sun Fortran 8.3
9649 tmp_sharedflag='-G' ;;
9651 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9653 if test "x$supports_anon_versioning" = xyes; then
9654 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9655 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9656 echo "local: *; };" >> $output_objdir/$libname.ver~
9657 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9660 case $cc_basename in
9661 xlf* | bgf* | bgxlf* | mpixlf*)
9662 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9663 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9665 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9666 if test "x$supports_anon_versioning" = xyes; then
9667 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9668 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9669 echo "local: *; };" >> $output_objdir/$libname.ver~
9670 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9679 netbsd* | netbsdelf*-gnu)
9680 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9681 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9684 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9685 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9690 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9694 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9695 *** create shared libraries on Solaris systems. Therefore, libtool
9696 *** is disabling shared libraries support. We urge you to upgrade GNU
9697 *** binutils to release 2.9.1 or newer. Another option is to modify
9698 *** your PATH or compiler configuration so that the native linker is
9699 *** used, and then restart.
9702 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9703 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9704 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9710 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9711 case `$LD -v 2>&1` in
9712 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9716 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9717 *** reliably create shared libraries on SCO systems. Therefore, libtool
9718 *** is disabling shared libraries support. We urge you to upgrade GNU
9719 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9720 *** your PATH or compiler configuration so that the native linker is
9721 *** used, and then restart.
9726 # For security reasons, it is highly recommended that you always
9727 # use absolute paths for naming shared libraries, and exclude the
9728 # DT_RUNPATH tag from executables and libraries. But doing so
9729 # requires that you compile everything twice, which is a pain.
9730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9731 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9732 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9733 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9742 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9745 hardcode_shlibpath_var=no
9749 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9750 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9758 if test "$ld_shlibs" = no; then
9760 hardcode_libdir_flag_spec=
9761 export_dynamic_flag_spec=
9762 whole_archive_flag_spec=
9765 # PORTME fill in a description of your system's linker (not GNU ld)
9768 allow_undefined_flag=unsupported
9769 always_export_symbols=yes
9770 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'
9771 # Note: this linker hardcodes the directories in LIBPATH if there
9772 # are no directories specified by -L.
9773 hardcode_minus_L=yes
9774 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9775 # Neither direct hardcoding nor static linking is supported with a
9777 hardcode_direct=unsupported
9782 if test "$host_cpu" = ia64; then
9783 # On IA64, the linker does run time linking by default, so we don't
9784 # have to do anything special.
9785 aix_use_runtimelinking=no
9786 exp_sym_flag='-Bexport'
9789 # If we're using GNU nm, then we don't want the "-C" option.
9790 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9791 # Also, AIX nm treats weak defined symbols like other global
9792 # defined symbols, whereas GNU nm marks them as "W".
9793 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9794 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'
9796 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'
9798 aix_use_runtimelinking=no
9800 # Test if we are trying to use run time linking or normal
9801 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9802 # need to do runtime linking.
9803 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9804 for ld_flag in $LDFLAGS; do
9805 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9806 aix_use_runtimelinking=yes
9813 exp_sym_flag='-bexport'
9814 no_entry_flag='-bnoentry'
9817 # When large executables or shared objects are built, AIX ld can
9818 # have problems creating the table of contents. If linking a library
9819 # or program results in "error TOC overflow" add -mminimal-toc to
9820 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9821 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9825 hardcode_direct_absolute=yes
9826 hardcode_libdir_separator=':'
9827 link_all_deplibs=yes
9828 file_list_spec='${wl}-f,'
9830 if test "$GCC" = yes; then
9831 case $host_os in aix4.[012]|aix4.[012].*)
9832 # We only want to do this on AIX 4.2 and lower, the check
9833 # below for broken collect2 doesn't work under 4.3+
9834 collect2name=`${CC} -print-prog-name=collect2`
9835 if test -f "$collect2name" &&
9836 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9838 # We have reworked collect2
9841 # We have old collect2
9842 hardcode_direct=unsupported
9843 # It fails to find uninstalled libraries when the uninstalled
9844 # path is not listed in the libpath. Setting hardcode_minus_L
9845 # to unsupported forces relinking
9846 hardcode_minus_L=yes
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 hardcode_libdir_separator=
9852 shared_flag='-shared'
9853 if test "$aix_use_runtimelinking" = yes; then
9854 shared_flag="$shared_flag "'${wl}-G'
9859 if test "$host_cpu" = ia64; then
9860 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9861 # chokes on -Wl,-G. The following line is correct:
9864 if test "$aix_use_runtimelinking" = yes; then
9865 shared_flag='${wl}-G'
9867 shared_flag='${wl}-bM:SRE'
9872 export_dynamic_flag_spec='${wl}-bexpall'
9873 # It seems that -bexpall does not export symbols beginning with
9874 # underscore (_), so it is better to generate a list of symbols to export.
9875 always_export_symbols=yes
9876 if test "$aix_use_runtimelinking" = yes; then
9877 # Warning - without using the other runtime loading flags (-brtl),
9878 # -berok will link without error, but may produce a broken library.
9879 allow_undefined_flag='-berok'
9880 # Determine the default libpath from the value encoded in an
9882 if test "${lt_cv_aix_libpath+set}" = set; then
9883 aix_libpath=$lt_cv_aix_libpath
9885 if ${lt_cv_aix_libpath_+:} false; then :
9886 $as_echo_n "(cached) " >&6
9888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9889 /* end confdefs.h. */
9899 if ac_fn_c_try_link "$LINENO"; then :
9901 lt_aix_libpath_sed='
9902 /Import File Strings/,/^$/ {
9904 s/^0 *\([^ ]*\) *$/\1/
9908 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9909 # Check for a 64-bit object if we didn't find anything.
9910 if test -z "$lt_cv_aix_libpath_"; then
9911 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9914 rm -f core conftest.err conftest.$ac_objext \
9915 conftest$ac_exeext conftest.$ac_ext
9916 if test -z "$lt_cv_aix_libpath_"; then
9917 lt_cv_aix_libpath_="/usr/lib:/lib"
9922 aix_libpath=$lt_cv_aix_libpath_
9925 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9926 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"
9928 if test "$host_cpu" = ia64; then
9929 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9930 allow_undefined_flag="-z nodefs"
9931 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"
9933 # Determine the default libpath from the value encoded in an
9935 if test "${lt_cv_aix_libpath+set}" = set; then
9936 aix_libpath=$lt_cv_aix_libpath
9938 if ${lt_cv_aix_libpath_+:} false; then :
9939 $as_echo_n "(cached) " >&6
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9952 if ac_fn_c_try_link "$LINENO"; then :
9954 lt_aix_libpath_sed='
9955 /Import File Strings/,/^$/ {
9957 s/^0 *\([^ ]*\) *$/\1/
9961 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9962 # Check for a 64-bit object if we didn't find anything.
9963 if test -z "$lt_cv_aix_libpath_"; then
9964 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9967 rm -f core conftest.err conftest.$ac_objext \
9968 conftest$ac_exeext conftest.$ac_ext
9969 if test -z "$lt_cv_aix_libpath_"; then
9970 lt_cv_aix_libpath_="/usr/lib:/lib"
9975 aix_libpath=$lt_cv_aix_libpath_
9978 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9979 # Warning - without using the other run time loading flags,
9980 # -berok will link without error, but may produce a broken library.
9981 no_undefined_flag=' ${wl}-bernotok'
9982 allow_undefined_flag=' ${wl}-berok'
9983 if test "$with_gnu_ld" = yes; then
9984 # We only use this code for GNU lds that support --whole-archive.
9985 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9987 # Exported symbols can be pulled into shared objects from archives
9988 whole_archive_flag_spec='$convenience'
9990 archive_cmds_need_lc=yes
9991 # This is similar to how AIX traditionally builds its shared libraries.
9992 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'
10000 # see comment about AmigaOS4 .so support
10001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002 archive_expsym_cmds=''
10005 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)'
10006 hardcode_libdir_flag_spec='-L$libdir'
10007 hardcode_minus_L=yes
10013 export_dynamic_flag_spec=-rdynamic
10016 cygwin* | mingw* | pw32* | cegcc*)
10017 # When not using gcc, we currently assume that we are using
10018 # Microsoft Visual C++.
10019 # hardcode_libdir_flag_spec is actually meaningless, as there is
10020 # no search path for DLLs.
10021 case $cc_basename in
10024 hardcode_libdir_flag_spec=' '
10025 allow_undefined_flag=unsupported
10026 always_export_symbols=yes
10028 # Tell ltmain to make .lib files, not .a files.
10030 # Tell ltmain to make .dll files, not .so files.
10032 # FIXME: Setting linknames here is a bad hack.
10033 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10034 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10035 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10037 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10039 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10041 # The linker will not automatically build a static lib if we build a DLL.
10042 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10043 enable_shared_with_static_runtimes=yes
10044 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10045 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10047 old_postinstall_cmds='chmod 644 $oldlib'
10048 postlink_cmds='lt_outputfile="@OUTPUT@"~
10049 lt_tool_outputfile="@TOOL_OUTPUT@"~
10050 case $lt_outputfile in
10053 lt_outputfile="$lt_outputfile.exe"
10054 lt_tool_outputfile="$lt_tool_outputfile.exe"
10057 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10058 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10059 $RM "$lt_outputfile.manifest";
10063 # Assume MSVC wrapper
10064 hardcode_libdir_flag_spec=' '
10065 allow_undefined_flag=unsupported
10066 # Tell ltmain to make .lib files, not .a files.
10068 # Tell ltmain to make .dll files, not .so files.
10070 # FIXME: Setting linknames here is a bad hack.
10071 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10072 # The linker will automatically build a .lib file if we build a DLL.
10073 old_archive_from_new_cmds='true'
10074 # FIXME: Should let the user specify the lib program.
10075 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10076 enable_shared_with_static_runtimes=yes
10081 darwin* | rhapsody*)
10084 archive_cmds_need_lc=no
10086 hardcode_automatic=yes
10087 hardcode_shlibpath_var=unsupported
10088 if test "$lt_cv_ld_force_load" = "yes"; then
10089 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\"`'
10092 whole_archive_flag_spec=''
10094 link_all_deplibs=yes
10095 allow_undefined_flag="$_lt_dar_allow_undefined"
10096 case $cc_basename in
10097 ifort*) _lt_dar_can_shared=yes ;;
10098 *) _lt_dar_can_shared=$GCC ;;
10100 if test "$_lt_dar_can_shared" = "yes"; then
10101 output_verbose_link_cmd=func_echo_all
10102 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10103 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10104 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}"
10105 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}"
10114 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10115 hardcode_libdir_flag_spec='-L$libdir'
10116 hardcode_shlibpath_var=no
10119 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10120 # support. Future versions do this automatically, but an explicit c++rt0.o
10121 # does not break anything, and helps significantly (at the cost of a little
10124 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10125 hardcode_libdir_flag_spec='-R$libdir'
10126 hardcode_direct=yes
10127 hardcode_shlibpath_var=no
10130 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10133 hardcode_direct=yes
10134 hardcode_minus_L=yes
10135 hardcode_shlibpath_var=no
10138 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10139 freebsd* | dragonfly*)
10140 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10141 hardcode_libdir_flag_spec='-R$libdir'
10142 hardcode_direct=yes
10143 hardcode_shlibpath_var=no
10147 if test "$GCC" = yes; then
10148 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'
10150 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'
10152 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10153 hardcode_libdir_separator=:
10154 hardcode_direct=yes
10156 # hardcode_minus_L: Not really in the search PATH,
10157 # but as the default location of the library.
10158 hardcode_minus_L=yes
10159 export_dynamic_flag_spec='${wl}-E'
10163 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10164 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10166 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10168 if test "$with_gnu_ld" = no; then
10169 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10170 hardcode_libdir_separator=:
10171 hardcode_direct=yes
10172 hardcode_direct_absolute=yes
10173 export_dynamic_flag_spec='${wl}-E'
10174 # hardcode_minus_L: Not really in the search PATH,
10175 # but as the default location of the library.
10176 hardcode_minus_L=yes
10181 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10184 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10187 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10190 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10196 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10199 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10203 # Older versions of the 11.00 compiler do not understand -b yet
10204 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10206 $as_echo_n "checking if $CC understands -b... " >&6; }
10207 if ${lt_cv_prog_compiler__b+:} false; then :
10208 $as_echo_n "(cached) " >&6
10210 lt_cv_prog_compiler__b=no
10211 save_LDFLAGS="$LDFLAGS"
10212 LDFLAGS="$LDFLAGS -b"
10213 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10214 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10215 # The linker can only warn and ignore the option if not recognized
10216 # So say no if there are warnings
10217 if test -s conftest.err; then
10218 # Append any errors to the config.log.
10219 cat conftest.err 1>&5
10220 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10221 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10222 if diff conftest.exp conftest.er2 >/dev/null; then
10223 lt_cv_prog_compiler__b=yes
10226 lt_cv_prog_compiler__b=yes
10230 LDFLAGS="$save_LDFLAGS"
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10234 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10236 if test x"$lt_cv_prog_compiler__b" = xyes; then
10237 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10239 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10245 if test "$with_gnu_ld" = no; then
10246 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10247 hardcode_libdir_separator=:
10252 hardcode_shlibpath_var=no
10255 hardcode_direct=yes
10256 hardcode_direct_absolute=yes
10257 export_dynamic_flag_spec='${wl}-E'
10259 # hardcode_minus_L: Not really in the search PATH,
10260 # but as the default location of the library.
10261 hardcode_minus_L=yes
10267 irix5* | irix6* | nonstopux*)
10268 if test "$GCC" = yes; then
10269 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'
10270 # Try to use the -exported_symbol ld option, if it does not
10271 # work, assume that -exports_file does not work either and
10272 # implicitly export all symbols.
10273 # This should be the same for all languages, so no per-tag cache variable.
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10275 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10276 if ${lt_cv_irix_exported_symbol+:} false; then :
10277 $as_echo_n "(cached) " >&6
10279 save_LDFLAGS="$LDFLAGS"
10280 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10282 /* end confdefs.h. */
10283 int foo (void) { return 0; }
10285 if ac_fn_c_try_link "$LINENO"; then :
10286 lt_cv_irix_exported_symbol=yes
10288 lt_cv_irix_exported_symbol=no
10290 rm -f core conftest.err conftest.$ac_objext \
10291 conftest$ac_exeext conftest.$ac_ext
10292 LDFLAGS="$save_LDFLAGS"
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10295 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10296 if test "$lt_cv_irix_exported_symbol" = yes; then
10297 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'
10300 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'
10301 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'
10303 archive_cmds_need_lc='no'
10304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10305 hardcode_libdir_separator=:
10307 link_all_deplibs=yes
10310 netbsd* | netbsdelf*-gnu)
10311 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10314 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10316 hardcode_libdir_flag_spec='-R$libdir'
10317 hardcode_direct=yes
10318 hardcode_shlibpath_var=no
10322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10323 hardcode_direct=yes
10324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10325 hardcode_libdir_separator=:
10326 hardcode_shlibpath_var=no
10333 if test -f /usr/libexec/ld.so; then
10334 hardcode_direct=yes
10335 hardcode_shlibpath_var=no
10336 hardcode_direct_absolute=yes
10337 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10339 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10341 export_dynamic_flag_spec='${wl}-E'
10344 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_libdir_flag_spec='-R$libdir'
10349 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10360 hardcode_libdir_flag_spec='-L$libdir'
10361 hardcode_minus_L=yes
10362 allow_undefined_flag=unsupported
10363 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'
10364 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10368 if test "$GCC" = yes; then
10369 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10370 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'
10372 allow_undefined_flag=' -expect_unresolved \*'
10373 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'
10375 archive_cmds_need_lc='no'
10376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10377 hardcode_libdir_separator=:
10380 osf4* | osf5*) # as osf3* with the addition of -msym flag
10381 if test "$GCC" = yes; then
10382 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10383 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'
10384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10386 allow_undefined_flag=' -expect_unresolved \*'
10387 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'
10388 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~
10389 $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'
10391 # Both c and cxx compiler support -rpath directly
10392 hardcode_libdir_flag_spec='-rpath $libdir'
10394 archive_cmds_need_lc='no'
10395 hardcode_libdir_separator=:
10399 no_undefined_flag=' -z defs'
10400 if test "$GCC" = yes; then
10402 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10404 $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'
10406 case `$CC -V 2>&1` in
10409 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10410 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10411 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10415 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10417 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10421 hardcode_libdir_flag_spec='-R$libdir'
10422 hardcode_shlibpath_var=no
10424 solaris2.[0-5] | solaris2.[0-5].*) ;;
10426 # The compiler driver will combine and reorder linker options,
10427 # but understands `-z linker_flag'. GCC discards it without `$wl',
10428 # but is careful enough not to reorder.
10429 # Supported since Solaris 2.6 (maybe 2.5.1?)
10430 if test "$GCC" = yes; then
10431 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10433 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10437 link_all_deplibs=yes
10441 if test "x$host_vendor" = xsequent; then
10442 # Use $CC to link under sequent, because it throws in some extra .o
10443 # files that make .init and .fini sections work.
10444 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10446 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10448 hardcode_libdir_flag_spec='-L$libdir'
10449 hardcode_direct=yes
10450 hardcode_minus_L=yes
10451 hardcode_shlibpath_var=no
10455 case $host_vendor in
10457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10458 hardcode_direct=yes # is this really true???
10461 ## LD is ld it makes a PLAMLIB
10462 ## CC just makes a GrossModule.
10463 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10464 reload_cmds='$CC -r -o $output$reload_objs'
10468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10472 runpath_var='LD_RUN_PATH'
10473 hardcode_shlibpath_var=no
10477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10478 hardcode_shlibpath_var=no
10479 export_dynamic_flag_spec='-Bexport'
10483 if test -d /usr/nec; then
10484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10485 hardcode_shlibpath_var=no
10486 runpath_var=LD_RUN_PATH
10487 hardcode_runpath_var=yes
10492 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10493 no_undefined_flag='${wl}-z,text'
10494 archive_cmds_need_lc=no
10495 hardcode_shlibpath_var=no
10496 runpath_var='LD_RUN_PATH'
10498 if test "$GCC" = yes; then
10499 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10500 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10502 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10503 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10507 sysv5* | sco3.2v5* | sco5v6*)
10508 # Note: We can NOT use -z defs as we might desire, because we do not
10509 # link with -lc, and that would cause any symbols used from libc to
10510 # always be unresolved, which means just about no library would
10511 # ever link correctly. If we're not using GNU ld we use -z text
10512 # though, which does catch some bad symbols but isn't as heavy-handed
10514 no_undefined_flag='${wl}-z,text'
10515 allow_undefined_flag='${wl}-z,nodefs'
10516 archive_cmds_need_lc=no
10517 hardcode_shlibpath_var=no
10518 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10519 hardcode_libdir_separator=':'
10520 link_all_deplibs=yes
10521 export_dynamic_flag_spec='${wl}-Bexport'
10522 runpath_var='LD_RUN_PATH'
10524 if test "$GCC" = yes; then
10525 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10526 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10528 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10529 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10535 hardcode_libdir_flag_spec='-L$libdir'
10536 hardcode_shlibpath_var=no
10544 if test x$host_vendor = xsni; then
10546 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10547 export_dynamic_flag_spec='${wl}-Blargedynsym'
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10554 $as_echo "$ld_shlibs" >&6; }
10555 test "$ld_shlibs" = no && can_build_shared=no
10557 with_gnu_ld=$with_gnu_ld
10574 # Do we need to explicitly link libc?
10576 case "x$archive_cmds_need_lc" in
10578 # Assume -lc should be added
10579 archive_cmds_need_lc=yes
10581 if test "$enable_shared" = yes && test "$GCC" = yes; then
10582 case $archive_cmds in
10584 # FIXME: we may have to deal with multi-command sequences.
10587 # Test whether the compiler implicitly links with -lc since on some
10588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10589 # to ld, don't add -lc before -lgcc.
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10591 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10592 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10593 $as_echo_n "(cached) " >&6
10596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10598 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10599 (eval $ac_compile) 2>&5
10601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10602 test $ac_status = 0; } 2>conftest.err; then
10605 libobjs=conftest.$ac_objext
10607 wl=$lt_prog_compiler_wl
10608 pic_flag=$lt_prog_compiler_pic
10614 lt_save_allow_undefined_flag=$allow_undefined_flag
10615 allow_undefined_flag=
10616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10617 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10620 test $ac_status = 0; }
10622 lt_cv_archive_cmds_need_lc=no
10624 lt_cv_archive_cmds_need_lc=yes
10626 allow_undefined_flag=$lt_save_allow_undefined_flag
10628 cat conftest.err 1>&5
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10634 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10635 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10794 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10796 if test "$GCC" = yes; then
10798 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10799 *) lt_awk_arg="/^libraries:/" ;;
10802 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10803 *) lt_sed_strip_eq="s,=/,/,g" ;;
10805 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10806 case $lt_search_path_spec in
10808 # if the path contains ";" then we assume it to be the separator
10809 # otherwise default to the standard path separator (i.e. ":") - it is
10810 # assumed that no part of a normal pathname contains ";" but that should
10811 # okay in the real world where ";" in dirpaths is itself problematic.
10812 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10815 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10818 # Ok, now we have the path, separated by spaces, we can step through it
10819 # and add multilib dir if necessary.
10820 lt_tmp_lt_search_path_spec=
10821 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10822 for lt_sys_path in $lt_search_path_spec; do
10823 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10824 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10826 test -d "$lt_sys_path" && \
10827 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10830 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10831 BEGIN {RS=" "; FS="/|\n";} {
10834 for (lt_i = NF; lt_i > 0; lt_i--) {
10835 if ($lt_i != "" && $lt_i != ".") {
10836 if ($lt_i == "..") {
10839 if (lt_count == 0) {
10840 lt_foo="/" $lt_i lt_foo;
10847 if (lt_foo != "") { lt_freq[lt_foo]++; }
10848 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10850 # AWK program above erroneously prepends '/' to C:/dos/paths
10853 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10854 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10856 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10858 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10860 library_names_spec=
10861 libname_spec='lib$name'
10865 postuninstall_cmds=
10869 shlibpath_overrides_runpath=unknown
10871 dynamic_linker="$host_os ld.so"
10872 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10873 need_lib_prefix=unknown
10874 hardcode_into_libs=no
10876 # when you set need_version to no, make sure it does not cause -set_version
10877 # flags to be left without arguments
10878 need_version=unknown
10882 version_type=linux # correct to gnu/linux during the next big refactor
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10884 shlibpath_var=LIBPATH
10886 # AIX 3 has no versioning support, so we append a major version to the name.
10887 soname_spec='${libname}${release}${shared_ext}$major'
10891 version_type=linux # correct to gnu/linux during the next big refactor
10894 hardcode_into_libs=yes
10895 if test "$host_cpu" = ia64; then
10896 # AIX 5 supports IA64
10897 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10898 shlibpath_var=LD_LIBRARY_PATH
10900 # With GCC up to 2.95.x, collect2 would create an import file
10901 # for dependence libraries. The import file would start with
10902 # the line `#! .'. This would cause the generated library to
10903 # depend on `.', always an invalid library. This was fixed in
10904 # development snapshots of GCC prior to 3.0.
10906 aix4 | aix4.[01] | aix4.[01].*)
10907 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10909 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10912 can_build_shared=no
10916 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10917 # soname into executable. Probably we can add versioning support to
10918 # collect2, so additional links can be useful in future.
10919 if test "$aix_use_runtimelinking" = yes; then
10920 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10921 # instead of lib<name>.a to let people know that these are not
10922 # typical AIX shared libraries.
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10925 # We preserve .a as extension for shared libraries through AIX4.2
10926 # and later when we are not doing run time linking.
10927 library_names_spec='${libname}${release}.a $libname.a'
10928 soname_spec='${libname}${release}${shared_ext}$major'
10930 shlibpath_var=LIBPATH
10937 # Since July 2007 AmigaOS4 officially supports .so libraries.
10938 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942 library_names_spec='$libname.ixlibrary $libname.a'
10943 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10944 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'
10950 library_names_spec='${libname}${shared_ext}'
10951 dynamic_linker="$host_os ld.so"
10952 shlibpath_var=LIBRARY_PATH
10956 version_type=linux # correct to gnu/linux during the next big refactor
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10961 shlibpath_var=LD_LIBRARY_PATH
10962 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10963 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10964 # the default ld.so.conf also contains /usr/contrib/lib and
10965 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10966 # libtool to hard-code these into programs
10969 cygwin* | mingw* | pw32* | cegcc*)
10970 version_type=windows
10975 case $GCC,$cc_basename in
10978 library_names_spec='$libname.dll.a'
10979 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10980 postinstall_cmds='base_file=`basename \${file}`~
10981 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10982 dldir=$destdir/`dirname \$dlpath`~
10983 test -d \$dldir || mkdir -p \$dldir~
10984 $install_prog $dir/$dlname \$dldir/$dlname~
10985 chmod a+x \$dldir/$dlname~
10986 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10987 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10990 dlpath=$dir/\$dldll~
10992 shlibpath_overrides_runpath=yes
10996 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10997 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10999 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11002 # MinGW DLLs use traditional 'lib' prefix
11003 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11006 # pw32 DLLs use 'pw' prefix rather than 'lib'
11007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11010 dynamic_linker='Win32 ld.exe'
11015 libname_spec='$name'
11016 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11017 library_names_spec='${libname}.dll.lib'
11021 sys_lib_search_path_spec=
11024 for lt_path in $LIB
11027 # Let DOS variable expansion print the short 8.3 style file name.
11028 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11029 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11032 # Convert to MSYS style.
11033 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11036 # Convert to unix form, then to dos form, then back to unix form
11037 # but this time dos style (no spaces!) so that the unix form looks
11038 # like /cygdrive/c/PROGRA~1:/cygdr...
11039 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11040 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11041 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11044 sys_lib_search_path_spec="$LIB"
11045 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11046 # It is most probably a Windows format PATH.
11047 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11049 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11051 # FIXME: find the short name or the path components, as spaces are
11052 # common. (e.g. "Program Files" -> "PROGRA~1")
11056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11057 postinstall_cmds='base_file=`basename \${file}`~
11058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11059 dldir=$destdir/`dirname \$dlpath`~
11060 test -d \$dldir || mkdir -p \$dldir~
11061 $install_prog $dir/$dlname \$dldir/$dlname'
11062 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11063 dlpath=$dir/\$dldll~
11065 shlibpath_overrides_runpath=yes
11066 dynamic_linker='Win32 link.exe'
11070 # Assume MSVC wrapper
11071 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11072 dynamic_linker='Win32 ld.exe'
11075 # FIXME: first we should search . and the directory the executable is in
11079 darwin* | rhapsody*)
11080 dynamic_linker="$host_os dyld"
11081 version_type=darwin
11084 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11085 soname_spec='${libname}${release}${major}$shared_ext'
11086 shlibpath_overrides_runpath=yes
11087 shlibpath_var=DYLD_LIBRARY_PATH
11088 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11090 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11091 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11095 version_type=linux # correct to gnu/linux during the next big refactor
11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11099 soname_spec='${libname}${release}${shared_ext}$major'
11100 shlibpath_var=LD_LIBRARY_PATH
11103 freebsd* | dragonfly*)
11104 # DragonFly does not have aout. When/if they implement a new
11105 # versioning mechanism, adjust this.
11106 if test -x /usr/bin/objformat; then
11107 objformat=`/usr/bin/objformat`
11110 freebsd[23].*) objformat=aout ;;
11111 *) objformat=elf ;;
11114 version_type=freebsd-$objformat
11115 case $version_type in
11117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11126 shlibpath_var=LD_LIBRARY_PATH
11129 shlibpath_overrides_runpath=yes
11131 freebsd3.[01]* | freebsdelf3.[01]*)
11132 shlibpath_overrides_runpath=yes
11133 hardcode_into_libs=yes
11135 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11136 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11137 shlibpath_overrides_runpath=no
11138 hardcode_into_libs=yes
11140 *) # from 4.6 on, and DragonFly
11141 shlibpath_overrides_runpath=yes
11142 hardcode_into_libs=yes
11148 version_type=linux # correct to gnu/linux during the next big refactor
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11152 soname_spec='${libname}${release}${shared_ext}$major'
11153 shlibpath_var=LD_LIBRARY_PATH
11154 shlibpath_overrides_runpath=no
11155 hardcode_into_libs=yes
11159 version_type=linux # correct to gnu/linux during the next big refactor
11162 dynamic_linker="$host_os runtime_loader"
11163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11164 soname_spec='${libname}${release}${shared_ext}$major'
11165 shlibpath_var=LIBRARY_PATH
11166 shlibpath_overrides_runpath=yes
11167 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11168 hardcode_into_libs=yes
11171 hpux9* | hpux10* | hpux11*)
11172 # Give a soname corresponding to the major version so that dld.sl refuses to
11173 # link against other versions.
11180 hardcode_into_libs=yes
11181 dynamic_linker="$host_os dld.so"
11182 shlibpath_var=LD_LIBRARY_PATH
11183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11185 soname_spec='${libname}${release}${shared_ext}$major'
11186 if test "X$HPUX_IA64_MODE" = X32; then
11187 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11189 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11195 hardcode_into_libs=yes
11196 dynamic_linker="$host_os dld.sl"
11197 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11198 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11200 soname_spec='${libname}${release}${shared_ext}$major'
11201 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11206 dynamic_linker="$host_os dld.sl"
11207 shlibpath_var=SHLIB_PATH
11208 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11213 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11214 postinstall_cmds='chmod 555 $lib'
11215 # or fails outright, so override atomically:
11216 install_override_mode=555
11220 version_type=linux # correct to gnu/linux during the next big refactor
11223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11224 soname_spec='${libname}${release}${shared_ext}$major'
11225 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11226 shlibpath_var=LD_LIBRARY_PATH
11227 shlibpath_overrides_runpath=no
11228 hardcode_into_libs=yes
11231 irix5* | irix6* | nonstopux*)
11233 nonstopux*) version_type=nonstopux ;;
11235 if test "$lt_cv_prog_gnu_ld" = yes; then
11236 version_type=linux # correct to gnu/linux during the next big refactor
11243 soname_spec='${libname}${release}${shared_ext}$major'
11244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11246 irix5* | nonstopux*)
11247 libsuff= shlibsuff=
11250 case $LD in # libtool.m4 will add one of these switches to LD
11251 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11252 libsuff= shlibsuff= libmagic=32-bit;;
11253 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11254 libsuff=32 shlibsuff=N32 libmagic=N32;;
11255 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11256 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11257 *) libsuff= shlibsuff= libmagic=never-match;;
11261 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11262 shlibpath_overrides_runpath=no
11263 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11264 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11265 hardcode_into_libs=yes
11268 # No shared lib support for Linux oldld, aout, or coff.
11269 linux*oldld* | linux*aout* | linux*coff*)
11273 # This must be glibc/ELF.
11274 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11275 version_type=linux # correct to gnu/linux during the next big refactor
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11279 soname_spec='${libname}${release}${shared_ext}$major'
11280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11281 shlibpath_var=LD_LIBRARY_PATH
11282 shlibpath_overrides_runpath=no
11284 # Some binutils ld are patched to set DT_RUNPATH
11285 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11286 $as_echo_n "(cached) " >&6
11288 lt_cv_shlibpath_overrides_runpath=no
11289 save_LDFLAGS=$LDFLAGS
11290 save_libdir=$libdir
11291 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11292 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* end confdefs.h. */
11304 if ac_fn_c_try_link "$LINENO"; then :
11305 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11306 lt_cv_shlibpath_overrides_runpath=yes
11309 rm -f core conftest.err conftest.$ac_objext \
11310 conftest$ac_exeext conftest.$ac_ext
11311 LDFLAGS=$save_LDFLAGS
11312 libdir=$save_libdir
11316 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11318 # This implies no fast_install, which is unacceptable.
11319 # Some rework will be needed to allow for fast_install
11320 # before this can be enabled.
11321 hardcode_into_libs=yes
11323 # Append ld.so.conf contents to the search path
11324 if test -f /etc/ld.so.conf; then
11325 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' ' '`
11326 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11329 # We used to test for /lib/ld.so.1 and disable shared libraries on
11330 # powerpc, because MkLinux only supported shared libraries with the
11331 # GNU dynamic linker. Since this was broken with cross compilers,
11332 # most powerpc-linux boxes support dynamic linking these days and
11333 # people can always --disable-shared, the test was removed, and we
11334 # assume the GNU/Linux dynamic linker is in use.
11335 dynamic_linker='GNU/Linux ld.so'
11342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11343 soname_spec='${libname}${release}${shared_ext}$major'
11344 shlibpath_var=LD_LIBRARY_PATH
11345 shlibpath_overrides_runpath=no
11346 hardcode_into_libs=yes
11347 dynamic_linker='NetBSD ld.elf_so'
11354 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11357 dynamic_linker='NetBSD (a.out) ld.so'
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 dynamic_linker='NetBSD ld.elf_so'
11363 shlibpath_var=LD_LIBRARY_PATH
11364 shlibpath_overrides_runpath=yes
11365 hardcode_into_libs=yes
11369 version_type=linux # correct to gnu/linux during the next big refactor
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11371 shlibpath_var=LD_LIBRARY_PATH
11372 shlibpath_overrides_runpath=yes
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 shlibpath_var=LD_LIBRARY_PATH
11382 shlibpath_overrides_runpath=no
11383 hardcode_into_libs=yes
11384 dynamic_linker='ldqnx.so'
11389 sys_lib_dlsearch_path_spec="/usr/lib"
11391 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11393 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11394 *) need_version=no ;;
11396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11401 openbsd2.[89] | openbsd2.[89].*)
11402 shlibpath_overrides_runpath=no
11405 shlibpath_overrides_runpath=yes
11409 shlibpath_overrides_runpath=yes
11414 libname_spec='$name'
11417 library_names_spec='$libname${shared_ext} $libname.a'
11418 dynamic_linker='OS/2 ld.exe'
11419 shlibpath_var=LIBPATH
11422 osf3* | osf4* | osf5*)
11426 soname_spec='${libname}${release}${shared_ext}$major'
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 shlibpath_var=LD_LIBRARY_PATH
11429 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11430 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11438 version_type=linux # correct to gnu/linux during the next big refactor
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11442 soname_spec='${libname}${release}${shared_ext}$major'
11443 shlibpath_var=LD_LIBRARY_PATH
11444 shlibpath_overrides_runpath=yes
11445 hardcode_into_libs=yes
11446 # ldd complains unless libraries are executable
11447 postinstall_cmds='chmod +x $lib'
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11453 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11454 shlibpath_var=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath=yes
11456 if test "$with_gnu_ld" = yes; then
11463 version_type=linux # correct to gnu/linux during the next big refactor
11464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11465 soname_spec='${libname}${release}${shared_ext}$major'
11466 shlibpath_var=LD_LIBRARY_PATH
11467 case $host_vendor in
11469 shlibpath_overrides_runpath=no
11471 runpath_var=LD_RUN_PATH
11479 shlibpath_overrides_runpath=no
11480 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11486 if test -d /usr/nec ;then
11487 version_type=linux # correct to gnu/linux during the next big refactor
11488 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11489 soname_spec='$libname${shared_ext}.$major'
11490 shlibpath_var=LD_LIBRARY_PATH
11494 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11495 version_type=freebsd-elf
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11499 soname_spec='${libname}${release}${shared_ext}$major'
11500 shlibpath_var=LD_LIBRARY_PATH
11501 shlibpath_overrides_runpath=yes
11502 hardcode_into_libs=yes
11503 if test "$with_gnu_ld" = yes; then
11504 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11506 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11509 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11513 sys_lib_dlsearch_path_spec='/usr/lib'
11517 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11518 version_type=linux # correct to gnu/linux during the next big refactor
11521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522 shlibpath_var=LD_LIBRARY_PATH
11523 shlibpath_overrides_runpath=no
11524 hardcode_into_libs=yes
11528 version_type=linux # correct to gnu/linux during the next big refactor
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 shlibpath_var=LD_LIBRARY_PATH
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11539 $as_echo "$dynamic_linker" >&6; }
11540 test "$dynamic_linker" = no && can_build_shared=no
11542 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11543 if test "$GCC" = yes; then
11544 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11547 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11548 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11550 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11551 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11646 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11648 if test -n "$hardcode_libdir_flag_spec" ||
11649 test -n "$runpath_var" ||
11650 test "X$hardcode_automatic" = "Xyes" ; then
11652 # We can hardcode non-existent directories.
11653 if test "$hardcode_direct" != no &&
11654 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11655 # have to relink, otherwise we might link with an installed library
11656 # when we should be linking with a yet-to-be-installed one
11657 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11658 test "$hardcode_minus_L" != no; then
11659 # Linking always hardcodes the temporary library directory.
11660 hardcode_action=relink
11662 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11663 hardcode_action=immediate
11666 # We cannot hardcode anything, or else we can only hardcode existing
11668 hardcode_action=unsupported
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11671 $as_echo "$hardcode_action" >&6; }
11673 if test "$hardcode_action" = relink ||
11674 test "$inherit_rpath" = yes; then
11675 # Fast installation is not supported
11676 enable_fast_install=no
11677 elif test "$shlibpath_overrides_runpath" = yes ||
11678 test "$enable_shared" = no; then
11679 # Fast installation is not necessary
11680 enable_fast_install=needless
11688 if test "x$enable_dlopen" != xyes; then
11689 enable_dlopen=unknown
11690 enable_dlopen_self=unknown
11691 enable_dlopen_self_static=unknown
11698 lt_cv_dlopen="load_add_on"
11700 lt_cv_dlopen_self=yes
11703 mingw* | pw32* | cegcc*)
11704 lt_cv_dlopen="LoadLibrary"
11709 lt_cv_dlopen="dlopen"
11714 # if libdl is installed we need to link against it
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11716 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11717 if ${ac_cv_lib_dl_dlopen+:} false; then :
11718 $as_echo_n "(cached) " >&6
11720 ac_check_lib_save_LIBS=$LIBS
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11725 /* Override any GCC internal prototype to avoid an error.
11726 Use char because int might match the return type of a GCC
11727 builtin and then its argument prototype would still apply. */
11740 if ac_fn_c_try_link "$LINENO"; then :
11741 ac_cv_lib_dl_dlopen=yes
11743 ac_cv_lib_dl_dlopen=no
11745 rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11750 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11751 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11752 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11755 lt_cv_dlopen="dyld"
11757 lt_cv_dlopen_self=yes
11764 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11765 if test "x$ac_cv_func_shl_load" = xyes; then :
11766 lt_cv_dlopen="shl_load"
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11769 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11770 if ${ac_cv_lib_dld_shl_load+:} false; then :
11771 $as_echo_n "(cached) " >&6
11773 ac_check_lib_save_LIBS=$LIBS
11775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11776 /* end confdefs.h. */
11778 /* Override any GCC internal prototype to avoid an error.
11779 Use char because int might match the return type of a GCC
11780 builtin and then its argument prototype would still apply. */
11788 return shl_load ();
11793 if ac_fn_c_try_link "$LINENO"; then :
11794 ac_cv_lib_dld_shl_load=yes
11796 ac_cv_lib_dld_shl_load=no
11798 rm -f core conftest.err conftest.$ac_objext \
11799 conftest$ac_exeext conftest.$ac_ext
11800 LIBS=$ac_check_lib_save_LIBS
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11803 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11804 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11805 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11807 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11808 if test "x$ac_cv_func_dlopen" = xyes; then :
11809 lt_cv_dlopen="dlopen"
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11812 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11813 if ${ac_cv_lib_dl_dlopen+:} false; then :
11814 $as_echo_n "(cached) " >&6
11816 ac_check_lib_save_LIBS=$LIBS
11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819 /* end confdefs.h. */
11821 /* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11836 if ac_fn_c_try_link "$LINENO"; then :
11837 ac_cv_lib_dl_dlopen=yes
11839 ac_cv_lib_dl_dlopen=no
11841 rm -f core conftest.err conftest.$ac_objext \
11842 conftest$ac_exeext conftest.$ac_ext
11843 LIBS=$ac_check_lib_save_LIBS
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11846 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11847 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11848 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11851 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11852 if ${ac_cv_lib_svld_dlopen+:} false; then :
11853 $as_echo_n "(cached) " >&6
11855 ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-lsvld $LIBS"
11857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11858 /* end confdefs.h. */
11860 /* Override any GCC internal prototype to avoid an error.
11861 Use char because int might match the return type of a GCC
11862 builtin and then its argument prototype would still apply. */
11875 if ac_fn_c_try_link "$LINENO"; then :
11876 ac_cv_lib_svld_dlopen=yes
11878 ac_cv_lib_svld_dlopen=no
11880 rm -f core conftest.err conftest.$ac_objext \
11881 conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11885 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11886 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11887 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11890 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11891 if ${ac_cv_lib_dld_dld_link+:} false; then :
11892 $as_echo_n "(cached) " >&6
11894 ac_check_lib_save_LIBS=$LIBS
11896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897 /* end confdefs.h. */
11899 /* Override any GCC internal prototype to avoid an error.
11900 Use char because int might match the return type of a GCC
11901 builtin and then its argument prototype would still apply. */
11909 return dld_link ();
11914 if ac_fn_c_try_link "$LINENO"; then :
11915 ac_cv_lib_dld_dld_link=yes
11917 ac_cv_lib_dld_dld_link=no
11919 rm -f core conftest.err conftest.$ac_objext \
11920 conftest$ac_exeext conftest.$ac_ext
11921 LIBS=$ac_check_lib_save_LIBS
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11924 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11925 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11926 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11947 if test "x$lt_cv_dlopen" != xno; then
11953 case $lt_cv_dlopen in
11955 save_CPPFLAGS="$CPPFLAGS"
11956 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11958 save_LDFLAGS="$LDFLAGS"
11959 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11962 LIBS="$lt_cv_dlopen_libs $LIBS"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11965 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11966 if ${lt_cv_dlopen_self+:} false; then :
11967 $as_echo_n "(cached) " >&6
11969 if test "$cross_compiling" = yes; then :
11970 lt_cv_dlopen_self=cross
11972 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11973 lt_status=$lt_dlunknown
11974 cat > conftest.$ac_ext <<_LT_EOF
11975 #line $LINENO "configure"
11976 #include "confdefs.h"
11985 # define LT_DLGLOBAL RTLD_GLOBAL
11988 # define LT_DLGLOBAL DL_GLOBAL
11990 # define LT_DLGLOBAL 0
11994 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11995 find out it does not work in some platform. */
11996 #ifndef LT_DLLAZY_OR_NOW
11998 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12001 # define LT_DLLAZY_OR_NOW DL_LAZY
12004 # define LT_DLLAZY_OR_NOW RTLD_NOW
12007 # define LT_DLLAZY_OR_NOW DL_NOW
12009 # define LT_DLLAZY_OR_NOW 0
12016 /* When -fvisbility=hidden is used, assume the code has been annotated
12017 correspondingly for the symbols needed. */
12018 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12019 int fnord () __attribute__((visibility("default")));
12022 int fnord () { return 42; }
12025 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12026 int status = $lt_dlunknown;
12030 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12033 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12034 else puts (dlerror ());
12036 /* dlclose (self); */
12044 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12045 (eval $ac_link) 2>&5
12047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12048 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12049 (./conftest; exit; ) >&5 2>/dev/null
12051 case x$lt_status in
12052 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12053 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12054 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12057 # compilation failed
12058 lt_cv_dlopen_self=no
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12066 $as_echo "$lt_cv_dlopen_self" >&6; }
12068 if test "x$lt_cv_dlopen_self" = xyes; then
12069 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12071 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12072 if ${lt_cv_dlopen_self_static+:} false; then :
12073 $as_echo_n "(cached) " >&6
12075 if test "$cross_compiling" = yes; then :
12076 lt_cv_dlopen_self_static=cross
12078 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12079 lt_status=$lt_dlunknown
12080 cat > conftest.$ac_ext <<_LT_EOF
12081 #line $LINENO "configure"
12082 #include "confdefs.h"
12091 # define LT_DLGLOBAL RTLD_GLOBAL
12094 # define LT_DLGLOBAL DL_GLOBAL
12096 # define LT_DLGLOBAL 0
12100 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12101 find out it does not work in some platform. */
12102 #ifndef LT_DLLAZY_OR_NOW
12104 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12107 # define LT_DLLAZY_OR_NOW DL_LAZY
12110 # define LT_DLLAZY_OR_NOW RTLD_NOW
12113 # define LT_DLLAZY_OR_NOW DL_NOW
12115 # define LT_DLLAZY_OR_NOW 0
12122 /* When -fvisbility=hidden is used, assume the code has been annotated
12123 correspondingly for the symbols needed. */
12124 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12125 int fnord () __attribute__((visibility("default")));
12128 int fnord () { return 42; }
12131 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12132 int status = $lt_dlunknown;
12136 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12139 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12140 else puts (dlerror ());
12142 /* dlclose (self); */
12150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12151 (eval $ac_link) 2>&5
12153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12154 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12155 (./conftest; exit; ) >&5 2>/dev/null
12157 case x$lt_status in
12158 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12159 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12160 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12163 # compilation failed
12164 lt_cv_dlopen_self_static=no
12171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12172 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12175 CPPFLAGS="$save_CPPFLAGS"
12176 LDFLAGS="$save_LDFLAGS"
12181 case $lt_cv_dlopen_self in
12182 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12183 *) enable_dlopen_self=unknown ;;
12186 case $lt_cv_dlopen_self_static in
12187 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12188 *) enable_dlopen_self_static=unknown ;;
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12211 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12212 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12213 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12214 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12216 $as_echo "yes" >&6; }
12218 # FIXME - insert some real tests, host_os isn't really good enough
12221 if test -n "$STRIP" ; then
12222 striplib="$STRIP -x"
12223 old_striplib="$STRIP -S"
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12225 $as_echo "yes" >&6; }
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12228 $as_echo "no" >&6; }
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12249 # Report which library types will actually be built
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12251 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12253 $as_echo "$can_build_shared" >&6; }
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12256 $as_echo_n "checking whether to build shared libraries... " >&6; }
12257 test "$can_build_shared" = "no" && enable_shared=no
12259 # On AIX, shared libraries and static libraries use the same namespace, and
12260 # are all built from PIC.
12263 test "$enable_shared" = yes && enable_static=no
12264 if test -n "$RANLIB"; then
12265 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12266 postinstall_cmds='$RANLIB $lib'
12271 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12272 test "$enable_shared" = yes && enable_static=no
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12277 $as_echo "$enable_shared" >&6; }
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12280 $as_echo_n "checking whether to build static libraries... " >&6; }
12281 # Make sure either enable_shared or enable_static is yes.
12282 test "$enable_shared" = yes || enable_static=yes
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12284 $as_echo "$enable_static" >&6; }
12291 ac_cpp='$CPP $CPPFLAGS'
12292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12298 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12299 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12300 (test "X$CXX" != "Xg++"))) ; then
12302 ac_cpp='$CXXCPP $CPPFLAGS'
12303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12307 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12308 if test -z "$CXXCPP"; then
12309 if ${ac_cv_prog_CXXCPP+:} false; then :
12310 $as_echo_n "(cached) " >&6
12312 # Double quotes because CXXCPP needs to be expanded
12313 for CXXCPP in "$CXX -E" "/lib/cpp"
12315 ac_preproc_ok=false
12316 for ac_cxx_preproc_warn_flag in '' yes
12318 # Use a header file that comes with gcc, so configuring glibc
12319 # with a fresh cross-compiler works.
12320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12321 # <limits.h> exists even on freestanding compilers.
12322 # On the NeXT, cc -E runs the code through the compiler's parser,
12323 # not just through cpp. "Syntax error" is here to catch this case.
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12327 @%:@ include <limits.h>
12329 @%:@ include <assert.h>
12333 if ac_fn_cxx_try_cpp "$LINENO"; then :
12336 # Broken: fails on valid input.
12339 rm -f conftest.err conftest.i conftest.$ac_ext
12341 # OK, works on sane cases. Now check whether nonexistent headers
12342 # can be detected and how.
12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12345 @%:@include <ac_nonexistent.h>
12347 if ac_fn_cxx_try_cpp "$LINENO"; then :
12348 # Broken: success on invalid input.
12351 # Passes both tests.
12355 rm -f conftest.err conftest.i conftest.$ac_ext
12358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12359 rm -f conftest.i conftest.err conftest.$ac_ext
12360 if $ac_preproc_ok; then :
12365 ac_cv_prog_CXXCPP=$CXXCPP
12368 CXXCPP=$ac_cv_prog_CXXCPP
12370 ac_cv_prog_CXXCPP=$CXXCPP
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12373 $as_echo "$CXXCPP" >&6; }
12374 ac_preproc_ok=false
12375 for ac_cxx_preproc_warn_flag in '' yes
12377 # Use a header file that comes with gcc, so configuring glibc
12378 # with a fresh cross-compiler works.
12379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12380 # <limits.h> exists even on freestanding compilers.
12381 # On the NeXT, cc -E runs the code through the compiler's parser,
12382 # not just through cpp. "Syntax error" is here to catch this case.
12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384 /* end confdefs.h. */
12386 @%:@ include <limits.h>
12388 @%:@ include <assert.h>
12392 if ac_fn_cxx_try_cpp "$LINENO"; then :
12395 # Broken: fails on valid input.
12398 rm -f conftest.err conftest.i conftest.$ac_ext
12400 # OK, works on sane cases. Now check whether nonexistent headers
12401 # can be detected and how.
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12404 @%:@include <ac_nonexistent.h>
12406 if ac_fn_cxx_try_cpp "$LINENO"; then :
12407 # Broken: success on invalid input.
12410 # Passes both tests.
12414 rm -f conftest.err conftest.i conftest.$ac_ext
12417 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12418 rm -f conftest.i conftest.err conftest.$ac_ext
12419 if $ac_preproc_ok; then :
12422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12424 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12425 See \`config.log' for more details" "$LINENO" 5; }
12429 ac_cpp='$CPP $CPPFLAGS'
12430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12435 _lt_caught_CXX_error=yes
12439 ac_cpp='$CXXCPP $CPPFLAGS'
12440 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12441 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12442 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12444 archive_cmds_need_lc_CXX=no
12445 allow_undefined_flag_CXX=
12446 always_export_symbols_CXX=no
12447 archive_expsym_cmds_CXX=
12448 compiler_needs_object_CXX=no
12449 export_dynamic_flag_spec_CXX=
12450 hardcode_direct_CXX=no
12451 hardcode_direct_absolute_CXX=no
12452 hardcode_libdir_flag_spec_CXX=
12453 hardcode_libdir_separator_CXX=
12454 hardcode_minus_L_CXX=no
12455 hardcode_shlibpath_var_CXX=unsupported
12456 hardcode_automatic_CXX=no
12457 inherit_rpath_CXX=no
12459 module_expsym_cmds_CXX=
12460 link_all_deplibs_CXX=unknown
12461 old_archive_cmds_CXX=$old_archive_cmds
12462 reload_flag_CXX=$reload_flag
12463 reload_cmds_CXX=$reload_cmds
12464 no_undefined_flag_CXX=
12465 whole_archive_flag_spec_CXX=
12466 enable_shared_with_static_runtimes_CXX=no
12468 # Source file extension for C++ test sources.
12471 # Object file extension for compiled C++ test sources.
12475 # No sense in running all these tests if we already determined that
12476 # the CXX compiler isn't working. Some variables (like enable_shared)
12477 # are currently assumed to apply to all compilers on this platform,
12478 # and will be corrupted by setting them based on a non-working compiler.
12479 if test "$_lt_caught_CXX_error" != yes; then
12480 # Code to be used in simple compile tests
12481 lt_simple_compile_test_code="int some_variable = 0;"
12483 # Code to be used in simple link tests
12484 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12486 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12493 # If no C compiler was specified, use CC.
12496 # If no C compiler flags were specified, use CFLAGS.
12497 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12499 # Allow CC to be a program name with arguments.
12503 # save warnings/boilerplate of simple test code
12504 ac_outfile=conftest.$ac_objext
12505 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12506 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12507 _lt_compiler_boilerplate=`cat conftest.err`
12510 ac_outfile=conftest.$ac_objext
12511 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12512 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12513 _lt_linker_boilerplate=`cat conftest.err`
12517 # Allow CC to be a program name with arguments.
12519 lt_save_CFLAGS=$CFLAGS
12523 lt_save_with_gnu_ld=$with_gnu_ld
12524 lt_save_path_LD=$lt_cv_path_LD
12525 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12526 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12528 $as_unset lt_cv_prog_gnu_ld
12530 if test -n "${lt_cv_path_LDCXX+set}"; then
12531 lt_cv_path_LD=$lt_cv_path_LDCXX
12533 $as_unset lt_cv_path_LD
12535 test -z "${LDCXX+set}" || LD=$LDCXX
12540 for cc_temp in $compiler""; do
12542 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12543 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12548 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12551 if test -n "$compiler"; then
12552 # We don't want -fno-exception when compiling C++ code, so set the
12553 # no_builtin_flag separately
12554 if test "$GXX" = yes; then
12555 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12557 lt_prog_compiler_no_builtin_flag_CXX=
12560 if test "$GXX" = yes; then
12561 # Set up default GNU C++ configuration
12565 @%:@ Check whether --with-gnu-ld was given.
12566 if test "${with_gnu_ld+set}" = set; then :
12567 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12573 if test "$GCC" = yes; then
12574 # Check if gcc -print-prog-name=ld gives a path.
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12576 $as_echo_n "checking for ld used by $CC... " >&6; }
12579 # gcc leaves a trailing carriage return which upsets mingw
12580 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12582 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12585 # Accept absolute paths.
12587 re_direlt='/[^/][^/]*/\.\./'
12588 # Canonicalize the pathname of ld
12589 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12590 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12591 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12593 test -z "$LD" && LD="$ac_prog"
12596 # If it fails, then pretend we aren't using GCC.
12600 # If it is relative, then search for the first ld in PATH.
12601 with_gnu_ld=unknown
12604 elif test "$with_gnu_ld" = yes; then
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12606 $as_echo_n "checking for GNU ld... " >&6; }
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12609 $as_echo_n "checking for non-GNU ld... " >&6; }
12611 if ${lt_cv_path_LD+:} false; then :
12612 $as_echo_n "(cached) " >&6
12614 if test -z "$LD"; then
12615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12616 for ac_dir in $PATH; do
12618 test -z "$ac_dir" && ac_dir=.
12619 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12620 lt_cv_path_LD="$ac_dir/$ac_prog"
12621 # Check to see if the program is GNU ld. I'd rather use --version,
12622 # but apparently some variants of GNU ld only accept -v.
12623 # Break only if it was the GNU/non-GNU ld that we prefer.
12624 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12625 *GNU* | *'with BFD'*)
12626 test "$with_gnu_ld" != no && break
12629 test "$with_gnu_ld" != yes && break
12636 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12640 LD="$lt_cv_path_LD"
12641 if test -n "$LD"; then
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12643 $as_echo "$LD" >&6; }
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12648 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12650 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12651 if ${lt_cv_prog_gnu_ld+:} false; then :
12652 $as_echo_n "(cached) " >&6
12654 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12655 case `$LD -v 2>&1 </dev/null` in
12656 *GNU* | *'with BFD'*)
12657 lt_cv_prog_gnu_ld=yes
12660 lt_cv_prog_gnu_ld=no
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12665 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12666 with_gnu_ld=$lt_cv_prog_gnu_ld
12674 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12675 # archiving commands below assume that GNU ld is being used.
12676 if test "$with_gnu_ld" = yes; then
12677 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12678 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'
12680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12681 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12683 # If archive_cmds runs LD, not CC, wlarc should be empty
12684 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12685 # investigate it a little bit more. (MM)
12688 # ancient GNU ld didn't support --whole-archive et. al.
12689 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12690 $GREP 'no-whole-archive' > /dev/null; then
12691 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12693 whole_archive_flag_spec_CXX=
12699 # A generic and very simple default shared library creation
12700 # command for GNU C++ for the case where it uses the native
12701 # linker, instead of GNU ld. If possible, this setting should
12702 # overridden to take advantage of the native linker features on
12703 # the platform it is being used on.
12704 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12707 # Commands to make compiler produce verbose output that lists
12708 # what "hidden" libraries, object files and flags are used when
12709 # linking a shared library.
12710 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12718 # PORTME: fill in a description of your system's C++ link characteristics
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12720 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12724 # FIXME: insert proper C++ library support
12728 if test "$host_cpu" = ia64; then
12729 # On IA64, the linker does run time linking by default, so we don't
12730 # have to do anything special.
12731 aix_use_runtimelinking=no
12732 exp_sym_flag='-Bexport'
12735 aix_use_runtimelinking=no
12737 # Test if we are trying to use run time linking or normal
12738 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12739 # need to do runtime linking.
12740 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12741 for ld_flag in $LDFLAGS; do
12744 aix_use_runtimelinking=yes
12752 exp_sym_flag='-bexport'
12753 no_entry_flag='-bnoentry'
12756 # When large executables or shared objects are built, AIX ld can
12757 # have problems creating the table of contents. If linking a library
12758 # or program results in "error TOC overflow" add -mminimal-toc to
12759 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12760 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12762 archive_cmds_CXX=''
12763 hardcode_direct_CXX=yes
12764 hardcode_direct_absolute_CXX=yes
12765 hardcode_libdir_separator_CXX=':'
12766 link_all_deplibs_CXX=yes
12767 file_list_spec_CXX='${wl}-f,'
12769 if test "$GXX" = yes; then
12770 case $host_os in aix4.[012]|aix4.[012].*)
12771 # We only want to do this on AIX 4.2 and lower, the check
12772 # below for broken collect2 doesn't work under 4.3+
12773 collect2name=`${CC} -print-prog-name=collect2`
12774 if test -f "$collect2name" &&
12775 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12777 # We have reworked collect2
12780 # We have old collect2
12781 hardcode_direct_CXX=unsupported
12782 # It fails to find uninstalled libraries when the uninstalled
12783 # path is not listed in the libpath. Setting hardcode_minus_L
12784 # to unsupported forces relinking
12785 hardcode_minus_L_CXX=yes
12786 hardcode_libdir_flag_spec_CXX='-L$libdir'
12787 hardcode_libdir_separator_CXX=
12790 shared_flag='-shared'
12791 if test "$aix_use_runtimelinking" = yes; then
12792 shared_flag="$shared_flag "'${wl}-G'
12796 if test "$host_cpu" = ia64; then
12797 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12798 # chokes on -Wl,-G. The following line is correct:
12801 if test "$aix_use_runtimelinking" = yes; then
12802 shared_flag='${wl}-G'
12804 shared_flag='${wl}-bM:SRE'
12809 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12810 # It seems that -bexpall does not export symbols beginning with
12811 # underscore (_), so it is better to generate a list of symbols to
12813 always_export_symbols_CXX=yes
12814 if test "$aix_use_runtimelinking" = yes; then
12815 # Warning - without using the other runtime loading flags (-brtl),
12816 # -berok will link without error, but may produce a broken library.
12817 allow_undefined_flag_CXX='-berok'
12818 # Determine the default libpath from the value encoded in an empty
12820 if test "${lt_cv_aix_libpath+set}" = set; then
12821 aix_libpath=$lt_cv_aix_libpath
12823 if ${lt_cv_aix_libpath__CXX+:} false; then :
12824 $as_echo_n "(cached) " >&6
12826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12837 if ac_fn_cxx_try_link "$LINENO"; then :
12839 lt_aix_libpath_sed='
12840 /Import File Strings/,/^$/ {
12842 s/^0 *\([^ ]*\) *$/\1/
12846 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12847 # Check for a 64-bit object if we didn't find anything.
12848 if test -z "$lt_cv_aix_libpath__CXX"; then
12849 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12852 rm -f core conftest.err conftest.$ac_objext \
12853 conftest$ac_exeext conftest.$ac_ext
12854 if test -z "$lt_cv_aix_libpath__CXX"; then
12855 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12860 aix_libpath=$lt_cv_aix_libpath__CXX
12863 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12865 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"
12867 if test "$host_cpu" = ia64; then
12868 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12869 allow_undefined_flag_CXX="-z nodefs"
12870 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"
12872 # Determine the default libpath from the value encoded in an
12873 # empty executable.
12874 if test "${lt_cv_aix_libpath+set}" = set; then
12875 aix_libpath=$lt_cv_aix_libpath
12877 if ${lt_cv_aix_libpath__CXX+:} false; then :
12878 $as_echo_n "(cached) " >&6
12880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12881 /* end confdefs.h. */
12891 if ac_fn_cxx_try_link "$LINENO"; then :
12893 lt_aix_libpath_sed='
12894 /Import File Strings/,/^$/ {
12896 s/^0 *\([^ ]*\) *$/\1/
12900 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12901 # Check for a 64-bit object if we didn't find anything.
12902 if test -z "$lt_cv_aix_libpath__CXX"; then
12903 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12906 rm -f core conftest.err conftest.$ac_objext \
12907 conftest$ac_exeext conftest.$ac_ext
12908 if test -z "$lt_cv_aix_libpath__CXX"; then
12909 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
12914 aix_libpath=$lt_cv_aix_libpath__CXX
12917 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12918 # Warning - without using the other run time loading flags,
12919 # -berok will link without error, but may produce a broken library.
12920 no_undefined_flag_CXX=' ${wl}-bernotok'
12921 allow_undefined_flag_CXX=' ${wl}-berok'
12922 if test "$with_gnu_ld" = yes; then
12923 # We only use this code for GNU lds that support --whole-archive.
12924 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12926 # Exported symbols can be pulled into shared objects from archives
12927 whole_archive_flag_spec_CXX='$convenience'
12929 archive_cmds_need_lc_CXX=yes
12930 # This is similar to how AIX traditionally builds its shared
12932 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'
12938 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12939 allow_undefined_flag_CXX=unsupported
12940 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12941 # support --undefined. This deserves some investigation. FIXME
12942 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12949 case $cc_basename in
12951 # FIXME: insert proper C++ library support
12957 cygwin* | mingw* | pw32* | cegcc*)
12958 case $GXX,$cc_basename in
12961 # hardcode_libdir_flag_spec is actually meaningless, as there is
12962 # no search path for DLLs.
12963 hardcode_libdir_flag_spec_CXX=' '
12964 allow_undefined_flag_CXX=unsupported
12965 always_export_symbols_CXX=yes
12966 file_list_spec_CXX='@'
12967 # Tell ltmain to make .lib files, not .a files.
12969 # Tell ltmain to make .dll files, not .so files.
12971 # FIXME: Setting linknames here is a bad hack.
12972 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
12973 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12974 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
12976 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
12978 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12980 # The linker will not automatically build a static lib if we build a DLL.
12981 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
12982 enable_shared_with_static_runtimes_CXX=yes
12984 old_postinstall_cmds_CXX='chmod 644 $oldlib'
12985 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
12986 lt_tool_outputfile="@TOOL_OUTPUT@"~
12987 case $lt_outputfile in
12990 lt_outputfile="$lt_outputfile.exe"
12991 lt_tool_outputfile="$lt_tool_outputfile.exe"
12994 func_to_tool_file "$lt_outputfile"~
12995 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
12996 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12997 $RM "$lt_outputfile.manifest";
13002 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13003 # as there is no search path for DLLs.
13004 hardcode_libdir_flag_spec_CXX='-L$libdir'
13005 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13006 allow_undefined_flag_CXX=unsupported
13007 always_export_symbols_CXX=no
13008 enable_shared_with_static_runtimes_CXX=yes
13010 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13011 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'
13012 # If the export-symbols file already is a .def file (1st line
13013 # is EXPORTS), use it as is; otherwise, prepend...
13014 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13015 cp $export_symbols $output_objdir/$soname.def;
13017 echo EXPORTS > $output_objdir/$soname.def;
13018 cat $export_symbols >> $output_objdir/$soname.def;
13020 $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'
13027 darwin* | rhapsody*)
13030 archive_cmds_need_lc_CXX=no
13031 hardcode_direct_CXX=no
13032 hardcode_automatic_CXX=yes
13033 hardcode_shlibpath_var_CXX=unsupported
13034 if test "$lt_cv_ld_force_load" = "yes"; then
13035 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\"`'
13038 whole_archive_flag_spec_CXX=''
13040 link_all_deplibs_CXX=yes
13041 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13042 case $cc_basename in
13043 ifort*) _lt_dar_can_shared=yes ;;
13044 *) _lt_dar_can_shared=$GCC ;;
13046 if test "$_lt_dar_can_shared" = "yes"; then
13047 output_verbose_link_cmd=func_echo_all
13048 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}"
13049 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13050 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}"
13051 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}"
13052 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13053 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}"
13054 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}"
13064 case $cc_basename in
13066 # FIXME: insert proper C++ library support
13070 # Green Hills C++ Compiler
13071 # FIXME: insert proper C++ library support
13075 # FIXME: insert proper C++ library support
13082 # C++ shared libraries reported to be fairly broken before
13088 archive_cmds_need_lc_CXX=no
13091 freebsd* | dragonfly*)
13092 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13101 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13102 link_all_deplibs_CXX=yes
13106 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13107 hardcode_libdir_separator_CXX=:
13108 export_dynamic_flag_spec_CXX='${wl}-E'
13109 hardcode_direct_CXX=yes
13110 hardcode_minus_L_CXX=yes # Not in the search PATH,
13111 # but as the default
13112 # location of the library.
13114 case $cc_basename in
13116 # FIXME: insert proper C++ library support
13120 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'
13121 # Commands to make compiler produce verbose output that lists
13122 # what "hidden" libraries, object files and flags are used when
13123 # linking a shared library.
13125 # There doesn't appear to be a way to prevent this compiler from
13126 # explicitly linking system object files so we need to strip them
13127 # from the output so that they don't get included in the library
13129 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"'
13132 if test "$GXX" = yes; then
13133 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'
13135 # FIXME: insert proper C++ library support
13143 if test $with_gnu_ld = no; then
13144 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13145 hardcode_libdir_separator_CXX=:
13151 export_dynamic_flag_spec_CXX='${wl}-E'
13157 hardcode_direct_CXX=no
13158 hardcode_shlibpath_var_CXX=no
13161 hardcode_direct_CXX=yes
13162 hardcode_direct_absolute_CXX=yes
13163 hardcode_minus_L_CXX=yes # Not in the search PATH,
13164 # but as the default
13165 # location of the library.
13169 case $cc_basename in
13171 # FIXME: insert proper C++ library support
13177 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13180 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13183 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13186 # Commands to make compiler produce verbose output that lists
13187 # what "hidden" libraries, object files and flags are used when
13188 # linking a shared library.
13190 # There doesn't appear to be a way to prevent this compiler from
13191 # explicitly linking system object files so we need to strip them
13192 # from the output so that they don't get included in the library
13194 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"'
13197 if test "$GXX" = yes; then
13198 if test $with_gnu_ld = no; then
13201 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13204 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13207 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'
13212 # FIXME: insert proper C++ library support
13220 hardcode_direct_CXX=no
13221 hardcode_shlibpath_var_CXX=no
13222 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13223 export_dynamic_flag_spec_CXX='${wl}-E'
13224 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13225 # Instead, shared libraries are loaded at an image base (0x10000000 by
13226 # default) and relocated if they conflict, which is a slow very memory
13227 # consuming and fragmenting process. To avoid this, we pick a random,
13228 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13229 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13230 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'
13231 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'
13234 case $cc_basename in
13237 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'
13239 # Archives containing C++ object files must be created using
13240 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13241 # necessary to make sure instantiated templates are included
13243 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13246 if test "$GXX" = yes; then
13247 if test "$with_gnu_ld" = no; then
13248 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'
13250 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'
13253 link_all_deplibs_CXX=yes
13256 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13257 hardcode_libdir_separator_CXX=:
13258 inherit_rpath_CXX=yes
13261 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13262 case $cc_basename in
13264 # Kuck and Associates, Inc. (KAI) C++ Compiler
13266 # KCC will only create a shared library if the output file
13267 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13268 # to its proper name (with version) after linking.
13269 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'
13270 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'
13271 # Commands to make compiler produce verbose output that lists
13272 # what "hidden" libraries, object files and flags are used when
13273 # linking a shared library.
13275 # There doesn't appear to be a way to prevent this compiler from
13276 # explicitly linking system object files so we need to strip them
13277 # from the output so that they don't get included in the library
13279 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"'
13281 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13282 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13284 # Archives containing C++ object files must be created using
13285 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13286 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13291 # version 8.0 and above of icpc choke on multiply defined symbols
13292 # if we add $predep_objects and $postdep_objects, however 7.1 and
13293 # earlier do not add the objects themselves.
13294 case `$CC -V 2>&1` in
13296 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13297 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'
13299 *) # Version 8.0 or newer
13302 ia64*) tmp_idyn=' -i_dynamic';;
13304 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13305 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'
13308 archive_cmds_need_lc_CXX=no
13309 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13310 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13311 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13314 # Portland Group C++ compiler
13316 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13317 prelink_cmds_CXX='tpldir=Template.dir~
13319 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13320 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13321 old_archive_cmds_CXX='tpldir=Template.dir~
13323 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13324 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13326 archive_cmds_CXX='tpldir=Template.dir~
13328 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13329 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13330 archive_expsym_cmds_CXX='tpldir=Template.dir~
13332 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13333 $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'
13335 *) # Version 6 and above use weak symbols
13336 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13337 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'
13341 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13342 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13343 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'
13347 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13348 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'
13350 runpath_var=LD_RUN_PATH
13351 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13352 hardcode_libdir_separator_CXX=:
13354 # Commands to make compiler produce verbose output that lists
13355 # what "hidden" libraries, object files and flags are used when
13356 # linking a shared library.
13358 # There doesn't appear to be a way to prevent this compiler from
13359 # explicitly linking system object files so we need to strip them
13360 # from the output so that they don't get included in the library
13362 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'
13364 xl* | mpixl* | bgxl*)
13365 # IBM XL 8.0 on PPC, with GNU ld
13366 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13367 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13368 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13369 if test "x$supports_anon_versioning" = xyes; then
13370 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13371 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13372 echo "local: *; };" >> $output_objdir/$libname.ver~
13373 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13377 case `$CC -V 2>&1 | sed 5q` in
13380 no_undefined_flag_CXX=' -zdefs'
13381 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13382 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'
13383 hardcode_libdir_flag_spec_CXX='-R$libdir'
13384 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'
13385 compiler_needs_object_CXX=yes
13387 # Not sure whether something based on
13388 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13390 output_verbose_link_cmd='func_echo_all'
13392 # Archives containing C++ object files must be created using
13393 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13394 # necessary to make sure instantiated templates are included
13396 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13404 # FIXME: insert proper C++ library support
13409 # FIXME: insert proper C++ library support
13414 case $cc_basename in
13416 # FIXME: insert proper C++ library support
13420 # FIXME: insert proper C++ library support
13427 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13428 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13430 hardcode_libdir_flag_spec_CXX='-R$libdir'
13431 hardcode_direct_CXX=yes
13432 hardcode_shlibpath_var_CXX=no
13434 # Workaround some broken pre-1.5 toolchains
13435 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13443 # C++ shared libraries are fairly broken
13448 if test -f /usr/libexec/ld.so; then
13449 hardcode_direct_CXX=yes
13450 hardcode_shlibpath_var_CXX=no
13451 hardcode_direct_absolute_CXX=yes
13452 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13453 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13454 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13455 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13456 export_dynamic_flag_spec_CXX='${wl}-E'
13457 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13459 output_verbose_link_cmd=func_echo_all
13465 osf3* | osf4* | osf5*)
13466 case $cc_basename in
13468 # Kuck and Associates, Inc. (KAI) C++ Compiler
13470 # KCC will only create a shared library if the output file
13471 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13472 # to its proper name (with version) after linking.
13473 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'
13475 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13476 hardcode_libdir_separator_CXX=:
13478 # Archives containing C++ object files must be created using
13479 # the KAI C++ compiler.
13481 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13482 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13486 # Rational C++ 2.4.1
13487 # FIXME: insert proper C++ library support
13493 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13494 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'
13495 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13498 allow_undefined_flag_CXX=' -expect_unresolved \*'
13499 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'
13500 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13501 echo "-hidden">> $lib.exp~
13502 $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~
13504 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13508 hardcode_libdir_separator_CXX=:
13510 # Commands to make compiler produce verbose output that lists
13511 # what "hidden" libraries, object files and flags are used when
13512 # linking a shared library.
13514 # There doesn't appear to be a way to prevent this compiler from
13515 # explicitly linking system object files so we need to strip them
13516 # from the output so that they don't get included in the library
13518 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"'
13521 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13522 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13525 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'
13528 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'
13532 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13533 hardcode_libdir_separator_CXX=:
13535 # Commands to make compiler produce verbose output that lists
13536 # what "hidden" libraries, object files and flags are used when
13537 # linking a shared library.
13538 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13541 # FIXME: insert proper C++ library support
13549 # FIXME: insert proper C++ library support
13554 case $cc_basename in
13557 # FIXME: insert proper C++ library support
13562 # FIXME: insert proper C++ library support
13566 # FIXME: insert proper C++ library support
13573 case $cc_basename in
13575 # Sun C++ 4.2, 5.x and Centerline C++
13576 archive_cmds_need_lc_CXX=yes
13577 no_undefined_flag_CXX=' -zdefs'
13578 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13579 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13580 $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'
13582 hardcode_libdir_flag_spec_CXX='-R$libdir'
13583 hardcode_shlibpath_var_CXX=no
13585 solaris2.[0-5] | solaris2.[0-5].*) ;;
13587 # The compiler driver will combine and reorder linker options,
13588 # but understands `-z linker_flag'.
13589 # Supported since Solaris 2.6 (maybe 2.5.1?)
13590 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13593 link_all_deplibs_CXX=yes
13595 output_verbose_link_cmd='func_echo_all'
13597 # Archives containing C++ object files must be created using
13598 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13599 # necessary to make sure instantiated templates are included
13601 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13604 # Green Hills C++ Compiler
13605 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13607 # The C++ compiler must be used to create the archive.
13608 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13611 # GNU C++ compiler with Solaris linker
13612 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13613 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13614 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13615 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13616 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13617 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13619 # Commands to make compiler produce verbose output that lists
13620 # what "hidden" libraries, object files and flags are used when
13621 # linking a shared library.
13622 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13624 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13626 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13627 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13628 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13630 # Commands to make compiler produce verbose output that lists
13631 # what "hidden" libraries, object files and flags are used when
13632 # linking a shared library.
13633 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13636 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13638 solaris2.[0-5] | solaris2.[0-5].*) ;;
13640 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13648 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13649 no_undefined_flag_CXX='${wl}-z,text'
13650 archive_cmds_need_lc_CXX=no
13651 hardcode_shlibpath_var_CXX=no
13652 runpath_var='LD_RUN_PATH'
13654 case $cc_basename in
13656 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13657 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13660 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13661 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13666 sysv5* | sco3.2v5* | sco5v6*)
13667 # Note: We can NOT use -z defs as we might desire, because we do not
13668 # link with -lc, and that would cause any symbols used from libc to
13669 # always be unresolved, which means just about no library would
13670 # ever link correctly. If we're not using GNU ld we use -z text
13671 # though, which does catch some bad symbols but isn't as heavy-handed
13673 no_undefined_flag_CXX='${wl}-z,text'
13674 allow_undefined_flag_CXX='${wl}-z,nodefs'
13675 archive_cmds_need_lc_CXX=no
13676 hardcode_shlibpath_var_CXX=no
13677 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13678 hardcode_libdir_separator_CXX=':'
13679 link_all_deplibs_CXX=yes
13680 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13681 runpath_var='LD_RUN_PATH'
13683 case $cc_basename in
13685 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13686 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13687 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13688 '"$old_archive_cmds_CXX"
13689 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13690 '"$reload_cmds_CXX"
13693 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13694 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13700 case $cc_basename in
13702 # NonStop-UX NCC 3.20
13703 # FIXME: insert proper C++ library support
13707 # FIXME: insert proper C++ library support
13714 # FIXME: insert proper C++ library support
13719 # FIXME: insert proper C++ library support
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13725 $as_echo "$ld_shlibs_CXX" >&6; }
13726 test "$ld_shlibs_CXX" = no && can_build_shared=no
13732 ## There is no encapsulation within the following macros, do not change
13733 ## the running order or otherwise move them around unless you know exactly
13734 ## what you are doing...
13735 # Dependencies to place before and after the object being linked:
13736 predep_objects_CXX=
13737 postdep_objects_CXX=
13740 compiler_lib_search_path_CXX=
13742 cat > conftest.$ac_ext <<_LT_EOF
13746 Foo (void) { a = 0; }
13753 _lt_libdeps_save_CFLAGS=$CFLAGS
13754 case "$CC $CFLAGS " in #(
13755 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13756 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13757 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13761 (eval $ac_compile) 2>&5
13763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13764 test $ac_status = 0; }; then
13765 # Parse the compiler output and extract the necessary
13766 # objects, libraries and library flags.
13768 # Sentinel used to keep track of whether or not we are before
13769 # the conftest object file.
13770 pre_test_object_deps_done=no
13772 for p in `eval "$output_verbose_link_cmd"`; do
13773 case ${prev}${p} in
13776 # Some compilers place space between "-{L,R}" and the path.
13777 # Remove the space.
13778 if test $p = "-L" ||
13779 test $p = "-R"; then
13784 # Expand the sysroot to ease extracting the directories later.
13785 if test -z "$prev"; then
13787 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13788 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13789 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13793 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13795 if test "$pre_test_object_deps_done" = no; then
13798 # Internal compiler library paths should come after those
13799 # provided the user. The postdeps already come after the
13800 # user supplied libs so there is no need to process them.
13801 if test -z "$compiler_lib_search_path_CXX"; then
13802 compiler_lib_search_path_CXX="${prev}${p}"
13804 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13807 # The "-l" case would never come before the object being
13808 # linked, so don't bother handling this case.
13811 if test -z "$postdeps_CXX"; then
13812 postdeps_CXX="${prev}${p}"
13814 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13820 *.lto.$objext) ;; # Ignore GCC LTO objects
13822 # This assumes that the test object file only shows up
13823 # once in the compiler output.
13824 if test "$p" = "conftest.$objext"; then
13825 pre_test_object_deps_done=yes
13829 if test "$pre_test_object_deps_done" = no; then
13830 if test -z "$predep_objects_CXX"; then
13831 predep_objects_CXX="$p"
13833 predep_objects_CXX="$predep_objects_CXX $p"
13836 if test -z "$postdep_objects_CXX"; then
13837 postdep_objects_CXX="$p"
13839 postdep_objects_CXX="$postdep_objects_CXX $p"
13844 *) ;; # Ignore the rest.
13852 echo "libtool.m4: error: problem compiling CXX test program"
13855 $RM -f confest.$objext
13856 CFLAGS=$_lt_libdeps_save_CFLAGS
13858 # PORTME: override above test on systems where it is broken
13861 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13862 # hack all around it, let's just trust "g++" to DTRT.
13863 predep_objects_CXX=
13864 postdep_objects_CXX=
13869 case `$CC -V 2>&1 | sed 5q` in
13873 # The more standards-conforming stlport4 library is
13874 # incompatible with the Cstd library. Avoid specifying
13875 # it if it's in CXXFLAGS. Ignore libCrun as
13876 # -library=stlport4 depends on it.
13877 case " $CXX $CXXFLAGS " in
13878 *" -library=stlport4 "*)
13879 solaris_use_stlport4=yes
13883 if test "$solaris_use_stlport4" != yes; then
13884 postdeps_CXX='-library=Cstd -library=Crun'
13891 case $cc_basename in
13893 # The more standards-conforming stlport4 library is
13894 # incompatible with the Cstd library. Avoid specifying
13895 # it if it's in CXXFLAGS. Ignore libCrun as
13896 # -library=stlport4 depends on it.
13897 case " $CXX $CXXFLAGS " in
13898 *" -library=stlport4 "*)
13899 solaris_use_stlport4=yes
13903 # Adding this requires a known-good setup of shared libraries for
13904 # Sun compiler versions before 5.6, else PIC objects from an old
13905 # archive will be linked into the output, leading to subtle bugs.
13906 if test "$solaris_use_stlport4" != yes; then
13907 postdeps_CXX='-library=Cstd -library=Crun'
13915 case " $postdeps_CXX " in
13916 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13918 compiler_lib_search_dirs_CXX=
13919 if test -n "${compiler_lib_search_path_CXX}"; then
13920 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13953 lt_prog_compiler_wl_CXX=
13954 lt_prog_compiler_pic_CXX=
13955 lt_prog_compiler_static_CXX=
13958 # C++ specific cases for pic, static, wl, etc.
13959 if test "$GXX" = yes; then
13960 lt_prog_compiler_wl_CXX='-Wl,'
13961 lt_prog_compiler_static_CXX='-static'
13965 # All AIX code is PIC.
13966 if test "$host_cpu" = ia64; then
13967 # AIX 5 now supports IA64 processor
13968 lt_prog_compiler_static_CXX='-Bstatic'
13975 # see comment about AmigaOS4 .so support
13976 lt_prog_compiler_pic_CXX='-fPIC'
13979 # FIXME: we need at least 68020 code to build shared libraries, but
13980 # adding the `-m68020' flag to GCC prevents building anything better,
13982 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13987 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13988 # PIC is the default for these OSes.
13990 mingw* | cygwin* | os2* | pw32* | cegcc*)
13991 # This hack is so that the source file can tell whether it is being
13992 # built for inclusion in a dll (and should export symbols for example).
13993 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13994 # (--disable-auto-import) libraries
13995 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13997 darwin* | rhapsody*)
13998 # PIC is the default on this platform
13999 # Common symbols not allowed in MH_DYLIB files
14000 lt_prog_compiler_pic_CXX='-fno-common'
14003 # DJGPP does not support shared libraries at all
14004 lt_prog_compiler_pic_CXX=
14007 # PIC is the default for Haiku.
14008 # The "-static" flag exists, but is broken.
14009 lt_prog_compiler_static_CXX=
14012 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14013 # Instead, we relocate shared libraries at runtime.
14016 if test -d /usr/nec; then
14017 lt_prog_compiler_pic_CXX=-Kconform_pic
14021 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14022 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14023 # sets the default TLS model and affects inlining.
14028 lt_prog_compiler_pic_CXX='-fPIC'
14033 # QNX uses GNU C++, but need to define -shared option too, otherwise
14034 # it will coredump.
14035 lt_prog_compiler_pic_CXX='-fPIC -shared'
14038 lt_prog_compiler_pic_CXX='-fPIC'
14044 # All AIX code is PIC.
14045 if test "$host_cpu" = ia64; then
14046 # AIX 5 now supports IA64 processor
14047 lt_prog_compiler_static_CXX='-Bstatic'
14049 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14053 case $cc_basename in
14055 # Green Hills C++ Compiler
14056 # _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"
14060 mingw* | cygwin* | os2* | pw32* | cegcc*)
14061 # This hack is so that the source file can tell whether it is being
14062 # built for inclusion in a dll (and should export symbols for example).
14063 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14066 case $cc_basename in
14068 lt_prog_compiler_pic_CXX='-KPIC'
14071 # Green Hills C++ Compiler
14072 lt_prog_compiler_pic_CXX='-pic'
14078 freebsd* | dragonfly*)
14079 # FreeBSD uses GNU C++
14081 hpux9* | hpux10* | hpux11*)
14082 case $cc_basename in
14084 lt_prog_compiler_wl_CXX='-Wl,'
14085 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14086 if test "$host_cpu" != ia64; then
14087 lt_prog_compiler_pic_CXX='+Z'
14091 lt_prog_compiler_wl_CXX='-Wl,'
14092 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14098 lt_prog_compiler_pic_CXX='+Z'
14107 # This is c89, which is MS Visual C++ (no shared libs)
14108 # Anyone wants to do a port?
14110 irix5* | irix6* | nonstopux*)
14111 case $cc_basename in
14113 lt_prog_compiler_wl_CXX='-Wl,'
14114 lt_prog_compiler_static_CXX='-non_shared'
14115 # CC pic flag -KPIC is the default.
14121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14122 case $cc_basename in
14125 lt_prog_compiler_wl_CXX='--backend -Wl,'
14126 lt_prog_compiler_pic_CXX='-fPIC'
14129 # old Intel C++ for x86_64 which still supported -KPIC.
14130 lt_prog_compiler_wl_CXX='-Wl,'
14131 lt_prog_compiler_pic_CXX='-KPIC'
14132 lt_prog_compiler_static_CXX='-static'
14135 # Intel C++, used to be incompatible with GCC.
14136 # ICC 10 doesn't accept -KPIC any more.
14137 lt_prog_compiler_wl_CXX='-Wl,'
14138 lt_prog_compiler_pic_CXX='-fPIC'
14139 lt_prog_compiler_static_CXX='-static'
14142 # Portland Group C++ compiler
14143 lt_prog_compiler_wl_CXX='-Wl,'
14144 lt_prog_compiler_pic_CXX='-fpic'
14145 lt_prog_compiler_static_CXX='-Bstatic'
14149 # Make sure the PIC flag is empty. It appears that all Alpha
14150 # Linux and Compaq Tru64 Unix objects are PIC.
14151 lt_prog_compiler_pic_CXX=
14152 lt_prog_compiler_static_CXX='-non_shared'
14154 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14155 # IBM XL 8.0, 9.0 on PPC and BlueGene
14156 lt_prog_compiler_wl_CXX='-Wl,'
14157 lt_prog_compiler_pic_CXX='-qpic'
14158 lt_prog_compiler_static_CXX='-qstaticlink'
14161 case `$CC -V 2>&1 | sed 5q` in
14164 lt_prog_compiler_pic_CXX='-KPIC'
14165 lt_prog_compiler_static_CXX='-Bstatic'
14166 lt_prog_compiler_wl_CXX='-Qoption ld '
14177 case $cc_basename in
14179 lt_prog_compiler_pic_CXX='-W c,exportall'
14185 netbsd* | netbsdelf*-gnu)
14188 # QNX uses GNU C++, but need to define -shared option too, otherwise
14189 # it will coredump.
14190 lt_prog_compiler_pic_CXX='-fPIC -shared'
14192 osf3* | osf4* | osf5*)
14193 case $cc_basename in
14195 lt_prog_compiler_wl_CXX='--backend -Wl,'
14198 # Rational C++ 2.4.1
14199 lt_prog_compiler_pic_CXX='-pic'
14202 # Digital/Compaq C++
14203 lt_prog_compiler_wl_CXX='-Wl,'
14204 # Make sure the PIC flag is empty. It appears that all Alpha
14205 # Linux and Compaq Tru64 Unix objects are PIC.
14206 lt_prog_compiler_pic_CXX=
14207 lt_prog_compiler_static_CXX='-non_shared'
14216 case $cc_basename in
14218 # Sun C++ 4.2, 5.x and Centerline C++
14219 lt_prog_compiler_pic_CXX='-KPIC'
14220 lt_prog_compiler_static_CXX='-Bstatic'
14221 lt_prog_compiler_wl_CXX='-Qoption ld '
14224 # Green Hills C++ Compiler
14225 lt_prog_compiler_pic_CXX='-PIC'
14232 case $cc_basename in
14235 lt_prog_compiler_pic_CXX='-pic'
14236 lt_prog_compiler_static_CXX='-Bstatic'
14240 lt_prog_compiler_pic_CXX='-pic'
14246 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14247 case $cc_basename in
14249 lt_prog_compiler_wl_CXX='-Wl,'
14250 lt_prog_compiler_pic_CXX='-KPIC'
14251 lt_prog_compiler_static_CXX='-Bstatic'
14256 case $cc_basename in
14258 # NonStop-UX NCC 3.20
14259 lt_prog_compiler_pic_CXX='-KPIC'
14268 lt_prog_compiler_can_build_shared_CXX=no
14274 # For platforms which do not support PIC, -DPIC is meaningless:
14276 lt_prog_compiler_pic_CXX=
14279 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14284 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14285 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14286 $as_echo_n "(cached) " >&6
14288 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14291 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14292 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14295 # Check to make sure the PIC flag actually works.
14297 if test -n "$lt_prog_compiler_pic_CXX"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14299 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14300 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14301 $as_echo_n "(cached) " >&6
14303 lt_cv_prog_compiler_pic_works_CXX=no
14304 ac_outfile=conftest.$ac_objext
14305 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14306 lt_compiler_flag="$lt_prog_compiler_pic_CXX@&t@ -DPIC"
14307 # Insert the option either (1) after the last *FLAGS variable, or
14308 # (2) before a word containing "conftest.", or (3) at the end.
14309 # Note that $ac_compile itself does not contain backslashes and begins
14310 # with a dollar sign (not a hyphen), so the echo should work correctly.
14311 # The option is referenced via a variable to avoid confusing sed.
14312 lt_compile=`echo "$ac_compile" | $SED \
14313 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14314 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14315 -e 's:$: $lt_compiler_flag:'`
14316 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14317 (eval "$lt_compile" 2>conftest.err)
14319 cat conftest.err >&5
14320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14321 if (exit $ac_status) && test -s "$ac_outfile"; then
14322 # The compiler can only warn and ignore the option if not recognized
14323 # So say no if there are warnings other than the usual output.
14324 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14325 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14326 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14327 lt_cv_prog_compiler_pic_works_CXX=yes
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14334 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14336 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14337 case $lt_prog_compiler_pic_CXX in
14339 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14342 lt_prog_compiler_pic_CXX=
14343 lt_prog_compiler_can_build_shared_CXX=no
14353 # Check to make sure the static flag actually works.
14355 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14357 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14358 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14359 $as_echo_n "(cached) " >&6
14361 lt_cv_prog_compiler_static_works_CXX=no
14362 save_LDFLAGS="$LDFLAGS"
14363 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14364 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14365 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14366 # The linker can only warn and ignore the option if not recognized
14367 # So say no if there are warnings
14368 if test -s conftest.err; then
14369 # Append any errors to the config.log.
14370 cat conftest.err 1>&5
14371 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14373 if diff conftest.exp conftest.er2 >/dev/null; then
14374 lt_cv_prog_compiler_static_works_CXX=yes
14377 lt_cv_prog_compiler_static_works_CXX=yes
14381 LDFLAGS="$save_LDFLAGS"
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14385 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14387 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14390 lt_prog_compiler_static_CXX=
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14397 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14398 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14399 $as_echo_n "(cached) " >&6
14401 lt_cv_prog_compiler_c_o_CXX=no
14402 $RM -r conftest 2>/dev/null
14406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14408 lt_compiler_flag="-o out/conftest2.$ac_objext"
14409 # Insert the option either (1) after the last *FLAGS variable, or
14410 # (2) before a word containing "conftest.", or (3) at the end.
14411 # Note that $ac_compile itself does not contain backslashes and begins
14412 # with a dollar sign (not a hyphen), so the echo should work correctly.
14413 lt_compile=`echo "$ac_compile" | $SED \
14414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14416 -e 's:$: $lt_compiler_flag:'`
14417 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14418 (eval "$lt_compile" 2>out/conftest.err)
14420 cat out/conftest.err >&5
14421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14422 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14424 # The compiler can only warn and ignore the option if not recognized
14425 # So say no if there are warnings
14426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14427 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14428 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14429 lt_cv_prog_compiler_c_o_CXX=yes
14434 # SGI C++ compiler will create directory out/ii_files/ for
14435 # template instantiation
14436 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14437 $RM out/* && rmdir out
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14444 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14449 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14450 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14451 $as_echo_n "(cached) " >&6
14453 lt_cv_prog_compiler_c_o_CXX=no
14454 $RM -r conftest 2>/dev/null
14458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14460 lt_compiler_flag="-o out/conftest2.$ac_objext"
14461 # Insert the option either (1) after the last *FLAGS variable, or
14462 # (2) before a word containing "conftest.", or (3) at the end.
14463 # Note that $ac_compile itself does not contain backslashes and begins
14464 # with a dollar sign (not a hyphen), so the echo should work correctly.
14465 lt_compile=`echo "$ac_compile" | $SED \
14466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14468 -e 's:$: $lt_compiler_flag:'`
14469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14470 (eval "$lt_compile" 2>out/conftest.err)
14472 cat out/conftest.err >&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14476 # The compiler can only warn and ignore the option if not recognized
14477 # So say no if there are warnings
14478 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14479 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14480 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14481 lt_cv_prog_compiler_c_o_CXX=yes
14486 # SGI C++ compiler will create directory out/ii_files/ for
14487 # template instantiation
14488 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14489 $RM out/* && rmdir out
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14496 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14501 hard_links="nottested"
14502 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14503 # do not overwrite the value of need_locks provided by the user
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14505 $as_echo_n "checking if we can lock with hard links... " >&6; }
14508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14510 ln conftest.a conftest.b 2>&5 || hard_links=no
14511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14513 $as_echo "$hard_links" >&6; }
14514 if test "$hard_links" = no; then
14515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14516 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14526 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14528 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14529 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14532 # If we're using GNU nm, then we don't want the "-C" option.
14533 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14534 # Also, AIX nm treats weak defined symbols like other global defined
14535 # symbols, whereas GNU nm marks them as "W".
14536 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14537 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'
14539 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'
14543 export_symbols_cmds_CXX="$ltdll_cmds"
14545 cygwin* | mingw* | cegcc*)
14546 case $cc_basename in
14548 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14551 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'
14552 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14556 linux* | k*bsd*-gnu | gnu*)
14557 link_all_deplibs_CXX=no
14560 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14565 $as_echo "$ld_shlibs_CXX" >&6; }
14566 test "$ld_shlibs_CXX" = no && can_build_shared=no
14568 with_gnu_ld_CXX=$with_gnu_ld
14576 # Do we need to explicitly link libc?
14578 case "x$archive_cmds_need_lc_CXX" in
14580 # Assume -lc should be added
14581 archive_cmds_need_lc_CXX=yes
14583 if test "$enable_shared" = yes && test "$GCC" = yes; then
14584 case $archive_cmds_CXX in
14586 # FIXME: we may have to deal with multi-command sequences.
14589 # Test whether the compiler implicitly links with -lc since on some
14590 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14591 # to ld, don't add -lc before -lgcc.
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14593 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14594 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14595 $as_echo_n "(cached) " >&6
14598 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14601 (eval $ac_compile) 2>&5
14603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14604 test $ac_status = 0; } 2>conftest.err; then
14607 libobjs=conftest.$ac_objext
14609 wl=$lt_prog_compiler_wl_CXX
14610 pic_flag=$lt_prog_compiler_pic_CXX
14616 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14617 allow_undefined_flag_CXX=
14618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14619 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14622 test $ac_status = 0; }
14624 lt_cv_archive_cmds_need_lc_CXX=no
14626 lt_cv_archive_cmds_need_lc_CXX=yes
14628 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14630 cat conftest.err 1>&5
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14636 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14637 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14706 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14708 library_names_spec=
14709 libname_spec='lib$name'
14713 postuninstall_cmds=
14717 shlibpath_overrides_runpath=unknown
14719 dynamic_linker="$host_os ld.so"
14720 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14721 need_lib_prefix=unknown
14722 hardcode_into_libs=no
14724 # when you set need_version to no, make sure it does not cause -set_version
14725 # flags to be left without arguments
14726 need_version=unknown
14730 version_type=linux # correct to gnu/linux during the next big refactor
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14732 shlibpath_var=LIBPATH
14734 # AIX 3 has no versioning support, so we append a major version to the name.
14735 soname_spec='${libname}${release}${shared_ext}$major'
14739 version_type=linux # correct to gnu/linux during the next big refactor
14742 hardcode_into_libs=yes
14743 if test "$host_cpu" = ia64; then
14744 # AIX 5 supports IA64
14745 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14746 shlibpath_var=LD_LIBRARY_PATH
14748 # With GCC up to 2.95.x, collect2 would create an import file
14749 # for dependence libraries. The import file would start with
14750 # the line `#! .'. This would cause the generated library to
14751 # depend on `.', always an invalid library. This was fixed in
14752 # development snapshots of GCC prior to 3.0.
14754 aix4 | aix4.[01] | aix4.[01].*)
14755 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14757 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14760 can_build_shared=no
14764 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14765 # soname into executable. Probably we can add versioning support to
14766 # collect2, so additional links can be useful in future.
14767 if test "$aix_use_runtimelinking" = yes; then
14768 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14769 # instead of lib<name>.a to let people know that these are not
14770 # typical AIX shared libraries.
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773 # We preserve .a as extension for shared libraries through AIX4.2
14774 # and later when we are not doing run time linking.
14775 library_names_spec='${libname}${release}.a $libname.a'
14776 soname_spec='${libname}${release}${shared_ext}$major'
14778 shlibpath_var=LIBPATH
14785 # Since July 2007 AmigaOS4 officially supports .so libraries.
14786 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14790 library_names_spec='$libname.ixlibrary $libname.a'
14791 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14792 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'
14798 library_names_spec='${libname}${shared_ext}'
14799 dynamic_linker="$host_os ld.so"
14800 shlibpath_var=LIBRARY_PATH
14804 version_type=linux # correct to gnu/linux during the next big refactor
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14807 soname_spec='${libname}${release}${shared_ext}$major'
14808 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14809 shlibpath_var=LD_LIBRARY_PATH
14810 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14811 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14812 # the default ld.so.conf also contains /usr/contrib/lib and
14813 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14814 # libtool to hard-code these into programs
14817 cygwin* | mingw* | pw32* | cegcc*)
14818 version_type=windows
14823 case $GCC,$cc_basename in
14826 library_names_spec='$libname.dll.a'
14827 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14828 postinstall_cmds='base_file=`basename \${file}`~
14829 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14830 dldir=$destdir/`dirname \$dlpath`~
14831 test -d \$dldir || mkdir -p \$dldir~
14832 $install_prog $dir/$dlname \$dldir/$dlname~
14833 chmod a+x \$dldir/$dlname~
14834 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14835 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14838 dlpath=$dir/\$dldll~
14840 shlibpath_overrides_runpath=yes
14844 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14845 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14849 # MinGW DLLs use traditional 'lib' prefix
14850 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14853 # pw32 DLLs use 'pw' prefix rather than 'lib'
14854 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14857 dynamic_linker='Win32 ld.exe'
14862 libname_spec='$name'
14863 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14864 library_names_spec='${libname}.dll.lib'
14868 sys_lib_search_path_spec=
14871 for lt_path in $LIB
14874 # Let DOS variable expansion print the short 8.3 style file name.
14875 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14876 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14879 # Convert to MSYS style.
14880 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14883 # Convert to unix form, then to dos form, then back to unix form
14884 # but this time dos style (no spaces!) so that the unix form looks
14885 # like /cygdrive/c/PROGRA~1:/cygdr...
14886 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14887 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14888 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14891 sys_lib_search_path_spec="$LIB"
14892 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14893 # It is most probably a Windows format PATH.
14894 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14896 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14898 # FIXME: find the short name or the path components, as spaces are
14899 # common. (e.g. "Program Files" -> "PROGRA~1")
14903 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14904 postinstall_cmds='base_file=`basename \${file}`~
14905 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14906 dldir=$destdir/`dirname \$dlpath`~
14907 test -d \$dldir || mkdir -p \$dldir~
14908 $install_prog $dir/$dlname \$dldir/$dlname'
14909 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14910 dlpath=$dir/\$dldll~
14912 shlibpath_overrides_runpath=yes
14913 dynamic_linker='Win32 link.exe'
14917 # Assume MSVC wrapper
14918 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14919 dynamic_linker='Win32 ld.exe'
14922 # FIXME: first we should search . and the directory the executable is in
14926 darwin* | rhapsody*)
14927 dynamic_linker="$host_os dyld"
14928 version_type=darwin
14931 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14932 soname_spec='${libname}${release}${major}$shared_ext'
14933 shlibpath_overrides_runpath=yes
14934 shlibpath_var=DYLD_LIBRARY_PATH
14935 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14937 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14941 version_type=linux # correct to gnu/linux during the next big refactor
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 shlibpath_var=LD_LIBRARY_PATH
14949 freebsd* | dragonfly*)
14950 # DragonFly does not have aout. When/if they implement a new
14951 # versioning mechanism, adjust this.
14952 if test -x /usr/bin/objformat; then
14953 objformat=`/usr/bin/objformat`
14956 freebsd[23].*) objformat=aout ;;
14957 *) objformat=elf ;;
14960 version_type=freebsd-$objformat
14961 case $version_type in
14963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14968 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14972 shlibpath_var=LD_LIBRARY_PATH
14975 shlibpath_overrides_runpath=yes
14977 freebsd3.[01]* | freebsdelf3.[01]*)
14978 shlibpath_overrides_runpath=yes
14979 hardcode_into_libs=yes
14981 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14982 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14983 shlibpath_overrides_runpath=no
14984 hardcode_into_libs=yes
14986 *) # from 4.6 on, and DragonFly
14987 shlibpath_overrides_runpath=yes
14988 hardcode_into_libs=yes
14994 version_type=linux # correct to gnu/linux during the next big refactor
14997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14998 soname_spec='${libname}${release}${shared_ext}$major'
14999 shlibpath_var=LD_LIBRARY_PATH
15000 shlibpath_overrides_runpath=no
15001 hardcode_into_libs=yes
15005 version_type=linux # correct to gnu/linux during the next big refactor
15008 dynamic_linker="$host_os runtime_loader"
15009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15010 soname_spec='${libname}${release}${shared_ext}$major'
15011 shlibpath_var=LIBRARY_PATH
15012 shlibpath_overrides_runpath=yes
15013 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15014 hardcode_into_libs=yes
15017 hpux9* | hpux10* | hpux11*)
15018 # Give a soname corresponding to the major version so that dld.sl refuses to
15019 # link against other versions.
15026 hardcode_into_libs=yes
15027 dynamic_linker="$host_os dld.so"
15028 shlibpath_var=LD_LIBRARY_PATH
15029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15031 soname_spec='${libname}${release}${shared_ext}$major'
15032 if test "X$HPUX_IA64_MODE" = X32; then
15033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15041 hardcode_into_libs=yes
15042 dynamic_linker="$host_os dld.sl"
15043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15046 soname_spec='${libname}${release}${shared_ext}$major'
15047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15052 dynamic_linker="$host_os dld.sl"
15053 shlibpath_var=SHLIB_PATH
15054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15056 soname_spec='${libname}${release}${shared_ext}$major'
15059 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15060 postinstall_cmds='chmod 555 $lib'
15061 # or fails outright, so override atomically:
15062 install_override_mode=555
15066 version_type=linux # correct to gnu/linux during the next big refactor
15069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15070 soname_spec='${libname}${release}${shared_ext}$major'
15071 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15072 shlibpath_var=LD_LIBRARY_PATH
15073 shlibpath_overrides_runpath=no
15074 hardcode_into_libs=yes
15077 irix5* | irix6* | nonstopux*)
15079 nonstopux*) version_type=nonstopux ;;
15081 if test "$lt_cv_prog_gnu_ld" = yes; then
15082 version_type=linux # correct to gnu/linux during the next big refactor
15089 soname_spec='${libname}${release}${shared_ext}$major'
15090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15092 irix5* | nonstopux*)
15093 libsuff= shlibsuff=
15096 case $LD in # libtool.m4 will add one of these switches to LD
15097 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15098 libsuff= shlibsuff= libmagic=32-bit;;
15099 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15100 libsuff=32 shlibsuff=N32 libmagic=N32;;
15101 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15102 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15103 *) libsuff= shlibsuff= libmagic=never-match;;
15107 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15108 shlibpath_overrides_runpath=no
15109 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15110 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15111 hardcode_into_libs=yes
15114 # No shared lib support for Linux oldld, aout, or coff.
15115 linux*oldld* | linux*aout* | linux*coff*)
15119 # This must be glibc/ELF.
15120 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15121 version_type=linux # correct to gnu/linux during the next big refactor
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15125 soname_spec='${libname}${release}${shared_ext}$major'
15126 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15127 shlibpath_var=LD_LIBRARY_PATH
15128 shlibpath_overrides_runpath=no
15130 # Some binutils ld are patched to set DT_RUNPATH
15131 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15132 $as_echo_n "(cached) " >&6
15134 lt_cv_shlibpath_overrides_runpath=no
15135 save_LDFLAGS=$LDFLAGS
15136 save_libdir=$libdir
15137 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15138 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15140 /* end confdefs.h. */
15150 if ac_fn_cxx_try_link "$LINENO"; then :
15151 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15152 lt_cv_shlibpath_overrides_runpath=yes
15155 rm -f core conftest.err conftest.$ac_objext \
15156 conftest$ac_exeext conftest.$ac_ext
15157 LDFLAGS=$save_LDFLAGS
15158 libdir=$save_libdir
15162 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15164 # This implies no fast_install, which is unacceptable.
15165 # Some rework will be needed to allow for fast_install
15166 # before this can be enabled.
15167 hardcode_into_libs=yes
15169 # Append ld.so.conf contents to the search path
15170 if test -f /etc/ld.so.conf; then
15171 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' ' '`
15172 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15175 # We used to test for /lib/ld.so.1 and disable shared libraries on
15176 # powerpc, because MkLinux only supported shared libraries with the
15177 # GNU dynamic linker. Since this was broken with cross compilers,
15178 # most powerpc-linux boxes support dynamic linking these days and
15179 # people can always --disable-shared, the test was removed, and we
15180 # assume the GNU/Linux dynamic linker is in use.
15181 dynamic_linker='GNU/Linux ld.so'
15188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15189 soname_spec='${libname}${release}${shared_ext}$major'
15190 shlibpath_var=LD_LIBRARY_PATH
15191 shlibpath_overrides_runpath=no
15192 hardcode_into_libs=yes
15193 dynamic_linker='NetBSD ld.elf_so'
15200 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15202 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15203 dynamic_linker='NetBSD (a.out) ld.so'
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15206 soname_spec='${libname}${release}${shared_ext}$major'
15207 dynamic_linker='NetBSD ld.elf_so'
15209 shlibpath_var=LD_LIBRARY_PATH
15210 shlibpath_overrides_runpath=yes
15211 hardcode_into_libs=yes
15215 version_type=linux # correct to gnu/linux during the next big refactor
15216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15217 shlibpath_var=LD_LIBRARY_PATH
15218 shlibpath_overrides_runpath=yes
15225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15226 soname_spec='${libname}${release}${shared_ext}$major'
15227 shlibpath_var=LD_LIBRARY_PATH
15228 shlibpath_overrides_runpath=no
15229 hardcode_into_libs=yes
15230 dynamic_linker='ldqnx.so'
15235 sys_lib_dlsearch_path_spec="/usr/lib"
15237 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15239 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15240 *) need_version=no ;;
15242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15243 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15244 shlibpath_var=LD_LIBRARY_PATH
15245 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15247 openbsd2.[89] | openbsd2.[89].*)
15248 shlibpath_overrides_runpath=no
15251 shlibpath_overrides_runpath=yes
15255 shlibpath_overrides_runpath=yes
15260 libname_spec='$name'
15263 library_names_spec='$libname${shared_ext} $libname.a'
15264 dynamic_linker='OS/2 ld.exe'
15265 shlibpath_var=LIBPATH
15268 osf3* | osf4* | osf5*)
15272 soname_spec='${libname}${release}${shared_ext}$major'
15273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15274 shlibpath_var=LD_LIBRARY_PATH
15275 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15276 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15284 version_type=linux # correct to gnu/linux during the next big refactor
15287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288 soname_spec='${libname}${release}${shared_ext}$major'
15289 shlibpath_var=LD_LIBRARY_PATH
15290 shlibpath_overrides_runpath=yes
15291 hardcode_into_libs=yes
15292 # ldd complains unless libraries are executable
15293 postinstall_cmds='chmod +x $lib'
15298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15299 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15300 shlibpath_var=LD_LIBRARY_PATH
15301 shlibpath_overrides_runpath=yes
15302 if test "$with_gnu_ld" = yes; then
15309 version_type=linux # correct to gnu/linux during the next big refactor
15310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15311 soname_spec='${libname}${release}${shared_ext}$major'
15312 shlibpath_var=LD_LIBRARY_PATH
15313 case $host_vendor in
15315 shlibpath_overrides_runpath=no
15317 runpath_var=LD_RUN_PATH
15325 shlibpath_overrides_runpath=no
15326 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15332 if test -d /usr/nec ;then
15333 version_type=linux # correct to gnu/linux during the next big refactor
15334 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15335 soname_spec='$libname${shared_ext}.$major'
15336 shlibpath_var=LD_LIBRARY_PATH
15340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15341 version_type=freebsd-elf
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15345 soname_spec='${libname}${release}${shared_ext}$major'
15346 shlibpath_var=LD_LIBRARY_PATH
15347 shlibpath_overrides_runpath=yes
15348 hardcode_into_libs=yes
15349 if test "$with_gnu_ld" = yes; then
15350 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15352 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15355 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15359 sys_lib_dlsearch_path_spec='/usr/lib'
15363 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15364 version_type=linux # correct to gnu/linux during the next big refactor
15367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15368 shlibpath_var=LD_LIBRARY_PATH
15369 shlibpath_overrides_runpath=no
15370 hardcode_into_libs=yes
15374 version_type=linux # correct to gnu/linux during the next big refactor
15375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15376 soname_spec='${libname}${release}${shared_ext}$major'
15377 shlibpath_var=LD_LIBRARY_PATH
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15385 $as_echo "$dynamic_linker" >&6; }
15386 test "$dynamic_linker" = no && can_build_shared=no
15388 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15389 if test "$GCC" = yes; then
15390 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15393 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15394 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15396 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15397 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15438 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15439 hardcode_action_CXX=
15440 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15441 test -n "$runpath_var_CXX" ||
15442 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15444 # We can hardcode non-existent directories.
15445 if test "$hardcode_direct_CXX" != no &&
15446 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15447 # have to relink, otherwise we might link with an installed library
15448 # when we should be linking with a yet-to-be-installed one
15449 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15450 test "$hardcode_minus_L_CXX" != no; then
15451 # Linking always hardcodes the temporary library directory.
15452 hardcode_action_CXX=relink
15454 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15455 hardcode_action_CXX=immediate
15458 # We cannot hardcode anything, or else we can only hardcode existing
15460 hardcode_action_CXX=unsupported
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15463 $as_echo "$hardcode_action_CXX" >&6; }
15465 if test "$hardcode_action_CXX" = relink ||
15466 test "$inherit_rpath_CXX" = yes; then
15467 # Fast installation is not supported
15468 enable_fast_install=no
15469 elif test "$shlibpath_overrides_runpath" = yes ||
15470 test "$enable_shared" = no; then
15471 # Fast installation is not necessary
15472 enable_fast_install=needless
15481 fi # test -n "$compiler"
15484 CFLAGS=$lt_save_CFLAGS
15488 with_gnu_ld=$lt_save_with_gnu_ld
15489 lt_cv_path_LDCXX=$lt_cv_path_LD
15490 lt_cv_path_LD=$lt_save_path_LD
15491 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15492 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15493 fi # test "$_lt_caught_CXX_error" != yes
15496 ac_cpp='$CPP $CPPFLAGS'
15497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15515 ac_config_commands="$ac_config_commands libtool"
15520 # Only expand once:
15523 # By default we simply use the C compiler to build assembly code.
15525 test "${CCAS+set}" = set || CCAS=$CC
15526 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
15530 depcc="$CCAS" am_compiler_list=
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
15533 $as_echo_n "checking dependency style of $depcc... " >&6; }
15534 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
15535 $as_echo_n "(cached) " >&6
15537 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
15538 # We make a subdir and do the tests there. Otherwise we can end up
15539 # making bogus files that we don't know about and never remove. For
15540 # instance it was reported that on HP-UX the gcc test will end up
15541 # making a dummy file named `D' -- because `-MD' means `put the output
15543 rm -rf conftest.dir
15545 # Copy depcomp to subdir because otherwise we won't find it if we're
15546 # using a relative directory.
15547 cp "$am_depcomp" conftest.dir
15549 # We will build objects and dependencies in a subdirectory because
15550 # it helps to detect inapplicable dependency modes. For instance
15551 # both Tru64's cc and ICC support -MD to output dependencies as a
15552 # side effect of compilation, but ICC will put the dependencies in
15553 # the current directory while Tru64 will put them in the object
15557 am_cv_CCAS_dependencies_compiler_type=none
15558 if test "$am_compiler_list" = ""; then
15559 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
15561 am__universal=false
15564 for depmode in $am_compiler_list; do
15565 # Setup a source with many dependencies, because some compilers
15566 # like to wrap large dependency lists on column 80 (with \), and
15567 # we should not choose a depcomp mode which is confused by this.
15569 # We need to recreate these files for each test, as the compiler may
15570 # overwrite some of them when testing with obscure command lines.
15571 # This happens at least with the AIX C compiler.
15573 for i in 1 2 3 4 5 6; do
15574 echo '#include "conftst'$i'.h"' >> sub/conftest.c
15575 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
15576 # Solaris 8's {/usr,}/bin/sh.
15577 touch sub/conftst$i.h
15579 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
15581 # We check with `-c' and `-o' for the sake of the "dashmstdout"
15582 # mode. It turns out that the SunPro C++ compiler does not properly
15583 # handle `-M -o', and we need to detect this. Also, some Intel
15584 # versions had trouble with output in subdirs
15585 am__obj=sub/conftest.${OBJEXT-o}
15586 am__minus_obj="-o $am__obj"
15589 # This depmode causes a compiler race in universal mode.
15590 test "$am__universal" = false || continue
15593 # after this tag, mechanisms are not by side-effect, so they'll
15594 # only be used when explicitly requested
15595 if test "x$enable_dependency_tracking" = xyes; then
15601 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
15602 # This compiler won't grok `-c -o', but also, the minuso test has
15603 # not run yet. These depmodes are late enough in the game, and
15604 # so weak that their functioning should not be impacted.
15605 am__obj=conftest.${OBJEXT-o}
15610 if depmode=$depmode \
15611 source=sub/conftest.c object=$am__obj \
15612 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
15613 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
15614 >/dev/null 2>conftest.err &&
15615 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
15616 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
15617 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
15618 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
15619 # icc doesn't choke on unknown options, it will just issue warnings
15620 # or remarks (even with -Werror). So we grep stderr for any message
15621 # that says an option was ignored or not supported.
15622 # When given -MP, icc 7.0 and 7.1 complain thusly:
15623 # icc: Command line warning: ignoring option '-M'; no argument required
15624 # The diagnosis changed in icc 8.0:
15625 # icc: Command line remark: option '-MP' not supported
15626 if (grep 'ignoring option' conftest.err ||
15627 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
15628 am_cv_CCAS_dependencies_compiler_type=$depmode
15635 rm -rf conftest.dir
15637 am_cv_CCAS_dependencies_compiler_type=none
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
15642 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
15643 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
15646 test "x$enable_dependency_tracking" != xno \
15647 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
15648 am__fastdepCCAS_TRUE=
15649 am__fastdepCCAS_FALSE='#'
15651 am__fastdepCCAS_TRUE='#'
15652 am__fastdepCCAS_FALSE=
15656 if test "x$CC" != xcc; then
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
15658 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
15661 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
15663 set dummy $CC; ac_cc=`$as_echo "$2" |
15664 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15665 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
15666 $as_echo_n "(cached) " >&6
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h. */
15679 # Make sure it works both with $CC and with simple cc.
15680 # We do the test twice because some compilers refuse to overwrite an
15681 # existing .o file with -o, though they will create one.
15682 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15684 if { { case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15689 $as_echo "$ac_try_echo"; } >&5
15690 (eval "$ac_try") 2>&5
15692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15693 test $ac_status = 0; } &&
15694 test -f conftest2.$ac_objext && { { case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15699 $as_echo "$ac_try_echo"; } >&5
15700 (eval "$ac_try") 2>&5
15702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15703 test $ac_status = 0; };
15705 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
15706 if test "x$CC" != xcc; then
15707 # Test first that cc exists at all.
15708 if { ac_try='cc -c conftest.$ac_ext >&5'
15709 { { case "(($ac_try" in
15710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15711 *) ac_try_echo=$ac_try;;
15713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15714 $as_echo "$ac_try_echo"; } >&5
15715 (eval "$ac_try") 2>&5
15717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15718 test $ac_status = 0; }; }; then
15719 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
15721 if { { case "(($ac_try" in
15722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723 *) ac_try_echo=$ac_try;;
15725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15726 $as_echo "$ac_try_echo"; } >&5
15727 (eval "$ac_try") 2>&5
15729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15730 test $ac_status = 0; } &&
15731 test -f conftest2.$ac_objext && { { case "(($ac_try" in
15732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15733 *) ac_try_echo=$ac_try;;
15735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15736 $as_echo "$ac_try_echo"; } >&5
15737 (eval "$ac_try") 2>&5
15739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15740 test $ac_status = 0; };
15745 # cc exists but doesn't like -o.
15746 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15751 eval ac_cv_prog_cc_${ac_cc}_c_o=no
15753 rm -f core conftest*
15756 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15758 $as_echo "yes" >&6; }
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15761 $as_echo "no" >&6; }
15763 $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
15767 # FIXME: we rely on the cache variable name because
15768 # there is no other way.
15770 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
15771 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
15772 if test "$am_t" != yes; then
15773 # Losing compiler, so override with the script.
15774 # FIXME: It is wrong to rewrite CC.
15775 # But if we don't then we get into trouble of one sort or another.
15776 # A longer-term fix would be to have automake use am__CC in this case,
15777 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
15778 CC="$am_aux_dir/compile $CC"
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __uc_get_grs in -luca" >&5
15784 $as_echo_n "checking for __uc_get_grs in -luca... " >&6; }
15785 if ${ac_cv_lib_uca___uc_get_grs+:} false; then :
15786 $as_echo_n "(cached) " >&6
15788 ac_check_lib_save_LIBS=$LIBS
15790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15791 /* end confdefs.h. */
15793 /* Override any GCC internal prototype to avoid an error.
15794 Use char because int might match the return type of a GCC
15795 builtin and then its argument prototype would still apply. */
15799 char __uc_get_grs ();
15803 return __uc_get_grs ();
15808 if ac_fn_c_try_link "$LINENO"; then :
15809 ac_cv_lib_uca___uc_get_grs=yes
15811 ac_cv_lib_uca___uc_get_grs=no
15813 rm -f core conftest.err conftest.$ac_objext \
15814 conftest$ac_exeext conftest.$ac_ext
15815 LIBS=$ac_check_lib_save_LIBS
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uca___uc_get_grs" >&5
15818 $as_echo "$ac_cv_lib_uca___uc_get_grs" >&6; }
15819 if test "x$ac_cv_lib_uca___uc_get_grs" = xyes; then :
15820 cat >>confdefs.h <<_ACEOF
15821 @%:@define HAVE_LIBUCA 1
15829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
15830 $as_echo_n "checking for library containing dlopen... " >&6; }
15831 if ${ac_cv_search_dlopen+:} false; then :
15832 $as_echo_n "(cached) " >&6
15834 ac_func_search_save_LIBS=$LIBS
15835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15836 /* end confdefs.h. */
15838 /* Override any GCC internal prototype to avoid an error.
15839 Use char because int might match the return type of a GCC
15840 builtin and then its argument prototype would still apply. */
15853 for ac_lib in '' dl; do
15854 if test -z "$ac_lib"; then
15855 ac_res="none required"
15858 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15860 if ac_fn_c_try_link "$LINENO"; then :
15861 ac_cv_search_dlopen=$ac_res
15863 rm -f core conftest.err conftest.$ac_objext \
15865 if ${ac_cv_search_dlopen+:} false; then :
15869 if ${ac_cv_search_dlopen+:} false; then :
15872 ac_cv_search_dlopen=no
15874 rm conftest.$ac_ext
15875 LIBS=$ac_func_search_save_LIBS
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
15878 $as_echo "$ac_cv_search_dlopen" >&6; }
15879 ac_res=$ac_cv_search_dlopen
15880 if test "$ac_res" != no; then :
15881 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15886 case "$ac_cv_search_dlopen" in
15887 -l*) DLLIB=$ac_cv_search_dlopen;;
15891 for ac_header in atomic_ops.h
15893 ac_fn_c_check_header_mongrel "$LINENO" "atomic_ops.h" "ac_cv_header_atomic_ops_h" "$ac_includes_default"
15894 if test "x$ac_cv_header_atomic_ops_h" = xyes; then :
15895 cat >>confdefs.h <<_ACEOF
15896 @%:@define HAVE_ATOMIC_OPS_H 1
15904 # Don't link against libatomic_ops for now. We don't want libunwind
15905 # to depend on libatomic_ops.so. Fortunately, none of the platforms
15906 # we care about so far need libatomic_ops.a (everything is done via
15909 # AC_CHECK_LIB(atomic_ops, main)
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15913 $as_echo_n "checking for ANSI C header files... " >&6; }
15914 if ${ac_cv_header_stdc+:} false; then :
15915 $as_echo_n "(cached) " >&6
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919 #include <stdlib.h>
15920 #include <stdarg.h>
15921 #include <string.h>
15932 if ac_fn_c_try_compile "$LINENO"; then :
15933 ac_cv_header_stdc=yes
15935 ac_cv_header_stdc=no
15937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15939 if test $ac_cv_header_stdc = yes; then
15940 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15942 /* end confdefs.h. */
15943 #include <string.h>
15946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15947 $EGREP "memchr" >/dev/null 2>&1; then :
15950 ac_cv_header_stdc=no
15956 if test $ac_cv_header_stdc = yes; then
15957 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15959 /* end confdefs.h. */
15960 #include <stdlib.h>
15963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15964 $EGREP "free" >/dev/null 2>&1; then :
15967 ac_cv_header_stdc=no
15973 if test $ac_cv_header_stdc = yes; then
15974 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15975 if test "$cross_compiling" = yes; then :
15978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15979 /* end confdefs.h. */
15981 #include <stdlib.h>
15982 #if ((' ' & 0x0FF) == 0x020)
15983 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15984 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15986 # define ISLOWER(c) \
15987 (('a' <= (c) && (c) <= 'i') \
15988 || ('j' <= (c) && (c) <= 'r') \
15989 || ('s' <= (c) && (c) <= 'z'))
15990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15998 for (i = 0; i < 256; i++)
15999 if (XOR (islower (i), ISLOWER (i))
16000 || toupper (i) != TOUPPER (i))
16005 if ac_fn_c_try_run "$LINENO"; then :
16008 ac_cv_header_stdc=no
16010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16011 conftest.$ac_objext conftest.beam conftest.$ac_ext
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16017 $as_echo "$ac_cv_header_stdc" >&6; }
16018 if test $ac_cv_header_stdc = yes; then
16020 $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
16024 for ac_header in asm/ptrace_offsets.h endian.h sys/endian.h execinfo.h \
16025 ia64intrin.h sys/uc_access.h unistd.h signal.h sys/types.h \
16026 sys/procfs.h sys/ptrace.h byteswap.h
16028 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16029 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16030 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16031 cat >>confdefs.h <<_ACEOF
16032 @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16041 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16042 if ${ac_cv_c_const+:} false; then :
16043 $as_echo_n "(cached) " >&6
16045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16046 /* end confdefs.h. */
16051 /* FIXME: Include the comments suggested by Paul. */
16052 #ifndef __cplusplus
16053 /* Ultrix mips cc rejects this. */
16054 typedef int charset[2];
16056 /* SunOS 4.1.1 cc rejects this. */
16057 char const *const *pcpcc;
16059 /* NEC SVR4.0.2 mips cc rejects this. */
16060 struct point {int x, y;};
16061 static struct point const zero = {0,0};
16062 /* AIX XL C 1.02.0.0 rejects this.
16063 It does not let you subtract one const X* pointer from another in
16064 an arm of an if-expression whose if-part is not a constant
16066 const char *g = "string";
16067 pcpcc = &g + (g ? g-g : 0);
16068 /* HPUX 7.0 cc rejects these. */
16070 ppc = (char**) pcpcc;
16071 pcpcc = (char const *const *) ppc;
16072 { /* SCO 3.2v4 cc rejects this. */
16074 char const *s = 0 ? (char *) 0 : (char const *) 0;
16079 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16080 int x[] = {25, 17};
16081 const int *foo = &x[0];
16084 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16085 typedef const int *iptr;
16089 { /* AIX XL C 1.02.0.0 rejects this saying
16090 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16091 struct s { int j; const int *ap[3]; };
16092 struct s *b; b->j = 5;
16094 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16095 const int foo = 10;
16096 if (!foo) return 0;
16098 return !cs[0] && !zero.x;
16105 if ac_fn_c_try_compile "$LINENO"; then :
16110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16113 $as_echo "$ac_cv_c_const" >&6; }
16114 if test $ac_cv_c_const = no; then
16116 $as_echo "@%:@define const /**/" >>confdefs.h
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16121 $as_echo_n "checking for inline... " >&6; }
16122 if ${ac_cv_c_inline+:} false; then :
16123 $as_echo_n "(cached) " >&6
16126 for ac_kw in inline __inline__ __inline; do
16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16128 /* end confdefs.h. */
16129 #ifndef __cplusplus
16131 static $ac_kw foo_t static_foo () {return 0; }
16132 $ac_kw foo_t foo () {return 0; }
16136 if ac_fn_c_try_compile "$LINENO"; then :
16137 ac_cv_c_inline=$ac_kw
16139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16140 test "$ac_cv_c_inline" != no && break
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16145 $as_echo "$ac_cv_c_inline" >&6; }
16147 case $ac_cv_c_inline in
16150 case $ac_cv_c_inline in
16152 *) ac_val=$ac_cv_c_inline;;
16154 cat >>confdefs.h <<_ACEOF
16155 #ifndef __cplusplus
16156 #define inline $ac_val
16162 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16163 if test "x$ac_cv_type_size_t" = xyes; then :
16167 cat >>confdefs.h <<_ACEOF
16168 @%:@define size_t unsigned int
16173 # The cast to long int works around a bug in the HP C Compiler
16174 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16175 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16176 # This bug is HP SR number 8606223364.
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
16178 $as_echo_n "checking size of off_t... " >&6; }
16179 if ${ac_cv_sizeof_off_t+:} false; then :
16180 $as_echo_n "(cached) " >&6
16182 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
16185 if test "$ac_cv_type_off_t" = yes; then
16186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16188 as_fn_error 77 "cannot compute sizeof (off_t)
16189 See \`config.log' for more details" "$LINENO" 5; }
16191 ac_cv_sizeof_off_t=0
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
16197 $as_echo "$ac_cv_sizeof_off_t" >&6; }
16201 cat >>confdefs.h <<_ACEOF
16202 @%:@define SIZEOF_OFF_T $ac_cv_sizeof_off_t
16207 CPPFLAGS="${CPPFLAGS} -D_GNU_SOURCE"
16209 ac_fn_c_check_member "$LINENO" "struct dl_phdr_info" "dlpi_subs" "ac_cv_member_struct_dl_phdr_info_dlpi_subs" "#include <link.h>
16211 if test "x$ac_cv_member_struct_dl_phdr_info_dlpi_subs" = xyes; then :
16213 cat >>confdefs.h <<_ACEOF
16214 @%:@define HAVE_STRUCT_DL_PHDR_INFO_DLPI_SUBS 1
16220 ac_fn_c_check_type "$LINENO" "struct elf_prstatus" "ac_cv_type_struct_elf_prstatus" "$ac_includes_default
16221 #if HAVE_SYS_PROCFS_H
16222 # include <sys/procfs.h>
16226 if test "x$ac_cv_type_struct_elf_prstatus" = xyes; then :
16228 cat >>confdefs.h <<_ACEOF
16229 @%:@define HAVE_STRUCT_ELF_PRSTATUS 1
16234 ac_fn_c_check_type "$LINENO" "struct prstatus" "ac_cv_type_struct_prstatus" "$ac_includes_default
16235 #if HAVE_SYS_PROCFS_H
16236 # include <sys/procfs.h>
16240 if test "x$ac_cv_type_struct_prstatus" = xyes; then :
16242 cat >>confdefs.h <<_ACEOF
16243 @%:@define HAVE_STRUCT_PRSTATUS 1
16250 ac_fn_c_check_decl "$LINENO" "PTRACE_POKEUSER" "ac_cv_have_decl_PTRACE_POKEUSER" "$ac_includes_default
16251 #if HAVE_SYS_TYPES_H
16252 #include <sys/types.h>
16254 #include <sys/ptrace.h>
16257 if test "x$ac_cv_have_decl_PTRACE_POKEUSER" = xyes; then :
16263 cat >>confdefs.h <<_ACEOF
16264 @%:@define HAVE_DECL_PTRACE_POKEUSER $ac_have_decl
16266 ac_fn_c_check_decl "$LINENO" "PTRACE_POKEDATA" "ac_cv_have_decl_PTRACE_POKEDATA" "$ac_includes_default
16267 #if HAVE_SYS_TYPES_H
16268 #include <sys/types.h>
16270 #include <sys/ptrace.h>
16273 if test "x$ac_cv_have_decl_PTRACE_POKEDATA" = xyes; then :
16279 cat >>confdefs.h <<_ACEOF
16280 @%:@define HAVE_DECL_PTRACE_POKEDATA $ac_have_decl
16282 ac_fn_c_check_decl "$LINENO" "PTRACE_TRACEME" "ac_cv_have_decl_PTRACE_TRACEME" "$ac_includes_default
16283 #if HAVE_SYS_TYPES_H
16284 #include <sys/types.h>
16286 #include <sys/ptrace.h>
16289 if test "x$ac_cv_have_decl_PTRACE_TRACEME" = xyes; then :
16295 cat >>confdefs.h <<_ACEOF
16296 @%:@define HAVE_DECL_PTRACE_TRACEME $ac_have_decl
16298 ac_fn_c_check_decl "$LINENO" "PTRACE_CONT" "ac_cv_have_decl_PTRACE_CONT" "$ac_includes_default
16299 #if HAVE_SYS_TYPES_H
16300 #include <sys/types.h>
16302 #include <sys/ptrace.h>
16305 if test "x$ac_cv_have_decl_PTRACE_CONT" = xyes; then :
16311 cat >>confdefs.h <<_ACEOF
16312 @%:@define HAVE_DECL_PTRACE_CONT $ac_have_decl
16314 ac_fn_c_check_decl "$LINENO" "PTRACE_SINGLESTEP" "ac_cv_have_decl_PTRACE_SINGLESTEP" "$ac_includes_default
16315 #if HAVE_SYS_TYPES_H
16316 #include <sys/types.h>
16318 #include <sys/ptrace.h>
16321 if test "x$ac_cv_have_decl_PTRACE_SINGLESTEP" = xyes; then :
16327 cat >>confdefs.h <<_ACEOF
16328 @%:@define HAVE_DECL_PTRACE_SINGLESTEP $ac_have_decl
16330 ac_fn_c_check_decl "$LINENO" "PTRACE_SYSCALL" "ac_cv_have_decl_PTRACE_SYSCALL" "$ac_includes_default
16331 #if HAVE_SYS_TYPES_H
16332 #include <sys/types.h>
16334 #include <sys/ptrace.h>
16337 if test "x$ac_cv_have_decl_PTRACE_SYSCALL" = xyes; then :
16343 cat >>confdefs.h <<_ACEOF
16344 @%:@define HAVE_DECL_PTRACE_SYSCALL $ac_have_decl
16346 ac_fn_c_check_decl "$LINENO" "PT_IO" "ac_cv_have_decl_PT_IO" "$ac_includes_default
16347 #if HAVE_SYS_TYPES_H
16348 #include <sys/types.h>
16350 #include <sys/ptrace.h>
16353 if test "x$ac_cv_have_decl_PT_IO" = xyes; then :
16359 cat >>confdefs.h <<_ACEOF
16360 @%:@define HAVE_DECL_PT_IO $ac_have_decl
16362 ac_fn_c_check_decl "$LINENO" "PT_GETREGS" "ac_cv_have_decl_PT_GETREGS" "$ac_includes_default
16363 #if HAVE_SYS_TYPES_H
16364 #include <sys/types.h>
16366 #include <sys/ptrace.h>
16369 if test "x$ac_cv_have_decl_PT_GETREGS" = xyes; then :
16375 cat >>confdefs.h <<_ACEOF
16376 @%:@define HAVE_DECL_PT_GETREGS $ac_have_decl
16378 ac_fn_c_check_decl "$LINENO" "PT_GETFPREGS" "ac_cv_have_decl_PT_GETFPREGS" "$ac_includes_default
16379 #if HAVE_SYS_TYPES_H
16380 #include <sys/types.h>
16382 #include <sys/ptrace.h>
16385 if test "x$ac_cv_have_decl_PT_GETFPREGS" = xyes; then :
16391 cat >>confdefs.h <<_ACEOF
16392 @%:@define HAVE_DECL_PT_GETFPREGS $ac_have_decl
16394 ac_fn_c_check_decl "$LINENO" "PT_CONTINUE" "ac_cv_have_decl_PT_CONTINUE" "$ac_includes_default
16395 #if HAVE_SYS_TYPES_H
16396 #include <sys/types.h>
16398 #include <sys/ptrace.h>
16401 if test "x$ac_cv_have_decl_PT_CONTINUE" = xyes; then :
16407 cat >>confdefs.h <<_ACEOF
16408 @%:@define HAVE_DECL_PT_CONTINUE $ac_have_decl
16410 ac_fn_c_check_decl "$LINENO" "PT_TRACE_ME" "ac_cv_have_decl_PT_TRACE_ME" "$ac_includes_default
16411 #if HAVE_SYS_TYPES_H
16412 #include <sys/types.h>
16414 #include <sys/ptrace.h>
16417 if test "x$ac_cv_have_decl_PT_TRACE_ME" = xyes; then :
16423 cat >>confdefs.h <<_ACEOF
16424 @%:@define HAVE_DECL_PT_TRACE_ME $ac_have_decl
16426 ac_fn_c_check_decl "$LINENO" "PT_STEP" "ac_cv_have_decl_PT_STEP" "$ac_includes_default
16427 #if HAVE_SYS_TYPES_H
16428 #include <sys/types.h>
16430 #include <sys/ptrace.h>
16433 if test "x$ac_cv_have_decl_PT_STEP" = xyes; then :
16439 cat >>confdefs.h <<_ACEOF
16440 @%:@define HAVE_DECL_PT_STEP $ac_have_decl
16442 ac_fn_c_check_decl "$LINENO" "PT_SYSCALL" "ac_cv_have_decl_PT_SYSCALL" "$ac_includes_default
16443 #if HAVE_SYS_TYPES_H
16444 #include <sys/types.h>
16446 #include <sys/ptrace.h>
16449 if test "x$ac_cv_have_decl_PT_SYSCALL" = xyes; then :
16455 cat >>confdefs.h <<_ACEOF
16456 @%:@define HAVE_DECL_PT_SYSCALL $ac_have_decl
16460 for ac_func in dl_iterate_phdr dl_phdr_removals_counter dlmodinfo getunwind \
16463 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16464 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16465 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16466 cat >>confdefs.h <<_ACEOF
16467 @%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building with AltiVec" >&5
16475 $as_echo_n "checking if building with AltiVec... " >&6; }
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h. */
16479 #ifndef __ALTIVEC__
16484 if ac_fn_c_try_compile "$LINENO"; then :
16489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16490 if test x$use_altivec = xyes; then
16492 USE_ALTIVEC_FALSE='#'
16494 USE_ALTIVEC_TRUE='#'
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_altivec" >&5
16499 $as_echo "$use_altivec" >&6; }
16501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16502 /* end confdefs.h. */
16504 #ifndef __powerpc64__
16509 if ac_fn_c_try_compile "$LINENO"; then :
16514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16518 case $build_cpu in @%:@(
16520 build_arch=arm ;; @%:@(
16522 build_arch=x86 ;; @%:@(
16524 build_arch=hppa ;; @%:@(
16526 build_arch=mips ;; @%:@(
16528 build_arch=ppc$ppc_bits ;; @%:@(
16530 build_arch=sh ;; @%:@(
16532 build_arch=x86_64 ;; @%:@(
16534 build_arch=$build_cpu ;;
16538 case $host_cpu in @%:@(
16540 host_arch=arm ;; @%:@(
16542 host_arch=x86 ;; @%:@(
16544 host_arch=hppa ;; @%:@(
16546 host_arch=mips ;; @%:@(
16548 host_arch=ppc$ppc_bits ;; @%:@(
16550 host_arch=sh ;; @%:@(
16552 host_arch=x86_64 ;; @%:@(
16554 host_arch=$host_cpu ;;
16558 case $target_cpu in @%:@(
16560 target_arch=arm ;; @%:@(
16562 target_arch=x86 ;; @%:@(
16564 target_arch=hppa ;; @%:@(
16566 target_arch=mips ;; @%:@(
16568 target_arch=ppc$ppc_bits ;; @%:@(
16570 target_arch=sh ;; @%:@(
16572 target_arch=x86_64 ;; @%:@(
16574 target_arch=$target_cpu ;;
16578 @%:@ Check whether --enable-coredump was given.
16579 if test "${enable_coredump+set}" = set; then :
16580 enableval=$enable_coredump;
16582 case $host_arch in @%:@(
16583 arm*|mips*|sh*|x86*) :
16584 enable_coredump=yes ;; @%:@(
16586 enable_coredump=no ;;
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should build libunwind-coredump" >&5
16593 $as_echo_n "checking if we should build libunwind-coredump... " >&6; }
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_coredump" >&5
16595 $as_echo "$enable_coredump" >&6; }
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build architecture" >&5
16598 $as_echo_n "checking for build architecture... " >&6; }
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_arch" >&5
16600 $as_echo "$build_arch" >&6; }
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for host architecture" >&5
16602 $as_echo_n "checking for host architecture... " >&6; }
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_arch" >&5
16604 $as_echo "$host_arch" >&6; }
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target architecture" >&5
16606 $as_echo_n "checking for target architecture... " >&6; }
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_arch" >&5
16608 $as_echo "$target_arch" >&6; }
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target operating system" >&5
16610 $as_echo_n "checking for target operating system... " >&6; }
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_os" >&5
16612 $as_echo "$target_os" >&6; }
16614 if test x$enable_coredump = xyes; then
16615 BUILD_COREDUMP_TRUE=
16616 BUILD_COREDUMP_FALSE='#'
16618 BUILD_COREDUMP_TRUE='#'
16619 BUILD_COREDUMP_FALSE=
16622 if test x$target_arch != x$host_arch; then
16624 REMOTE_ONLY_FALSE='#'
16626 REMOTE_ONLY_TRUE='#'
16630 if test x$target_arch = xarm; then
16638 if test x$target_arch = xia64; then
16640 ARCH_IA64_FALSE='#'
16646 if test x$target_arch = xhppa; then
16648 ARCH_HPPA_FALSE='#'
16654 if test x$target_arch = xmips; then
16656 ARCH_MIPS_FALSE='#'
16662 if test x$target_arch = xx86; then
16670 if test x$target_arch = xx86_64; then
16672 ARCH_X86_64_FALSE='#'
16674 ARCH_X86_64_TRUE='#'
16678 if test x$target_arch = xppc32; then
16680 ARCH_PPC32_FALSE='#'
16682 ARCH_PPC32_TRUE='#'
16686 if test x$target_arch = xppc64; then
16688 ARCH_PPC64_FALSE='#'
16690 ARCH_PPC64_TRUE='#'
16694 if test x$target_arch = xsh; then
16702 if expr x$target_os : xlinux >/dev/null; then
16710 if expr x$target_os : xhpux >/dev/null; then
16718 if expr x$target_os : xfreebsd >/dev/null; then
16720 OS_FREEBSD_FALSE='#'
16722 OS_FREEBSD_TRUE='#'
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF helper width" >&5
16728 $as_echo_n "checking for ELF helper width... " >&6; }
16729 case "${target_arch}" in
16730 (arm|hppa|ppc32|x86|sh) use_elf32=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: 32" >&5
16731 $as_echo "32" >&6; };;
16732 (ia64|ppc64|x86_64) use_elf64=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: 64" >&5
16733 $as_echo "64" >&6; };;
16734 (mips) use_elfxx=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: xx" >&5
16735 $as_echo "xx" >&6; };;
16736 *) as_fn_error $? "Unknown ELF target: ${target_arch}" "$LINENO" 5
16738 if test x$use_elf32 = xyes; then
16740 USE_ELF32_FALSE='#'
16746 if test x$use_elf64 = xyes; then
16748 USE_ELF64_FALSE='#'
16754 if test x$use_elfxx = xyes; then
16756 USE_ELFXX_FALSE='#'
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include DWARF support" >&5
16764 $as_echo_n "checking whether to include DWARF support... " >&6; }
16765 if test x$target_arch != xia64; then
16770 if test x$use_dwarf = xyes; then
16772 USE_DWARF_FALSE='#'
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_dwarf" >&5
16779 $as_echo "$use_dwarf" >&6; }
16781 if test x$target_arch = xppc64; then
16782 libdir='${exec_prefix}/lib64'
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: PowerPC64 detected, lib will be installed ${libdir}" >&5
16784 $as_echo "$as_me: PowerPC64 detected, lib will be installed ${libdir}" >&6;};
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to restrict build to remote support" >&5
16789 $as_echo_n "checking whether to restrict build to remote support... " >&6; }
16790 if test x$target_arch != x$host_arch; then
16791 CPPFLAGS="${CPPFLAGS} -DUNW_REMOTE_ONLY"
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $remote_only" >&5
16797 $as_echo "$remote_only" >&6; }
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug support" >&5
16800 $as_echo_n "checking whether to enable debug support... " >&6; }
16801 @%:@ Check whether --enable-debug was given.
16802 if test "${enable_debug+set}" = set; then :
16803 enableval=$enable_debug;
16806 if test x$enable_debug = xyes; then
16807 CPPFLAGS="${CPPFLAGS} -DDEBUG"
16809 CPPFLAGS="${CPPFLAGS} -DNDEBUG"
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
16812 $as_echo "$enable_debug" >&6; }
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable C++ exception support" >&5
16815 $as_echo_n "checking whether to enable C++ exception support... " >&6; }
16816 @%:@ Check whether --enable-cxx_exceptions was given.
16817 if test "${enable_cxx_exceptions+set}" = set; then :
16818 enableval=$enable_cxx_exceptions;
16821 # C++ exception handling doesn't work too well on x86
16822 case $target_arch in
16823 x86*) enable_cxx_exceptions=no;;
16824 arm*) enable_cxx_exceptions=no;;
16825 mips*) enable_cxx_exceptions=no;;
16826 *) enable_cxx_exceptions=yes;;
16832 if test x$enable_cxx_exceptions = xyes; then
16833 SUPPORT_CXX_EXCEPTIONS_TRUE=
16834 SUPPORT_CXX_EXCEPTIONS_FALSE='#'
16836 SUPPORT_CXX_EXCEPTIONS_TRUE='#'
16837 SUPPORT_CXX_EXCEPTIONS_FALSE=
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_cxx_exceptions" >&5
16841 $as_echo "$enable_cxx_exceptions" >&6; }
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to load .debug_frame sections" >&5
16844 $as_echo_n "checking whether to load .debug_frame sections... " >&6; }
16845 @%:@ Check whether --enable-debug_frame was given.
16846 if test "${enable_debug_frame+set}" = set; then :
16847 enableval=$enable_debug_frame;
16850 case "${target_arch}" in
16851 (arm) enable_debug_frame=yes;;
16852 (*) enable_debug_frame=no;;
16856 if test x$enable_debug_frame = xyes; then
16858 $as_echo "@%:@define CONFIG_DEBUG_FRAME /**/" >>confdefs.h
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_frame" >&5
16862 $as_echo "$enable_debug_frame" >&6; }
16864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to block signals during mutex ops" >&5
16865 $as_echo_n "checking whether to block signals during mutex ops... " >&6; }
16866 @%:@ Check whether --enable-block_signals was given.
16867 if test "${enable_block_signals+set}" = set; then :
16868 enableval=$enable_block_signals;
16870 enable_block_signals=yes
16873 if test x$enable_block_signals = xyes; then
16875 $as_echo "@%:@define CONFIG_BLOCK_SIGNALS /**/" >>confdefs.h
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_block_signals" >&5
16879 $as_echo "$enable_block_signals" >&6; }
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to validate memory addresses before use" >&5
16882 $as_echo_n "checking whether to validate memory addresses before use... " >&6; }
16883 @%:@ Check whether --enable-conservative_checks was given.
16884 if test "${enable_conservative_checks+set}" = set; then :
16885 enableval=$enable_conservative_checks;
16887 enable_conservative_checks=yes
16890 if test x$enable_conservative_checks = xyes; then
16892 $as_echo "@%:@define CONSERVATIVE_CHECKS 1" >>confdefs.h
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_conservative_checks" >&5
16896 $as_echo "$enable_conservative_checks" >&6; }
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable msabi support" >&5
16899 $as_echo_n "checking whether to enable msabi support... " >&6; }
16900 @%:@ Check whether --enable-msabi_support was given.
16901 if test "${enable_msabi_support+set}" = set; then :
16902 enableval=$enable_msabi_support;
16905 if test x$enable_msabi_support = xyes; then
16907 $as_echo "@%:@define CONFIG_MSABI_SUPPORT /**/" >>confdefs.h
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_msabi_support" >&5
16911 $as_echo "$enable_msabi_support" >&6; }
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support LZMA-compressed symbol tables" >&5
16914 $as_echo_n "checking whether to support LZMA-compressed symbol tables... " >&6; }
16915 @%:@ Check whether --enable-minidebuginfo was given.
16916 if test "${enable_minidebuginfo+set}" = set; then :
16917 enableval=$enable_minidebuginfo;
16919 enable_minidebuginfo=auto
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_minidebuginfo" >&5
16923 $as_echo "$enable_minidebuginfo" >&6; }
16924 if test x$enable_minidebuginfo != xno; then
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_mf_is_supported in -llzma" >&5
16926 $as_echo_n "checking for lzma_mf_is_supported in -llzma... " >&6; }
16927 if ${ac_cv_lib_lzma_lzma_mf_is_supported+:} false; then :
16928 $as_echo_n "(cached) " >&6
16930 ac_check_lib_save_LIBS=$LIBS
16931 LIBS="-llzma $LIBS"
16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16933 /* end confdefs.h. */
16935 /* Override any GCC internal prototype to avoid an error.
16936 Use char because int might match the return type of a GCC
16937 builtin and then its argument prototype would still apply. */
16941 char lzma_mf_is_supported ();
16945 return lzma_mf_is_supported ();
16950 if ac_fn_c_try_link "$LINENO"; then :
16951 ac_cv_lib_lzma_lzma_mf_is_supported=yes
16953 ac_cv_lib_lzma_lzma_mf_is_supported=no
16955 rm -f core conftest.err conftest.$ac_objext \
16956 conftest$ac_exeext conftest.$ac_ext
16957 LIBS=$ac_check_lib_save_LIBS
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_mf_is_supported" >&5
16960 $as_echo "$ac_cv_lib_lzma_lzma_mf_is_supported" >&6; }
16961 if test "x$ac_cv_lib_lzma_lzma_mf_is_supported" = xyes; then :
16965 $as_echo "@%:@define HAVE_LZMA 1" >>confdefs.h
16967 enable_minidebuginfo=yes
16969 if test x$enable_minidebuginfo = xyes; then
16970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16972 as_fn_error $? "liblzma not found
16973 See \`config.log' for more details" "$LINENO" 5; }
16978 if test x$enable_minidebuginfo = xyes; then
16980 HAVE_LZMA_FALSE='#'
16987 if test "x$enable___thread" != xno; then
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
16989 $as_echo_n "checking for __thread... " >&6; }
16990 if ${libc_cv_gcc___thread+:} false; then :
16991 $as_echo_n "(cached) " >&6
16993 cat > conftest.c <<\EOF
16994 __thread int a = 42;
16996 if { ac_try='${CC-cc} $CFLAGS -c conftest.c >&5'
16997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16998 (eval $ac_try) 2>&5
17000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17001 test $ac_status = 0; }; }; then
17002 libc_cv_gcc___thread=yes
17004 libc_cv_gcc___thread=no
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_gcc___thread" >&5
17009 $as_echo "$libc_cv_gcc___thread" >&6; }
17010 if test "$libc_cv_gcc___thread" = yes; then
17012 $as_echo "@%:@define HAVE___THREAD 1" >>confdefs.h
17016 libc_cv_gcc___thread=no
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel compiler" >&5
17020 $as_echo_n "checking for Intel compiler... " >&6; }
17021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022 /* end confdefs.h. */
17027 #ifndef __INTEL_COMPILER
17034 if ac_fn_c_try_compile "$LINENO"; then :
17039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17041 if test x$GCC = xyes -a x$intel_compiler != xyes; then
17042 CFLAGS="${CFLAGS} -fexceptions -Wall -Wsign-compare"
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $intel_compiler" >&5
17046 $as_echo "$intel_compiler" >&6; }
17048 if test x$intel_compiler = xyes; then
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -static-libcxa" >&5
17050 $as_echo_n "checking if linker supports -static-libcxa... " >&6; }
17051 save_LDFLAGS="$LDFLAGS"
17052 LDFLAGS="$LDFLAGS -static-libcxa"
17053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17054 /* end confdefs.h. */
17064 if ac_fn_c_try_link "$LINENO"; then :
17065 have_static_libcxa=yes
17067 have_static_libcxa=no
17069 rm -f core conftest.err conftest.$ac_objext \
17070 conftest$ac_exeext conftest.$ac_ext
17071 LDFLAGS="$save_LDFLAGS"
17072 if test "x$have_static_libcxa" = xyes; then
17073 LDFLAGS_STATIC_LIBCXA="-XCClinker -static-libcxa"
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libcxa" >&5
17076 $as_echo "$have_static_libcxa" >&6; }
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin___clear_cache" >&5
17080 $as_echo_n "checking for __builtin___clear_cache... " >&6; }
17081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17082 /* end confdefs.h. */
17087 __builtin___clear_cache(0, 0)
17092 if ac_fn_c_try_link "$LINENO"; then :
17093 have__builtin___clear_cache=yes
17095 have__builtin___clear_cache=no
17097 rm -f core conftest.err conftest.$ac_objext \
17098 conftest$ac_exeext conftest.$ac_ext
17099 if test x$have__builtin___clear_cache = xyes; then
17101 $as_echo "@%:@define HAVE__BUILTIN___CLEAR_CACHE 1" >>confdefs.h
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have__builtin___clear_cache" >&5
17105 $as_echo "$have__builtin___clear_cache" >&6; }
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __sync atomics" >&5
17108 $as_echo_n "checking for __sync atomics... " >&6; }
17109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110 /* end confdefs.h. */
17116 __sync_bool_compare_and_swap((int *)0, 0, 1);
17117 __sync_fetch_and_add((int *)0, 1);
17123 if ac_fn_c_try_link "$LINENO"; then :
17124 have_sync_atomics=yes
17126 have_sync_atomics=no
17128 rm -f core conftest.err conftest.$ac_objext \
17129 conftest$ac_exeext conftest.$ac_ext
17130 if test x$have_sync_atomics = xyes; then
17132 $as_echo "@%:@define HAVE_SYNC_ATOMICS 1" >>confdefs.h
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_sync_atomics" >&5
17136 $as_echo "$have_sync_atomics" >&6; }
17138 CCASFLAGS="${CCASFLAGS} ${CPPFLAGS}"
17140 arch="$target_arch"
17141 ARCH=`echo $target_arch | tr a-z A-Z`
17146 PKG_MAINTAINER=libunwind-devel@nongnu.org
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing backtrace" >&5
17151 $as_echo_n "checking for library containing backtrace... " >&6; }
17152 if ${ac_cv_search_backtrace+:} false; then :
17153 $as_echo_n "(cached) " >&6
17155 ac_func_search_save_LIBS=$LIBS
17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157 /* end confdefs.h. */
17159 /* Override any GCC internal prototype to avoid an error.
17160 Use char because int might match the return type of a GCC
17161 builtin and then its argument prototype would still apply. */
17169 return backtrace ();
17174 for ac_lib in '' execinfo; do
17175 if test -z "$ac_lib"; then
17176 ac_res="none required"
17179 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17181 if ac_fn_c_try_link "$LINENO"; then :
17182 ac_cv_search_backtrace=$ac_res
17184 rm -f core conftest.err conftest.$ac_objext \
17186 if ${ac_cv_search_backtrace+:} false; then :
17190 if ${ac_cv_search_backtrace+:} false; then :
17193 ac_cv_search_backtrace=no
17195 rm conftest.$ac_ext
17196 LIBS=$ac_func_search_save_LIBS
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_backtrace" >&5
17199 $as_echo "$ac_cv_search_backtrace" >&6; }
17200 ac_res=$ac_cv_search_backtrace
17201 if test "$ac_res" != no; then :
17202 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17222 ac_config_files="$ac_config_files Makefile src/Makefile tests/Makefile tests/check-namespace.sh doc/Makefile doc/common.tex include/libunwind-common.h include/libunwind.h include/tdep/libunwind_i.h"
17224 ac_config_files="$ac_config_files src/unwind/libunwind.pc src/coredump/libunwind-coredump.pc src/ptrace/libunwind-ptrace.pc src/setjmp/libunwind-setjmp.pc src/libunwind-generic.pc"
17226 cat >confcache <<\_ACEOF
17227 # This file is a shell script that caches the results of configure
17228 # tests run on this system so they can be shared between configure
17229 # scripts and configure runs, see configure's option --config-cache.
17230 # It is not useful on other systems. If it contains results you don't
17231 # want to keep, you may remove or edit it.
17233 # config.status only pays attention to the cache file if you give it
17234 # the --recheck option to rerun configure.
17236 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17237 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17238 # following values.
17242 # The following way of writing the cache mishandles newlines in values,
17243 # but we know of no workaround that is simple, portable, and efficient.
17244 # So, we kill variables containing newlines.
17245 # Ultrix sh set writes to stderr and can't be redirected directly,
17246 # and sets the high bit in the cache file unless we assign to the vars.
17248 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17249 eval ac_val=\$$ac_var
17253 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17254 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17257 _ | IFS | as_nl) ;; #(
17258 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17259 *) { eval $ac_var=; unset $ac_var;} ;;
17265 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17266 *${as_nl}ac_space=\ *)
17267 # `set' does not quote correctly, so add quotes: double-quote
17268 # substitution turns \\\\ into \\, and sed turns \\ into \.
17271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17274 # `set' quotes correctly as required by POSIX, so do not add quotes.
17275 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17284 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17286 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17288 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17289 if test -w "$cache_file"; then
17290 if test "x$cache_file" != "x/dev/null"; then
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17292 $as_echo "$as_me: updating cache $cache_file" >&6;}
17293 if test ! -f "$cache_file" || test -h "$cache_file"; then
17294 cat confcache >"$cache_file"
17296 case $cache_file in #(
17298 mv -f confcache "$cache_file"$$ &&
17299 mv -f "$cache_file"$$ "$cache_file" ;; #(
17301 mv -f confcache "$cache_file" ;;
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17307 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17312 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17313 # Let make expand exec_prefix.
17314 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17316 DEFS=-DHAVE_CONFIG_H
17321 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
17322 # 1. Remove the extension, and $U if already installed.
17323 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17324 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17325 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17326 # will be set to the directory where LIBOBJS objects are built.
17327 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17328 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17330 LIB@&t@OBJS=$ac_libobjs
17332 LTLIBOBJS=$ac_ltlibobjs
17335 if test -n "$EXEEXT"; then
17337 am__EXEEXT_FALSE='#'
17339 am__EXEEXT_TRUE='#'
17343 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17344 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17345 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17347 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17348 as_fn_error $? "conditional \"AMDEP\" was never defined.
17349 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17351 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17352 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17353 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17355 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
17356 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
17357 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17359 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
17360 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
17361 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17363 if test -z "${USE_ALTIVEC_TRUE}" && test -z "${USE_ALTIVEC_FALSE}"; then
17364 as_fn_error $? "conditional \"USE_ALTIVEC\" was never defined.
17365 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17367 if test -z "${BUILD_COREDUMP_TRUE}" && test -z "${BUILD_COREDUMP_FALSE}"; then
17368 as_fn_error $? "conditional \"BUILD_COREDUMP\" was never defined.
17369 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17371 if test -z "${REMOTE_ONLY_TRUE}" && test -z "${REMOTE_ONLY_FALSE}"; then
17372 as_fn_error $? "conditional \"REMOTE_ONLY\" was never defined.
17373 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17375 if test -z "${ARCH_ARM_TRUE}" && test -z "${ARCH_ARM_FALSE}"; then
17376 as_fn_error $? "conditional \"ARCH_ARM\" was never defined.
17377 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17379 if test -z "${ARCH_IA64_TRUE}" && test -z "${ARCH_IA64_FALSE}"; then
17380 as_fn_error $? "conditional \"ARCH_IA64\" was never defined.
17381 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17383 if test -z "${ARCH_HPPA_TRUE}" && test -z "${ARCH_HPPA_FALSE}"; then
17384 as_fn_error $? "conditional \"ARCH_HPPA\" was never defined.
17385 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17387 if test -z "${ARCH_MIPS_TRUE}" && test -z "${ARCH_MIPS_FALSE}"; then
17388 as_fn_error $? "conditional \"ARCH_MIPS\" was never defined.
17389 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17391 if test -z "${ARCH_X86_TRUE}" && test -z "${ARCH_X86_FALSE}"; then
17392 as_fn_error $? "conditional \"ARCH_X86\" was never defined.
17393 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17395 if test -z "${ARCH_X86_64_TRUE}" && test -z "${ARCH_X86_64_FALSE}"; then
17396 as_fn_error $? "conditional \"ARCH_X86_64\" was never defined.
17397 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17399 if test -z "${ARCH_PPC32_TRUE}" && test -z "${ARCH_PPC32_FALSE}"; then
17400 as_fn_error $? "conditional \"ARCH_PPC32\" was never defined.
17401 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17403 if test -z "${ARCH_PPC64_TRUE}" && test -z "${ARCH_PPC64_FALSE}"; then
17404 as_fn_error $? "conditional \"ARCH_PPC64\" was never defined.
17405 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17407 if test -z "${ARCH_SH_TRUE}" && test -z "${ARCH_SH_FALSE}"; then
17408 as_fn_error $? "conditional \"ARCH_SH\" was never defined.
17409 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17411 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
17412 as_fn_error $? "conditional \"OS_LINUX\" was never defined.
17413 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17415 if test -z "${OS_HPUX_TRUE}" && test -z "${OS_HPUX_FALSE}"; then
17416 as_fn_error $? "conditional \"OS_HPUX\" was never defined.
17417 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17419 if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
17420 as_fn_error $? "conditional \"OS_FREEBSD\" was never defined.
17421 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17423 if test -z "${USE_ELF32_TRUE}" && test -z "${USE_ELF32_FALSE}"; then
17424 as_fn_error $? "conditional \"USE_ELF32\" was never defined.
17425 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17427 if test -z "${USE_ELF64_TRUE}" && test -z "${USE_ELF64_FALSE}"; then
17428 as_fn_error $? "conditional \"USE_ELF64\" was never defined.
17429 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17431 if test -z "${USE_ELFXX_TRUE}" && test -z "${USE_ELFXX_FALSE}"; then
17432 as_fn_error $? "conditional \"USE_ELFXX\" was never defined.
17433 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17435 if test -z "${USE_DWARF_TRUE}" && test -z "${USE_DWARF_FALSE}"; then
17436 as_fn_error $? "conditional \"USE_DWARF\" was never defined.
17437 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17439 if test -z "${SUPPORT_CXX_EXCEPTIONS_TRUE}" && test -z "${SUPPORT_CXX_EXCEPTIONS_FALSE}"; then
17440 as_fn_error $? "conditional \"SUPPORT_CXX_EXCEPTIONS\" was never defined.
17441 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17443 if test -z "${HAVE_LZMA_TRUE}" && test -z "${HAVE_LZMA_FALSE}"; then
17444 as_fn_error $? "conditional \"HAVE_LZMA\" was never defined.
17445 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17448 : "${CONFIG_STATUS=./config.status}"
17450 ac_clean_files_save=$ac_clean_files
17451 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17453 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17455 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17457 # Generated by $as_me.
17458 # Run this file to recreate the current configuration.
17459 # Compiler output produced by configure, useful for debugging
17460 # configure, is in config.log if it exists.
17463 ac_cs_recheck=false
17466 SHELL=\${CONFIG_SHELL-$SHELL}
17469 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17470 ## -------------------- ##
17471 ## M4sh Initialization. ##
17472 ## -------------------- ##
17474 # Be more Bourne compatible
17475 DUALCASE=1; export DUALCASE # for MKS sh
17476 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17479 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17480 # is contrary to our usage. Disable this feature.
17481 alias -g '${1+"$@"}'='"$@"'
17482 setopt NO_GLOB_SUBST
17484 case `(set -o) 2>/dev/null` in @%:@(
17486 set -o posix ;; @%:@(
17496 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17497 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17498 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17499 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17500 # Prefer a ksh shell builtin over an external printf program on Solaris,
17501 # but without wasting forks for bash or zsh.
17502 if test -z "$BASH_VERSION$ZSH_VERSION" \
17503 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17504 as_echo='print -r --'
17505 as_echo_n='print -rn --'
17506 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17507 as_echo='printf %s\n'
17508 as_echo_n='printf %s'
17510 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17511 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17512 as_echo_n='/usr/ucb/echo -n'
17514 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17515 as_echo_n_body='eval
17519 expr "X$arg" : "X\\(.*\\)$as_nl";
17520 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17522 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17524 export as_echo_n_body
17525 as_echo_n='sh -c $as_echo_n_body as_echo'
17527 export as_echo_body
17528 as_echo='sh -c $as_echo_body as_echo'
17531 # The user is always right.
17532 if test "${PATH_SEPARATOR+set}" != set; then
17534 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17535 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17542 # We need space, tab and new line, in precisely that order. Quoting is
17543 # there to prevent editors from complaining about space-tab.
17544 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17545 # splitting by setting IFS to empty value.)
17548 # Find who we are. Look in the path if we contain no directory separator.
17551 *[\\/]* ) as_myself=$0 ;;
17552 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17553 for as_dir in $PATH
17556 test -z "$as_dir" && as_dir=.
17557 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17563 # We did not find ourselves, most probably we were run as `sh COMMAND'
17564 # in which case we are not to be found in the path.
17565 if test "x$as_myself" = x; then
17568 if test ! -f "$as_myself"; then
17569 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17573 # Unset variables that we do not need and which cause bugs (e.g. in
17574 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17575 # suppresses any "Segmentation fault" message there. '((' could
17576 # trigger a bug in pdksh 5.2.14.
17577 for as_var in BASH_ENV ENV MAIL MAILPATH
17578 do eval test x\${$as_var+set} = xset \
17579 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17592 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17595 @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
17596 @%:@ ----------------------------------------
17597 @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17598 @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17599 @%:@ script with STATUS, using 1 if that was 0.
17602 as_status=$1; test $as_status -eq 0 && as_status=1
17604 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17605 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17607 $as_echo "$as_me: error: $2" >&2
17608 as_fn_exit $as_status
17612 @%:@ as_fn_set_status STATUS
17613 @%:@ -----------------------
17614 @%:@ Set @S|@? to STATUS, without forking.
17615 as_fn_set_status ()
17618 } @%:@ as_fn_set_status
17620 @%:@ as_fn_exit STATUS
17621 @%:@ -----------------
17622 @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17626 as_fn_set_status $1
17630 @%:@ as_fn_unset VAR
17631 @%:@ ---------------
17632 @%:@ Portably unset VAR.
17635 { eval $1=; unset $1;}
17637 as_unset=as_fn_unset
17638 @%:@ as_fn_append VAR VALUE
17639 @%:@ ----------------------
17640 @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
17641 @%:@ advantage of any shell optimizations that allow amortized linear growth over
17642 @%:@ repeated appends, instead of the typical quadratic growth present in naive
17643 @%:@ implementations.
17644 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17645 eval 'as_fn_append ()
17656 @%:@ as_fn_arith ARG...
17657 @%:@ ------------------
17658 @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
17659 @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
17660 @%:@ must be portable across @S|@(()) and expr.
17661 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17662 eval 'as_fn_arith ()
17669 as_val=`expr "$@" || test $? -eq 1`
17674 if expr a : '\(a\)' >/dev/null 2>&1 &&
17675 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17681 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17682 as_basename=basename
17687 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17693 as_me=`$as_basename -- "$0" ||
17694 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17695 X"$0" : 'X\(//\)$' \| \
17696 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17698 sed '/^.*\/\([^/][^/]*\)\/*$/{
17712 # Avoid depending upon Character Ranges.
17713 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17714 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17715 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17716 as_cr_digits='0123456789'
17717 as_cr_alnum=$as_cr_Letters$as_cr_digits
17719 ECHO_C= ECHO_N= ECHO_T=
17720 case `echo -n x` in @%:@(((((
17722 case `echo 'xy\c'` in
17723 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17725 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17732 rm -f conf$$ conf$$.exe conf$$.file
17733 if test -d conf$$.dir; then
17734 rm -f conf$$.dir/conf$$.file
17737 mkdir conf$$.dir 2>/dev/null
17739 if (echo >conf$$.file) 2>/dev/null; then
17740 if ln -s conf$$.file conf$$ 2>/dev/null; then
17742 # ... but there are two gotchas:
17743 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17744 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17745 # In both cases, we have to default to `cp -p'.
17746 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17748 elif ln conf$$.file conf$$ 2>/dev/null; then
17756 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17757 rmdir conf$$.dir 2>/dev/null
17762 @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
17767 -*) as_dir=./$as_dir;;
17769 test -d "$as_dir" || eval $as_mkdir_p || {
17773 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17774 *) as_qdir=$as_dir;;
17776 as_dirs="'$as_qdir' $as_dirs"
17777 as_dir=`$as_dirname -- "$as_dir" ||
17778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17779 X"$as_dir" : 'X\(//\)[^/]' \| \
17780 X"$as_dir" : 'X\(//\)$' \| \
17781 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17782 $as_echo X"$as_dir" |
17783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17787 /^X\(\/\/\)[^/].*/{
17800 test -d "$as_dir" && break
17802 test -z "$as_dirs" || eval "mkdir $as_dirs"
17803 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17806 } @%:@ as_fn_mkdir_p
17807 if mkdir -p . 2>/dev/null; then
17808 as_mkdir_p='mkdir -p "$as_dir"'
17810 test -d ./-p && rmdir ./-p
17814 if test -x / >/dev/null 2>&1; then
17815 as_test_x='test -x'
17817 if ls -dL / >/dev/null 2>&1; then
17824 if test -d "$1"; then
17830 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
17831 ???[sx]*):;;*)false;;esac;fi
17835 as_executable_p=$as_test_x
17837 # Sed expression to map a string onto a valid CPP name.
17838 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17840 # Sed expression to map a string onto a valid variable name.
17841 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17845 ## ----------------------------------- ##
17846 ## Main body of $CONFIG_STATUS script. ##
17847 ## ----------------------------------- ##
17849 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17851 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17852 # Save the log message, to keep $0 and so on meaningful, and to
17853 # report actual input values of CONFIG_FILES etc. instead of their
17854 # values after options handling.
17856 This file was extended by libunwind $as_me 1.1, which was
17857 generated by GNU Autoconf 2.68. Invocation command line was
17859 CONFIG_FILES = $CONFIG_FILES
17860 CONFIG_HEADERS = $CONFIG_HEADERS
17861 CONFIG_LINKS = $CONFIG_LINKS
17862 CONFIG_COMMANDS = $CONFIG_COMMANDS
17865 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17870 case $ac_config_files in *"
17871 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17874 case $ac_config_headers in *"
17875 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17880 # Files that config.status was made for.
17881 config_files="$ac_config_files"
17882 config_headers="$ac_config_headers"
17883 config_commands="$ac_config_commands"
17887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17889 \`$as_me' instantiates files and other configuration actions
17890 from templates according to the current configuration. Unless the files
17891 and actions are specified as TAGs, all are instantiated by default.
17893 Usage: $0 [OPTION]... [TAG]...
17895 -h, --help print this help, then exit
17896 -V, --version print version number and configuration settings, then exit
17897 --config print configuration, then exit
17898 -q, --quiet, --silent
17899 do not print progress messages
17900 -d, --debug don't remove temporary files
17901 --recheck update $as_me by reconfiguring in the same conditions
17902 --file=FILE[:TEMPLATE]
17903 instantiate the configuration file FILE
17904 --header=FILE[:TEMPLATE]
17905 instantiate the configuration header FILE
17907 Configuration files:
17910 Configuration headers:
17913 Configuration commands:
17916 Report bugs to <libunwind-devel@nongnu.org>."
17919 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17920 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17922 libunwind config.status 1.1
17923 configured by $0, generated by GNU Autoconf 2.68,
17924 with options \\"\$ac_cs_config\\"
17926 Copyright (C) 2010 Free Software Foundation, Inc.
17927 This config.status script is free software; the Free Software Foundation
17928 gives unlimited permission to copy, distribute and modify it."
17935 test -n "\$AWK" || AWK=awk
17938 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17939 # The default lists apply if the user does not specify any file.
17945 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17946 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17950 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17962 # Handling of the options.
17963 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17965 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17966 $as_echo "$ac_cs_version"; exit ;;
17967 --config | --confi | --conf | --con | --co | --c )
17968 $as_echo "$ac_cs_config"; exit ;;
17969 --debug | --debu | --deb | --de | --d | -d )
17971 --file | --fil | --fi | --f )
17974 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17975 '') as_fn_error $? "missing file argument" ;;
17977 as_fn_append CONFIG_FILES " '$ac_optarg'"
17978 ac_need_defaults=false;;
17979 --header | --heade | --head | --hea )
17982 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17984 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17985 ac_need_defaults=false;;
17987 # Conflict between --help and --header
17988 as_fn_error $? "ambiguous option: \`$1'
17989 Try \`$0 --help' for more information.";;
17990 --help | --hel | -h )
17991 $as_echo "$ac_cs_usage"; exit ;;
17992 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17993 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17996 # This is an error.
17997 -*) as_fn_error $? "unrecognized option: \`$1'
17998 Try \`$0 --help' for more information." ;;
18000 *) as_fn_append ac_config_targets " $1"
18001 ac_need_defaults=false ;;
18007 ac_configure_extra_args=
18009 if $ac_cs_silent; then
18011 ac_configure_extra_args="$ac_configure_extra_args --silent"
18015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18016 if \$ac_cs_recheck; then
18017 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18019 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18020 CONFIG_SHELL='$SHELL'
18021 export CONFIG_SHELL
18026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18030 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
18031 @%:@@%:@ Running $as_me. @%:@@%:@
18037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18041 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18044 # The HP-UX ksh and POSIX shell print the target directory to stdout
18045 # if CDPATH is set.
18046 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18048 sed_quote_subst='$sed_quote_subst'
18049 double_quote_subst='$double_quote_subst'
18050 delay_variable_subst='$delay_variable_subst'
18051 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18052 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18053 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18054 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18055 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18056 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18057 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18058 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18059 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18060 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18061 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18062 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18063 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18064 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18065 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18066 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18067 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18068 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18069 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18070 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18071 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18072 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18073 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18074 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18075 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18076 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18077 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18078 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18079 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18080 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18081 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18082 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18083 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18084 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18085 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18086 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18087 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18088 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18089 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18090 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18091 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18092 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18093 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18094 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18095 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18096 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18097 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18098 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18099 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18100 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18101 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18102 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18103 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18104 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18105 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18106 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18107 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"`'
18108 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18109 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18110 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18111 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18112 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18113 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18114 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18115 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18116 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18117 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18118 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18119 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18120 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18121 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18122 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18123 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18124 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18125 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18126 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18127 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18128 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18129 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18130 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18131 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18132 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18133 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18134 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18135 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18136 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18137 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18138 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18139 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18140 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18141 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18142 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18143 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18144 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18145 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18146 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18147 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18148 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18149 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18150 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18151 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18152 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18153 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18154 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18155 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18156 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18157 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18158 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18159 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18160 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18161 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18162 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18163 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18164 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18165 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18166 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18167 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18168 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18169 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18170 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18171 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18172 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18173 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18174 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18175 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18176 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18177 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18178 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18179 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18180 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18181 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18182 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18183 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18184 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18185 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18186 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18187 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
18188 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
18189 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18190 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18191 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
18192 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
18193 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
18194 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
18195 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
18196 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
18197 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
18198 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
18199 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
18200 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18201 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18202 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
18203 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18204 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18205 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18206 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18207 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18208 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18209 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
18210 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18211 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
18212 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
18213 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
18214 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
18215 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
18216 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
18217 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
18218 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
18219 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
18220 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
18221 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
18222 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18223 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18224 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
18225 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18226 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
18227 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
18228 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
18229 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
18230 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18231 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
18232 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
18233 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
18234 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
18237 LTCFLAGS='$LTCFLAGS'
18238 compiler='$compiler_DEFAULT'
18240 # A function that is used when there is no print builtin or printf.
18241 func_fallback_echo ()
18243 eval 'cat <<_LTECHO_EOF
18248 # Quote evaled strings.
18263 deplibs_check_method \
18268 sharedlib_from_linklib_cmd \
18271 archiver_list_spec \
18277 lt_cv_sys_global_symbol_pipe \
18278 lt_cv_sys_global_symbol_to_cdecl \
18279 lt_cv_sys_global_symbol_to_c_name_address \
18280 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18281 nm_file_list_spec \
18282 lt_prog_compiler_no_builtin_flag \
18283 lt_prog_compiler_pic \
18284 lt_prog_compiler_wl \
18285 lt_prog_compiler_static \
18286 lt_cv_prog_compiler_c_o \
18295 export_dynamic_flag_spec \
18296 whole_archive_flag_spec \
18297 compiler_needs_object \
18299 allow_undefined_flag \
18300 no_undefined_flag \
18301 hardcode_libdir_flag_spec \
18302 hardcode_libdir_separator \
18306 variables_saved_for_relink \
18308 library_names_spec \
18310 install_override_mode \
18314 compiler_lib_search_dirs \
18319 compiler_lib_search_path \
18323 lt_prog_compiler_no_builtin_flag_CXX \
18324 lt_prog_compiler_pic_CXX \
18325 lt_prog_compiler_wl_CXX \
18326 lt_prog_compiler_static_CXX \
18327 lt_cv_prog_compiler_c_o_CXX \
18328 export_dynamic_flag_spec_CXX \
18329 whole_archive_flag_spec_CXX \
18330 compiler_needs_object_CXX \
18332 allow_undefined_flag_CXX \
18333 no_undefined_flag_CXX \
18334 hardcode_libdir_flag_spec_CXX \
18335 hardcode_libdir_separator_CXX \
18336 exclude_expsyms_CXX \
18337 include_expsyms_CXX \
18338 file_list_spec_CXX \
18339 compiler_lib_search_dirs_CXX \
18340 predep_objects_CXX \
18341 postdep_objects_CXX \
18344 compiler_lib_search_path_CXX; do
18345 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18346 *[\\\\\\\`\\"\\\$]*)
18347 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18350 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18355 # Double-quote double-evaled strings.
18356 for var in reload_cmds \
18357 old_postinstall_cmds \
18358 old_postuninstall_cmds \
18360 extract_expsyms_cmds \
18361 old_archive_from_new_cmds \
18362 old_archive_from_expsyms_cmds \
18364 archive_expsym_cmds \
18366 module_expsym_cmds \
18367 export_symbols_cmds \
18371 postuninstall_cmds \
18373 sys_lib_search_path_spec \
18374 sys_lib_dlsearch_path_spec \
18376 old_archive_cmds_CXX \
18377 old_archive_from_new_cmds_CXX \
18378 old_archive_from_expsyms_cmds_CXX \
18380 archive_expsym_cmds_CXX \
18382 module_expsym_cmds_CXX \
18383 export_symbols_cmds_CXX \
18385 postlink_cmds_CXX; do
18386 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18387 *[\\\\\\\`\\"\\\$]*)
18388 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18391 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18396 ac_aux_dir='$ac_aux_dir'
18397 xsi_shell='$xsi_shell'
18398 lt_shell_append='$lt_shell_append'
18400 # See if we are running on zsh, and set the options which allow our
18401 # commands through without removal of \ escapes INIT.
18402 if test -n "\${ZSH_VERSION+set}" ; then
18403 setopt NO_GLOB_SUBST
18409 TIMESTAMP='$TIMESTAMP'
18420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18422 # Handling of arguments.
18423 for ac_config_target in $ac_config_targets
18425 case $ac_config_target in
18426 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
18427 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18428 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18429 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18430 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18431 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18432 "tests/check-namespace.sh") CONFIG_FILES="$CONFIG_FILES tests/check-namespace.sh" ;;
18433 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18434 "doc/common.tex") CONFIG_FILES="$CONFIG_FILES doc/common.tex" ;;
18435 "include/libunwind-common.h") CONFIG_FILES="$CONFIG_FILES include/libunwind-common.h" ;;
18436 "include/libunwind.h") CONFIG_FILES="$CONFIG_FILES include/libunwind.h" ;;
18437 "include/tdep/libunwind_i.h") CONFIG_FILES="$CONFIG_FILES include/tdep/libunwind_i.h" ;;
18438 "src/unwind/libunwind.pc") CONFIG_FILES="$CONFIG_FILES src/unwind/libunwind.pc" ;;
18439 "src/coredump/libunwind-coredump.pc") CONFIG_FILES="$CONFIG_FILES src/coredump/libunwind-coredump.pc" ;;
18440 "src/ptrace/libunwind-ptrace.pc") CONFIG_FILES="$CONFIG_FILES src/ptrace/libunwind-ptrace.pc" ;;
18441 "src/setjmp/libunwind-setjmp.pc") CONFIG_FILES="$CONFIG_FILES src/setjmp/libunwind-setjmp.pc" ;;
18442 "src/libunwind-generic.pc") CONFIG_FILES="$CONFIG_FILES src/libunwind-generic.pc" ;;
18444 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18449 # If the user did not use the arguments to specify the items to instantiate,
18450 # then the envvar interface is used. Set only those that are not.
18451 # We use the long form for the default assignment because of an extremely
18452 # bizarre bug on SunOS 4.1.3.
18453 if $ac_need_defaults; then
18454 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18455 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18456 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18459 # Have a temporary directory for convenience. Make it in the build tree
18460 # simply because there is no reason against having it here, and in addition,
18461 # creating and moving files from /tmp can sometimes cause problems.
18462 # Hook for its removal unless debugging.
18463 # Note that there is a small window in which the directory will not be cleaned:
18464 # after its creation but before its name has been assigned to `$tmp'.
18468 trap 'exit_status=$?
18469 : "${ac_tmp:=$tmp}"
18470 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18472 trap 'as_fn_exit 1' 1 2 13 15
18474 # Create a (secure) tmp directory for tmp files.
18477 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18481 tmp=./conf$$-$RANDOM
18482 (umask 077 && mkdir "$tmp")
18483 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18486 # Set up the scripts for CONFIG_FILES section.
18487 # No need to generate them if there are no CONFIG_FILES.
18488 # This happens for instance with `./config.status config.h'.
18489 if test -n "$CONFIG_FILES"; then
18492 ac_cr=`echo X | tr X '\015'`
18493 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18494 # But we know of no other shell where ac_cr would be empty at this
18495 # point, so we can use a bashism as a fallback.
18496 if test "x$ac_cr" = x; then
18497 eval ac_cr=\$\'\\r\'
18499 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18500 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18503 ac_cs_awk_cr=$ac_cr
18506 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18511 echo "cat >conf$$subs.awk <<_ACEOF" &&
18512 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18514 } >conf$$subs.sh ||
18515 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18516 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18518 for ac_last_try in false false false false false :; do
18519 . ./conf$$subs.sh ||
18520 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18522 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18523 if test $ac_delim_n = $ac_delim_num; then
18525 elif $ac_last_try; then
18526 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18528 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18531 rm -f conf$$subs.sh
18533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18534 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18538 s/^/S["/; s/!.*/"]=/
18548 s/\(.\{148\}\)..*/\1/
18550 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18555 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18562 s/\(.\{148\}\)..*/\1/
18564 s/["\\]/\\&/g; s/^/"/; s/$/"/
18568 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18573 ' <conf$$subs.awk | sed '
18578 ' >>$CONFIG_STATUS || ac_write_fail=1
18579 rm -f conf$$subs.awk
18580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18582 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18583 for (key in S) S_is_set[key] = 1
18589 nfields = split(line, field, "@")
18591 len = length(field[1])
18592 for (i = 2; i < nfields; i++) {
18594 keylen = length(key)
18595 if (S_is_set[key]) {
18597 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18598 len += length(value) + length(field[++i])
18609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18610 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18611 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18614 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18615 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18618 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18619 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18620 # trailing colons and then remove the whole line if VPATH becomes empty
18621 # (actually we leave an empty line to preserve line numbers).
18622 if test "x$srcdir" = x.; then
18623 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18641 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18642 fi # test -n "$CONFIG_FILES"
18644 # Set up the scripts for CONFIG_HEADERS section.
18645 # No need to generate them if there are no CONFIG_HEADERS.
18646 # This happens for instance with `./config.status Makefile'.
18647 if test -n "$CONFIG_HEADERS"; then
18648 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18652 # Transform confdefs.h into an awk script `defines.awk', embedded as
18653 # here-document in config.status, that substitutes the proper values into
18654 # config.h.in to produce config.h.
18656 # Create a delimiter string that does not exist in confdefs.h, to ease
18657 # handling of long lines.
18659 for ac_last_try in false false :; do
18660 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18661 if test -z "$ac_tt"; then
18663 elif $ac_last_try; then
18664 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18670 # For the awk script, D is an array of macro values keyed by name,
18671 # likewise P contains macro parameters if any. Preserve backslash
18672 # newline sequences.
18674 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18676 s/.\{148\}/&'"$ac_delim"'/g
18679 s/^[ ]*#[ ]*define[ ][ ]*/ /
18686 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18688 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18692 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18693 D["\1"]=" \3\\\\\\n"\\/p
18695 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18700 s/.\{148\}/&'"$ac_delim"'/g
18705 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18708 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18710 ' <confdefs.h | sed '
18711 s/'"$ac_delim"'/"\\\
18712 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18715 for (key in D) D_is_set[key] = 1
18718 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18720 split(line, arg, " ")
18721 if (arg[1] == "#") {
18725 defundef = substr(arg[1], 2)
18728 split(mac1, mac2, "(") #)
18730 prefix = substr(line, 1, index(line, defundef) - 1)
18731 if (D_is_set[macro]) {
18732 # Preserve the white space surrounding the "#".
18733 print prefix "define", macro P[macro] D[macro]
18736 # Replace #undef with comments. This is necessary, for example,
18737 # in the case of _POSIX_SOURCE, which is predefined and required
18738 # on some systems where configure will not decide to define it.
18739 if (defundef == "undef") {
18740 print "/*", prefix defundef, macro, "*/"
18748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18749 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18750 fi # test -n "$CONFIG_HEADERS"
18753 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18758 :[FHLC]) ac_mode=$ac_tag; continue;;
18760 case $ac_mode$ac_tag in
18762 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18763 :[FH]-) ac_tag=-:-;;
18764 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18781 -) ac_f="$ac_tmp/stdin";;
18782 *) # Look for the file first in the build tree, then in the source tree
18783 # (if the path is not absolute). The absolute path cannot be DOS-style,
18784 # because $ac_f cannot contain `:'.
18788 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18790 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18792 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18793 as_fn_append ac_file_inputs " '$ac_f'"
18796 # Let's still pretend it is `configure' which instantiates (i.e., don't
18797 # use $as_me), people would be surprised to read:
18798 # /* config.h. Generated by config.status. */
18799 configure_input='Generated from '`
18800 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18802 if test x"$ac_file" != x-; then
18803 configure_input="$ac_file. $configure_input"
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18805 $as_echo "$as_me: creating $ac_file" >&6;}
18807 # Neutralize special characters interpreted by sed in replacement strings.
18808 case $configure_input in #(
18809 *\&* | *\|* | *\\* )
18810 ac_sed_conf_input=`$as_echo "$configure_input" |
18811 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18812 *) ac_sed_conf_input=$configure_input;;
18816 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18817 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18822 ac_dir=`$as_dirname -- "$ac_file" ||
18823 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18824 X"$ac_file" : 'X\(//\)[^/]' \| \
18825 X"$ac_file" : 'X\(//\)$' \| \
18826 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18827 $as_echo X"$ac_file" |
18828 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18832 /^X\(\/\/\)[^/].*/{
18845 as_dir="$ac_dir"; as_fn_mkdir_p
18849 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18851 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18852 # A ".." for each directory in $ac_dir_suffix.
18853 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18854 case $ac_top_builddir_sub in
18855 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18856 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18859 ac_abs_top_builddir=$ac_pwd
18860 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18861 # for backward compatibility:
18862 ac_top_builddir=$ac_top_build_prefix
18865 .) # We are building in place.
18867 ac_top_srcdir=$ac_top_builddir_sub
18868 ac_abs_top_srcdir=$ac_pwd ;;
18869 [\\/]* | ?:[\\/]* ) # Absolute name.
18870 ac_srcdir=$srcdir$ac_dir_suffix;
18871 ac_top_srcdir=$srcdir
18872 ac_abs_top_srcdir=$srcdir ;;
18873 *) # Relative name.
18874 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18875 ac_top_srcdir=$ac_top_build_prefix$srcdir
18876 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18878 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18888 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18889 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18891 ac_MKDIR_P=$MKDIR_P
18893 [\\/$]* | ?:[\\/]* ) ;;
18894 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18899 # If the template does not know about datarootdir, expand it.
18900 # FIXME: This hack should be removed a few years after 2.60.
18901 ac_datarootdir_hack=; ac_datarootdir_seen=
18912 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18913 *datarootdir*) ac_datarootdir_seen=yes;;
18914 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18916 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18919 ac_datarootdir_hack='
18920 s&@datadir@&$datadir&g
18921 s&@docdir@&$docdir&g
18922 s&@infodir@&$infodir&g
18923 s&@localedir@&$localedir&g
18924 s&@mandir@&$mandir&g
18925 s&\\\${datarootdir}&$datarootdir&g' ;;
18929 # Neutralize VPATH when `$srcdir' = `.'.
18930 # Shell code in configure.ac might set extrasub.
18931 # FIXME: do we really want to maintain this feature?
18932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18933 ac_sed_extra="$ac_vpsub
18936 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18939 s|@configure_input@|$ac_sed_conf_input|;t t
18940 s&@top_builddir@&$ac_top_builddir_sub&;t t
18941 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18942 s&@srcdir@&$ac_srcdir&;t t
18943 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18944 s&@top_srcdir@&$ac_top_srcdir&;t t
18945 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18946 s&@builddir@&$ac_builddir&;t t
18947 s&@abs_builddir@&$ac_abs_builddir&;t t
18948 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18949 s&@INSTALL@&$ac_INSTALL&;t t
18950 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18951 $ac_datarootdir_hack
18953 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18954 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18956 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18957 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18958 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18959 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18961 which seems to be undefined. Please make sure it is defined" >&5
18962 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18963 which seems to be undefined. Please make sure it is defined" >&2;}
18965 rm -f "$ac_tmp/stdin"
18967 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18968 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18970 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18976 if test x"$ac_file" != x-; then
18978 $as_echo "/* $configure_input */" \
18979 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18980 } >"$ac_tmp/config.h" \
18981 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18982 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18984 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18987 mv "$ac_tmp/config.h" "$ac_file" \
18988 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18991 $as_echo "/* $configure_input */" \
18992 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18993 || as_fn_error $? "could not create -" "$LINENO" 5
18995 # Compute "$ac_file"'s index in $config_headers.
18998 for _am_header in $config_headers :; do
18999 case $_am_header in
19000 $_am_arg | $_am_arg:* )
19003 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19006 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19007 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19008 X"$_am_arg" : 'X\(//\)[^/]' \| \
19009 X"$_am_arg" : 'X\(//\)$' \| \
19010 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19011 $as_echo X"$_am_arg" |
19012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19016 /^X\(\/\/\)[^/].*/{
19028 s/.*/./; q'`/stamp-h$_am_stamp_count
19031 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19032 $as_echo "$as_me: executing $ac_file commands" >&6;}
19037 case $ac_file$ac_mode in
19038 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19039 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19040 # are listed without --file. Let's play safe and only enable the eval
19041 # if we detect the quoting.
19042 case $CONFIG_FILES in
19043 *\'*) eval set x "$CONFIG_FILES" ;;
19044 *) set x $CONFIG_FILES ;;
19049 # Strip MF so we end up with the name of the file.
19050 mf=`echo "$mf" | sed -e 's/:.*$//'`
19051 # Check whether this is an Automake generated Makefile or not.
19052 # We used to match only the files named `Makefile.in', but
19053 # some people rename them; so instead we look at the file content.
19054 # Grep'ing the first line is not enough: some people post-process
19055 # each Makefile.in and add a new line on top of each file to say so.
19056 # Grep'ing the whole file is not good either: AIX grep has a line
19057 # limit of 2048, but all sed's we know have understand at least 4000.
19058 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19059 dirpart=`$as_dirname -- "$mf" ||
19060 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19061 X"$mf" : 'X\(//\)[^/]' \| \
19062 X"$mf" : 'X\(//\)$' \| \
19063 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19069 /^X\(\/\/\)[^/].*/{
19085 # Extract the definition of DEPDIR, am__include, and am__quote
19086 # from the Makefile without running `make'.
19087 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19088 test -z "$DEPDIR" && continue
19089 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19090 test -z "am__include" && continue
19091 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19092 # When using ansi2knr, U may be empty or an underscore; expand it
19093 U=`sed -n 's/^U = //p' < "$mf"`
19094 # Find all dependency output files, they are included files with
19095 # $(DEPDIR) in their names. We invoke sed twice because it is the
19096 # simplest approach to changing $(DEPDIR) to its actual value in the
19098 for file in `sed -n "
19099 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19100 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19101 # Make sure the directory exists.
19102 test -f "$dirpart/$file" && continue
19103 fdir=`$as_dirname -- "$file" ||
19104 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19105 X"$file" : 'X\(//\)[^/]' \| \
19106 X"$file" : 'X\(//\)$' \| \
19107 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19108 $as_echo X"$file" |
19109 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19113 /^X\(\/\/\)[^/].*/{
19126 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19127 # echo "creating $dirpart/$file"
19128 echo '# dummy' > "$dirpart/$file"
19135 # See if we are running on zsh, and set the options which allow our
19136 # commands through without removal of \ escapes.
19137 if test -n "${ZSH_VERSION+set}" ; then
19138 setopt NO_GLOB_SUBST
19141 cfgfile="${ofile}T"
19142 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19145 cat <<_LT_EOF >> "$cfgfile"
19148 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19149 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19150 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19151 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19153 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19154 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19156 # Written by Gordon Matzigkeit, 1996
19158 # This file is part of GNU Libtool.
19160 # GNU Libtool is free software; you can redistribute it and/or
19161 # modify it under the terms of the GNU General Public License as
19162 # published by the Free Software Foundation; either version 2 of
19163 # the License, or (at your option) any later version.
19165 # As a special exception to the GNU General Public License,
19166 # if you distribute this file as part of a program or library that
19167 # is built using GNU Libtool, you may include this file under the
19168 # same distribution terms that you use for the rest of that program.
19170 # GNU Libtool is distributed in the hope that it will be useful,
19171 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19172 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19173 # GNU General Public License for more details.
19175 # You should have received a copy of the GNU General Public License
19176 # along with GNU Libtool; see the file COPYING. If not, a copy
19177 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19178 # obtained by writing to the Free Software Foundation, Inc.,
19179 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19182 # The names of the tagged configurations supported by this script.
19183 available_tags="CXX "
19185 # ### BEGIN LIBTOOL CONFIG
19187 # Which release of libtool.m4 was used?
19188 macro_version=$macro_version
19189 macro_revision=$macro_revision
19191 # Whether or not to build shared libraries.
19192 build_libtool_libs=$enable_shared
19194 # Whether or not to build static libraries.
19195 build_old_libs=$enable_static
19197 # What type of objects to build.
19200 # Whether or not to optimize for fast installation.
19201 fast_install=$enable_fast_install
19203 # Shell to use when invoking shell scripts.
19206 # An echo program that protects backslashes.
19209 # The PATH separator for the build system.
19210 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19213 host_alias=$host_alias
19217 # The build system.
19218 build_alias=$build_alias
19222 # A sed program that does not truncate output.
19225 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19226 Xsed="\$SED -e 1s/^X//"
19228 # A grep program that handles long lines.
19234 # A literal string matcher.
19237 # A BSD- or MS-compatible name lister.
19240 # Whether we need soft or hard links.
19243 # What is the maximum length of a command?
19244 max_cmd_len=$max_cmd_len
19246 # Object file suffix (normally "o").
19249 # Executable file suffix (normally "").
19252 # whether the shell understands "unset".
19255 # turn spaces into newlines.
19258 # turn newlines into spaces.
19261 # convert \$build file names to \$host format.
19262 to_host_file_cmd=$lt_cv_to_host_file_cmd
19264 # convert \$build files to toolchain format.
19265 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19267 # An object symbol dumper.
19268 OBJDUMP=$lt_OBJDUMP
19270 # Method to check whether dependent libraries are shared objects.
19271 deplibs_check_method=$lt_deplibs_check_method
19273 # Command to use when deplibs_check_method = "file_magic".
19274 file_magic_cmd=$lt_file_magic_cmd
19276 # How to find potential files when deplibs_check_method = "file_magic".
19277 file_magic_glob=$lt_file_magic_glob
19279 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19280 want_nocaseglob=$lt_want_nocaseglob
19282 # DLL creation program.
19283 DLLTOOL=$lt_DLLTOOL
19285 # Command to associate shared and link libraries.
19286 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19291 # Flags to create an archive.
19292 AR_FLAGS=$lt_AR_FLAGS
19294 # How to feed a file listing to the archiver.
19295 archiver_list_spec=$lt_archiver_list_spec
19297 # A symbol stripping program.
19300 # Commands used to install an old-style archive.
19302 old_postinstall_cmds=$lt_old_postinstall_cmds
19303 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19305 # Whether to use a lock for old archive extraction.
19306 lock_old_archive_extraction=$lock_old_archive_extraction
19311 # LTCC compiler flags.
19312 LTCFLAGS=$lt_CFLAGS
19314 # Take the output of nm and produce a listing of raw symbols and C names.
19315 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19317 # Transform the output of nm in a proper C declaration.
19318 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19320 # Transform the output of nm in a C name address pair.
19321 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19323 # Transform the output of nm in a C name address pair when lib prefix is needed.
19324 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19326 # Specify filename containing input files for \$NM.
19327 nm_file_list_spec=$lt_nm_file_list_spec
19329 # The root where to search for dependent libraries,and in which our libraries should be installed.
19330 lt_sysroot=$lt_sysroot
19332 # The name of the directory that contains temporary libtool files.
19335 # Used to examine libraries when file_magic_cmd begins with "file".
19336 MAGIC_CMD=$MAGIC_CMD
19338 # Must we lock files when doing compilation?
19339 need_locks=$lt_need_locks
19342 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19344 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19345 DSYMUTIL=$lt_DSYMUTIL
19347 # Tool to change global to local symbols on Mac OS X.
19350 # Tool to manipulate fat objects and archives on Mac OS X.
19353 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19356 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19357 OTOOL64=$lt_OTOOL64
19359 # Old archive suffix (normally "a").
19362 # Shared library suffix (normally ".so").
19363 shrext_cmds=$lt_shrext_cmds
19365 # The commands to extract the exported symbol list from a shared archive.
19366 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19368 # Variables whose values should be saved in libtool wrapper scripts and
19369 # restored at link time.
19370 variables_saved_for_relink=$lt_variables_saved_for_relink
19372 # Do we need the "lib" prefix for modules?
19373 need_lib_prefix=$need_lib_prefix
19375 # Do we need a version for libraries?
19376 need_version=$need_version
19378 # Library versioning type.
19379 version_type=$version_type
19381 # Shared library runtime path variable.
19382 runpath_var=$runpath_var
19384 # Shared library path variable.
19385 shlibpath_var=$shlibpath_var
19387 # Is shlibpath searched before the hard-coded library search path?
19388 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19390 # Format of library name prefix.
19391 libname_spec=$lt_libname_spec
19393 # List of archive names. First name is the real one, the rest are links.
19394 # The last name is the one that the linker finds with -lNAME
19395 library_names_spec=$lt_library_names_spec
19397 # The coded name of the library, if different from the real name.
19398 soname_spec=$lt_soname_spec
19400 # Permission mode override for installation of shared libraries.
19401 install_override_mode=$lt_install_override_mode
19403 # Command to use after installation of a shared archive.
19404 postinstall_cmds=$lt_postinstall_cmds
19406 # Command to use after uninstallation of a shared archive.
19407 postuninstall_cmds=$lt_postuninstall_cmds
19409 # Commands used to finish a libtool library installation in a directory.
19410 finish_cmds=$lt_finish_cmds
19412 # As "finish_cmds", except a single script fragment to be evaled but
19414 finish_eval=$lt_finish_eval
19416 # Whether we should hardcode library paths into libraries.
19417 hardcode_into_libs=$hardcode_into_libs
19419 # Compile-time system search path for libraries.
19420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19422 # Run-time system search path for libraries.
19423 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19425 # Whether dlopen is supported.
19426 dlopen_support=$enable_dlopen
19428 # Whether dlopen of programs is supported.
19429 dlopen_self=$enable_dlopen_self
19431 # Whether dlopen of statically linked programs is supported.
19432 dlopen_self_static=$enable_dlopen_self_static
19434 # Commands to strip libraries.
19435 old_striplib=$lt_old_striplib
19436 striplib=$lt_striplib
19439 # The linker used to build libraries.
19442 # How to create reloadable object files.
19443 reload_flag=$lt_reload_flag
19444 reload_cmds=$lt_reload_cmds
19446 # Commands used to build an old-style archive.
19447 old_archive_cmds=$lt_old_archive_cmds
19449 # A language specific compiler.
19452 # Is the compiler the GNU compiler?
19455 # Compiler flag to turn off builtin functions.
19456 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19458 # Additional compiler flags for building library objects.
19459 pic_flag=$lt_lt_prog_compiler_pic
19461 # How to pass a linker flag through the compiler.
19462 wl=$lt_lt_prog_compiler_wl
19464 # Compiler flag to prevent dynamic linking.
19465 link_static_flag=$lt_lt_prog_compiler_static
19467 # Does compiler simultaneously support -c and -o options?
19468 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19470 # Whether or not to add -lc for building shared libraries.
19471 build_libtool_need_lc=$archive_cmds_need_lc
19473 # Whether or not to disallow shared libs when runtime libs are static.
19474 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19476 # Compiler flag to allow reflexive dlopens.
19477 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19479 # Compiler flag to generate shared objects directly from archives.
19480 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19482 # Whether the compiler copes with passing no objects directly.
19483 compiler_needs_object=$lt_compiler_needs_object
19485 # Create an old-style archive from a shared archive.
19486 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19488 # Create a temporary old-style archive to link instead of a shared archive.
19489 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19491 # Commands used to build a shared archive.
19492 archive_cmds=$lt_archive_cmds
19493 archive_expsym_cmds=$lt_archive_expsym_cmds
19495 # Commands used to build a loadable module if different from building
19496 # a shared archive.
19497 module_cmds=$lt_module_cmds
19498 module_expsym_cmds=$lt_module_expsym_cmds
19500 # Whether we are building with GNU ld or not.
19501 with_gnu_ld=$lt_with_gnu_ld
19503 # Flag that allows shared libraries with undefined symbols to be built.
19504 allow_undefined_flag=$lt_allow_undefined_flag
19506 # Flag that enforces no undefined symbols.
19507 no_undefined_flag=$lt_no_undefined_flag
19509 # Flag to hardcode \$libdir into a binary during linking.
19510 # This must work even if \$libdir does not exist
19511 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19513 # Whether we need a single "-rpath" flag with a separated argument.
19514 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19516 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19517 # DIR into the resulting binary.
19518 hardcode_direct=$hardcode_direct
19520 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19521 # DIR into the resulting binary and the resulting library dependency is
19522 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19523 # library is relocated.
19524 hardcode_direct_absolute=$hardcode_direct_absolute
19526 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19527 # into the resulting binary.
19528 hardcode_minus_L=$hardcode_minus_L
19530 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19531 # into the resulting binary.
19532 hardcode_shlibpath_var=$hardcode_shlibpath_var
19534 # Set to "yes" if building a shared library automatically hardcodes DIR
19535 # into the library and all subsequent libraries and executables linked
19537 hardcode_automatic=$hardcode_automatic
19539 # Set to yes if linker adds runtime paths of dependent libraries
19540 # to runtime path list.
19541 inherit_rpath=$inherit_rpath
19543 # Whether libtool must link a program against all its dependency libraries.
19544 link_all_deplibs=$link_all_deplibs
19546 # Set to "yes" if exported symbols are required.
19547 always_export_symbols=$always_export_symbols
19549 # The commands to list exported symbols.
19550 export_symbols_cmds=$lt_export_symbols_cmds
19552 # Symbols that should not be listed in the preloaded symbols.
19553 exclude_expsyms=$lt_exclude_expsyms
19555 # Symbols that must always be exported.
19556 include_expsyms=$lt_include_expsyms
19558 # Commands necessary for linking programs (against libraries) with templates.
19559 prelink_cmds=$lt_prelink_cmds
19561 # Commands necessary for finishing linking programs.
19562 postlink_cmds=$lt_postlink_cmds
19564 # Specify filename containing input files.
19565 file_list_spec=$lt_file_list_spec
19567 # How to hardcode a shared library path into an executable.
19568 hardcode_action=$hardcode_action
19570 # The directories searched by this compiler when creating a shared library.
19571 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19573 # Dependencies to place before and after the objects being linked to
19574 # create a shared library.
19575 predep_objects=$lt_predep_objects
19576 postdep_objects=$lt_postdep_objects
19577 predeps=$lt_predeps
19578 postdeps=$lt_postdeps
19580 # The library search path used internally by the compiler when linking
19581 # a shared library.
19582 compiler_lib_search_path=$lt_compiler_lib_search_path
19584 # ### END LIBTOOL CONFIG
19590 cat <<\_LT_EOF >> "$cfgfile"
19591 # AIX sometimes has problems with the GCC collect2 program. For some
19592 # reason, if we set the COLLECT_NAMES environment variable, the problems
19593 # vanish in a puff of smoke.
19594 if test "X${COLLECT_NAMES+set}" != Xset; then
19596 export COLLECT_NAMES
19603 ltmain="$ac_aux_dir/ltmain.sh"
19606 # We use sed instead of cat because bash on DJGPP gets confused if
19607 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19608 # text mode, it properly converts lines to CR/LF. This bash problem
19609 # is reportedly fixed, but why not run on old versions too?
19610 sed '$q' "$ltmain" >> "$cfgfile" \
19611 || (rm -f "$cfgfile"; exit 1)
19613 if test x"$xsi_shell" = xyes; then
19614 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
19618 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19619 \ * ) func_dirname_result="${3}" ;;\
19621 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
19622 && mv -f "$cfgfile.tmp" "$cfgfile" \
19623 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19624 test 0 -eq $? || _lt_function_replace_fail=:
19627 sed -e '/^func_basename ()$/,/^} # func_basename /c\
19630 \ func_basename_result="${1##*/}"\
19631 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
19632 && mv -f "$cfgfile.tmp" "$cfgfile" \
19633 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19634 test 0 -eq $? || _lt_function_replace_fail=:
19637 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
19638 func_dirname_and_basename ()\
19641 \ */*) func_dirname_result="${1%/*}${2}" ;;\
19642 \ * ) func_dirname_result="${3}" ;;\
19644 \ func_basename_result="${1##*/}"\
19645 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
19646 && mv -f "$cfgfile.tmp" "$cfgfile" \
19647 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19648 test 0 -eq $? || _lt_function_replace_fail=:
19651 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
19654 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
19655 \ # positional parameters, so assign one to ordinary parameter first.\
19656 \ func_stripname_result=${3}\
19657 \ func_stripname_result=${func_stripname_result#"${1}"}\
19658 \ func_stripname_result=${func_stripname_result%"${2}"}\
19659 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
19660 && mv -f "$cfgfile.tmp" "$cfgfile" \
19661 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19662 test 0 -eq $? || _lt_function_replace_fail=:
19665 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
19666 func_split_long_opt ()\
19668 \ func_split_long_opt_name=${1%%=*}\
19669 \ func_split_long_opt_arg=${1#*=}\
19670 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
19671 && mv -f "$cfgfile.tmp" "$cfgfile" \
19672 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19673 test 0 -eq $? || _lt_function_replace_fail=:
19676 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
19677 func_split_short_opt ()\
19679 \ func_split_short_opt_arg=${1#??}\
19680 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
19681 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
19682 && mv -f "$cfgfile.tmp" "$cfgfile" \
19683 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19684 test 0 -eq $? || _lt_function_replace_fail=:
19687 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
19691 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
19692 \ *) func_lo2o_result=${1} ;;\
19694 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
19695 && mv -f "$cfgfile.tmp" "$cfgfile" \
19696 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19697 test 0 -eq $? || _lt_function_replace_fail=:
19700 sed -e '/^func_xform ()$/,/^} # func_xform /c\
19703 func_xform_result=${1%.*}.lo\
19704 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
19705 && mv -f "$cfgfile.tmp" "$cfgfile" \
19706 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19707 test 0 -eq $? || _lt_function_replace_fail=:
19710 sed -e '/^func_arith ()$/,/^} # func_arith /c\
19713 func_arith_result=$(( $* ))\
19714 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
19715 && mv -f "$cfgfile.tmp" "$cfgfile" \
19716 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19717 test 0 -eq $? || _lt_function_replace_fail=:
19720 sed -e '/^func_len ()$/,/^} # func_len /c\
19723 func_len_result=${#1}\
19724 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
19725 && mv -f "$cfgfile.tmp" "$cfgfile" \
19726 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19727 test 0 -eq $? || _lt_function_replace_fail=:
19731 if test x"$lt_shell_append" = xyes; then
19732 sed -e '/^func_append ()$/,/^} # func_append /c\
19735 eval "${1}+=\\${2}"\
19736 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
19737 && mv -f "$cfgfile.tmp" "$cfgfile" \
19738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19739 test 0 -eq $? || _lt_function_replace_fail=:
19742 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
19743 func_append_quoted ()\
19745 \ func_quote_for_eval "${2}"\
19746 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
19747 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
19748 && mv -f "$cfgfile.tmp" "$cfgfile" \
19749 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19750 test 0 -eq $? || _lt_function_replace_fail=:
19753 # Save a `func_append' function call where possible by direct use of '+='
19754 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
19755 && mv -f "$cfgfile.tmp" "$cfgfile" \
19756 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19757 test 0 -eq $? || _lt_function_replace_fail=:
19759 # Save a `func_append' function call even when '+=' is not available
19760 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
19761 && mv -f "$cfgfile.tmp" "$cfgfile" \
19762 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
19763 test 0 -eq $? || _lt_function_replace_fail=:
19766 if test x"$_lt_function_replace_fail" = x":"; then
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
19768 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
19772 mv -f "$cfgfile" "$ofile" ||
19773 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19777 cat <<_LT_EOF >> "$ofile"
19779 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19781 # The linker used to build libraries.
19784 # How to create reloadable object files.
19785 reload_flag=$lt_reload_flag_CXX
19786 reload_cmds=$lt_reload_cmds_CXX
19788 # Commands used to build an old-style archive.
19789 old_archive_cmds=$lt_old_archive_cmds_CXX
19791 # A language specific compiler.
19792 CC=$lt_compiler_CXX
19794 # Is the compiler the GNU compiler?
19797 # Compiler flag to turn off builtin functions.
19798 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19800 # Additional compiler flags for building library objects.
19801 pic_flag=$lt_lt_prog_compiler_pic_CXX
19803 # How to pass a linker flag through the compiler.
19804 wl=$lt_lt_prog_compiler_wl_CXX
19806 # Compiler flag to prevent dynamic linking.
19807 link_static_flag=$lt_lt_prog_compiler_static_CXX
19809 # Does compiler simultaneously support -c and -o options?
19810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19812 # Whether or not to add -lc for building shared libraries.
19813 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19815 # Whether or not to disallow shared libs when runtime libs are static.
19816 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19818 # Compiler flag to allow reflexive dlopens.
19819 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19821 # Compiler flag to generate shared objects directly from archives.
19822 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19824 # Whether the compiler copes with passing no objects directly.
19825 compiler_needs_object=$lt_compiler_needs_object_CXX
19827 # Create an old-style archive from a shared archive.
19828 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19830 # Create a temporary old-style archive to link instead of a shared archive.
19831 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19833 # Commands used to build a shared archive.
19834 archive_cmds=$lt_archive_cmds_CXX
19835 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19837 # Commands used to build a loadable module if different from building
19838 # a shared archive.
19839 module_cmds=$lt_module_cmds_CXX
19840 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19842 # Whether we are building with GNU ld or not.
19843 with_gnu_ld=$lt_with_gnu_ld_CXX
19845 # Flag that allows shared libraries with undefined symbols to be built.
19846 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19848 # Flag that enforces no undefined symbols.
19849 no_undefined_flag=$lt_no_undefined_flag_CXX
19851 # Flag to hardcode \$libdir into a binary during linking.
19852 # This must work even if \$libdir does not exist
19853 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19855 # Whether we need a single "-rpath" flag with a separated argument.
19856 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19858 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19859 # DIR into the resulting binary.
19860 hardcode_direct=$hardcode_direct_CXX
19862 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19863 # DIR into the resulting binary and the resulting library dependency is
19864 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19865 # library is relocated.
19866 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19868 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19869 # into the resulting binary.
19870 hardcode_minus_L=$hardcode_minus_L_CXX
19872 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19873 # into the resulting binary.
19874 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19876 # Set to "yes" if building a shared library automatically hardcodes DIR
19877 # into the library and all subsequent libraries and executables linked
19879 hardcode_automatic=$hardcode_automatic_CXX
19881 # Set to yes if linker adds runtime paths of dependent libraries
19882 # to runtime path list.
19883 inherit_rpath=$inherit_rpath_CXX
19885 # Whether libtool must link a program against all its dependency libraries.
19886 link_all_deplibs=$link_all_deplibs_CXX
19888 # Set to "yes" if exported symbols are required.
19889 always_export_symbols=$always_export_symbols_CXX
19891 # The commands to list exported symbols.
19892 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19894 # Symbols that should not be listed in the preloaded symbols.
19895 exclude_expsyms=$lt_exclude_expsyms_CXX
19897 # Symbols that must always be exported.
19898 include_expsyms=$lt_include_expsyms_CXX
19900 # Commands necessary for linking programs (against libraries) with templates.
19901 prelink_cmds=$lt_prelink_cmds_CXX
19903 # Commands necessary for finishing linking programs.
19904 postlink_cmds=$lt_postlink_cmds_CXX
19906 # Specify filename containing input files.
19907 file_list_spec=$lt_file_list_spec_CXX
19909 # How to hardcode a shared library path into an executable.
19910 hardcode_action=$hardcode_action_CXX
19912 # The directories searched by this compiler when creating a shared library.
19913 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19915 # Dependencies to place before and after the objects being linked to
19916 # create a shared library.
19917 predep_objects=$lt_predep_objects_CXX
19918 postdep_objects=$lt_postdep_objects_CXX
19919 predeps=$lt_predeps_CXX
19920 postdeps=$lt_postdeps_CXX
19922 # The library search path used internally by the compiler when linking
19923 # a shared library.
19924 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19926 # ### END LIBTOOL TAG CONFIG: CXX
19937 ac_clean_files=$ac_clean_files_save
19939 test $ac_write_fail = 0 ||
19940 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19943 # configure is writing to config.log, and then calls config.status.
19944 # config.status does its own redirection, appending to config.log.
19945 # Unfortunately, on DOS this fails, as config.log is still kept open
19946 # by configure, so config.status won't be able to write to it; its
19947 # output is simply discarded. So we exec the FD to /dev/null,
19948 # effectively closing config.log, so it can be properly (re)opened and
19949 # appended to by config.status. When coming back to configure, we
19950 # need to make the FD available again.
19951 if test "$no_create" != yes; then
19953 ac_config_status_args=
19954 test "$silent" = yes &&
19955 ac_config_status_args="$ac_config_status_args --quiet"
19957 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19959 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19960 # would make configure fail if this is the last instruction.
19961 $ac_cs_success || as_fn_exit 1
19963 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19965 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}