2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for adplug 2.2.1.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 # maybe with a smaller string...
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 # Oops. We lost completely, so just stick with echo.
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev/null 6>&1
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686 ac_default_prefix=/usr/local
688 ac_config_libobj_dir=.
695 # Identity of this package.
696 PACKAGE_NAME='adplug'
697 PACKAGE_TARNAME='adplug'
698 PACKAGE_VERSION='2.2.1'
699 PACKAGE_STRING='adplug 2.2.1'
703 ac_unique_file="src/adplug.cpp"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
717 # ifdef HAVE_STDLIB_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
740 ac_subst_vars='am__EXEEXT_FALSE
800 MAINTAINER_MODE_FALSE
810 INSTALL_STRIP_PROGRAM
852 program_transform_name
865 enable_option_checking
866 enable_maintainer_mode
871 enable_dependency_tracking
876 ac_precious_vars='build_alias
894 # Initialize some variables set by options.
896 ac_init_version=false
897 ac_unrecognized_opts=
899 # The variables have the same names as the options, with
900 # dashes changed to underlines.
908 program_transform_name=s,x,x,
916 # Installation directory options.
917 # These are left unexpanded so users can "make install exec_prefix=/foo"
918 # and all the variables that are supposed to be based on exec_prefix
919 # by default will actually change.
920 # Use braces instead of parens because sh, perl, etc. also accept them.
921 # (The list follows the same order as the GNU Coding Standards.)
922 bindir='${exec_prefix}/bin'
923 sbindir='${exec_prefix}/sbin'
924 libexecdir='${exec_prefix}/libexec'
925 datarootdir='${prefix}/share'
926 datadir='${datarootdir}'
927 sysconfdir='${prefix}/etc'
928 sharedstatedir='${prefix}/com'
929 localstatedir='${prefix}/var'
930 includedir='${prefix}/include'
931 oldincludedir='/usr/include'
932 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
933 infodir='${datarootdir}/info'
938 libdir='${exec_prefix}/lib'
939 localedir='${datarootdir}/locale'
940 mandir='${datarootdir}/man'
946 # If the previous option needs an argument, assign it.
947 if test -n "$ac_prev"; then
948 eval $ac_prev=\$ac_option
954 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958 # Accept the important Cygnus configure options, so we can diagnose typos.
960 case $ac_dashdash$ac_option in
964 -bindir | --bindir | --bindi | --bind | --bin | --bi)
966 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969 -build | --build | --buil | --bui | --bu)
970 ac_prev=build_alias ;;
971 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
972 build_alias=$ac_optarg ;;
974 -cache-file | --cache-file | --cache-fil | --cache-fi \
975 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
976 ac_prev=cache_file ;;
977 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
978 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
979 cache_file=$ac_optarg ;;
982 cache_file=config.cache ;;
984 -datadir | --datadir | --datadi | --datad)
986 -datadir=* | --datadir=* | --datadi=* | --datad=*)
987 datadir=$ac_optarg ;;
989 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
990 | --dataroo | --dataro | --datar)
991 ac_prev=datarootdir ;;
992 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
993 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
994 datarootdir=$ac_optarg ;;
996 -disable-* | --disable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error "invalid feature name: $ac_useropt"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1005 "enable_$ac_useropt"
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1010 eval enable_$ac_useropt=no ;;
1012 -docdir | --docdir | --docdi | --doc | --do)
1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1015 docdir=$ac_optarg ;;
1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1020 dvidir=$ac_optarg ;;
1022 -enable-* | --enable-*)
1023 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1026 as_fn_error "invalid feature name: $ac_useropt"
1027 ac_useropt_orig=$ac_useropt
1028 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1031 "enable_$ac_useropt"
1033 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1034 ac_unrecognized_sep=', ';;
1036 eval enable_$ac_useropt=\$ac_optarg ;;
1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040 | --exec | --exe | --ex)
1041 ac_prev=exec_prefix ;;
1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044 | --exec=* | --exe=* | --ex=*)
1045 exec_prefix=$ac_optarg ;;
1047 -gas | --gas | --ga | --g)
1048 # Obsolete; use --with-gas.
1051 -help | --help | --hel | --he | -h)
1052 ac_init_help=long ;;
1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054 ac_init_help=recursive ;;
1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056 ac_init_help=short ;;
1058 -host | --host | --hos | --ho)
1059 ac_prev=host_alias ;;
1060 -host=* | --host=* | --hos=* | --ho=*)
1061 host_alias=$ac_optarg ;;
1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 htmldir=$ac_optarg ;;
1069 -includedir | --includedir | --includedi | --included | --include \
1070 | --includ | --inclu | --incl | --inc)
1071 ac_prev=includedir ;;
1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073 | --includ=* | --inclu=* | --incl=* | --inc=*)
1074 includedir=$ac_optarg ;;
1076 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1079 infodir=$ac_optarg ;;
1081 -libdir | --libdir | --libdi | --libd)
1083 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1084 libdir=$ac_optarg ;;
1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087 | --libexe | --libex | --libe)
1088 ac_prev=libexecdir ;;
1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090 | --libexe=* | --libex=* | --libe=*)
1091 libexecdir=$ac_optarg ;;
1093 -localedir | --localedir | --localedi | --localed | --locale)
1094 ac_prev=localedir ;;
1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096 localedir=$ac_optarg ;;
1098 -localstatedir | --localstatedir | --localstatedi | --localstated \
1099 | --localstate | --localstat | --localsta | --localst | --locals)
1100 ac_prev=localstatedir ;;
1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1103 localstatedir=$ac_optarg ;;
1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1108 mandir=$ac_optarg ;;
1110 -nfp | --nfp | --nf)
1111 # Obsolete; use --without-fp.
1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1115 | --no-cr | --no-c | -n)
1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124 | --oldin | --oldi | --old | --ol | --o)
1125 ac_prev=oldincludedir ;;
1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1129 oldincludedir=$ac_optarg ;;
1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1134 prefix=$ac_optarg ;;
1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1137 | --program-pre | --program-pr | --program-p)
1138 ac_prev=program_prefix ;;
1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1141 program_prefix=$ac_optarg ;;
1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1144 | --program-suf | --program-su | --program-s)
1145 ac_prev=program_suffix ;;
1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1148 program_suffix=$ac_optarg ;;
1150 -program-transform-name | --program-transform-name \
1151 | --program-transform-nam | --program-transform-na \
1152 | --program-transform-n | --program-transform- \
1153 | --program-transform | --program-transfor \
1154 | --program-transfo | --program-transf \
1155 | --program-trans | --program-tran \
1156 | --progr-tra | --program-tr | --program-t)
1157 ac_prev=program_transform_name ;;
1158 -program-transform-name=* | --program-transform-name=* \
1159 | --program-transform-nam=* | --program-transform-na=* \
1160 | --program-transform-n=* | --program-transform-=* \
1161 | --program-transform=* | --program-transfor=* \
1162 | --program-transfo=* | --program-transf=* \
1163 | --program-trans=* | --program-tran=* \
1164 | --progr-tra=* | --program-tr=* | --program-t=*)
1165 program_transform_name=$ac_optarg ;;
1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170 pdfdir=$ac_optarg ;;
1172 -psdir | --psdir | --psdi | --psd | --ps)
1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178 | -silent | --silent | --silen | --sile | --sil)
1181 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 sbindir=$ac_optarg ;;
1187 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189 | --sharedst | --shareds | --shared | --share | --shar \
1191 ac_prev=sharedstatedir ;;
1192 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 sharedstatedir=$ac_optarg ;;
1198 -site | --site | --sit)
1200 -site=* | --site=* | --sit=*)
1203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206 srcdir=$ac_optarg ;;
1208 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209 | --syscon | --sysco | --sysc | --sys | --sy)
1210 ac_prev=sysconfdir ;;
1211 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213 sysconfdir=$ac_optarg ;;
1215 -target | --target | --targe | --targ | --tar | --ta | --t)
1216 ac_prev=target_alias ;;
1217 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218 target_alias=$ac_optarg ;;
1220 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223 -version | --version | --versio | --versi | --vers | -V)
1224 ac_init_version=: ;;
1227 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230 as_fn_error "invalid package name: $ac_useropt"
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1240 eval with_$ac_useropt=\$ac_optarg ;;
1242 -without-* | --without-*)
1243 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1246 as_fn_error "invalid package name: $ac_useropt"
1247 ac_useropt_orig=$ac_useropt
1248 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1253 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1254 ac_unrecognized_sep=', ';;
1256 eval with_$ac_useropt=no ;;
1259 # Obsolete; use --with-x.
1262 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1263 | --x-incl | --x-inc | --x-in | --x-i)
1264 ac_prev=x_includes ;;
1265 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1266 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1267 x_includes=$ac_optarg ;;
1269 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1270 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1271 ac_prev=x_libraries ;;
1272 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1273 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1274 x_libraries=$ac_optarg ;;
1276 -*) as_fn_error "unrecognized option: \`$ac_option'
1277 Try \`$0 --help' for more information."
1281 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1282 # Reject names that are not valid shell variable names.
1283 case $ac_envvar in #(
1284 '' | [0-9]* | *[!_$as_cr_alnum]* )
1285 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1287 eval $ac_envvar=\$ac_optarg
1288 export $ac_envvar ;;
1291 # FIXME: should be removed in autoconf 3.0.
1292 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1293 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1294 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1295 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1301 if test -n "$ac_prev"; then
1302 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1303 as_fn_error "missing argument to $ac_option"
1306 if test -n "$ac_unrecognized_opts"; then
1307 case $enable_option_checking in
1309 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1310 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1314 # Check all directory arguments for consistency.
1315 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1316 datadir sysconfdir sharedstatedir localstatedir includedir \
1317 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1318 libdir localedir mandir
1320 eval ac_val=\$$ac_var
1321 # Remove trailing slashes.
1324 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1325 eval $ac_var=\$ac_val;;
1327 # Be sure to have absolute directory names.
1329 [\\/$]* | ?:[\\/]* ) continue;;
1330 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1332 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1335 # There might be people who depend on the old broken behavior: `$host'
1336 # used to hold the argument of --host etc.
1337 # FIXME: To remove some day.
1340 target=$target_alias
1342 # FIXME: To remove some day.
1343 if test "x$host_alias" != x; then
1344 if test "x$build_alias" = x; then
1345 cross_compiling=maybe
1346 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1347 If a cross compiler is detected then cross compile mode will be used." >&2
1348 elif test "x$build_alias" != "x$host_alias"; then
1354 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1356 test "$silent" = yes && exec 6>/dev/null
1359 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1360 ac_ls_di=`ls -di .` &&
1361 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1362 as_fn_error "working directory cannot be determined"
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364 as_fn_error "pwd does not report name of working directory"
1367 # Find the source files, if location was not specified.
1368 if test -z "$srcdir"; then
1369 ac_srcdir_defaulted=yes
1370 # Try the directory containing this script, then the parent directory.
1371 ac_confdir=`$as_dirname -- "$as_myself" ||
1372 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373 X"$as_myself" : 'X\(//\)[^/]' \| \
1374 X"$as_myself" : 'X\(//\)$' \| \
1375 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1376 $as_echo X"$as_myself" |
1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1399 ac_srcdir_defaulted=no
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1403 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1405 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1417 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1419 for ac_var in $ac_precious_vars; do
1420 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1421 eval ac_env_${ac_var}_value=\$${ac_var}
1422 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1423 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1427 # Report the --help message.
1429 if test "$ac_init_help" = "long"; then
1430 # Omit some internal or obsolete options to make the list less imposing.
1431 # This message is too long to be a string in the A/UX 3.1 sh.
1433 \`configure' configures adplug 2.2.1 to adapt to many kinds of systems.
1435 Usage: $0 [OPTION]... [VAR=VALUE]...
1437 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1438 VAR=VALUE. See below for descriptions of some of the useful variables.
1440 Defaults for the options are specified in brackets.
1443 -h, --help display this help and exit
1444 --help=short display options specific to this package
1445 --help=recursive display the short help of all the included packages
1446 -V, --version display version information and exit
1447 -q, --quiet, --silent do not print \`checking...' messages
1448 --cache-file=FILE cache test results in FILE [disabled]
1449 -C, --config-cache alias for \`--cache-file=config.cache'
1450 -n, --no-create do not create output files
1451 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1453 Installation directories:
1454 --prefix=PREFIX install architecture-independent files in PREFIX
1455 [$ac_default_prefix]
1456 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1459 By default, \`make install' will install all the files in
1460 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1461 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1462 for instance \`--prefix=\$HOME'.
1464 For better control, use the options below.
1466 Fine tuning of the installation directories:
1467 --bindir=DIR user executables [EPREFIX/bin]
1468 --sbindir=DIR system admin executables [EPREFIX/sbin]
1469 --libexecdir=DIR program executables [EPREFIX/libexec]
1470 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1471 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1472 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1473 --libdir=DIR object code libraries [EPREFIX/lib]
1474 --includedir=DIR C header files [PREFIX/include]
1475 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1476 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1477 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1478 --infodir=DIR info documentation [DATAROOTDIR/info]
1479 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1480 --mandir=DIR man documentation [DATAROOTDIR/man]
1481 --docdir=DIR documentation root [DATAROOTDIR/doc/adplug]
1482 --htmldir=DIR html documentation [DOCDIR]
1483 --dvidir=DIR dvi documentation [DOCDIR]
1484 --pdfdir=DIR pdf documentation [DOCDIR]
1485 --psdir=DIR ps documentation [DOCDIR]
1491 --program-prefix=PREFIX prepend PREFIX to installed program names
1492 --program-suffix=SUFFIX append SUFFIX to installed program names
1493 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1496 --build=BUILD configure for building on BUILD [guessed]
1497 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1501 if test -n "$ac_init_help"; then
1502 case $ac_init_help in
1503 short | recursive ) echo "Configuration of adplug 2.2.1:";;
1508 --disable-option-checking ignore unrecognized --enable/--with options
1509 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1510 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1511 --enable-maintainer-mode enable make rules and dependencies not useful
1512 (and sometimes confusing) to the casual installer
1513 --enable-shared[=PKGS] build shared libraries [default=yes]
1514 --enable-static[=PKGS] build static libraries [default=yes]
1515 --enable-fast-install[=PKGS]
1516 optimize for fast installation [default=yes]
1517 --disable-dependency-tracking speeds up one-time build
1518 --enable-dependency-tracking do not reject slow dependency extractors
1519 --disable-libtool-lock avoid locking (might break parallel builds)
1520 --enable-debug Compile with debug logging support (default is to
1521 disable debug logging)
1524 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1525 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1526 --with-pic try to use only PIC/non-PIC objects [default=use
1528 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1530 Some influential environment variables:
1531 CC C compiler command
1532 CFLAGS C compiler flags
1533 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1534 nonstandard directory <lib dir>
1535 LIBS libraries to pass to the linker, e.g. -l<library>
1536 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1537 you have headers in a nonstandard directory <include dir>
1539 CXX C++ compiler command
1540 CXXFLAGS C++ compiler flags
1541 CXXCPP C++ preprocessor
1542 PKG_CONFIG path to pkg-config utility
1544 C compiler flags for libbinio, overriding pkg-config
1546 linker flags for libbinio, overriding pkg-config
1548 Use these variables to override the choices made by `configure' or to help
1549 it to find libraries and programs with nonstandard names/locations.
1551 Report bugs to the package provider.
1556 if test "$ac_init_help" = "recursive"; then
1557 # If there are subdirs, report their specific --help.
1558 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1559 test -d "$ac_dir" ||
1560 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1565 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1567 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1568 # A ".." for each directory in $ac_dir_suffix.
1569 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1570 case $ac_top_builddir_sub in
1571 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1572 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1575 ac_abs_top_builddir=$ac_pwd
1576 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1577 # for backward compatibility:
1578 ac_top_builddir=$ac_top_build_prefix
1581 .) # We are building in place.
1583 ac_top_srcdir=$ac_top_builddir_sub
1584 ac_abs_top_srcdir=$ac_pwd ;;
1585 [\\/]* | ?:[\\/]* ) # Absolute name.
1586 ac_srcdir=$srcdir$ac_dir_suffix;
1587 ac_top_srcdir=$srcdir
1588 ac_abs_top_srcdir=$srcdir ;;
1590 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1591 ac_top_srcdir=$ac_top_build_prefix$srcdir
1592 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1594 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1596 cd "$ac_dir" || { ac_status=$?; continue; }
1597 # Check for guested configure.
1598 if test -f "$ac_srcdir/configure.gnu"; then
1600 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1601 elif test -f "$ac_srcdir/configure"; then
1603 $SHELL "$ac_srcdir/configure" --help=recursive
1605 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1607 cd "$ac_pwd" || { ac_status=$?; break; }
1611 test -n "$ac_init_help" && exit $ac_status
1612 if $ac_init_version; then
1614 adplug configure 2.2.1
1615 generated by GNU Autoconf 2.64
1617 Copyright (C) 2009 Free Software Foundation, Inc.
1618 This configure script is free software; the Free Software Foundation
1619 gives unlimited permission to copy, distribute and modify it.
1624 ## ------------------------ ##
1625 ## Autoconf initialization. ##
1626 ## ------------------------ ##
1628 # ac_fn_c_try_compile LINENO
1629 # --------------------------
1630 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_compile ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext
1635 if { { ac_try="$ac_compile"
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_compile") 2>conftest.err
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest.$ac_objext; then :
1656 $as_echo "$as_me: failed program was:" >&5
1657 sed 's/^/| /' conftest.$ac_ext >&5
1661 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1664 } # ac_fn_c_try_compile
1666 # ac_fn_c_try_link LINENO
1667 # -----------------------
1668 # Try to link conftest.$ac_ext, and return whether this succeeded.
1671 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1672 rm -f conftest.$ac_objext conftest$ac_exeext
1673 if { { ac_try="$ac_link"
1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676 *) ac_try_echo=$ac_try;;
1678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679 $as_echo "$ac_try_echo"; } >&5
1680 (eval "$ac_link") 2>conftest.err
1682 if test -s conftest.err; then
1683 grep -v '^ *+' conftest.err >conftest.er1
1684 cat conftest.er1 >&5
1685 mv -f conftest.er1 conftest.err
1687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1688 test $ac_status = 0; } && {
1689 test -z "$ac_c_werror_flag" ||
1690 test ! -s conftest.err
1691 } && test -s conftest$ac_exeext && {
1692 test "$cross_compiling" = yes ||
1693 $as_test_x conftest$ac_exeext
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1702 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1703 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1704 # interfere with the next link command; also delete a directory that is
1705 # left behind by Apple's compiler. We do this before executing the actions.
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1710 } # ac_fn_c_try_link
1712 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1713 # -------------------------------------------------------
1714 # Tests whether HEADER exists and can be compiled using the include files in
1715 # INCLUDES, setting the cache variable VAR accordingly.
1716 ac_fn_c_check_header_compile ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1722 $as_echo_n "(cached) " >&6
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1729 if ac_fn_c_try_compile "$LINENO"; then :
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1741 } # ac_fn_c_check_header_compile
1743 # ac_fn_c_try_cpp LINENO
1744 # ----------------------
1745 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 if { { ac_try="$ac_cpp conftest.$ac_ext"
1751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752 *) ac_try_echo=$ac_try;;
1754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755 $as_echo "$ac_try_echo"; } >&5
1756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1758 if test -s conftest.err; then
1759 grep -v '^ *+' conftest.err >conftest.er1
1760 cat conftest.er1 >&5
1761 mv -f conftest.er1 conftest.err
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } >/dev/null && {
1765 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1766 test ! -s conftest.err
1770 $as_echo "$as_me: failed program was:" >&5
1771 sed 's/^/| /' conftest.$ac_ext >&5
1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780 # ac_fn_c_try_run LINENO
1781 # ----------------------
1782 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1783 # that executables *can* be run.
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 if { { ac_try="$ac_link"
1789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1790 *) ac_try_echo=$ac_try;;
1792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1793 $as_echo "$ac_try_echo"; } >&5
1794 (eval "$ac_link") 2>&5
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1798 { { case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_try") 2>&5
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; }; }; then :
1810 $as_echo "$as_me: program exited with status $ac_status" >&5
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1814 ac_retval=$ac_status
1816 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1817 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822 # ac_fn_c_check_func LINENO FUNC VAR
1823 # ----------------------------------
1824 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1825 ac_fn_c_check_func ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1831 $as_echo_n "(cached) " >&6
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1835 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1837 #define $2 innocuous_$2
1839 /* System header to define __stub macros and hopefully few prototypes,
1840 which can conflict with char $2 (); below.
1841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1842 <limits.h> exists even on freestanding compilers. */
1845 # include <limits.h>
1847 # include <assert.h>
1852 /* Override any GCC internal prototype to avoid an error.
1853 Use char because int might match the return type of a GCC
1854 builtin and then its argument prototype would still apply. */
1859 /* The GNU C library defines this for functions which it implements
1860 to always fail with ENOSYS. Some functions are actually named
1861 something starting with __ and the normal name is an alias. */
1862 #if defined __stub_$2 || defined __stub___$2
1874 if ac_fn_c_try_link "$LINENO"; then :
1879 rm -f core conftest.err conftest.$ac_objext \
1880 conftest$ac_exeext conftest.$ac_ext
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1887 } # ac_fn_c_check_func
1889 # ac_fn_cxx_try_compile LINENO
1890 # ----------------------------
1891 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1892 ac_fn_cxx_try_compile ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 rm -f conftest.$ac_objext
1896 if { { ac_try="$ac_compile"
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_compile") 2>conftest.err
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_cxx_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest.$ac_objext; then :
1917 $as_echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925 } # ac_fn_cxx_try_compile
1927 # ac_fn_cxx_try_cpp LINENO
1928 # ------------------------
1929 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1930 ac_fn_cxx_try_cpp ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if { { ac_try="$ac_cpp conftest.$ac_ext"
1935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936 *) ac_try_echo=$ac_try;;
1938 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939 $as_echo "$ac_try_echo"; } >&5
1940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1942 if test -s conftest.err; then
1943 grep -v '^ *+' conftest.err >conftest.er1
1944 cat conftest.er1 >&5
1945 mv -f conftest.er1 conftest.err
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; } >/dev/null && {
1949 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1950 test ! -s conftest.err
1954 $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.$ac_ext >&5
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962 } # ac_fn_cxx_try_cpp
1964 # ac_fn_cxx_try_link LINENO
1965 # -------------------------
1966 # Try to link conftest.$ac_ext, and return whether this succeeded.
1967 ac_fn_cxx_try_link ()
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 rm -f conftest.$ac_objext conftest$ac_exeext
1971 if { { ac_try="$ac_link"
1973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1974 *) ac_try_echo=$ac_try;;
1976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1977 $as_echo "$ac_try_echo"; } >&5
1978 (eval "$ac_link") 2>conftest.err
1980 if test -s conftest.err; then
1981 grep -v '^ *+' conftest.err >conftest.er1
1982 cat conftest.er1 >&5
1983 mv -f conftest.er1 conftest.err
1985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1986 test $ac_status = 0; } && {
1987 test -z "$ac_cxx_werror_flag" ||
1988 test ! -s conftest.err
1989 } && test -s conftest$ac_exeext && {
1990 test "$cross_compiling" = yes ||
1991 $as_test_x conftest$ac_exeext
1995 $as_echo "$as_me: failed program was:" >&5
1996 sed 's/^/| /' conftest.$ac_ext >&5
2000 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2001 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2002 # interfere with the next link command; also delete a directory that is
2003 # left behind by Apple's compiler. We do this before executing the actions.
2004 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2005 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008 } # ac_fn_cxx_try_link
2010 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2011 # ---------------------------------------------------------
2012 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2013 # the include files in INCLUDES and setting the cache variable VAR
2015 ac_fn_cxx_check_header_mongrel ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2022 $as_echo_n "(cached) " >&6
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2026 $as_echo "$ac_res" >&6; }
2028 # Is the header compilable?
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2030 $as_echo_n "checking $2 usability... " >&6; }
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2036 if ac_fn_cxx_try_compile "$LINENO"; then :
2037 ac_header_compiler=yes
2039 ac_header_compiler=no
2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2043 $as_echo "$ac_header_compiler" >&6; }
2045 # Is the header present?
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2047 $as_echo_n "checking $2 presence... " >&6; }
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2052 if ac_fn_cxx_try_cpp "$LINENO"; then :
2053 ac_header_preproc=yes
2055 ac_header_preproc=no
2057 rm -f conftest.err conftest.$ac_ext
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2059 $as_echo "$ac_header_preproc" >&6; }
2061 # So? What about this header?
2062 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2065 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2067 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2071 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2073 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2075 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2077 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2079 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2083 $as_echo_n "checking for $2... " >&6; }
2084 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2085 $as_echo_n "(cached) " >&6
2087 eval "$3=\$ac_header_compiler"
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 $as_echo "$ac_res" >&6; }
2093 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2095 } # ac_fn_cxx_check_header_mongrel
2096 cat >config.log <<_ACEOF
2097 This file contains any messages produced by compilers while
2098 running configure, to aid debugging if configure makes a mistake.
2100 It was created by adplug $as_me 2.2.1, which was
2101 generated by GNU Autoconf 2.64. Invocation command line was
2113 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2114 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2115 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2116 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2117 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2119 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2120 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2122 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2123 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2124 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2125 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2126 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2127 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2128 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 test -z "$as_dir" && as_dir=.
2137 $as_echo "PATH: $as_dir"
2153 # Keep a trace of the command line.
2154 # Strip out --no-create and --no-recursion so they do not pile up.
2155 # Strip out --silent because we don't want to record it for future runs.
2156 # Also quote any args containing shell meta-characters.
2157 # Make two passes to allow for proper duplicate-argument suppression.
2161 ac_must_keep_next=false
2167 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2168 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2169 | -silent | --silent | --silen | --sile | --sil)
2172 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2175 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2177 as_fn_append ac_configure_args1 " '$ac_arg'"
2178 if test $ac_must_keep_next = true; then
2179 ac_must_keep_next=false # Got value, back to normal.
2182 *=* | --config-cache | -C | -disable-* | --disable-* \
2183 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2184 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2185 | -with-* | --with-* | -without-* | --without-* | --x)
2186 case "$ac_configure_args0 " in
2187 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2190 -* ) ac_must_keep_next=true ;;
2193 as_fn_append ac_configure_args " '$ac_arg'"
2198 { ac_configure_args0=; unset ac_configure_args0;}
2199 { ac_configure_args1=; unset ac_configure_args1;}
2201 # When interrupted or exit'd, cleanup temporary files, and complete
2202 # config.log. We remove comments because anyway the quotes in there
2203 # would cause problems or look ugly.
2204 # WARNING: Use '\'' to represent an apostrophe within the trap.
2205 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2206 trap 'exit_status=$?
2207 # Save into config.log some information that might help in debugging.
2212 ## ---------------- ##
2213 ## Cache variables. ##
2214 ## ---------------- ##
2217 # The following way of writing the cache mishandles newlines in values,
2219 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2220 eval ac_val=\$$ac_var
2224 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2225 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2228 _ | IFS | as_nl) ;; #(
2229 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2230 *) { eval $ac_var=; unset $ac_var;} ;;
2235 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2236 *${as_nl}ac_space=\ *)
2238 "s/'\''/'\''\\\\'\'''\''/g;
2239 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2242 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2250 ## ----------------- ##
2251 ## Output variables. ##
2252 ## ----------------- ##
2255 for ac_var in $ac_subst_vars
2257 eval ac_val=\$$ac_var
2259 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261 $as_echo "$ac_var='\''$ac_val'\''"
2265 if test -n "$ac_subst_files"; then
2267 ## ------------------- ##
2268 ## File substitutions. ##
2269 ## ------------------- ##
2272 for ac_var in $ac_subst_files
2274 eval ac_val=\$$ac_var
2276 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278 $as_echo "$ac_var='\''$ac_val'\''"
2283 if test -s confdefs.h; then
2293 test "$ac_signal" != 0 &&
2294 $as_echo "$as_me: caught signal $ac_signal"
2295 $as_echo "$as_me: exit $exit_status"
2297 rm -f core *.core core.conftest.* &&
2298 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2301 for ac_signal in 1 2 13 15; do
2302 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2306 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2307 rm -f -r conftest* confdefs.h
2309 $as_echo "/* confdefs.h */" > confdefs.h
2311 # Predefined preprocessor variables.
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_NAME "$PACKAGE_NAME"
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2325 cat >>confdefs.h <<_ACEOF
2326 #define PACKAGE_STRING "$PACKAGE_STRING"
2329 cat >>confdefs.h <<_ACEOF
2330 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333 cat >>confdefs.h <<_ACEOF
2334 #define PACKAGE_URL "$PACKAGE_URL"
2338 # Let the site file select an alternate cache file if it wants to.
2339 # Prefer an explicitly selected file to automatically selected ones.
2342 if test -n "$CONFIG_SITE"; then
2343 ac_site_file1=$CONFIG_SITE
2344 elif test "x$prefix" != xNONE; then
2345 ac_site_file1=$prefix/share/config.site
2346 ac_site_file2=$prefix/etc/config.site
2348 ac_site_file1=$ac_default_prefix/share/config.site
2349 ac_site_file2=$ac_default_prefix/etc/config.site
2351 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2353 test "x$ac_site_file" = xNONE && continue
2354 if test -r "$ac_site_file"; then
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2356 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2357 sed 's/^/| /' "$ac_site_file" >&5
2362 if test -r "$cache_file"; then
2363 # Some versions of bash will fail to source /dev/null (special
2364 # files actually), so we avoid doing that.
2365 if test -f "$cache_file"; then
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2367 $as_echo "$as_me: loading cache $cache_file" >&6;}
2369 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2370 *) . "./$cache_file";;
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2375 $as_echo "$as_me: creating cache $cache_file" >&6;}
2379 # Check that the precious variables saved in the cache have kept the same
2381 ac_cache_corrupted=false
2382 for ac_var in $ac_precious_vars; do
2383 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2384 eval ac_new_set=\$ac_env_${ac_var}_set
2385 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2386 eval ac_new_val=\$ac_env_${ac_var}_value
2387 case $ac_old_set,$ac_new_set in
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2391 ac_cache_corrupted=: ;;
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2394 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2395 ac_cache_corrupted=: ;;
2398 if test "x$ac_old_val" != "x$ac_new_val"; then
2399 # differences in whitespace do not lead to failure.
2400 ac_old_val_w=`echo x $ac_old_val`
2401 ac_new_val_w=`echo x $ac_new_val`
2402 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2404 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2405 ac_cache_corrupted=:
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2408 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2409 eval $ac_var=\$ac_old_val
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2412 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2414 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2417 # Pass precious variables to config.status.
2418 if test "$ac_new_set" = set; then
2420 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2421 *) ac_arg=$ac_var=$ac_new_val ;;
2423 case " $ac_configure_args " in
2424 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2425 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2429 if $ac_cache_corrupted; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2431 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2433 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2434 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2436 ## -------------------- ##
2437 ## Main body of script. ##
2438 ## -------------------- ##
2441 ac_cpp='$CPP $CPPFLAGS'
2442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448 ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile adplugdb/Makefile test/Makefile adplug.pc"
2450 am__api_version='1.11'
2453 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2454 for ac_t in install-sh install.sh shtool; do
2455 if test -f "$ac_dir/$ac_t"; then
2457 ac_install_sh="$ac_aux_dir/$ac_t -c"
2462 if test -z "$ac_aux_dir"; then
2463 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2466 # These three variables are undocumented and unsupported,
2467 # and are intended to be withdrawn in a future Autoconf release.
2468 # They can cause serious problems if a builder's source tree is in a directory
2469 # whose full name contains unusual characters.
2470 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2471 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2472 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2475 # Find a good install program. We prefer a C program (faster),
2476 # so one script is as good as another. But avoid the broken or
2477 # incompatible versions:
2478 # SysV /etc/install, /usr/sbin/install
2479 # SunOS /usr/etc/install
2480 # IRIX /sbin/install
2482 # AmigaOS /C/install, which installs bootblocks on floppy discs
2483 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2484 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2485 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2486 # OS/2's system install, which has a completely different semantic
2487 # ./install, which can be erroneously created by make from ./install.sh.
2488 # Reject install programs that cannot install multiple files.
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2490 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2491 if test -z "$INSTALL"; then
2492 if test "${ac_cv_path_install+set}" = set; then :
2493 $as_echo_n "(cached) " >&6
2495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499 test -z "$as_dir" && as_dir=.
2500 # Account for people who put trailing slashes in PATH elements.
2501 case $as_dir/ in #((
2502 ./ | .// | /[cC]/* | \
2503 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2504 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2507 # OSF1 and SCO ODT 3.0 have their own names for install.
2508 # Don't use installbsd from OSF since it installs stuff as root
2510 for ac_prog in ginstall scoinst install; do
2511 for ac_exec_ext in '' $ac_executable_extensions; do
2512 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2513 if test $ac_prog = install &&
2514 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2515 # AIX install. It has an incompatible calling convention.
2517 elif test $ac_prog = install &&
2518 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2519 # program-specific install script used by HP pwplus--don't use.
2522 rm -rf conftest.one conftest.two conftest.dir
2523 echo one > conftest.one
2524 echo two > conftest.two
2526 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2527 test -s conftest.one && test -s conftest.two &&
2528 test -s conftest.dir/conftest.one &&
2529 test -s conftest.dir/conftest.two
2531 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2544 rm -rf conftest.one conftest.two conftest.dir
2547 if test "${ac_cv_path_install+set}" = set; then
2548 INSTALL=$ac_cv_path_install
2550 # As a last resort, use the slow shell script. Don't cache a
2551 # value for INSTALL within a source directory, because that will
2552 # break other packages using the cache if that directory is
2553 # removed, or if the value is a relative name.
2554 INSTALL=$ac_install_sh
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2558 $as_echo "$INSTALL" >&6; }
2560 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2561 # It thinks the first close brace ends the variable substitution.
2562 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2564 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2566 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2569 $as_echo_n "checking whether build environment is sane... " >&6; }
2572 echo timestamp > conftest.file
2573 # Reject unsafe characters in $srcdir or the absolute working directory
2574 # name. Accept space and tab only in the latter.
2578 *[\\\"\#\$\&\'\`$am_lf]*)
2579 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2582 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2583 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2586 # Do `set' in a subshell so we don't clobber the current shell's
2587 # arguments. Must try -L first in case configure is actually a
2588 # symlink; some systems play weird games with the mod time of symlinks
2589 # (eg FreeBSD returns the mod time of the symlink's containing
2592 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2593 if test "$*" = "X"; then
2595 set X `ls -t "$srcdir/configure" conftest.file`
2598 if test "$*" != "X $srcdir/configure conftest.file" \
2599 && test "$*" != "X conftest.file $srcdir/configure"; then
2601 # If neither matched, then we have a broken ls. This can happen
2602 # if, for instance, CONFIG_SHELL is bash and it inherits a
2603 # broken ls alias from the environment. This has actually
2604 # happened. Such a system could not be considered "sane".
2605 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2606 alias in your environment" "$LINENO" 5
2609 test "$2" = conftest.file
2615 as_fn_error "newly created file is older than distributed files!
2616 Check your system clock" "$LINENO" 5
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619 $as_echo "yes" >&6; }
2620 test "$program_prefix" != NONE &&
2621 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2622 # Use a double $ so make ignores it.
2623 test "$program_suffix" != NONE &&
2624 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2625 # Double any \ or $.
2626 # By default was `s,x,x', remove it if useless.
2627 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2628 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2630 # expand $ac_aux_dir to an absolute path
2631 am_aux_dir=`cd $ac_aux_dir && pwd`
2633 if test x"${MISSING+set}" != xset; then
2636 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2638 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2641 # Use eval to expand $SHELL
2642 if eval "$MISSING --run true"; then
2643 am_missing_run="$MISSING --run "
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2647 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2650 if test x"${install_sh}" != xset; then
2653 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2655 install_sh="\${SHELL} $am_aux_dir/install-sh"
2659 # Installed binaries are usually stripped using `strip' when the user
2660 # run `make install-strip'. However `strip' might not be the right
2661 # tool to use in cross-compilation environments, therefore Automake
2662 # will honor the `STRIP' environment variable to overrule this program.
2663 if test "$cross_compiling" != no; then
2664 if test -n "$ac_tool_prefix"; then
2665 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2666 set dummy ${ac_tool_prefix}strip; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if test "${ac_cv_prog_STRIP+set}" = set; then :
2670 $as_echo_n "(cached) " >&6
2672 if test -n "$STRIP"; then
2673 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2679 test -z "$as_dir" && as_dir=.
2680 for ac_exec_ext in '' $ac_executable_extensions; do
2681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2682 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2692 STRIP=$ac_cv_prog_STRIP
2693 if test -n "$STRIP"; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2695 $as_echo "$STRIP" >&6; }
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2698 $as_echo "no" >&6; }
2703 if test -z "$ac_cv_prog_STRIP"; then
2705 # Extract the first word of "strip", so it can be a program name with args.
2706 set dummy strip; ac_word=$2
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2708 $as_echo_n "checking for $ac_word... " >&6; }
2709 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2710 $as_echo_n "(cached) " >&6
2712 if test -n "$ac_ct_STRIP"; then
2713 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir=.
2720 for ac_exec_ext in '' $ac_executable_extensions; do
2721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2722 ac_cv_prog_ac_ct_STRIP="strip"
2723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2733 if test -n "$ac_ct_STRIP"; then
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2735 $as_echo "$ac_ct_STRIP" >&6; }
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2738 $as_echo "no" >&6; }
2741 if test "x$ac_ct_STRIP" = x; then
2744 case $cross_compiling:$ac_tool_warned in
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2748 ac_tool_warned=yes ;;
2753 STRIP="$ac_cv_prog_STRIP"
2757 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2760 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2761 if test -z "$MKDIR_P"; then
2762 if test "${ac_cv_path_mkdir+set}" = set; then :
2763 $as_echo_n "(cached) " >&6
2765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2766 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2769 test -z "$as_dir" && as_dir=.
2770 for ac_prog in mkdir gmkdir; do
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2773 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2774 'mkdir (GNU coreutils) '* | \
2775 'mkdir (coreutils) '* | \
2776 'mkdir (fileutils) '4.1*)
2777 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2787 if test "${ac_cv_path_mkdir+set}" = set; then
2788 MKDIR_P="$ac_cv_path_mkdir -p"
2790 # As a last resort, use the slow shell script. Don't cache a
2791 # value for MKDIR_P within a source directory, because that will
2792 # break other packages using the cache if that directory is
2793 # removed, or if the value is a relative name.
2794 test -d ./--version && rmdir ./--version
2795 MKDIR_P="$ac_install_sh -d"
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2799 $as_echo "$MKDIR_P" >&6; }
2803 [\\/$]* | ?:[\\/]*) ;;
2804 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2807 for ac_prog in gawk mawk nawk awk
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810 set dummy $ac_prog; ac_word=$2
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812 $as_echo_n "checking for $ac_word... " >&6; }
2813 if test "${ac_cv_prog_AWK+set}" = set; then :
2814 $as_echo_n "(cached) " >&6
2816 if test -n "$AWK"; then
2817 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 ac_cv_prog_AWK="$ac_prog"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2837 if test -n "$AWK"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2839 $as_echo "$AWK" >&6; }
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842 $as_echo "no" >&6; }
2846 test -n "$AWK" && break
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2850 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2852 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2853 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2854 $as_echo_n "(cached) " >&6
2856 cat >conftest.make <<\_ACEOF
2859 @echo '@@@%%%=$(MAKE)=@@@%%%'
2861 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2862 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2864 eval ac_cv_prog_make_${ac_make}_set=yes;;
2866 eval ac_cv_prog_make_${ac_make}_set=no;;
2870 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2872 $as_echo "yes" >&6; }
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876 $as_echo "no" >&6; }
2877 SET_MAKE="MAKE=${MAKE-make}"
2880 rm -rf .tst 2>/dev/null
2881 mkdir .tst 2>/dev/null
2882 if test -d .tst; then
2887 rmdir .tst 2>/dev/null
2889 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2890 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2891 # is not polluted with repeated "-I."
2892 am__isrc=' -I$(srcdir)'
2893 # test to see if srcdir already configured
2894 if test -f $srcdir/config.status; then
2895 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2899 # test whether we have cygpath
2900 if test -z "$CYGPATH_W"; then
2901 if (cygpath --version) >/dev/null 2>/dev/null; then
2902 CYGPATH_W='cygpath -w'
2909 # Define the identity of the package.
2914 cat >>confdefs.h <<_ACEOF
2915 #define PACKAGE "$PACKAGE"
2919 cat >>confdefs.h <<_ACEOF
2920 #define VERSION "$VERSION"
2923 # Some tools Automake needs.
2925 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2928 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2931 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2934 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2937 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2939 # We need awk for the "check" target. The system "awk" is bad on
2941 # Always define AMTAR for backward compatibility.
2943 AMTAR=${AMTAR-"${am_missing_run}tar"}
2945 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2953 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2954 # Check whether --enable-maintainer-mode was given.
2955 if test "${enable_maintainer_mode+set}" = set; then :
2956 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2958 USE_MAINTAINER_MODE=no
2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2962 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2963 if test $USE_MAINTAINER_MODE = yes; then
2964 MAINTAINER_MODE_TRUE=
2965 MAINTAINER_MODE_FALSE='#'
2967 MAINTAINER_MODE_TRUE='#'
2968 MAINTAINER_MODE_FALSE=
2971 MAINT=$MAINTAINER_MODE_TRUE
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2978 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2983 macro_version='2.2.6b'
2984 macro_revision='1.3017'
2998 ltmain="$ac_aux_dir/ltmain.sh"
3000 # Make sure we can run config.sub.
3001 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3002 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3005 $as_echo_n "checking build system type... " >&6; }
3006 if test "${ac_cv_build+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3009 ac_build_alias=$build_alias
3010 test "x$ac_build_alias" = x &&
3011 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3012 test "x$ac_build_alias" = x &&
3013 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3014 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3015 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3019 $as_echo "$ac_cv_build" >&6; }
3020 case $ac_cv_build in
3022 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3025 ac_save_IFS=$IFS; IFS='-'
3031 # Remember, the first character of IFS is used to create $*,
3032 # except with old shells:
3035 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3039 $as_echo_n "checking host system type... " >&6; }
3040 if test "${ac_cv_host+set}" = set; then :
3041 $as_echo_n "(cached) " >&6
3043 if test "x$host_alias" = x; then
3044 ac_cv_host=$ac_cv_build
3046 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3047 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3052 $as_echo "$ac_cv_host" >&6; }
3055 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3058 ac_save_IFS=$IFS; IFS='-'
3064 # Remember, the first character of IFS is used to create $*,
3065 # except with old shells:
3068 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3071 DEPDIR="${am__leading_dot}deps"
3073 ac_config_commands="$ac_config_commands depfiles"
3076 am_make=${MAKE-make}
3077 cat > confinc << 'END'
3079 @echo this is the am__doit target
3082 # If we don't find an include directive, just comment out the code.
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3084 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3088 # First try GNU make style include.
3089 echo "include confinc" > confmf
3090 # Ignore all kinds of additional output from `make'.
3091 case `$am_make -s -f confmf 2> /dev/null` in #(
3092 *the\ am__doit\ target*)
3098 # Now try BSD make style include.
3099 if test "$am__include" = "#"; then
3100 echo '.include "confinc"' > confmf
3101 case `$am_make -s -f confmf 2> /dev/null` in #(
3102 *the\ am__doit\ target*)
3103 am__include=.include
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3112 $as_echo "$_am_result" >&6; }
3113 rm -f confinc confmf
3115 # Check whether --enable-dependency-tracking was given.
3116 if test "${enable_dependency_tracking+set}" = set; then :
3117 enableval=$enable_dependency_tracking;
3120 if test "x$enable_dependency_tracking" != xno; then
3121 am_depcomp="$ac_aux_dir/depcomp"
3124 if test "x$enable_dependency_tracking" != xno; then
3134 ac_cpp='$CPP $CPPFLAGS'
3135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3140 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if test "${ac_cv_prog_CC+set}" = set; then :
3144 $as_echo_n "(cached) " >&6
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
3155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3156 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169 $as_echo "$CC" >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3177 if test -z "$ac_cv_prog_CC"; then
3179 # Extract the first word of "gcc", so it can be a program name with args.
3180 set dummy gcc; ac_word=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3184 $as_echo_n "(cached) " >&6
3186 if test -n "$ac_ct_CC"; then
3187 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 test -z "$as_dir" && as_dir=.
3194 for ac_exec_ext in '' $ac_executable_extensions; do
3195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196 ac_cv_prog_ac_ct_CC="gcc"
3197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3206 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3207 if test -n "$ac_ct_CC"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3209 $as_echo "$ac_ct_CC" >&6; }
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212 $as_echo "no" >&6; }
3215 if test "x$ac_ct_CC" = x; then
3218 case $cross_compiling:$ac_tool_warned in
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3221 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3222 ac_tool_warned=yes ;;
3230 if test -z "$CC"; then
3231 if test -n "$ac_tool_prefix"; then
3232 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3233 set dummy ${ac_tool_prefix}cc; ac_word=$2
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3235 $as_echo_n "checking for $ac_word... " >&6; }
3236 if test "${ac_cv_prog_CC+set}" = set; then :
3237 $as_echo_n "(cached) " >&6
3239 if test -n "$CC"; then
3240 ac_cv_prog_CC="$CC" # Let the user override the test.
3242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 test -z "$as_dir" && as_dir=.
3247 for ac_exec_ext in '' $ac_executable_extensions; do
3248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3249 ac_cv_prog_CC="${ac_tool_prefix}cc"
3250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 if test -n "$CC"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3262 $as_echo "$CC" >&6; }
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3271 if test -z "$CC"; then
3272 # Extract the first word of "cc", so it can be a program name with args.
3273 set dummy cc; ac_word=$2
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3275 $as_echo_n "checking for $ac_word... " >&6; }
3276 if test "${ac_cv_prog_CC+set}" = set; then :
3277 $as_echo_n "(cached) " >&6
3279 if test -n "$CC"; then
3280 ac_cv_prog_CC="$CC" # Let the user override the test.
3283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir=.
3288 for ac_exec_ext in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3291 ac_prog_rejected=yes
3295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 if test $ac_prog_rejected = yes; then
3303 # We found a bogon in the path, so make sure we never use it.
3304 set dummy $ac_cv_prog_CC
3306 if test $# != 0; then
3307 # We chose a different compiler from the bogus one.
3308 # However, it has the same basename, so the bogon will be chosen
3309 # first if we set CC to just the basename; use the full file name.
3311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3317 if test -n "$CC"; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319 $as_echo "$CC" >&6; }
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3327 if test -z "$CC"; then
3328 if test -n "$ac_tool_prefix"; then
3329 for ac_prog in cl.exe
3331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334 $as_echo_n "checking for $ac_word... " >&6; }
3335 if test "${ac_cv_prog_CC+set}" = set; then :
3336 $as_echo_n "(cached) " >&6
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3348 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 if test -n "$CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361 $as_echo "$CC" >&6; }
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3368 test -n "$CC" && break
3371 if test -z "$CC"; then
3373 for ac_prog in cl.exe
3375 # Extract the first word of "$ac_prog", so it can be a program name with args.
3376 set dummy $ac_prog; ac_word=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3380 $as_echo_n "(cached) " >&6
3382 if test -n "$ac_ct_CC"; then
3383 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir=.
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3392 ac_cv_prog_ac_ct_CC="$ac_prog"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403 if test -n "$ac_ct_CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3405 $as_echo "$ac_ct_CC" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3412 test -n "$ac_ct_CC" && break
3415 if test "x$ac_ct_CC" = x; then
3418 case $cross_compiling:$ac_tool_warned in
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3422 ac_tool_warned=yes ;;
3431 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433 as_fn_error "no acceptable C compiler found in \$PATH
3434 See \`config.log' for more details." "$LINENO" 5; }
3436 # Provide some information about the compiler.
3437 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3440 for ac_option in --version -v -V -qversion; do
3441 { { ac_try="$ac_compiler $ac_option >&5"
3443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3444 *) ac_try_echo=$ac_try;;
3446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3447 $as_echo "$ac_try_echo"; } >&5
3448 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3450 if test -s conftest.err; then
3452 ... rest of stderr output deleted ...
3453 10q' conftest.err >conftest.er1
3454 cat conftest.er1 >&5
3455 rm -f conftest.er1 conftest.err
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }
3461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462 /* end confdefs.h. */
3467 FILE *f = fopen ("conftest.out", "w");
3468 return ferror (f) || fclose (f) != 0;
3474 ac_clean_files_save=$ac_clean_files
3475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3476 # Try to create an executable without -o first, disregard a.out.
3477 # It will help us diagnose broken compilers, and finding out an intuition
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3480 $as_echo_n "checking for C compiler default output file name... " >&6; }
3481 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3483 # The possible output files:
3484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3487 for ac_file in $ac_files
3490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3496 if { { ac_try="$ac_link_default"
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3502 $as_echo "$ac_try_echo"; } >&5
3503 (eval "$ac_link_default") 2>&5
3505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3506 test $ac_status = 0; }; then :
3507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3509 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3510 # so that the user can short-circuit this test for compilers unknown to
3512 for ac_file in $ac_files ''
3514 test -f "$ac_file" || continue
3516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3519 # We found the default executable, but exeext='' is most
3523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3525 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3527 # We set ac_cv_exeext here because the later test for it is not
3528 # safe: cross compilers may not add the suffix if given an `-o'
3529 # argument, so we may need to know it at that point already.
3530 # Even if this section looks crufty: it has the advantage of
3537 test "$ac_cv_exeext" = no && ac_cv_exeext=
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3543 $as_echo "$ac_file" >&6; }
3544 if test -z "$ac_file"; then :
3545 $as_echo "$as_me: failed program was:" >&5
3546 sed 's/^/| /' conftest.$ac_ext >&5
3548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 { as_fn_set_status 77
3551 as_fn_error "C compiler cannot create executables
3552 See \`config.log' for more details." "$LINENO" 5; }; }
3554 ac_exeext=$ac_cv_exeext
3556 # Check that the compiler produces executables we can run. If not, either
3557 # the compiler is broken, or we cross compile.
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3559 $as_echo_n "checking whether the C compiler works... " >&6; }
3560 # If not cross compiling, check that we can run a simple program.
3561 if test "$cross_compiling" != yes; then
3562 if { ac_try='./$ac_file'
3563 { { case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3568 $as_echo "$ac_try_echo"; } >&5
3569 (eval "$ac_try") 2>&5
3571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3572 test $ac_status = 0; }; }; then
3575 if test "$cross_compiling" = maybe; then
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error "cannot run C compiled programs.
3581 If you meant to cross compile, use \`--host'.
3582 See \`config.log' for more details." "$LINENO" 5; }
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3587 $as_echo "yes" >&6; }
3589 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3590 ac_clean_files=$ac_clean_files_save
3591 # Check that the compiler produces executables we can run. If not, either
3592 # the compiler is broken, or we cross compile.
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3594 $as_echo_n "checking whether we are cross compiling... " >&6; }
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3596 $as_echo "$cross_compiling" >&6; }
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3599 $as_echo_n "checking for suffix of executables... " >&6; }
3600 if { { ac_try="$ac_link"
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_link") 2>&5
3609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610 test $ac_status = 0; }; then :
3611 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3612 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3613 # work properly (i.e., refer to `conftest.exe'), while it won't with
3615 for ac_file in conftest.exe conftest conftest.*; do
3616 test -f "$ac_file" || continue
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3619 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3627 as_fn_error "cannot compute suffix of executables: cannot compile and link
3628 See \`config.log' for more details." "$LINENO" 5; }
3630 rm -f conftest$ac_cv_exeext
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3632 $as_echo "$ac_cv_exeext" >&6; }
3634 rm -f conftest.$ac_ext
3635 EXEEXT=$ac_cv_exeext
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3638 $as_echo_n "checking for suffix of object files... " >&6; }
3639 if test "${ac_cv_objext+set}" = set; then :
3640 $as_echo_n "(cached) " >&6
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3653 rm -f conftest.o conftest.obj
3654 if { { ac_try="$ac_compile"
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_compile") 2>&5
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; then :
3665 for ac_file in conftest.o conftest.obj conftest.*; do
3666 test -f "$ac_file" || continue;
3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3669 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3674 $as_echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 as_fn_error "cannot compute suffix of object files: cannot compile
3680 See \`config.log' for more details." "$LINENO" 5; }
3682 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3685 $as_echo "$ac_cv_objext" >&6; }
3686 OBJEXT=$ac_cv_objext
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3689 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3690 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3691 $as_echo_n "(cached) " >&6
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3707 if ac_fn_c_try_compile "$LINENO"; then :
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3717 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3718 if test $ac_compiler_gnu = yes; then
3723 ac_test_CFLAGS=${CFLAGS+set}
3724 ac_save_CFLAGS=$CFLAGS
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3726 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3727 if test "${ac_cv_prog_cc_g+set}" = set; then :
3728 $as_echo_n "(cached) " >&6
3730 ac_save_c_werror_flag=$ac_c_werror_flag
3731 ac_c_werror_flag=yes
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3745 if ac_fn_c_try_compile "$LINENO"; then :
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3760 if ac_fn_c_try_compile "$LINENO"; then :
3763 ac_c_werror_flag=$ac_save_c_werror_flag
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3776 if ac_fn_c_try_compile "$LINENO"; then :
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 ac_c_werror_flag=$ac_save_c_werror_flag
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3787 $as_echo "$ac_cv_prog_cc_g" >&6; }
3788 if test "$ac_test_CFLAGS" = set; then
3789 CFLAGS=$ac_save_CFLAGS
3790 elif test $ac_cv_prog_cc_g = yes; then
3791 if test "$GCC" = yes; then
3797 if test "$GCC" = yes; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3804 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3805 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3806 $as_echo_n "(cached) " >&6
3808 ac_cv_prog_cc_c89=no
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3814 #include <sys/types.h>
3815 #include <sys/stat.h>
3816 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3817 struct buf { int x; };
3818 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3819 static char *e (p, i)
3825 static char *f (char * (*g) (char **, int), char **p, ...)
3830 s = g (p, va_arg (v,int));
3835 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3836 function prototypes and stuff, but not '\xHH' hex character constants.
3837 These don't provoke an error unfortunately, instead are silently treated
3838 as 'x'. The following induces an error, until -std is added to get
3839 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3840 array size at least. It's necessary to write '\x00'==0 to get something
3841 that's true only with -std. */
3842 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3844 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3845 inside strings and character constants. */
3847 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3849 int test (int i, double x);
3850 struct s1 {int (*f) (int a);};
3851 struct s2 {int (*f) (double a);};
3852 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3858 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3863 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3864 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3866 CC="$ac_save_CC $ac_arg"
3867 if ac_fn_c_try_compile "$LINENO"; then :
3868 ac_cv_prog_cc_c89=$ac_arg
3870 rm -f core conftest.err conftest.$ac_objext
3871 test "x$ac_cv_prog_cc_c89" != "xno" && break
3873 rm -f conftest.$ac_ext
3878 case "x$ac_cv_prog_cc_c89" in
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3881 $as_echo "none needed" >&6; } ;;
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3884 $as_echo "unsupported" >&6; } ;;
3886 CC="$CC $ac_cv_prog_cc_c89"
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3888 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3890 if test "x$ac_cv_prog_cc_c89" != xno; then :
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900 depcc="$CC" am_compiler_list=
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3903 $as_echo_n "checking dependency style of $depcc... " >&6; }
3904 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3905 $as_echo_n "(cached) " >&6
3907 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3908 # We make a subdir and do the tests there. Otherwise we can end up
3909 # making bogus files that we don't know about and never remove. For
3910 # instance it was reported that on HP-UX the gcc test will end up
3911 # making a dummy file named `D' -- because `-MD' means `put the output
3914 # Copy depcomp to subdir because otherwise we won't find it if we're
3915 # using a relative directory.
3916 cp "$am_depcomp" conftest.dir
3918 # We will build objects and dependencies in a subdirectory because
3919 # it helps to detect inapplicable dependency modes. For instance
3920 # both Tru64's cc and ICC support -MD to output dependencies as a
3921 # side effect of compilation, but ICC will put the dependencies in
3922 # the current directory while Tru64 will put them in the object
3926 am_cv_CC_dependencies_compiler_type=none
3927 if test "$am_compiler_list" = ""; then
3928 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3931 case " $depcc " in #(
3932 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3935 for depmode in $am_compiler_list; do
3936 # Setup a source with many dependencies, because some compilers
3937 # like to wrap large dependency lists on column 80 (with \), and
3938 # we should not choose a depcomp mode which is confused by this.
3940 # We need to recreate these files for each test, as the compiler may
3941 # overwrite some of them when testing with obscure command lines.
3942 # This happens at least with the AIX C compiler.
3944 for i in 1 2 3 4 5 6; do
3945 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3946 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3947 # Solaris 8's {/usr,}/bin/sh.
3948 touch sub/conftst$i.h
3950 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3952 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3953 # mode. It turns out that the SunPro C++ compiler does not properly
3954 # handle `-M -o', and we need to detect this. Also, some Intel
3955 # versions had trouble with output in subdirs
3956 am__obj=sub/conftest.${OBJEXT-o}
3957 am__minus_obj="-o $am__obj"
3960 # This depmode causes a compiler race in universal mode.
3961 test "$am__universal" = false || continue
3964 # after this tag, mechanisms are not by side-effect, so they'll
3965 # only be used when explicitly requested
3966 if test "x$enable_dependency_tracking" = xyes; then
3972 msvisualcpp | msvcmsys)
3973 # This compiler won't grok `-c -o', but also, the minuso test has
3974 # not run yet. These depmodes are late enough in the game, and
3975 # so weak that their functioning should not be impacted.
3976 am__obj=conftest.${OBJEXT-o}
3981 if depmode=$depmode \
3982 source=sub/conftest.c object=$am__obj \
3983 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3984 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3985 >/dev/null 2>conftest.err &&
3986 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3987 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3988 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3989 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3990 # icc doesn't choke on unknown options, it will just issue warnings
3991 # or remarks (even with -Werror). So we grep stderr for any message
3992 # that says an option was ignored or not supported.
3993 # When given -MP, icc 7.0 and 7.1 complain thusly:
3994 # icc: Command line warning: ignoring option '-M'; no argument required
3995 # The diagnosis changed in icc 8.0:
3996 # icc: Command line remark: option '-MP' not supported
3997 if (grep 'ignoring option' conftest.err ||
3998 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3999 am_cv_CC_dependencies_compiler_type=$depmode
4008 am_cv_CC_dependencies_compiler_type=none
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4013 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4014 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4017 test "x$enable_dependency_tracking" != xno \
4018 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4020 am__fastdepCC_FALSE='#'
4022 am__fastdepCC_TRUE='#'
4023 am__fastdepCC_FALSE=
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4028 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4029 if test "${ac_cv_path_SED+set}" = set; then :
4030 $as_echo_n "(cached) " >&6
4032 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4033 for ac_i in 1 2 3 4 5 6 7; do
4034 ac_script="$ac_script$as_nl$ac_script"
4036 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4037 { ac_script=; unset ac_script;}
4038 if test -z "$SED"; then
4039 ac_path_SED_found=false
4040 # Loop through the user's path and test for each of PROGNAME-LIST
4041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 test -z "$as_dir" && as_dir=.
4046 for ac_prog in sed gsed; do
4047 for ac_exec_ext in '' $ac_executable_extensions; do
4048 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4049 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4050 # Check for GNU ac_path_SED and select it if it is found.
4051 # Check for GNU $ac_path_SED
4052 case `"$ac_path_SED" --version 2>&1` in
4054 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4057 $as_echo_n 0123456789 >"conftest.in"
4060 cat "conftest.in" "conftest.in" >"conftest.tmp"
4061 mv "conftest.tmp" "conftest.in"
4062 cp "conftest.in" "conftest.nl"
4063 $as_echo '' >> "conftest.nl"
4064 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4065 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4066 as_fn_arith $ac_count + 1 && ac_count=$as_val
4067 if test $ac_count -gt ${ac_path_SED_max-0}; then
4068 # Best one so far, save it but keep looking for a better one
4069 ac_cv_path_SED="$ac_path_SED"
4070 ac_path_SED_max=$ac_count
4072 # 10*(2^10) chars as input seems more than enough
4073 test $ac_count -gt 10 && break
4075 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4078 $ac_path_SED_found && break 3
4083 if test -z "$ac_cv_path_SED"; then
4084 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4092 $as_echo "$ac_cv_path_SED" >&6; }
4093 SED="$ac_cv_path_SED"
4096 test -z "$SED" && SED=sed
4097 Xsed="$SED -e 1s/^X//"
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4110 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4111 if test "${ac_cv_path_GREP+set}" = set; then :
4112 $as_echo_n "(cached) " >&6
4114 if test -z "$GREP"; then
4115 ac_path_GREP_found=false
4116 # Loop through the user's path and test for each of PROGNAME-LIST
4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4118 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4121 test -z "$as_dir" && as_dir=.
4122 for ac_prog in grep ggrep; do
4123 for ac_exec_ext in '' $ac_executable_extensions; do
4124 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4125 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4126 # Check for GNU ac_path_GREP and select it if it is found.
4127 # Check for GNU $ac_path_GREP
4128 case `"$ac_path_GREP" --version 2>&1` in
4130 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4133 $as_echo_n 0123456789 >"conftest.in"
4136 cat "conftest.in" "conftest.in" >"conftest.tmp"
4137 mv "conftest.tmp" "conftest.in"
4138 cp "conftest.in" "conftest.nl"
4139 $as_echo 'GREP' >> "conftest.nl"
4140 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4142 as_fn_arith $ac_count + 1 && ac_count=$as_val
4143 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4144 # Best one so far, save it but keep looking for a better one
4145 ac_cv_path_GREP="$ac_path_GREP"
4146 ac_path_GREP_max=$ac_count
4148 # 10*(2^10) chars as input seems more than enough
4149 test $ac_count -gt 10 && break
4151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4154 $ac_path_GREP_found && break 3
4159 if test -z "$ac_cv_path_GREP"; then
4160 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4163 ac_cv_path_GREP=$GREP
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4168 $as_echo "$ac_cv_path_GREP" >&6; }
4169 GREP="$ac_cv_path_GREP"
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4173 $as_echo_n "checking for egrep... " >&6; }
4174 if test "${ac_cv_path_EGREP+set}" = set; then :
4175 $as_echo_n "(cached) " >&6
4177 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4178 then ac_cv_path_EGREP="$GREP -E"
4180 if test -z "$EGREP"; then
4181 ac_path_EGREP_found=false
4182 # Loop through the user's path and test for each of PROGNAME-LIST
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4187 test -z "$as_dir" && as_dir=.
4188 for ac_prog in egrep; do
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4191 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4192 # Check for GNU ac_path_EGREP and select it if it is found.
4193 # Check for GNU $ac_path_EGREP
4194 case `"$ac_path_EGREP" --version 2>&1` in
4196 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4199 $as_echo_n 0123456789 >"conftest.in"
4202 cat "conftest.in" "conftest.in" >"conftest.tmp"
4203 mv "conftest.tmp" "conftest.in"
4204 cp "conftest.in" "conftest.nl"
4205 $as_echo 'EGREP' >> "conftest.nl"
4206 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4208 as_fn_arith $ac_count + 1 && ac_count=$as_val
4209 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4210 # Best one so far, save it but keep looking for a better one
4211 ac_cv_path_EGREP="$ac_path_EGREP"
4212 ac_path_EGREP_max=$ac_count
4214 # 10*(2^10) chars as input seems more than enough
4215 test $ac_count -gt 10 && break
4217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4220 $ac_path_EGREP_found && break 3
4225 if test -z "$ac_cv_path_EGREP"; then
4226 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4229 ac_cv_path_EGREP=$EGREP
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4235 $as_echo "$ac_cv_path_EGREP" >&6; }
4236 EGREP="$ac_cv_path_EGREP"
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4240 $as_echo_n "checking for fgrep... " >&6; }
4241 if test "${ac_cv_path_FGREP+set}" = set; then :
4242 $as_echo_n "(cached) " >&6
4244 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4245 then ac_cv_path_FGREP="$GREP -F"
4247 if test -z "$FGREP"; then
4248 ac_path_FGREP_found=false
4249 # Loop through the user's path and test for each of PROGNAME-LIST
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4254 test -z "$as_dir" && as_dir=.
4255 for ac_prog in fgrep; do
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4258 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4259 # Check for GNU ac_path_FGREP and select it if it is found.
4260 # Check for GNU $ac_path_FGREP
4261 case `"$ac_path_FGREP" --version 2>&1` in
4263 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4266 $as_echo_n 0123456789 >"conftest.in"
4269 cat "conftest.in" "conftest.in" >"conftest.tmp"
4270 mv "conftest.tmp" "conftest.in"
4271 cp "conftest.in" "conftest.nl"
4272 $as_echo 'FGREP' >> "conftest.nl"
4273 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4274 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4275 as_fn_arith $ac_count + 1 && ac_count=$as_val
4276 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4277 # Best one so far, save it but keep looking for a better one
4278 ac_cv_path_FGREP="$ac_path_FGREP"
4279 ac_path_FGREP_max=$ac_count
4281 # 10*(2^10) chars as input seems more than enough
4282 test $ac_count -gt 10 && break
4284 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4287 $ac_path_FGREP_found && break 3
4292 if test -z "$ac_cv_path_FGREP"; then
4293 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4296 ac_cv_path_FGREP=$FGREP
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4302 $as_echo "$ac_cv_path_FGREP" >&6; }
4303 FGREP="$ac_cv_path_FGREP"
4306 test -z "$GREP" && GREP=grep
4326 # Check whether --with-gnu-ld was given.
4327 if test "${with_gnu_ld+set}" = set; then :
4328 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4334 if test "$GCC" = yes; then
4335 # Check if gcc -print-prog-name=ld gives a path.
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4337 $as_echo_n "checking for ld used by $CC... " >&6; }
4340 # gcc leaves a trailing carriage return which upsets mingw
4341 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4343 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4346 # Accept absolute paths.
4348 re_direlt='/[^/][^/]*/\.\./'
4349 # Canonicalize the pathname of ld
4350 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4351 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4352 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4354 test -z "$LD" && LD="$ac_prog"
4357 # If it fails, then pretend we aren't using GCC.
4361 # If it is relative, then search for the first ld in PATH.
4365 elif test "$with_gnu_ld" = yes; then
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4367 $as_echo_n "checking for GNU ld... " >&6; }
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4370 $as_echo_n "checking for non-GNU ld... " >&6; }
4372 if test "${lt_cv_path_LD+set}" = set; then :
4373 $as_echo_n "(cached) " >&6
4375 if test -z "$LD"; then
4376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4377 for ac_dir in $PATH; do
4379 test -z "$ac_dir" && ac_dir=.
4380 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4381 lt_cv_path_LD="$ac_dir/$ac_prog"
4382 # Check to see if the program is GNU ld. I'd rather use --version,
4383 # but apparently some variants of GNU ld only accept -v.
4384 # Break only if it was the GNU/non-GNU ld that we prefer.
4385 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4386 *GNU* | *'with BFD'*)
4387 test "$with_gnu_ld" != no && break
4390 test "$with_gnu_ld" != yes && break
4397 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4402 if test -n "$LD"; then
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4404 $as_echo "$LD" >&6; }
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407 $as_echo "no" >&6; }
4409 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4411 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4412 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4415 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4416 case `$LD -v 2>&1 </dev/null` in
4417 *GNU* | *'with BFD'*)
4418 lt_cv_prog_gnu_ld=yes
4421 lt_cv_prog_gnu_ld=no
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4426 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4427 with_gnu_ld=$lt_cv_prog_gnu_ld
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4438 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4439 if test "${lt_cv_path_NM+set}" = set; then :
4440 $as_echo_n "(cached) " >&6
4442 if test -n "$NM"; then
4443 # Let the user override the test.
4446 lt_nm_to_check="${ac_tool_prefix}nm"
4447 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4448 lt_nm_to_check="$lt_nm_to_check nm"
4450 for lt_tmp_nm in $lt_nm_to_check; do
4451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4452 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4454 test -z "$ac_dir" && ac_dir=.
4455 tmp_nm="$ac_dir/$lt_tmp_nm"
4456 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4457 # Check to see if the nm accepts a BSD-compat flag.
4458 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4459 # nm: unknown option "B" ignored
4460 # Tru64's nm complains that /dev/null is an invalid object file
4461 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4462 */dev/null* | *'Invalid file or object type'*)
4463 lt_cv_path_NM="$tmp_nm -B"
4467 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4469 lt_cv_path_NM="$tmp_nm -p"
4473 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4474 continue # so that we can try to find one that supports BSD flags
4483 : ${lt_cv_path_NM=no}
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4487 $as_echo "$lt_cv_path_NM" >&6; }
4488 if test "$lt_cv_path_NM" != "no"; then
4491 # Didn't find any BSD compatible name lister, look for dumpbin.
4492 if test -n "$ac_tool_prefix"; then
4493 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4495 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4496 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4502 if test -n "$DUMPBIN"; then
4503 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 DUMPBIN=$ac_cv_prog_DUMPBIN
4523 if test -n "$DUMPBIN"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4525 $as_echo "$DUMPBIN" >&6; }
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4532 test -n "$DUMPBIN" && break
4535 if test -z "$DUMPBIN"; then
4536 ac_ct_DUMPBIN=$DUMPBIN
4537 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4539 # Extract the first word of "$ac_prog", so it can be a program name with args.
4540 set dummy $ac_prog; ac_word=$2
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4542 $as_echo_n "checking for $ac_word... " >&6; }
4543 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4544 $as_echo_n "(cached) " >&6
4546 if test -n "$ac_ct_DUMPBIN"; then
4547 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4556 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4567 if test -n "$ac_ct_DUMPBIN"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4569 $as_echo "$ac_ct_DUMPBIN" >&6; }
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4576 test -n "$ac_ct_DUMPBIN" && break
4579 if test "x$ac_ct_DUMPBIN" = x; then
4582 case $cross_compiling:$ac_tool_warned in
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4586 ac_tool_warned=yes ;;
4588 DUMPBIN=$ac_ct_DUMPBIN
4593 if test "$DUMPBIN" != ":"; then
4597 test -z "$NM" && NM=nm
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4605 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4606 if test "${lt_cv_nm_interface+set}" = set; then :
4607 $as_echo_n "(cached) " >&6
4609 lt_cv_nm_interface="BSD nm"
4610 echo "int some_variable = 0;" > conftest.$ac_ext
4611 (eval echo "\"\$as_me:4611: $ac_compile\"" >&5)
4612 (eval "$ac_compile" 2>conftest.err)
4613 cat conftest.err >&5
4614 (eval echo "\"\$as_me:4614: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4615 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4616 cat conftest.err >&5
4617 (eval echo "\"\$as_me:4617: output\"" >&5)
4618 cat conftest.out >&5
4619 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4620 lt_cv_nm_interface="MS dumpbin"
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4625 $as_echo "$lt_cv_nm_interface" >&6; }
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4628 $as_echo_n "checking whether ln -s works... " >&6; }
4630 if test "$LN_S" = "ln -s"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4632 $as_echo "yes" >&6; }
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4635 $as_echo "no, using $LN_S" >&6; }
4638 # find the maximum length of command line arguments
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4640 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4641 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4649 # On DJGPP, this test can blow up pretty badly due to problems in libc
4650 # (any single argument exceeding 2000 bytes causes a buffer overrun
4651 # during glob expansion). Even if it were fixed, the result of this
4652 # check would be larger than it should be.
4653 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4657 # Under GNU Hurd, this test is not required because there is
4658 # no limit to the length of command line arguments.
4659 # Libtool will interpret -1 as no limit whatsoever
4660 lt_cv_sys_max_cmd_len=-1;
4663 cygwin* | mingw* | cegcc*)
4664 # On Win9x/ME, this test blows up -- it succeeds, but takes
4665 # about 5 minutes as the teststring grows exponentially.
4666 # Worse, since 9x/ME are not pre-emptively multitasking,
4667 # you end up with a "frozen" computer, even though with patience
4668 # the test eventually succeeds (with a max line length of 256k).
4669 # Instead, let's just punt: use the minimum linelength reported by
4670 # all of the supported platforms: 8192 (on NT/2K/XP).
4671 lt_cv_sys_max_cmd_len=8192;
4675 # On AmigaOS with pdksh, this test takes hours, literally.
4676 # So we just punt and use a minimum line length of 8192.
4677 lt_cv_sys_max_cmd_len=8192;
4680 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4681 # This has been around since 386BSD, at least. Likely further.
4682 if test -x /sbin/sysctl; then
4683 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4684 elif test -x /usr/sbin/sysctl; then
4685 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4687 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4689 # And add a safety zone
4690 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4695 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4696 lt_cv_sys_max_cmd_len=196608
4700 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4701 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4702 # nice to cause kernel panics so lets avoid the loop below.
4703 # First set a reasonable default.
4704 lt_cv_sys_max_cmd_len=16384
4706 if test -x /sbin/sysconfig; then
4707 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4708 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4713 lt_cv_sys_max_cmd_len=102400
4715 sysv5* | sco5v6* | sysv4.2uw2*)
4716 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4717 if test -n "$kargmax"; then
4718 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4720 lt_cv_sys_max_cmd_len=32768
4724 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4725 if test -n "$lt_cv_sys_max_cmd_len"; then
4726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4727 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4729 # Make teststring a little bigger before we do anything with it.
4730 # a 1K string should be a reasonable start.
4731 for i in 1 2 3 4 5 6 7 8 ; do
4732 teststring=$teststring$teststring
4734 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4735 # If test is not a shell built-in, we'll probably end up computing a
4736 # maximum length that is only half of the actual maximum length, but
4738 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4739 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4740 test $i != 17 # 1/2 MB should be enough
4743 teststring=$teststring$teststring
4745 # Only check the string length outside the loop.
4746 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4748 # Add a significant safety factor because C++ compilers can tack on
4749 # massive amounts of additional arguments before passing them to the
4750 # linker. It appears as though 1/2 is a usable value.
4751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4758 if test -n $lt_cv_sys_max_cmd_len ; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4760 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4763 $as_echo "none" >&6; }
4765 max_cmd_len=$lt_cv_sys_max_cmd_len
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4777 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4778 # Try some XSI features
4781 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4783 && eval 'test $(( 1 + 1 )) -eq 2 \
4784 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4787 $as_echo "$xsi_shell" >&6; }
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4791 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4793 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4795 && lt_shell_append=yes
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4797 $as_echo "$lt_shell_append" >&6; }
4800 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4810 # test EBCDIC or ASCII
4811 case `echo X|tr X '\101'` in
4812 A) # ASCII based system
4813 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4814 lt_SP2NL='tr \040 \012'
4815 lt_NL2SP='tr \015\012 \040\040'
4817 *) # EBCDIC based system
4818 lt_SP2NL='tr \100 \n'
4819 lt_NL2SP='tr \r\n \100\100'
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4832 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4833 if test "${lt_cv_ld_reload_flag+set}" = set; then :
4834 $as_echo_n "(cached) " >&6
4836 lt_cv_ld_reload_flag='-r'
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4839 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4840 reload_flag=$lt_cv_ld_reload_flag
4841 case $reload_flag in
4843 *) reload_flag=" $reload_flag" ;;
4845 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4848 if test "$GCC" = yes; then
4849 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4851 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4864 if test -n "$ac_tool_prefix"; then
4865 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4866 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4868 $as_echo_n "checking for $ac_word... " >&6; }
4869 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4870 $as_echo_n "(cached) " >&6
4872 if test -n "$OBJDUMP"; then
4873 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 OBJDUMP=$ac_cv_prog_OBJDUMP
4893 if test -n "$OBJDUMP"; then
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4895 $as_echo "$OBJDUMP" >&6; }
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4898 $as_echo "no" >&6; }
4903 if test -z "$ac_cv_prog_OBJDUMP"; then
4904 ac_ct_OBJDUMP=$OBJDUMP
4905 # Extract the first word of "objdump", so it can be a program name with args.
4906 set dummy objdump; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
4910 $as_echo_n "(cached) " >&6
4912 if test -n "$ac_ct_OBJDUMP"; then
4913 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4922 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4932 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4933 if test -n "$ac_ct_OBJDUMP"; then
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4935 $as_echo "$ac_ct_OBJDUMP" >&6; }
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4941 if test "x$ac_ct_OBJDUMP" = x; then
4944 case $cross_compiling:$ac_tool_warned in
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4948 ac_tool_warned=yes ;;
4950 OBJDUMP=$ac_ct_OBJDUMP
4953 OBJDUMP="$ac_cv_prog_OBJDUMP"
4956 test -z "$OBJDUMP" && OBJDUMP=objdump
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4967 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4968 if test "${lt_cv_deplibs_check_method+set}" = set; then :
4969 $as_echo_n "(cached) " >&6
4971 lt_cv_file_magic_cmd='$MAGIC_CMD'
4972 lt_cv_file_magic_test_file=
4973 lt_cv_deplibs_check_method='unknown'
4974 # Need to set the preceding variable on all platforms that support
4975 # interlibrary dependencies.
4976 # 'none' -- dependencies not supported.
4977 # `unknown' -- same as none, but documents that we really don't know.
4978 # 'pass_all' -- all dependencies passed with no checks.
4979 # 'test_compile' -- check by making test program.
4980 # 'file_magic [[regex]]' -- check by looking for files in library path
4981 # which responds to the $file_magic_cmd with a given extended regex.
4982 # If you have `file' or equivalent on your system and you're not sure
4983 # whether `pass_all' will *always* work, you probably want this one.
4987 lt_cv_deplibs_check_method=pass_all
4991 lt_cv_deplibs_check_method=pass_all
4995 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4996 lt_cv_file_magic_cmd='/usr/bin/file -L'
4997 lt_cv_file_magic_test_file=/shlib/libc.so
5001 # func_win32_libid is a shell function defined in ltmain.sh
5002 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5003 lt_cv_file_magic_cmd='func_win32_libid'
5007 # Base MSYS/MinGW do not provide the 'file' command needed by
5008 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5009 # unless we find 'file', for example because we are cross-compiling.
5010 if ( file / ) >/dev/null 2>&1; then
5011 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5012 lt_cv_file_magic_cmd='func_win32_libid'
5014 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5015 lt_cv_file_magic_cmd='$OBJDUMP -f'
5020 # use the weaker test based on 'objdump'. See mingw*.
5021 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5022 lt_cv_file_magic_cmd='$OBJDUMP -f'
5025 darwin* | rhapsody*)
5026 lt_cv_deplibs_check_method=pass_all
5029 freebsd* | dragonfly*)
5030 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5033 # Not sure whether the presence of OpenBSD here was a mistake.
5034 # Let's accept both of them until this is cleared up.
5035 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5036 lt_cv_file_magic_cmd=/usr/bin/file
5037 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5041 lt_cv_deplibs_check_method=pass_all
5046 lt_cv_deplibs_check_method=pass_all
5049 hpux10.20* | hpux11*)
5050 lt_cv_file_magic_cmd=/usr/bin/file
5053 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5054 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5057 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5058 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5061 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5062 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5068 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5072 irix5* | irix6* | nonstopux*)
5074 *-32|*"-32 ") libmagic=32-bit;;
5075 *-n32|*"-n32 ") libmagic=N32;;
5076 *-64|*"-64 ") libmagic=64-bit;;
5077 *) libmagic=never-match;;
5079 lt_cv_deplibs_check_method=pass_all
5082 # This must be Linux ELF.
5083 linux* | k*bsd*-gnu)
5084 lt_cv_deplibs_check_method=pass_all
5088 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5089 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5091 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5097 lt_cv_file_magic_cmd=/usr/bin/file
5098 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5102 lt_cv_deplibs_check_method=pass_all
5106 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5113 osf3* | osf4* | osf5*)
5114 lt_cv_deplibs_check_method=pass_all
5118 lt_cv_deplibs_check_method=pass_all
5122 lt_cv_deplibs_check_method=pass_all
5125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5126 lt_cv_deplibs_check_method=pass_all
5130 case $host_vendor in
5132 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]'
5133 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5136 lt_cv_deplibs_check_method=pass_all
5139 lt_cv_file_magic_cmd='/bin/file'
5140 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5143 lt_cv_file_magic_cmd='/bin/file'
5144 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5145 lt_cv_file_magic_test_file=/lib/libc.so
5148 lt_cv_deplibs_check_method=pass_all
5151 lt_cv_deplibs_check_method=pass_all
5157 lt_cv_deplibs_check_method=pass_all
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5163 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5164 file_magic_cmd=$lt_cv_file_magic_cmd
5165 deplibs_check_method=$lt_cv_deplibs_check_method
5166 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5179 if test -n "$ac_tool_prefix"; then
5180 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5181 set dummy ${ac_tool_prefix}ar; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if test "${ac_cv_prog_AR+set}" = set; then :
5185 $as_echo_n "(cached) " >&6
5187 if test -n "$AR"; then
5188 ac_cv_prog_AR="$AR" # Let the user override the test.
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_prog_AR="${ac_tool_prefix}ar"
5198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5208 if test -n "$AR"; then
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5210 $as_echo "$AR" >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213 $as_echo "no" >&6; }
5218 if test -z "$ac_cv_prog_AR"; then
5220 # Extract the first word of "ar", so it can be a program name with args.
5221 set dummy ar; ac_word=$2
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223 $as_echo_n "checking for $ac_word... " >&6; }
5224 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5225 $as_echo_n "(cached) " >&6
5227 if test -n "$ac_ct_AR"; then
5228 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5237 ac_cv_prog_ac_ct_AR="ar"
5238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5248 if test -n "$ac_ct_AR"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5250 $as_echo "$ac_ct_AR" >&6; }
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253 $as_echo "no" >&6; }
5256 if test "x$ac_ct_AR" = x; then
5259 case $cross_compiling:$ac_tool_warned in
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5263 ac_tool_warned=yes ;;
5271 test -z "$AR" && AR=ar
5272 test -z "$AR_FLAGS" && AR_FLAGS=cru
5284 if test -n "$ac_tool_prefix"; then
5285 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5286 set dummy ${ac_tool_prefix}strip; ac_word=$2
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5288 $as_echo_n "checking for $ac_word... " >&6; }
5289 if test "${ac_cv_prog_STRIP+set}" = set; then :
5290 $as_echo_n "(cached) " >&6
5292 if test -n "$STRIP"; then
5293 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 STRIP=$ac_cv_prog_STRIP
5313 if test -n "$STRIP"; then
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5315 $as_echo "$STRIP" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5323 if test -z "$ac_cv_prog_STRIP"; then
5325 # Extract the first word of "strip", so it can be a program name with args.
5326 set dummy strip; ac_word=$2
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 $as_echo_n "checking for $ac_word... " >&6; }
5329 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5330 $as_echo_n "(cached) " >&6
5332 if test -n "$ac_ct_STRIP"; then
5333 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 test -z "$as_dir" && as_dir=.
5340 for ac_exec_ext in '' $ac_executable_extensions; do
5341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342 ac_cv_prog_ac_ct_STRIP="strip"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5353 if test -n "$ac_ct_STRIP"; then
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5355 $as_echo "$ac_ct_STRIP" >&6; }
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358 $as_echo "no" >&6; }
5361 if test "x$ac_ct_STRIP" = x; then
5364 case $cross_compiling:$ac_tool_warned in
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5368 ac_tool_warned=yes ;;
5373 STRIP="$ac_cv_prog_STRIP"
5376 test -z "$STRIP" && STRIP=:
5383 if test -n "$ac_tool_prefix"; then
5384 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5385 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5391 if test -n "$RANLIB"; then
5392 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5401 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411 RANLIB=$ac_cv_prog_RANLIB
5412 if test -n "$RANLIB"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5414 $as_echo "$RANLIB" >&6; }
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5422 if test -z "$ac_cv_prog_RANLIB"; then
5423 ac_ct_RANLIB=$RANLIB
5424 # Extract the first word of "ranlib", so it can be a program name with args.
5425 set dummy ranlib; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5429 $as_echo_n "(cached) " >&6
5431 if test -n "$ac_ct_RANLIB"; then
5432 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5438 test -z "$as_dir" && as_dir=.
5439 for ac_exec_ext in '' $ac_executable_extensions; do
5440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5441 ac_cv_prog_ac_ct_RANLIB="ranlib"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5452 if test -n "$ac_ct_RANLIB"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5454 $as_echo "$ac_ct_RANLIB" >&6; }
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5460 if test "x$ac_ct_RANLIB" = x; then
5463 case $cross_compiling:$ac_tool_warned in
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5467 ac_tool_warned=yes ;;
5469 RANLIB=$ac_ct_RANLIB
5472 RANLIB="$ac_cv_prog_RANLIB"
5475 test -z "$RANLIB" && RANLIB=:
5482 # Determine commands to create old-style static archives.
5483 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5484 old_postinstall_cmds='chmod 644 $oldlib'
5485 old_postuninstall_cmds=
5487 if test -n "$RANLIB"; then
5490 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5493 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5496 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5532 # If no C compiler was specified, use CC.
5535 # If no C compiler flags were specified, use CFLAGS.
5536 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5538 # Allow CC to be a program name with arguments.
5542 # Check for command to grab the raw symbol name followed by C symbol from nm.
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5544 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5545 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5546 $as_echo_n "(cached) " >&6
5549 # These are sane defaults that work on at least a few old systems.
5550 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5552 # Character class describing NM global symbol codes.
5553 symcode='[BCDEGRST]'
5555 # Regexp to match symbols that can be accessed directly from C.
5556 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5558 # Define system-specific variables.
5563 cygwin* | mingw* | pw32* | cegcc*)
5564 symcode='[ABCDGISTW]'
5567 if test "$host_cpu" = ia64; then
5568 symcode='[ABCDEGRST]'
5572 symcode='[BCDEGRST]'
5575 symcode='[BCDEGQRST]'
5586 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5594 # If we're using GNU nm, then use its standard symbol codes.
5595 case `$NM -V 2>&1` in
5596 *GNU* | *'with BFD'*)
5597 symcode='[ABCDGIRSTW]' ;;
5600 # Transform an extracted symbol line into a proper C declaration.
5601 # Some systems (esp. on ia64) link data and code symbols differently,
5602 # so use this general approach.
5603 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5605 # Transform an extracted symbol line into symbol name and symbol address
5606 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5607 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'"
5609 # Handle CRLF in mingw tool chain
5613 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5617 # Try without a prefix underscore, then with it.
5618 for ac_symprfx in "" "_"; do
5620 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5621 symxfrm="\\1 $ac_symprfx\\2 \\2"
5623 # Write the raw and C identifiers.
5624 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5625 # Fake it for dumpbin and say T for any non-static function
5626 # and D for any global variable.
5627 # Also find C++ and __fastcall symbols from MSVC++,
5628 # which start with @ or ?.
5629 lt_cv_sys_global_symbol_pipe="$AWK '"\
5630 " {last_section=section; section=\$ 3};"\
5631 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5632 " \$ 0!~/External *\|/{next};"\
5633 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5634 " {if(hide[section]) next};"\
5635 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5636 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5637 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5638 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5639 " ' prfx=^$ac_symprfx"
5641 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5644 # Check to see that the pipe works correctly.
5648 cat > conftest.$ac_ext <<_LT_EOF
5653 void nm_test_func(void);
5654 void nm_test_func(void){}
5658 int main(){nm_test_var='a';nm_test_func();return(0);}
5661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5662 (eval $ac_compile) 2>&5
5664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5665 test $ac_status = 0; }; then
5666 # Now try to grab the symbols.
5668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5669 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5672 test $ac_status = 0; } && test -s "$nlist"; then
5673 # Try sorting and uniquifying the output.
5674 if sort "$nlist" | uniq > "$nlist"T; then
5675 mv -f "$nlist"T "$nlist"
5680 # Make sure that we snagged all the symbols we need.
5681 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5682 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5683 cat <<_LT_EOF > conftest.$ac_ext
5689 # Now generate the symbol file.
5690 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5692 cat <<_LT_EOF >> conftest.$ac_ext
5694 /* The mapping between symbol names and symbols. */
5699 lt__PROGRAM__LTX_preloaded_symbols[] =
5701 { "@PROGRAM@", (void *) 0 },
5703 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5704 cat <<\_LT_EOF >> conftest.$ac_ext
5708 /* This works around a problem in FreeBSD linker */
5709 #ifdef FREEBSD_WORKAROUND
5710 static const void *lt_preloaded_setup() {
5711 return lt__PROGRAM__LTX_preloaded_symbols;
5719 # Now try linking the two files.
5720 mv conftest.$ac_objext conftstm.$ac_objext
5721 lt_save_LIBS="$LIBS"
5722 lt_save_CFLAGS="$CFLAGS"
5723 LIBS="conftstm.$ac_objext"
5724 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5726 (eval $ac_link) 2>&5
5728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5729 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5732 LIBS="$lt_save_LIBS"
5733 CFLAGS="$lt_save_CFLAGS"
5735 echo "cannot find nm_test_func in $nlist" >&5
5738 echo "cannot find nm_test_var in $nlist" >&5
5741 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5744 echo "$progname: failed program was:" >&5
5745 cat conftest.$ac_ext >&5
5747 rm -rf conftest* conftst*
5749 # Do not use the global_symbol_pipe unless it works.
5750 if test "$pipe_works" = yes; then
5753 lt_cv_sys_global_symbol_pipe=
5759 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5760 lt_cv_sys_global_symbol_to_cdecl=
5762 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5764 $as_echo "failed" >&6; }
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5767 $as_echo "ok" >&6; }
5792 # Check whether --enable-libtool-lock was given.
5793 if test "${enable_libtool_lock+set}" = set; then :
5794 enableval=$enable_libtool_lock;
5797 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5799 # Some flags need to be propagated to the compiler or linker for good
5803 # Find out which ABI we are using.
5804 echo 'int i;' > conftest.$ac_ext
5805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5806 (eval $ac_compile) 2>&5
5808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5809 test $ac_status = 0; }; then
5810 case `/usr/bin/file conftest.$ac_objext` in
5822 # Find out which ABI we are using.
5823 echo '#line 5823 "configure"' > conftest.$ac_ext
5824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5825 (eval $ac_compile) 2>&5
5827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5828 test $ac_status = 0; }; then
5829 if test "$lt_cv_prog_gnu_ld" = yes; then
5830 case `/usr/bin/file conftest.$ac_objext` in
5832 LD="${LD-ld} -melf32bsmip"
5835 LD="${LD-ld} -melf32bmipn32"
5838 LD="${LD-ld} -melf64bmip"
5842 case `/usr/bin/file conftest.$ac_objext` in
5858 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5859 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5860 # Find out which ABI we are using.
5861 echo 'int i;' > conftest.$ac_ext
5862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5863 (eval $ac_compile) 2>&5
5865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5866 test $ac_status = 0; }; then
5867 case `/usr/bin/file conftest.o` in
5870 x86_64-*kfreebsd*-gnu)
5871 LD="${LD-ld} -m elf_i386_fbsd"
5874 LD="${LD-ld} -m elf_i386"
5876 ppc64-*linux*|powerpc64-*linux*)
5877 LD="${LD-ld} -m elf32ppclinux"
5880 LD="${LD-ld} -m elf_s390"
5883 LD="${LD-ld} -m elf32_sparc"
5889 x86_64-*kfreebsd*-gnu)
5890 LD="${LD-ld} -m elf_x86_64_fbsd"
5893 LD="${LD-ld} -m elf_x86_64"
5895 ppc*-*linux*|powerpc*-*linux*)
5896 LD="${LD-ld} -m elf64ppc"
5898 s390*-*linux*|s390*-*tpf*)
5899 LD="${LD-ld} -m elf64_s390"
5902 LD="${LD-ld} -m elf64_sparc"
5912 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5913 SAVE_CFLAGS="$CFLAGS"
5914 CFLAGS="$CFLAGS -belf"
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5916 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5917 if test "${lt_cv_cc_needs_belf+set}" = set; then :
5918 $as_echo_n "(cached) " >&6
5921 ac_cpp='$CPP $CPPFLAGS'
5922 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5923 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5924 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5937 if ac_fn_c_try_link "$LINENO"; then :
5938 lt_cv_cc_needs_belf=yes
5940 lt_cv_cc_needs_belf=no
5942 rm -f core conftest.err conftest.$ac_objext \
5943 conftest$ac_exeext conftest.$ac_ext
5945 ac_cpp='$CPP $CPPFLAGS'
5946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5952 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5953 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5954 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5955 CFLAGS="$SAVE_CFLAGS"
5959 # Find out which ABI we are using.
5960 echo 'int i;' > conftest.$ac_ext
5961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5962 (eval $ac_compile) 2>&5
5964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5965 test $ac_status = 0; }; then
5966 case `/usr/bin/file conftest.o` in
5968 case $lt_cv_prog_gnu_ld in
5969 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5971 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
5983 need_locks="$enable_libtool_lock"
5987 rhapsody* | darwin*)
5988 if test -n "$ac_tool_prefix"; then
5989 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
5990 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5992 $as_echo_n "checking for $ac_word... " >&6; }
5993 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
5994 $as_echo_n "(cached) " >&6
5996 if test -n "$DSYMUTIL"; then
5997 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
5999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6003 test -z "$as_dir" && as_dir=.
6004 for ac_exec_ext in '' $ac_executable_extensions; do
6005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6006 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6016 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6017 if test -n "$DSYMUTIL"; then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6019 $as_echo "$DSYMUTIL" >&6; }
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6022 $as_echo "no" >&6; }
6027 if test -z "$ac_cv_prog_DSYMUTIL"; then
6028 ac_ct_DSYMUTIL=$DSYMUTIL
6029 # Extract the first word of "dsymutil", so it can be a program name with args.
6030 set dummy dsymutil; ac_word=$2
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6034 $as_echo_n "(cached) " >&6
6036 if test -n "$ac_ct_DSYMUTIL"; then
6037 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6057 if test -n "$ac_ct_DSYMUTIL"; then
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6059 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6062 $as_echo "no" >&6; }
6065 if test "x$ac_ct_DSYMUTIL" = x; then
6068 case $cross_compiling:$ac_tool_warned in
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6071 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6072 ac_tool_warned=yes ;;
6074 DSYMUTIL=$ac_ct_DSYMUTIL
6077 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6080 if test -n "$ac_tool_prefix"; then
6081 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6082 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6084 $as_echo_n "checking for $ac_word... " >&6; }
6085 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6086 $as_echo_n "(cached) " >&6
6088 if test -n "$NMEDIT"; then
6089 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095 test -z "$as_dir" && as_dir=.
6096 for ac_exec_ext in '' $ac_executable_extensions; do
6097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6098 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 NMEDIT=$ac_cv_prog_NMEDIT
6109 if test -n "$NMEDIT"; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6111 $as_echo "$NMEDIT" >&6; }
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6114 $as_echo "no" >&6; }
6119 if test -z "$ac_cv_prog_NMEDIT"; then
6120 ac_ct_NMEDIT=$NMEDIT
6121 # Extract the first word of "nmedit", so it can be a program name with args.
6122 set dummy nmedit; ac_word=$2
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6124 $as_echo_n "checking for $ac_word... " >&6; }
6125 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6126 $as_echo_n "(cached) " >&6
6128 if test -n "$ac_ct_NMEDIT"; then
6129 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6149 if test -n "$ac_ct_NMEDIT"; then
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6151 $as_echo "$ac_ct_NMEDIT" >&6; }
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6154 $as_echo "no" >&6; }
6157 if test "x$ac_ct_NMEDIT" = x; then
6160 case $cross_compiling:$ac_tool_warned in
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6164 ac_tool_warned=yes ;;
6166 NMEDIT=$ac_ct_NMEDIT
6169 NMEDIT="$ac_cv_prog_NMEDIT"
6172 if test -n "$ac_tool_prefix"; then
6173 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6174 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if test "${ac_cv_prog_LIPO+set}" = set; then :
6178 $as_echo_n "(cached) " >&6
6180 if test -n "$LIPO"; then
6181 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6190 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 LIPO=$ac_cv_prog_LIPO
6201 if test -n "$LIPO"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6203 $as_echo "$LIPO" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6211 if test -z "$ac_cv_prog_LIPO"; then
6213 # Extract the first word of "lipo", so it can be a program name with args.
6214 set dummy lipo; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6218 $as_echo_n "(cached) " >&6
6220 if test -n "$ac_ct_LIPO"; then
6221 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6230 ac_cv_prog_ac_ct_LIPO="lipo"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6241 if test -n "$ac_ct_LIPO"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6243 $as_echo "$ac_ct_LIPO" >&6; }
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6249 if test "x$ac_ct_LIPO" = x; then
6252 case $cross_compiling:$ac_tool_warned in
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6261 LIPO="$ac_cv_prog_LIPO"
6264 if test -n "$ac_tool_prefix"; then
6265 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6266 set dummy ${ac_tool_prefix}otool; ac_word=$2
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6268 $as_echo_n "checking for $ac_word... " >&6; }
6269 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6270 $as_echo_n "(cached) " >&6
6272 if test -n "$OTOOL"; then
6273 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 test -z "$as_dir" && as_dir=.
6280 for ac_exec_ext in '' $ac_executable_extensions; do
6281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6282 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6292 OTOOL=$ac_cv_prog_OTOOL
6293 if test -n "$OTOOL"; then
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6295 $as_echo "$OTOOL" >&6; }
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6298 $as_echo "no" >&6; }
6303 if test -z "$ac_cv_prog_OTOOL"; then
6305 # Extract the first word of "otool", so it can be a program name with args.
6306 set dummy otool; 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 test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6310 $as_echo_n "(cached) " >&6
6312 if test -n "$ac_ct_OTOOL"; then
6313 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # 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_ac_ct_OTOOL="otool"
6323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6332 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6333 if test -n "$ac_ct_OTOOL"; then
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6335 $as_echo "$ac_ct_OTOOL" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6338 $as_echo "no" >&6; }
6341 if test "x$ac_ct_OTOOL" = x; then
6344 case $cross_compiling:$ac_tool_warned in
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6347 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6348 ac_tool_warned=yes ;;
6353 OTOOL="$ac_cv_prog_OTOOL"
6356 if test -n "$ac_tool_prefix"; then
6357 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6358 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6360 $as_echo_n "checking for $ac_word... " >&6; }
6361 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6364 if test -n "$OTOOL64"; then
6365 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 test -z "$as_dir" && as_dir=.
6372 for ac_exec_ext in '' $ac_executable_extensions; do
6373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6374 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6384 OTOOL64=$ac_cv_prog_OTOOL64
6385 if test -n "$OTOOL64"; then
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6387 $as_echo "$OTOOL64" >&6; }
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6390 $as_echo "no" >&6; }
6395 if test -z "$ac_cv_prog_OTOOL64"; then
6396 ac_ct_OTOOL64=$OTOOL64
6397 # Extract the first word of "otool64", so it can be a program name with args.
6398 set dummy otool64; ac_word=$2
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6400 $as_echo_n "checking for $ac_word... " >&6; }
6401 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6402 $as_echo_n "(cached) " >&6
6404 if test -n "$ac_ct_OTOOL64"; then
6405 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411 test -z "$as_dir" && as_dir=.
6412 for ac_exec_ext in '' $ac_executable_extensions; do
6413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6414 ac_cv_prog_ac_ct_OTOOL64="otool64"
6415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6424 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6425 if test -n "$ac_ct_OTOOL64"; then
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6427 $as_echo "$ac_ct_OTOOL64" >&6; }
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6430 $as_echo "no" >&6; }
6433 if test "x$ac_ct_OTOOL64" = x; then
6436 case $cross_compiling:$ac_tool_warned in
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6440 ac_tool_warned=yes ;;
6442 OTOOL64=$ac_ct_OTOOL64
6445 OTOOL64="$ac_cv_prog_OTOOL64"
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6475 $as_echo_n "checking for -single_module linker flag... " >&6; }
6476 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6477 $as_echo_n "(cached) " >&6
6479 lt_cv_apple_cc_single_mod=no
6480 if test -z "${LT_MULTI_MODULE}"; then
6481 # By default we will add the -single_module flag. You can override
6482 # by either setting the environment variable LT_MULTI_MODULE
6483 # non-empty at configure time, or by adding -multi_module to the
6485 rm -rf libconftest.dylib*
6486 echo "int foo(void){return 1;}" > conftest.c
6487 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6488 -dynamiclib -Wl,-single_module conftest.c" >&5
6489 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6490 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6492 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6493 lt_cv_apple_cc_single_mod=yes
6495 cat conftest.err >&5
6497 rm -rf libconftest.dylib*
6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6502 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6504 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6505 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6506 $as_echo_n "(cached) " >&6
6508 lt_cv_ld_exported_symbols_list=no
6509 save_LDFLAGS=$LDFLAGS
6510 echo "_main" > conftest.sym
6511 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6523 if ac_fn_c_try_link "$LINENO"; then :
6524 lt_cv_ld_exported_symbols_list=yes
6526 lt_cv_ld_exported_symbols_list=no
6528 rm -f core conftest.err conftest.$ac_objext \
6529 conftest$ac_exeext conftest.$ac_ext
6530 LDFLAGS="$save_LDFLAGS"
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6534 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6536 rhapsody* | darwin1.[012])
6537 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6539 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6540 darwin*) # darwin 5.x on
6541 # if running on 10.5 or later, the deployment target defaults
6542 # to the OS version, if on x86, and 10.4, the deployment
6543 # target defaults to 10.4. Don't you love it?
6544 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6545 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6546 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6548 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6550 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6554 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6555 _lt_dar_single_mod='$single_module'
6557 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6558 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6560 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6562 if test "$DSYMUTIL" != ":"; then
6563 _lt_dsymutil='~$DSYMUTIL $lib || :'
6571 ac_cpp='$CPP $CPPFLAGS'
6572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6576 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6577 # On Suns, sometimes $CPP names a directory.
6578 if test -n "$CPP" && test -d "$CPP"; then
6581 if test -z "$CPP"; then
6582 if test "${ac_cv_prog_CPP+set}" = set; then :
6583 $as_echo_n "(cached) " >&6
6585 # Double quotes because CPP needs to be expanded
6586 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6589 for ac_c_preproc_warn_flag in '' yes
6591 # Use a header file that comes with gcc, so configuring glibc
6592 # with a fresh cross-compiler works.
6593 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6594 # <limits.h> exists even on freestanding compilers.
6595 # On the NeXT, cc -E runs the code through the compiler's parser,
6596 # not just through cpp. "Syntax error" is here to catch this case.
6597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6598 /* end confdefs.h. */
6600 # include <limits.h>
6602 # include <assert.h>
6606 if ac_fn_c_try_cpp "$LINENO"; then :
6609 # Broken: fails on valid input.
6612 rm -f conftest.err conftest.$ac_ext
6614 # OK, works on sane cases. Now check whether nonexistent headers
6615 # can be detected and how.
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617 /* end confdefs.h. */
6618 #include <ac_nonexistent.h>
6620 if ac_fn_c_try_cpp "$LINENO"; then :
6621 # Broken: success on invalid input.
6624 # Passes both tests.
6628 rm -f conftest.err conftest.$ac_ext
6631 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6632 rm -f conftest.err conftest.$ac_ext
6633 if $ac_preproc_ok; then :
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6646 $as_echo "$CPP" >&6; }
6648 for ac_c_preproc_warn_flag in '' yes
6650 # Use a header file that comes with gcc, so configuring glibc
6651 # with a fresh cross-compiler works.
6652 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6653 # <limits.h> exists even on freestanding compilers.
6654 # On the NeXT, cc -E runs the code through the compiler's parser,
6655 # not just through cpp. "Syntax error" is here to catch this case.
6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6657 /* end confdefs.h. */
6659 # include <limits.h>
6661 # include <assert.h>
6665 if ac_fn_c_try_cpp "$LINENO"; then :
6668 # Broken: fails on valid input.
6671 rm -f conftest.err conftest.$ac_ext
6673 # OK, works on sane cases. Now check whether nonexistent headers
6674 # can be detected and how.
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677 #include <ac_nonexistent.h>
6679 if ac_fn_c_try_cpp "$LINENO"; then :
6680 # Broken: success on invalid input.
6683 # Passes both tests.
6687 rm -f conftest.err conftest.$ac_ext
6690 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6691 rm -f conftest.err conftest.$ac_ext
6692 if $ac_preproc_ok; then :
6695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6697 as_fn_error "C preprocessor \"$CPP\" fails sanity check
6698 See \`config.log' for more details." "$LINENO" 5; }
6702 ac_cpp='$CPP $CPPFLAGS'
6703 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6704 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6705 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6709 $as_echo_n "checking for ANSI C header files... " >&6; }
6710 if test "${ac_cv_header_stdc+set}" = set; then :
6711 $as_echo_n "(cached) " >&6
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6728 if ac_fn_c_try_compile "$LINENO"; then :
6729 ac_cv_header_stdc=yes
6731 ac_cv_header_stdc=no
6733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 if test $ac_cv_header_stdc = yes; then
6736 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h. */
6742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6743 $EGREP "memchr" >/dev/null 2>&1; then :
6746 ac_cv_header_stdc=no
6752 if test $ac_cv_header_stdc = yes; then
6753 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6760 $EGREP "free" >/dev/null 2>&1; then :
6763 ac_cv_header_stdc=no
6769 if test $ac_cv_header_stdc = yes; then
6770 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6771 if test "$cross_compiling" = yes; then :
6774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6775 /* end confdefs.h. */
6778 #if ((' ' & 0x0FF) == 0x020)
6779 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6780 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6782 # define ISLOWER(c) \
6783 (('a' <= (c) && (c) <= 'i') \
6784 || ('j' <= (c) && (c) <= 'r') \
6785 || ('s' <= (c) && (c) <= 'z'))
6786 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6789 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6794 for (i = 0; i < 256; i++)
6795 if (XOR (islower (i), ISLOWER (i))
6796 || toupper (i) != TOUPPER (i))
6801 if ac_fn_c_try_run "$LINENO"; then :
6804 ac_cv_header_stdc=no
6806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6807 conftest.$ac_objext conftest.beam conftest.$ac_ext
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6813 $as_echo "$ac_cv_header_stdc" >&6; }
6814 if test $ac_cv_header_stdc = yes; then
6816 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6820 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6821 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6822 inttypes.h stdint.h unistd.h
6824 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6825 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6827 eval as_val=\$$as_ac_Header
6828 if test "x$as_val" = x""yes; then :
6829 cat >>confdefs.h <<_ACEOF
6830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6838 for ac_header in dlfcn.h
6840 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6842 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6843 cat >>confdefs.h <<_ACEOF
6844 #define HAVE_DLFCN_H 1
6863 # Check whether --enable-shared was given.
6864 if test "${enable_shared+set}" = set; then :
6865 enableval=$enable_shared; p=${PACKAGE-default}
6867 yes) enable_shared=yes ;;
6868 no) enable_shared=no ;;
6871 # Look at the argument we got. We use all the common list separators.
6872 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6873 for pkg in $enableval; do
6875 if test "X$pkg" = "X$p"; then
6894 # Check whether --enable-static was given.
6895 if test "${enable_static+set}" = set; then :
6896 enableval=$enable_static; p=${PACKAGE-default}
6898 yes) enable_static=yes ;;
6899 no) enable_static=no ;;
6902 # Look at the argument we got. We use all the common list separators.
6903 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6904 for pkg in $enableval; do
6906 if test "X$pkg" = "X$p"; then
6926 # Check whether --with-pic was given.
6927 if test "${with_pic+set}" = set; then :
6928 withval=$with_pic; pic_mode="$withval"
6934 test -z "$pic_mode" && pic_mode=default
6942 # Check whether --enable-fast-install was given.
6943 if test "${enable_fast_install+set}" = set; then :
6944 enableval=$enable_fast_install; p=${PACKAGE-default}
6946 yes) enable_fast_install=yes ;;
6947 no) enable_fast_install=no ;;
6949 enable_fast_install=no
6950 # Look at the argument we got. We use all the common list separators.
6951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6952 for pkg in $enableval; do
6954 if test "X$pkg" = "X$p"; then
6955 enable_fast_install=yes
6962 enable_fast_install=yes
6975 # This can be used to rebuild libtool when needed
6976 LIBTOOL_DEPS="$ltmain"
6978 # Always use our own libtool.
6979 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7005 test -z "$LN_S" && LN_S="ln -s"
7020 if test -n "${ZSH_VERSION+set}" ; then
7021 setopt NO_GLOB_SUBST
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7025 $as_echo_n "checking for objdir... " >&6; }
7026 if test "${lt_cv_objdir+set}" = set; then :
7027 $as_echo_n "(cached) " >&6
7029 rm -f .libs 2>/dev/null
7030 mkdir .libs 2>/dev/null
7031 if test -d .libs; then
7034 # MS-DOS does not allow filenames that begin with a dot.
7037 rmdir .libs 2>/dev/null
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7040 $as_echo "$lt_cv_objdir" >&6; }
7041 objdir=$lt_cv_objdir
7047 cat >>confdefs.h <<_ACEOF
7048 #define LT_OBJDIR "$lt_cv_objdir/"
7069 # AIX sometimes has problems with the GCC collect2 program. For some
7070 # reason, if we set the COLLECT_NAMES environment variable, the problems
7071 # vanish in a puff of smoke.
7072 if test "X${COLLECT_NAMES+set}" != Xset; then
7074 export COLLECT_NAMES
7079 # Sed substitution that helps us do robust quoting. It backslashifies
7080 # metacharacters that are still active within double-quoted strings.
7081 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7083 # Same as above, but do not quote variable references.
7084 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7086 # Sed substitution to delay expansion of an escaped shell variable in a
7087 # double_quote_subst'ed string.
7088 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7090 # Sed substitution to delay expansion of an escaped single quote.
7091 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7093 # Sed substitution to avoid accidental globbing in evaled expressions
7094 no_glob_subst='s/\*/\\\*/g'
7098 can_build_shared=yes
7100 # All known linkers require a `.a' archive for static linking (except MSVC,
7101 # which needs '.lib').
7104 with_gnu_ld="$lt_cv_prog_gnu_ld"
7107 old_CFLAGS="$CFLAGS"
7109 # Set sane defaults for various variables
7110 test -z "$CC" && CC=cc
7111 test -z "$LTCC" && LTCC=$CC
7112 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7113 test -z "$LD" && LD=ld
7114 test -z "$ac_objext" && ac_objext=o
7116 for cc_temp in $compiler""; do
7118 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7119 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7124 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7127 # Only perform the check for file, if the check method requires it
7128 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7129 case $deplibs_check_method in
7131 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7133 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7134 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7135 $as_echo_n "(cached) " >&6
7139 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7142 lt_save_MAGIC_CMD="$MAGIC_CMD"
7143 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7144 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7145 for ac_dir in $ac_dummy; do
7147 test -z "$ac_dir" && ac_dir=.
7148 if test -f $ac_dir/${ac_tool_prefix}file; then
7149 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7150 if test -n "$file_magic_test_file"; then
7151 case $deplibs_check_method in
7153 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7155 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7156 $EGREP "$file_magic_regex" > /dev/null; then
7161 *** Warning: the command libtool uses to detect shared libraries,
7162 *** $file_magic_cmd, produces output that libtool cannot recognize.
7163 *** The result is that libtool may fail to recognize shared libraries
7164 *** as such. This will affect the creation of libtool libraries that
7165 *** depend on shared libraries, but programs linked with such libtool
7166 *** libraries will work regardless of this problem. Nevertheless, you
7167 *** may want to report the problem to your system manager and/or to
7168 *** bug-libtool@gnu.org
7178 MAGIC_CMD="$lt_save_MAGIC_CMD"
7183 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7184 if test -n "$MAGIC_CMD"; then
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7186 $as_echo "$MAGIC_CMD" >&6; }
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7189 $as_echo "no" >&6; }
7196 if test -z "$lt_cv_path_MAGIC_CMD"; then
7197 if test -n "$ac_tool_prefix"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7199 $as_echo_n "checking for file... " >&6; }
7200 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7201 $as_echo_n "(cached) " >&6
7205 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7208 lt_save_MAGIC_CMD="$MAGIC_CMD"
7209 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7210 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7211 for ac_dir in $ac_dummy; do
7213 test -z "$ac_dir" && ac_dir=.
7214 if test -f $ac_dir/file; then
7215 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7216 if test -n "$file_magic_test_file"; then
7217 case $deplibs_check_method in
7219 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7220 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7221 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7222 $EGREP "$file_magic_regex" > /dev/null; then
7227 *** Warning: the command libtool uses to detect shared libraries,
7228 *** $file_magic_cmd, produces output that libtool cannot recognize.
7229 *** The result is that libtool may fail to recognize shared libraries
7230 *** as such. This will affect the creation of libtool libraries that
7231 *** depend on shared libraries, but programs linked with such libtool
7232 *** libraries will work regardless of this problem. Nevertheless, you
7233 *** may want to report the problem to your system manager and/or to
7234 *** bug-libtool@gnu.org
7244 MAGIC_CMD="$lt_save_MAGIC_CMD"
7249 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7250 if test -n "$MAGIC_CMD"; then
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7252 $as_echo "$MAGIC_CMD" >&6; }
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255 $as_echo "no" >&6; }
7268 # Use C for the default configuration in the libtool script
7272 ac_cpp='$CPP $CPPFLAGS'
7273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7278 # Source file extension for C test sources.
7281 # Object file extension for compiled C test sources.
7285 # Code to be used in simple compile tests
7286 lt_simple_compile_test_code="int some_variable = 0;"
7288 # Code to be used in simple link tests
7289 lt_simple_link_test_code='int main(){return(0);}'
7297 # If no C compiler was specified, use CC.
7300 # If no C compiler flags were specified, use CFLAGS.
7301 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7303 # Allow CC to be a program name with arguments.
7306 # Save the default compiler, since it gets overwritten when the other
7307 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7308 compiler_DEFAULT=$CC
7310 # save warnings/boilerplate of simple test code
7311 ac_outfile=conftest.$ac_objext
7312 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7313 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7314 _lt_compiler_boilerplate=`cat conftest.err`
7317 ac_outfile=conftest.$ac_objext
7318 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7319 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7320 _lt_linker_boilerplate=`cat conftest.err`
7324 if test -n "$compiler"; then
7326 lt_prog_compiler_no_builtin_flag=
7328 if test "$GCC" = yes; then
7329 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7332 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7333 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7334 $as_echo_n "(cached) " >&6
7336 lt_cv_prog_compiler_rtti_exceptions=no
7337 ac_outfile=conftest.$ac_objext
7338 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7339 lt_compiler_flag="-fno-rtti -fno-exceptions"
7340 # Insert the option either (1) after the last *FLAGS variable, or
7341 # (2) before a word containing "conftest.", or (3) at the end.
7342 # Note that $ac_compile itself does not contain backslashes and begins
7343 # with a dollar sign (not a hyphen), so the echo should work correctly.
7344 # The option is referenced via a variable to avoid confusing sed.
7345 lt_compile=`echo "$ac_compile" | $SED \
7346 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7347 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7348 -e 's:$: $lt_compiler_flag:'`
7349 (eval echo "\"\$as_me:7349: $lt_compile\"" >&5)
7350 (eval "$lt_compile" 2>conftest.err)
7352 cat conftest.err >&5
7353 echo "$as_me:7353: \$? = $ac_status" >&5
7354 if (exit $ac_status) && test -s "$ac_outfile"; then
7355 # The compiler can only warn and ignore the option if not recognized
7356 # So say no if there are warnings other than the usual output.
7357 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7359 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7360 lt_cv_prog_compiler_rtti_exceptions=yes
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7367 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7369 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7370 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7382 lt_prog_compiler_wl=
7383 lt_prog_compiler_pic=
7384 lt_prog_compiler_static=
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7387 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7389 if test "$GCC" = yes; then
7390 lt_prog_compiler_wl='-Wl,'
7391 lt_prog_compiler_static='-static'
7395 # All AIX code is PIC.
7396 if test "$host_cpu" = ia64; then
7397 # AIX 5 now supports IA64 processor
7398 lt_prog_compiler_static='-Bstatic'
7405 # see comment about AmigaOS4 .so support
7406 lt_prog_compiler_pic='-fPIC'
7409 # FIXME: we need at least 68020 code to build shared libraries, but
7410 # adding the `-m68020' flag to GCC prevents building anything better,
7412 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7417 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7418 # PIC is the default for these OSes.
7421 mingw* | cygwin* | pw32* | os2* | cegcc*)
7422 # This hack is so that the source file can tell whether it is being
7423 # built for inclusion in a dll (and should export symbols for example).
7424 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7425 # (--disable-auto-import) libraries
7426 lt_prog_compiler_pic='-DDLL_EXPORT'
7429 darwin* | rhapsody*)
7430 # PIC is the default on this platform
7431 # Common symbols not allowed in MH_DYLIB files
7432 lt_prog_compiler_pic='-fno-common'
7436 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7437 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7438 # sets the default TLS model and affects inlining.
7444 lt_prog_compiler_pic='-fPIC'
7450 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7451 # Instead, we relocate shared libraries at runtime.
7455 # Just because we use GCC doesn't mean we suddenly get shared libraries
7456 # on systems that don't support them.
7457 lt_prog_compiler_can_build_shared=no
7462 # QNX uses GNU C++, but need to define -shared option too, otherwise
7464 lt_prog_compiler_pic='-fPIC -shared'
7468 if test -d /usr/nec; then
7469 lt_prog_compiler_pic=-Kconform_pic
7474 lt_prog_compiler_pic='-fPIC'
7478 # PORTME Check for flag to pass linker flags through the system compiler.
7481 lt_prog_compiler_wl='-Wl,'
7482 if test "$host_cpu" = ia64; then
7483 # AIX 5 now supports IA64 processor
7484 lt_prog_compiler_static='-Bstatic'
7486 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7490 mingw* | cygwin* | pw32* | os2* | cegcc*)
7491 # This hack is so that the source file can tell whether it is being
7492 # built for inclusion in a dll (and should export symbols for example).
7493 lt_prog_compiler_pic='-DDLL_EXPORT'
7496 hpux9* | hpux10* | hpux11*)
7497 lt_prog_compiler_wl='-Wl,'
7498 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7505 lt_prog_compiler_pic='+Z'
7508 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7509 lt_prog_compiler_static='${wl}-a ${wl}archive'
7512 irix5* | irix6* | nonstopux*)
7513 lt_prog_compiler_wl='-Wl,'
7514 # PIC (with -KPIC) is the default.
7515 lt_prog_compiler_static='-non_shared'
7518 linux* | k*bsd*-gnu)
7519 case $cc_basename in
7520 # old Intel for x86_64 which still supported -KPIC.
7522 lt_prog_compiler_wl='-Wl,'
7523 lt_prog_compiler_pic='-KPIC'
7524 lt_prog_compiler_static='-static'
7526 # icc used to be incompatible with GCC.
7527 # ICC 10 doesn't accept -KPIC any more.
7529 lt_prog_compiler_wl='-Wl,'
7530 lt_prog_compiler_pic='-fPIC'
7531 lt_prog_compiler_static='-static'
7533 # Lahey Fortran 8.1.
7535 lt_prog_compiler_wl='-Wl,'
7536 lt_prog_compiler_pic='--shared'
7537 lt_prog_compiler_static='--static'
7539 pgcc* | pgf77* | pgf90* | pgf95*)
7540 # Portland Group compilers (*not* the Pentium gcc compiler,
7541 # which looks to be a dead project)
7542 lt_prog_compiler_wl='-Wl,'
7543 lt_prog_compiler_pic='-fpic'
7544 lt_prog_compiler_static='-Bstatic'
7547 lt_prog_compiler_wl='-Wl,'
7548 # All Alpha code is PIC.
7549 lt_prog_compiler_static='-non_shared'
7552 # IBM XL C 8.0/Fortran 10.1 on PPC
7553 lt_prog_compiler_wl='-Wl,'
7554 lt_prog_compiler_pic='-qpic'
7555 lt_prog_compiler_static='-qstaticlink'
7558 case `$CC -V 2>&1 | sed 5q` in
7561 lt_prog_compiler_pic='-KPIC'
7562 lt_prog_compiler_static='-Bstatic'
7563 lt_prog_compiler_wl='-Wl,'
7566 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7567 lt_prog_compiler_pic='-KPIC'
7568 lt_prog_compiler_static='-Bstatic'
7569 lt_prog_compiler_wl=''
7577 lt_prog_compiler_pic='-KPIC'
7578 lt_prog_compiler_static='-Bstatic'
7582 # QNX uses GNU C++, but need to define -shared option too, otherwise
7584 lt_prog_compiler_pic='-fPIC -shared'
7587 osf3* | osf4* | osf5*)
7588 lt_prog_compiler_wl='-Wl,'
7589 # All OSF/1 code is PIC.
7590 lt_prog_compiler_static='-non_shared'
7594 lt_prog_compiler_static='-non_shared'
7598 lt_prog_compiler_pic='-KPIC'
7599 lt_prog_compiler_static='-Bstatic'
7600 case $cc_basename in
7602 lt_prog_compiler_wl='-Qoption ld ';;
7604 lt_prog_compiler_wl='-Wl,';;
7609 lt_prog_compiler_wl='-Qoption ld '
7610 lt_prog_compiler_pic='-PIC'
7611 lt_prog_compiler_static='-Bstatic'
7614 sysv4 | sysv4.2uw2* | sysv4.3*)
7615 lt_prog_compiler_wl='-Wl,'
7616 lt_prog_compiler_pic='-KPIC'
7617 lt_prog_compiler_static='-Bstatic'
7621 if test -d /usr/nec ;then
7622 lt_prog_compiler_pic='-Kconform_pic'
7623 lt_prog_compiler_static='-Bstatic'
7627 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7628 lt_prog_compiler_wl='-Wl,'
7629 lt_prog_compiler_pic='-KPIC'
7630 lt_prog_compiler_static='-Bstatic'
7634 lt_prog_compiler_wl='-Wl,'
7635 lt_prog_compiler_can_build_shared=no
7639 lt_prog_compiler_pic='-pic'
7640 lt_prog_compiler_static='-Bstatic'
7644 lt_prog_compiler_can_build_shared=no
7650 # For platforms which do not support PIC, -DPIC is meaningless:
7652 lt_prog_compiler_pic=
7655 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7659 $as_echo "$lt_prog_compiler_pic" >&6; }
7667 # Check to make sure the PIC flag actually works.
7669 if test -n "$lt_prog_compiler_pic"; then
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7671 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7672 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7673 $as_echo_n "(cached) " >&6
7675 lt_cv_prog_compiler_pic_works=no
7676 ac_outfile=conftest.$ac_objext
7677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7678 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7679 # Insert the option either (1) after the last *FLAGS variable, or
7680 # (2) before a word containing "conftest.", or (3) at the end.
7681 # Note that $ac_compile itself does not contain backslashes and begins
7682 # with a dollar sign (not a hyphen), so the echo should work correctly.
7683 # The option is referenced via a variable to avoid confusing sed.
7684 lt_compile=`echo "$ac_compile" | $SED \
7685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7687 -e 's:$: $lt_compiler_flag:'`
7688 (eval echo "\"\$as_me:7688: $lt_compile\"" >&5)
7689 (eval "$lt_compile" 2>conftest.err)
7691 cat conftest.err >&5
7692 echo "$as_me:7692: \$? = $ac_status" >&5
7693 if (exit $ac_status) && test -s "$ac_outfile"; then
7694 # The compiler can only warn and ignore the option if not recognized
7695 # So say no if there are warnings other than the usual output.
7696 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7698 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7699 lt_cv_prog_compiler_pic_works=yes
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7706 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7708 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7709 case $lt_prog_compiler_pic in
7711 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7714 lt_prog_compiler_pic=
7715 lt_prog_compiler_can_build_shared=no
7726 # Check to make sure the static flag actually works.
7728 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7730 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7731 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7732 $as_echo_n "(cached) " >&6
7734 lt_cv_prog_compiler_static_works=no
7735 save_LDFLAGS="$LDFLAGS"
7736 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7737 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7738 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7739 # The linker can only warn and ignore the option if not recognized
7740 # So say no if there are warnings
7741 if test -s conftest.err; then
7742 # Append any errors to the config.log.
7743 cat conftest.err 1>&5
7744 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7746 if diff conftest.exp conftest.er2 >/dev/null; then
7747 lt_cv_prog_compiler_static_works=yes
7750 lt_cv_prog_compiler_static_works=yes
7754 LDFLAGS="$save_LDFLAGS"
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7758 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7760 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7763 lt_prog_compiler_static=
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7773 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7774 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7775 $as_echo_n "(cached) " >&6
7777 lt_cv_prog_compiler_c_o=no
7778 $RM -r conftest 2>/dev/null
7782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7784 lt_compiler_flag="-o out/conftest2.$ac_objext"
7785 # Insert the option either (1) after the last *FLAGS variable, or
7786 # (2) before a word containing "conftest.", or (3) at the end.
7787 # Note that $ac_compile itself does not contain backslashes and begins
7788 # with a dollar sign (not a hyphen), so the echo should work correctly.
7789 lt_compile=`echo "$ac_compile" | $SED \
7790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7792 -e 's:$: $lt_compiler_flag:'`
7793 (eval echo "\"\$as_me:7793: $lt_compile\"" >&5)
7794 (eval "$lt_compile" 2>out/conftest.err)
7796 cat out/conftest.err >&5
7797 echo "$as_me:7797: \$? = $ac_status" >&5
7798 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7800 # The compiler can only warn and ignore the option if not recognized
7801 # So say no if there are warnings
7802 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7803 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7804 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7805 lt_cv_prog_compiler_c_o=yes
7810 # SGI C++ compiler will create directory out/ii_files/ for
7811 # template instantiation
7812 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7813 $RM out/* && rmdir out
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7820 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7828 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7829 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7830 $as_echo_n "(cached) " >&6
7832 lt_cv_prog_compiler_c_o=no
7833 $RM -r conftest 2>/dev/null
7837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7839 lt_compiler_flag="-o out/conftest2.$ac_objext"
7840 # Insert the option either (1) after the last *FLAGS variable, or
7841 # (2) before a word containing "conftest.", or (3) at the end.
7842 # Note that $ac_compile itself does not contain backslashes and begins
7843 # with a dollar sign (not a hyphen), so the echo should work correctly.
7844 lt_compile=`echo "$ac_compile" | $SED \
7845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7847 -e 's:$: $lt_compiler_flag:'`
7848 (eval echo "\"\$as_me:7848: $lt_compile\"" >&5)
7849 (eval "$lt_compile" 2>out/conftest.err)
7851 cat out/conftest.err >&5
7852 echo "$as_me:7852: \$? = $ac_status" >&5
7853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7855 # The compiler can only warn and ignore the option if not recognized
7856 # So say no if there are warnings
7857 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7860 lt_cv_prog_compiler_c_o=yes
7865 # SGI C++ compiler will create directory out/ii_files/ for
7866 # template instantiation
7867 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7868 $RM out/* && rmdir out
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7875 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7880 hard_links="nottested"
7881 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7882 # do not overwrite the value of need_locks provided by the user
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7884 $as_echo_n "checking if we can lock with hard links... " >&6; }
7887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7889 ln conftest.a conftest.b 2>&5 || hard_links=no
7890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7892 $as_echo "$hard_links" >&6; }
7893 if test "$hard_links" = no; then
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7895 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7908 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7911 allow_undefined_flag=
7912 always_export_symbols=no
7914 archive_expsym_cmds=
7915 compiler_needs_object=no
7916 enable_shared_with_static_runtimes=no
7917 export_dynamic_flag_spec=
7918 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7919 hardcode_automatic=no
7921 hardcode_direct_absolute=no
7922 hardcode_libdir_flag_spec=
7923 hardcode_libdir_flag_spec_ld=
7924 hardcode_libdir_separator=
7926 hardcode_shlibpath_var=unsupported
7928 link_all_deplibs=unknown
7931 old_archive_from_new_cmds=
7932 old_archive_from_expsyms_cmds=
7933 thread_safe_flag_spec=
7934 whole_archive_flag_spec=
7935 # include_expsyms should be a list of space-separated symbols to be *always*
7936 # included in the symbol list
7938 # exclude_expsyms can be an extended regexp of symbols to exclude
7939 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7940 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7941 # as well as any symbol that contains `d'.
7942 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7943 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7944 # platforms (ab)use it in PIC code, but their linkers get confused if
7945 # the symbol is explicitly referenced. Since portable code cannot
7946 # rely on this symbol name, it's probably fine to never include it in
7947 # preloaded symbol tables.
7948 # Exclude shared library initialization/finalization symbols.
7949 extract_expsyms_cmds=
7952 cygwin* | mingw* | pw32* | cegcc*)
7953 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7954 # When not using gcc, we currently assume that we are using
7955 # Microsoft Visual C++.
7956 if test "$GCC" != yes; then
7961 # we just hope/assume this is gcc and not c89 (= MSVC++)
7970 if test "$with_gnu_ld" = yes; then
7971 # If archive_cmds runs LD, not CC, wlarc should be empty
7974 # Set some defaults for GNU ld with shared library support. These
7975 # are reset later if shared libraries are not supported. Putting them
7976 # here allows them to be overridden if necessary.
7977 runpath_var=LD_RUN_PATH
7978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7979 export_dynamic_flag_spec='${wl}--export-dynamic'
7980 # ancient GNU ld didn't support --whole-archive et. al.
7981 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
7982 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7984 whole_archive_flag_spec=
7986 supports_anon_versioning=no
7987 case `$LD -v 2>&1` in
7988 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7989 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7990 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7991 *\ 2.11.*) ;; # other 2.11 versions
7992 *) supports_anon_versioning=yes ;;
7995 # See if GNU ld supports shared libraries.
7998 # On AIX/PPC, the GNU linker is very broken
7999 if test "$host_cpu" != ia64; then
8003 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8004 *** to be unable to reliably create shared libraries on AIX.
8005 *** Therefore, libtool is disabling shared libraries support. If you
8006 *** really care for shared libraries, you may want to modify your PATH
8007 *** so that a non-GNU linker is found, and then restart.
8016 # see comment about AmigaOS4 .so support
8017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8018 archive_expsym_cmds=''
8021 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)'
8022 hardcode_libdir_flag_spec='-L$libdir'
8023 hardcode_minus_L=yes
8029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8030 allow_undefined_flag=unsupported
8031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8032 # support --undefined. This deserves some investigation. FIXME
8033 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8039 cygwin* | mingw* | pw32* | cegcc*)
8040 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8041 # as there is no search path for DLLs.
8042 hardcode_libdir_flag_spec='-L$libdir'
8043 allow_undefined_flag=unsupported
8044 always_export_symbols=no
8045 enable_shared_with_static_runtimes=yes
8046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8048 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8050 # If the export-symbols file already is a .def file (1st line
8051 # is EXPORTS), use it as is; otherwise, prepend...
8052 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8053 cp $export_symbols $output_objdir/$soname.def;
8055 echo EXPORTS > $output_objdir/$soname.def;
8056 cat $export_symbols >> $output_objdir/$soname.def;
8058 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8066 hardcode_shlibpath_var=no
8067 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8068 export_dynamic_flag_spec='${wl}-E'
8069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8070 # Instead, shared libraries are loaded at an image base (0x10000000 by
8071 # default) and relocated if they conflict, which is a slow very memory
8072 # consuming and fragmenting process. To avoid this, we pick a random,
8073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8074 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8075 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8076 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'
8079 gnu* | linux* | tpf* | k*bsd*-gnu)
8081 if test "$host_os" = linux-dietlibc; then
8082 case $cc_basename in
8083 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8086 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8087 && test "$tmp_diet" = no
8090 tmp_sharedflag='-shared'
8091 case $cc_basename,$host_cpu in
8092 pgcc*) # Portland Group C compiler
8093 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8094 tmp_addflag=' $pic_flag'
8096 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8097 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8098 tmp_addflag=' $pic_flag -Mnomain' ;;
8099 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8100 tmp_addflag=' -i_dynamic' ;;
8101 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8102 tmp_addflag=' -i_dynamic -nofor_main' ;;
8103 ifc* | ifort*) # Intel Fortran compiler
8104 tmp_addflag=' -nofor_main' ;;
8105 lf95*) # Lahey Fortran 8.1
8106 whole_archive_flag_spec=
8107 tmp_sharedflag='--shared' ;;
8108 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8109 tmp_sharedflag='-qmkshrobj'
8112 case `$CC -V 2>&1 | sed 5q` in
8113 *Sun\ C*) # Sun C 5.9
8114 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8115 compiler_needs_object=yes
8116 tmp_sharedflag='-G' ;;
8117 *Sun\ F*) # Sun Fortran 8.3
8118 tmp_sharedflag='-G' ;;
8120 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8122 if test "x$supports_anon_versioning" = xyes; then
8123 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8124 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8125 echo "local: *; };" >> $output_objdir/$libname.ver~
8126 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8129 case $cc_basename in
8131 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8132 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8133 hardcode_libdir_flag_spec=
8134 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8135 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8136 if test "x$supports_anon_versioning" = xyes; then
8137 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8139 echo "local: *; };" >> $output_objdir/$libname.ver~
8140 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8150 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8151 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8154 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8155 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8160 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8164 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8165 *** create shared libraries on Solaris systems. Therefore, libtool
8166 *** is disabling shared libraries support. We urge you to upgrade GNU
8167 *** binutils to release 2.9.1 or newer. Another option is to modify
8168 *** your PATH or compiler configuration so that the native linker is
8169 *** used, and then restart.
8172 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8174 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8180 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8181 case `$LD -v 2>&1` in
8182 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8186 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8187 *** reliably create shared libraries on SCO systems. Therefore, libtool
8188 *** is disabling shared libraries support. We urge you to upgrade GNU
8189 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8190 *** your PATH or compiler configuration so that the native linker is
8191 *** used, and then restart.
8196 # For security reasons, it is highly recommended that you always
8197 # use absolute paths for naming shared libraries, and exclude the
8198 # DT_RUNPATH tag from executables and libraries. But doing so
8199 # requires that you compile everything twice, which is a pain.
8200 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8212 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8215 hardcode_shlibpath_var=no
8219 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8221 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8228 if test "$ld_shlibs" = no; then
8230 hardcode_libdir_flag_spec=
8231 export_dynamic_flag_spec=
8232 whole_archive_flag_spec=
8235 # PORTME fill in a description of your system's linker (not GNU ld)
8238 allow_undefined_flag=unsupported
8239 always_export_symbols=yes
8240 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'
8241 # Note: this linker hardcodes the directories in LIBPATH if there
8242 # are no directories specified by -L.
8243 hardcode_minus_L=yes
8244 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8245 # Neither direct hardcoding nor static linking is supported with a
8247 hardcode_direct=unsupported
8252 if test "$host_cpu" = ia64; then
8253 # On IA64, the linker does run time linking by default, so we don't
8254 # have to do anything special.
8255 aix_use_runtimelinking=no
8256 exp_sym_flag='-Bexport'
8259 # If we're using GNU nm, then we don't want the "-C" option.
8260 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8261 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8262 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8264 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'
8266 aix_use_runtimelinking=no
8268 # Test if we are trying to use run time linking or normal
8269 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8270 # need to do runtime linking.
8271 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8272 for ld_flag in $LDFLAGS; do
8273 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8274 aix_use_runtimelinking=yes
8281 exp_sym_flag='-bexport'
8282 no_entry_flag='-bnoentry'
8285 # When large executables or shared objects are built, AIX ld can
8286 # have problems creating the table of contents. If linking a library
8287 # or program results in "error TOC overflow" add -mminimal-toc to
8288 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8289 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8293 hardcode_direct_absolute=yes
8294 hardcode_libdir_separator=':'
8295 link_all_deplibs=yes
8296 file_list_spec='${wl}-f,'
8298 if test "$GCC" = yes; then
8299 case $host_os in aix4.[012]|aix4.[012].*)
8300 # We only want to do this on AIX 4.2 and lower, the check
8301 # below for broken collect2 doesn't work under 4.3+
8302 collect2name=`${CC} -print-prog-name=collect2`
8303 if test -f "$collect2name" &&
8304 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8306 # We have reworked collect2
8309 # We have old collect2
8310 hardcode_direct=unsupported
8311 # It fails to find uninstalled libraries when the uninstalled
8312 # path is not listed in the libpath. Setting hardcode_minus_L
8313 # to unsupported forces relinking
8314 hardcode_minus_L=yes
8315 hardcode_libdir_flag_spec='-L$libdir'
8316 hardcode_libdir_separator=
8320 shared_flag='-shared'
8321 if test "$aix_use_runtimelinking" = yes; then
8322 shared_flag="$shared_flag "'${wl}-G'
8326 if test "$host_cpu" = ia64; then
8327 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8328 # chokes on -Wl,-G. The following line is correct:
8331 if test "$aix_use_runtimelinking" = yes; then
8332 shared_flag='${wl}-G'
8334 shared_flag='${wl}-bM:SRE'
8339 export_dynamic_flag_spec='${wl}-bexpall'
8340 # It seems that -bexpall does not export symbols beginning with
8341 # underscore (_), so it is better to generate a list of symbols to export.
8342 always_export_symbols=yes
8343 if test "$aix_use_runtimelinking" = yes; then
8344 # Warning - without using the other runtime loading flags (-brtl),
8345 # -berok will link without error, but may produce a broken library.
8346 allow_undefined_flag='-berok'
8347 # Determine the default libpath from the value encoded in an
8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8350 /* end confdefs.h. */
8360 if ac_fn_c_try_link "$LINENO"; then :
8362 lt_aix_libpath_sed='
8363 /Import File Strings/,/^$/ {
8369 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8370 # Check for a 64-bit object if we didn't find anything.
8371 if test -z "$aix_libpath"; then
8372 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8375 rm -f core conftest.err conftest.$ac_objext \
8376 conftest$ac_exeext conftest.$ac_ext
8377 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8379 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8380 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8382 if test "$host_cpu" = ia64; then
8383 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8384 allow_undefined_flag="-z nodefs"
8385 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"
8387 # Determine the default libpath from the value encoded in an
8389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8390 /* end confdefs.h. */
8400 if ac_fn_c_try_link "$LINENO"; then :
8402 lt_aix_libpath_sed='
8403 /Import File Strings/,/^$/ {
8409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8410 # Check for a 64-bit object if we didn't find anything.
8411 if test -z "$aix_libpath"; then
8412 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8415 rm -f core conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8419 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8420 # Warning - without using the other run time loading flags,
8421 # -berok will link without error, but may produce a broken library.
8422 no_undefined_flag=' ${wl}-bernotok'
8423 allow_undefined_flag=' ${wl}-berok'
8424 # Exported symbols can be pulled into shared objects from archives
8425 whole_archive_flag_spec='$convenience'
8426 archive_cmds_need_lc=yes
8427 # This is similar to how AIX traditionally builds its shared libraries.
8428 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'
8436 # see comment about AmigaOS4 .so support
8437 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8438 archive_expsym_cmds=''
8441 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)'
8442 hardcode_libdir_flag_spec='-L$libdir'
8443 hardcode_minus_L=yes
8449 export_dynamic_flag_spec=-rdynamic
8452 cygwin* | mingw* | pw32* | cegcc*)
8453 # When not using gcc, we currently assume that we are using
8454 # Microsoft Visual C++.
8455 # hardcode_libdir_flag_spec is actually meaningless, as there is
8456 # no search path for DLLs.
8457 hardcode_libdir_flag_spec=' '
8458 allow_undefined_flag=unsupported
8459 # Tell ltmain to make .lib files, not .a files.
8461 # Tell ltmain to make .dll files, not .so files.
8463 # FIXME: Setting linknames here is a bad hack.
8464 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8465 # The linker will automatically build a .lib file if we build a DLL.
8466 old_archive_from_new_cmds='true'
8467 # FIXME: Should let the user specify the lib program.
8468 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8469 fix_srcfile_path='`cygpath -w "$srcfile"`'
8470 enable_shared_with_static_runtimes=yes
8473 darwin* | rhapsody*)
8476 archive_cmds_need_lc=no
8478 hardcode_automatic=yes
8479 hardcode_shlibpath_var=unsupported
8480 whole_archive_flag_spec=''
8481 link_all_deplibs=yes
8482 allow_undefined_flag="$_lt_dar_allow_undefined"
8483 case $cc_basename in
8484 ifort*) _lt_dar_can_shared=yes ;;
8485 *) _lt_dar_can_shared=$GCC ;;
8487 if test "$_lt_dar_can_shared" = "yes"; then
8488 output_verbose_link_cmd=echo
8489 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8490 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8491 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}"
8492 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}"
8501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8502 hardcode_libdir_flag_spec='-L$libdir'
8503 hardcode_shlibpath_var=no
8510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8511 # support. Future versions do this automatically, but an explicit c++rt0.o
8512 # does not break anything, and helps significantly (at the cost of a little
8515 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8516 hardcode_libdir_flag_spec='-R$libdir'
8518 hardcode_shlibpath_var=no
8521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8523 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8525 hardcode_minus_L=yes
8526 hardcode_shlibpath_var=no
8529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8530 freebsd* | dragonfly*)
8531 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8532 hardcode_libdir_flag_spec='-R$libdir'
8534 hardcode_shlibpath_var=no
8538 if test "$GCC" = yes; then
8539 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8541 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'
8543 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8544 hardcode_libdir_separator=:
8547 # hardcode_minus_L: Not really in the search PATH,
8548 # but as the default location of the library.
8549 hardcode_minus_L=yes
8550 export_dynamic_flag_spec='${wl}-E'
8554 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8555 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8557 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8559 if test "$with_gnu_ld" = no; then
8560 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8561 hardcode_libdir_flag_spec_ld='+b $libdir'
8562 hardcode_libdir_separator=:
8564 hardcode_direct_absolute=yes
8565 export_dynamic_flag_spec='${wl}-E'
8566 # hardcode_minus_L: Not really in the search PATH,
8567 # but as the default location of the library.
8568 hardcode_minus_L=yes
8573 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8576 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8579 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8582 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8588 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8591 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8594 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8598 if test "$with_gnu_ld" = no; then
8599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8600 hardcode_libdir_separator=:
8605 hardcode_shlibpath_var=no
8609 hardcode_direct_absolute=yes
8610 export_dynamic_flag_spec='${wl}-E'
8612 # hardcode_minus_L: Not really in the search PATH,
8613 # but as the default location of the library.
8614 hardcode_minus_L=yes
8620 irix5* | irix6* | nonstopux*)
8621 if test "$GCC" = yes; then
8622 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8623 # Try to use the -exported_symbol ld option, if it does not
8624 # work, assume that -exports_file does not work either and
8625 # implicitly export all symbols.
8626 save_LDFLAGS="$LDFLAGS"
8627 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8629 /* end confdefs.h. */
8632 if ac_fn_c_try_link "$LINENO"; then :
8633 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8636 rm -f core conftest.err conftest.$ac_objext \
8637 conftest$ac_exeext conftest.$ac_ext
8638 LDFLAGS="$save_LDFLAGS"
8640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8643 archive_cmds_need_lc='no'
8644 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8645 hardcode_libdir_separator=:
8647 link_all_deplibs=yes
8651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8654 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8656 hardcode_libdir_flag_spec='-R$libdir'
8658 hardcode_shlibpath_var=no
8662 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8664 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8665 hardcode_libdir_separator=:
8666 hardcode_shlibpath_var=no
8673 if test -f /usr/libexec/ld.so; then
8675 hardcode_shlibpath_var=no
8676 hardcode_direct_absolute=yes
8677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8678 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8679 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8680 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8681 export_dynamic_flag_spec='${wl}-E'
8684 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8686 hardcode_libdir_flag_spec='-R$libdir'
8689 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8690 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8700 hardcode_libdir_flag_spec='-L$libdir'
8701 hardcode_minus_L=yes
8702 allow_undefined_flag=unsupported
8703 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'
8704 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8708 if test "$GCC" = yes; then
8709 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8710 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8712 allow_undefined_flag=' -expect_unresolved \*'
8713 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8715 archive_cmds_need_lc='no'
8716 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8717 hardcode_libdir_separator=:
8720 osf4* | osf5*) # as osf3* with the addition of -msym flag
8721 if test "$GCC" = yes; then
8722 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8723 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8724 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8726 allow_undefined_flag=' -expect_unresolved \*'
8727 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8728 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~
8729 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8731 # Both c and cxx compiler support -rpath directly
8732 hardcode_libdir_flag_spec='-rpath $libdir'
8734 archive_cmds_need_lc='no'
8735 hardcode_libdir_separator=:
8739 no_undefined_flag=' -z defs'
8740 if test "$GCC" = yes; then
8742 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8743 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8744 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8746 case `$CC -V 2>&1` in
8749 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8750 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8755 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8756 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8757 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8761 hardcode_libdir_flag_spec='-R$libdir'
8762 hardcode_shlibpath_var=no
8764 solaris2.[0-5] | solaris2.[0-5].*) ;;
8766 # The compiler driver will combine and reorder linker options,
8767 # but understands `-z linker_flag'. GCC discards it without `$wl',
8768 # but is careful enough not to reorder.
8769 # Supported since Solaris 2.6 (maybe 2.5.1?)
8770 if test "$GCC" = yes; then
8771 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8773 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8777 link_all_deplibs=yes
8781 if test "x$host_vendor" = xsequent; then
8782 # Use $CC to link under sequent, because it throws in some extra .o
8783 # files that make .init and .fini sections work.
8784 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8786 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8788 hardcode_libdir_flag_spec='-L$libdir'
8790 hardcode_minus_L=yes
8791 hardcode_shlibpath_var=no
8795 case $host_vendor in
8797 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8798 hardcode_direct=yes # is this really true???
8801 ## LD is ld it makes a PLAMLIB
8802 ## CC just makes a GrossModule.
8803 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8804 reload_cmds='$CC -r -o $output$reload_objs'
8808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8809 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8812 runpath_var='LD_RUN_PATH'
8813 hardcode_shlibpath_var=no
8817 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8818 hardcode_shlibpath_var=no
8819 export_dynamic_flag_spec='-Bexport'
8823 if test -d /usr/nec; then
8824 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8825 hardcode_shlibpath_var=no
8826 runpath_var=LD_RUN_PATH
8827 hardcode_runpath_var=yes
8832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8833 no_undefined_flag='${wl}-z,text'
8834 archive_cmds_need_lc=no
8835 hardcode_shlibpath_var=no
8836 runpath_var='LD_RUN_PATH'
8838 if test "$GCC" = yes; then
8839 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8840 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8842 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8843 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8847 sysv5* | sco3.2v5* | sco5v6*)
8848 # Note: We can NOT use -z defs as we might desire, because we do not
8849 # link with -lc, and that would cause any symbols used from libc to
8850 # always be unresolved, which means just about no library would
8851 # ever link correctly. If we're not using GNU ld we use -z text
8852 # though, which does catch some bad symbols but isn't as heavy-handed
8854 no_undefined_flag='${wl}-z,text'
8855 allow_undefined_flag='${wl}-z,nodefs'
8856 archive_cmds_need_lc=no
8857 hardcode_shlibpath_var=no
8858 hardcode_libdir_flag_spec='${wl}-R,$libdir'
8859 hardcode_libdir_separator=':'
8860 link_all_deplibs=yes
8861 export_dynamic_flag_spec='${wl}-Bexport'
8862 runpath_var='LD_RUN_PATH'
8864 if test "$GCC" = yes; then
8865 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8866 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8868 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8869 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875 hardcode_libdir_flag_spec='-L$libdir'
8876 hardcode_shlibpath_var=no
8884 if test x$host_vendor = xsni; then
8886 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8887 export_dynamic_flag_spec='${wl}-Blargedynsym'
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8894 $as_echo "$ld_shlibs" >&6; }
8895 test "$ld_shlibs" = no && can_build_shared=no
8897 with_gnu_ld=$with_gnu_ld
8914 # Do we need to explicitly link libc?
8916 case "x$archive_cmds_need_lc" in
8918 # Assume -lc should be added
8919 archive_cmds_need_lc=yes
8921 if test "$enable_shared" = yes && test "$GCC" = yes; then
8922 case $archive_cmds in
8924 # FIXME: we may have to deal with multi-command sequences.
8927 # Test whether the compiler implicitly links with -lc since on some
8928 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8929 # to ld, don't add -lc before -lgcc.
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8931 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8933 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8936 (eval $ac_compile) 2>&5
8938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8939 test $ac_status = 0; } 2>conftest.err; then
8942 libobjs=conftest.$ac_objext
8944 wl=$lt_prog_compiler_wl
8945 pic_flag=$lt_prog_compiler_pic
8951 lt_save_allow_undefined_flag=$allow_undefined_flag
8952 allow_undefined_flag=
8953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8954 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
8956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8957 test $ac_status = 0; }
8959 archive_cmds_need_lc=no
8961 archive_cmds_need_lc=yes
8963 allow_undefined_flag=$lt_save_allow_undefined_flag
8965 cat conftest.err 1>&5
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8969 $as_echo "$archive_cmds_need_lc" >&6; }
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9133 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9135 if test "$GCC" = yes; then
9137 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9138 *) lt_awk_arg="/^libraries:/" ;;
9140 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9141 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9142 # if the path contains ";" then we assume it to be the separator
9143 # otherwise default to the standard path separator (i.e. ":") - it is
9144 # assumed that no part of a normal pathname contains ";" but that should
9145 # okay in the real world where ";" in dirpaths is itself problematic.
9146 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9148 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9150 # Ok, now we have the path, separated by spaces, we can step through it
9151 # and add multilib dir if necessary.
9152 lt_tmp_lt_search_path_spec=
9153 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9154 for lt_sys_path in $lt_search_path_spec; do
9155 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9156 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9158 test -d "$lt_sys_path" && \
9159 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9162 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9163 BEGIN {RS=" "; FS="/|\n";} {
9166 for (lt_i = NF; lt_i > 0; lt_i--) {
9167 if ($lt_i != "" && $lt_i != ".") {
9168 if ($lt_i == "..") {
9171 if (lt_count == 0) {
9172 lt_foo="/" $lt_i lt_foo;
9179 if (lt_foo != "") { lt_freq[lt_foo]++; }
9180 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9182 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9184 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9187 libname_spec='lib$name'
9195 shlibpath_overrides_runpath=unknown
9197 dynamic_linker="$host_os ld.so"
9198 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9199 need_lib_prefix=unknown
9200 hardcode_into_libs=no
9202 # when you set need_version to no, make sure it does not cause -set_version
9203 # flags to be left without arguments
9204 need_version=unknown
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9210 shlibpath_var=LIBPATH
9212 # AIX 3 has no versioning support, so we append a major version to the name.
9213 soname_spec='${libname}${release}${shared_ext}$major'
9220 hardcode_into_libs=yes
9221 if test "$host_cpu" = ia64; then
9222 # AIX 5 supports IA64
9223 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9224 shlibpath_var=LD_LIBRARY_PATH
9226 # With GCC up to 2.95.x, collect2 would create an import file
9227 # for dependence libraries. The import file would start with
9228 # the line `#! .'. This would cause the generated library to
9229 # depend on `.', always an invalid library. This was fixed in
9230 # development snapshots of GCC prior to 3.0.
9232 aix4 | aix4.[01] | aix4.[01].*)
9233 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9235 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9242 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9243 # soname into executable. Probably we can add versioning support to
9244 # collect2, so additional links can be useful in future.
9245 if test "$aix_use_runtimelinking" = yes; then
9246 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9247 # instead of lib<name>.a to let people know that these are not
9248 # typical AIX shared libraries.
9249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9251 # We preserve .a as extension for shared libraries through AIX4.2
9252 # and later when we are not doing run time linking.
9253 library_names_spec='${libname}${release}.a $libname.a'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9256 shlibpath_var=LIBPATH
9263 # Since July 2007 AmigaOS4 officially supports .so libraries.
9264 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9268 library_names_spec='$libname.ixlibrary $libname.a'
9269 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9270 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9276 library_names_spec='${libname}${shared_ext}'
9277 dynamic_linker="$host_os ld.so"
9278 shlibpath_var=LIBRARY_PATH
9284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9285 soname_spec='${libname}${release}${shared_ext}$major'
9286 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9289 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9290 # the default ld.so.conf also contains /usr/contrib/lib and
9291 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9292 # libtool to hard-code these into programs
9295 cygwin* | mingw* | pw32* | cegcc*)
9296 version_type=windows
9301 case $GCC,$host_os in
9302 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9303 library_names_spec='$libname.dll.a'
9304 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9305 postinstall_cmds='base_file=`basename \${file}`~
9306 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9307 dldir=$destdir/`dirname \$dlpath`~
9308 test -d \$dldir || mkdir -p \$dldir~
9309 $install_prog $dir/$dlname \$dldir/$dlname~
9310 chmod a+x \$dldir/$dlname~
9311 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9312 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9314 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9315 dlpath=$dir/\$dldll~
9317 shlibpath_overrides_runpath=yes
9321 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9322 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9323 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9326 # MinGW DLLs use traditional 'lib' prefix
9327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9328 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9329 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9330 # It is most probably a Windows format PATH printed by
9331 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9332 # path with ; separators, and with drive letters. We can handle the
9333 # drive letters (cygwin fileutils understands them), so leave them,
9334 # especially as we might pass files found there to a mingw objdump,
9335 # which wouldn't understand a cygwinified path. Ahh.
9336 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9338 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9342 # pw32 DLLs use 'pw' prefix rather than 'lib'
9343 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9352 dynamic_linker='Win32 ld.exe'
9353 # FIXME: first we should search . and the directory the executable is in
9357 darwin* | rhapsody*)
9358 dynamic_linker="$host_os dyld"
9362 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9363 soname_spec='${libname}${release}${major}$shared_ext'
9364 shlibpath_overrides_runpath=yes
9365 shlibpath_var=DYLD_LIBRARY_PATH
9366 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9368 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9369 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9377 soname_spec='${libname}${release}${shared_ext}$major'
9378 shlibpath_var=LD_LIBRARY_PATH
9385 freebsd* | dragonfly*)
9386 # DragonFly does not have aout. When/if they implement a new
9387 # versioning mechanism, adjust this.
9388 if test -x /usr/bin/objformat; then
9389 objformat=`/usr/bin/objformat`
9392 freebsd[123]*) objformat=aout ;;
9396 # Handle Gentoo/FreeBSD as it was Linux
9397 case $host_vendor in
9399 version_type=linux ;;
9401 version_type=freebsd-$objformat ;;
9404 case $version_type in
9406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9416 soname_spec='${libname}${release}${shared_ext}$major'
9421 shlibpath_var=LD_LIBRARY_PATH
9424 shlibpath_overrides_runpath=yes
9426 freebsd3.[01]* | freebsdelf3.[01]*)
9427 shlibpath_overrides_runpath=yes
9428 hardcode_into_libs=yes
9430 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9431 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9432 shlibpath_overrides_runpath=no
9433 hardcode_into_libs=yes
9435 *) # from 4.6 on, and DragonFly
9436 shlibpath_overrides_runpath=yes
9437 hardcode_into_libs=yes
9446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9447 soname_spec='${libname}${release}${shared_ext}$major'
9448 shlibpath_var=LD_LIBRARY_PATH
9449 hardcode_into_libs=yes
9452 hpux9* | hpux10* | hpux11*)
9453 # Give a soname corresponding to the major version so that dld.sl refuses to
9454 # link against other versions.
9461 hardcode_into_libs=yes
9462 dynamic_linker="$host_os dld.so"
9463 shlibpath_var=LD_LIBRARY_PATH
9464 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9466 soname_spec='${libname}${release}${shared_ext}$major'
9467 if test "X$HPUX_IA64_MODE" = X32; then
9468 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9470 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9476 hardcode_into_libs=yes
9477 dynamic_linker="$host_os dld.sl"
9478 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9479 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9481 soname_spec='${libname}${release}${shared_ext}$major'
9482 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9487 dynamic_linker="$host_os dld.sl"
9488 shlibpath_var=SHLIB_PATH
9489 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9491 soname_spec='${libname}${release}${shared_ext}$major'
9494 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9495 postinstall_cmds='chmod 555 $lib'
9502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9503 soname_spec='${libname}${release}${shared_ext}$major'
9504 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9505 shlibpath_var=LD_LIBRARY_PATH
9506 shlibpath_overrides_runpath=no
9507 hardcode_into_libs=yes
9510 irix5* | irix6* | nonstopux*)
9512 nonstopux*) version_type=nonstopux ;;
9514 if test "$lt_cv_prog_gnu_ld" = yes; then
9522 soname_spec='${libname}${release}${shared_ext}$major'
9523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9525 irix5* | nonstopux*)
9529 case $LD in # libtool.m4 will add one of these switches to LD
9530 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9531 libsuff= shlibsuff= libmagic=32-bit;;
9532 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9533 libsuff=32 shlibsuff=N32 libmagic=N32;;
9534 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9535 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9536 *) libsuff= shlibsuff= libmagic=never-match;;
9540 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9541 shlibpath_overrides_runpath=no
9542 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9543 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9544 hardcode_into_libs=yes
9547 # No shared lib support for Linux oldld, aout, or coff.
9548 linux*oldld* | linux*aout* | linux*coff*)
9552 # This must be Linux ELF.
9553 linux* | k*bsd*-gnu)
9557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9558 soname_spec='${libname}${release}${shared_ext}$major'
9559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9560 shlibpath_var=LD_LIBRARY_PATH
9561 shlibpath_overrides_runpath=no
9562 # Some binutils ld are patched to set DT_RUNPATH
9563 save_LDFLAGS=$LDFLAGS
9565 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9566 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9568 /* end confdefs.h. */
9578 if ac_fn_c_try_link "$LINENO"; then :
9579 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9580 shlibpath_overrides_runpath=yes
9583 rm -f core conftest.err conftest.$ac_objext \
9584 conftest$ac_exeext conftest.$ac_ext
9585 LDFLAGS=$save_LDFLAGS
9588 # This implies no fast_install, which is unacceptable.
9589 # Some rework will be needed to allow for fast_install
9590 # before this can be enabled.
9591 hardcode_into_libs=yes
9593 # Append ld.so.conf contents to the search path
9594 if test -f /etc/ld.so.conf; then
9595 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;/^$/d' | tr '\n' ' '`
9596 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9599 # We used to test for /lib/ld.so.1 and disable shared libraries on
9600 # powerpc, because MkLinux only supported shared libraries with the
9601 # GNU dynamic linker. Since this was broken with cross compilers,
9602 # most powerpc-linux boxes support dynamic linking these days and
9603 # people can always --disable-shared, the test was removed, and we
9604 # assume the GNU/Linux dynamic linker is in use.
9605 dynamic_linker='GNU/Linux ld.so'
9612 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9614 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9615 dynamic_linker='NetBSD (a.out) ld.so'
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9618 soname_spec='${libname}${release}${shared_ext}$major'
9619 dynamic_linker='NetBSD ld.elf_so'
9621 shlibpath_var=LD_LIBRARY_PATH
9622 shlibpath_overrides_runpath=yes
9623 hardcode_into_libs=yes
9628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9629 shlibpath_var=LD_LIBRARY_PATH
9630 shlibpath_overrides_runpath=yes
9637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9638 soname_spec='${libname}${release}${shared_ext}$major'
9639 shlibpath_var=LD_LIBRARY_PATH
9640 shlibpath_overrides_runpath=no
9641 hardcode_into_libs=yes
9642 dynamic_linker='ldqnx.so'
9647 sys_lib_dlsearch_path_spec="/usr/lib"
9649 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9651 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9652 *) need_version=no ;;
9654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9656 shlibpath_var=LD_LIBRARY_PATH
9657 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9659 openbsd2.[89] | openbsd2.[89].*)
9660 shlibpath_overrides_runpath=no
9663 shlibpath_overrides_runpath=yes
9667 shlibpath_overrides_runpath=yes
9672 libname_spec='$name'
9675 library_names_spec='$libname${shared_ext} $libname.a'
9676 dynamic_linker='OS/2 ld.exe'
9677 shlibpath_var=LIBPATH
9680 osf3* | osf4* | osf5*)
9684 soname_spec='${libname}${release}${shared_ext}$major'
9685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9686 shlibpath_var=LD_LIBRARY_PATH
9687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9688 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9700 soname_spec='${libname}${release}${shared_ext}$major'
9701 shlibpath_var=LD_LIBRARY_PATH
9702 shlibpath_overrides_runpath=yes
9703 hardcode_into_libs=yes
9704 # ldd complains unless libraries are executable
9705 postinstall_cmds='chmod +x $lib'
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9711 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9712 shlibpath_var=LD_LIBRARY_PATH
9713 shlibpath_overrides_runpath=yes
9714 if test "$with_gnu_ld" = yes; then
9722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9723 soname_spec='${libname}${release}${shared_ext}$major'
9724 shlibpath_var=LD_LIBRARY_PATH
9725 case $host_vendor in
9727 shlibpath_overrides_runpath=no
9729 runpath_var=LD_RUN_PATH
9737 shlibpath_overrides_runpath=no
9738 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9744 if test -d /usr/nec ;then
9746 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9747 soname_spec='$libname${shared_ext}.$major'
9748 shlibpath_var=LD_LIBRARY_PATH
9752 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9753 version_type=freebsd-elf
9756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9757 soname_spec='${libname}${release}${shared_ext}$major'
9758 shlibpath_var=LD_LIBRARY_PATH
9759 shlibpath_overrides_runpath=yes
9760 hardcode_into_libs=yes
9761 if test "$with_gnu_ld" = yes; then
9762 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9764 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9767 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9771 sys_lib_dlsearch_path_spec='/usr/lib'
9775 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 shlibpath_var=LD_LIBRARY_PATH
9781 shlibpath_overrides_runpath=no
9782 hardcode_into_libs=yes
9787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788 soname_spec='${libname}${release}${shared_ext}$major'
9789 shlibpath_var=LD_LIBRARY_PATH
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9797 $as_echo "$dynamic_linker" >&6; }
9798 test "$dynamic_linker" = no && can_build_shared=no
9800 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9801 if test "$GCC" = yes; then
9802 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9805 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9806 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9808 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9809 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9899 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9901 if test -n "$hardcode_libdir_flag_spec" ||
9902 test -n "$runpath_var" ||
9903 test "X$hardcode_automatic" = "Xyes" ; then
9905 # We can hardcode non-existent directories.
9906 if test "$hardcode_direct" != no &&
9907 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9908 # have to relink, otherwise we might link with an installed library
9909 # when we should be linking with a yet-to-be-installed one
9910 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
9911 test "$hardcode_minus_L" != no; then
9912 # Linking always hardcodes the temporary library directory.
9913 hardcode_action=relink
9915 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9916 hardcode_action=immediate
9919 # We cannot hardcode anything, or else we can only hardcode existing
9921 hardcode_action=unsupported
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9924 $as_echo "$hardcode_action" >&6; }
9926 if test "$hardcode_action" = relink ||
9927 test "$inherit_rpath" = yes; then
9928 # Fast installation is not supported
9929 enable_fast_install=no
9930 elif test "$shlibpath_overrides_runpath" = yes ||
9931 test "$enable_shared" = no; then
9932 # Fast installation is not necessary
9933 enable_fast_install=needless
9941 if test "x$enable_dlopen" != xyes; then
9942 enable_dlopen=unknown
9943 enable_dlopen_self=unknown
9944 enable_dlopen_self_static=unknown
9951 lt_cv_dlopen="load_add_on"
9953 lt_cv_dlopen_self=yes
9956 mingw* | pw32* | cegcc*)
9957 lt_cv_dlopen="LoadLibrary"
9962 lt_cv_dlopen="dlopen"
9967 # if libdl is installed we need to link against it
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9969 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9970 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9971 $as_echo_n "(cached) " >&6
9973 ac_check_lib_save_LIBS=$LIBS
9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976 /* end confdefs.h. */
9978 /* Override any GCC internal prototype to avoid an error.
9979 Use char because int might match the return type of a GCC
9980 builtin and then its argument prototype would still apply. */
9993 if ac_fn_c_try_link "$LINENO"; then :
9994 ac_cv_lib_dl_dlopen=yes
9996 ac_cv_lib_dl_dlopen=no
9998 rm -f core conftest.err conftest.$ac_objext \
9999 conftest$ac_exeext conftest.$ac_ext
10000 LIBS=$ac_check_lib_save_LIBS
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10003 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10004 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10005 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10008 lt_cv_dlopen="dyld"
10010 lt_cv_dlopen_self=yes
10017 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10018 if test "x$ac_cv_func_shl_load" = x""yes; then :
10019 lt_cv_dlopen="shl_load"
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10022 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10023 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
10026 ac_check_lib_save_LIBS=$LIBS
10028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029 /* end confdefs.h. */
10031 /* Override any GCC internal prototype to avoid an error.
10032 Use char because int might match the return type of a GCC
10033 builtin and then its argument prototype would still apply. */
10041 return shl_load ();
10046 if ac_fn_c_try_link "$LINENO"; then :
10047 ac_cv_lib_dld_shl_load=yes
10049 ac_cv_lib_dld_shl_load=no
10051 rm -f core conftest.err conftest.$ac_objext \
10052 conftest$ac_exeext conftest.$ac_ext
10053 LIBS=$ac_check_lib_save_LIBS
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10056 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10057 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10058 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10060 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10061 if test "x$ac_cv_func_dlopen" = x""yes; then :
10062 lt_cv_dlopen="dlopen"
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10065 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10066 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10067 $as_echo_n "(cached) " >&6
10069 ac_check_lib_save_LIBS=$LIBS
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10074 /* Override any GCC internal prototype to avoid an error.
10075 Use char because int might match the return type of a GCC
10076 builtin and then its argument prototype would still apply. */
10089 if ac_fn_c_try_link "$LINENO"; then :
10090 ac_cv_lib_dl_dlopen=yes
10092 ac_cv_lib_dl_dlopen=no
10094 rm -f core conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10096 LIBS=$ac_check_lib_save_LIBS
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10099 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10100 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10101 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10104 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10105 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10106 $as_echo_n "(cached) " >&6
10108 ac_check_lib_save_LIBS=$LIBS
10109 LIBS="-lsvld $LIBS"
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10113 /* Override any GCC internal prototype to avoid an error.
10114 Use char because int might match the return type of a GCC
10115 builtin and then its argument prototype would still apply. */
10128 if ac_fn_c_try_link "$LINENO"; then :
10129 ac_cv_lib_svld_dlopen=yes
10131 ac_cv_lib_svld_dlopen=no
10133 rm -f core conftest.err conftest.$ac_objext \
10134 conftest$ac_exeext conftest.$ac_ext
10135 LIBS=$ac_check_lib_save_LIBS
10137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10138 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10139 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10140 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10143 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10144 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10145 $as_echo_n "(cached) " >&6
10147 ac_check_lib_save_LIBS=$LIBS
10149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10150 /* end confdefs.h. */
10152 /* Override any GCC internal prototype to avoid an error.
10153 Use char because int might match the return type of a GCC
10154 builtin and then its argument prototype would still apply. */
10162 return dld_link ();
10167 if ac_fn_c_try_link "$LINENO"; then :
10168 ac_cv_lib_dld_dld_link=yes
10170 ac_cv_lib_dld_dld_link=no
10172 rm -f core conftest.err conftest.$ac_objext \
10173 conftest$ac_exeext conftest.$ac_ext
10174 LIBS=$ac_check_lib_save_LIBS
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10177 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10178 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10179 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10200 if test "x$lt_cv_dlopen" != xno; then
10206 case $lt_cv_dlopen in
10208 save_CPPFLAGS="$CPPFLAGS"
10209 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10211 save_LDFLAGS="$LDFLAGS"
10212 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10215 LIBS="$lt_cv_dlopen_libs $LIBS"
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10218 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10219 if test "${lt_cv_dlopen_self+set}" = set; then :
10220 $as_echo_n "(cached) " >&6
10222 if test "$cross_compiling" = yes; then :
10223 lt_cv_dlopen_self=cross
10225 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10226 lt_status=$lt_dlunknown
10227 cat > conftest.$ac_ext <<_LT_EOF
10228 #line 10228 "configure"
10229 #include "confdefs.h"
10238 # define LT_DLGLOBAL RTLD_GLOBAL
10241 # define LT_DLGLOBAL DL_GLOBAL
10243 # define LT_DLGLOBAL 0
10247 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10248 find out it does not work in some platform. */
10249 #ifndef LT_DLLAZY_OR_NOW
10251 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10254 # define LT_DLLAZY_OR_NOW DL_LAZY
10257 # define LT_DLLAZY_OR_NOW RTLD_NOW
10260 # define LT_DLLAZY_OR_NOW DL_NOW
10262 # define LT_DLLAZY_OR_NOW 0
10269 void fnord() { int i=42;}
10272 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10273 int status = $lt_dlunknown;
10277 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10278 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10279 /* dlclose (self); */
10287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10288 (eval $ac_link) 2>&5
10290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10291 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10292 (./conftest; exit; ) >&5 2>/dev/null
10294 case x$lt_status in
10295 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10296 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10297 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10300 # compilation failed
10301 lt_cv_dlopen_self=no
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10309 $as_echo "$lt_cv_dlopen_self" >&6; }
10311 if test "x$lt_cv_dlopen_self" = xyes; then
10312 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10314 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10315 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10316 $as_echo_n "(cached) " >&6
10318 if test "$cross_compiling" = yes; then :
10319 lt_cv_dlopen_self_static=cross
10321 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10322 lt_status=$lt_dlunknown
10323 cat > conftest.$ac_ext <<_LT_EOF
10324 #line 10324 "configure"
10325 #include "confdefs.h"
10334 # define LT_DLGLOBAL RTLD_GLOBAL
10337 # define LT_DLGLOBAL DL_GLOBAL
10339 # define LT_DLGLOBAL 0
10343 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10344 find out it does not work in some platform. */
10345 #ifndef LT_DLLAZY_OR_NOW
10347 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10350 # define LT_DLLAZY_OR_NOW DL_LAZY
10353 # define LT_DLLAZY_OR_NOW RTLD_NOW
10356 # define LT_DLLAZY_OR_NOW DL_NOW
10358 # define LT_DLLAZY_OR_NOW 0
10365 void fnord() { int i=42;}
10368 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10369 int status = $lt_dlunknown;
10373 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10374 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10375 /* dlclose (self); */
10383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10384 (eval $ac_link) 2>&5
10386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10387 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10388 (./conftest; exit; ) >&5 2>/dev/null
10390 case x$lt_status in
10391 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10392 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10393 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10396 # compilation failed
10397 lt_cv_dlopen_self_static=no
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10405 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10408 CPPFLAGS="$save_CPPFLAGS"
10409 LDFLAGS="$save_LDFLAGS"
10414 case $lt_cv_dlopen_self in
10415 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10416 *) enable_dlopen_self=unknown ;;
10419 case $lt_cv_dlopen_self_static in
10420 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10421 *) enable_dlopen_self_static=unknown ;;
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10444 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10445 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10446 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10447 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10449 $as_echo "yes" >&6; }
10451 # FIXME - insert some real tests, host_os isn't really good enough
10454 if test -n "$STRIP" ; then
10455 striplib="$STRIP -x"
10456 old_striplib="$STRIP -S"
10457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10458 $as_echo "yes" >&6; }
10460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10461 $as_echo "no" >&6; }
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10466 $as_echo "no" >&6; }
10482 # Report which library types will actually be built
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10484 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10486 $as_echo "$can_build_shared" >&6; }
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10489 $as_echo_n "checking whether to build shared libraries... " >&6; }
10490 test "$can_build_shared" = "no" && enable_shared=no
10492 # On AIX, shared libraries and static libraries use the same namespace, and
10493 # are all built from PIC.
10496 test "$enable_shared" = yes && enable_static=no
10497 if test -n "$RANLIB"; then
10498 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10499 postinstall_cmds='$RANLIB $lib'
10504 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10505 test "$enable_shared" = yes && enable_static=no
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10510 $as_echo "$enable_shared" >&6; }
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10513 $as_echo_n "checking whether to build static libraries... " >&6; }
10514 # Make sure either enable_shared or enable_static is yes.
10515 test "$enable_shared" = yes || enable_static=yes
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10517 $as_echo "$enable_static" >&6; }
10524 ac_cpp='$CPP $CPPFLAGS'
10525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10543 ac_config_commands="$ac_config_commands libtool"
10548 # Only expand once:
10552 ac_cpp='$CXXCPP $CPPFLAGS'
10553 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10554 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10555 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10558 # Check for a sane C/C++ build environment.
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10560 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
10562 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10563 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
10564 $as_echo_n "(cached) " >&6
10566 cat >conftest.make <<\_ACEOF
10569 @echo '@@@%%%=$(MAKE)=@@@%%%'
10571 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10572 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10573 *@@@%%%=?*=@@@%%%*)
10574 eval ac_cv_prog_make_${ac_make}_set=yes;;
10576 eval ac_cv_prog_make_${ac_make}_set=no;;
10578 rm -f conftest.make
10580 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10582 $as_echo "yes" >&6; }
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10587 SET_MAKE="MAKE=${MAKE-make}"
10592 ac_cpp='$CPP $CPPFLAGS'
10593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10596 if test -n "$ac_tool_prefix"; then
10597 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
10598 set dummy ${ac_tool_prefix}gcc; ac_word=$2
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10600 $as_echo_n "checking for $ac_word... " >&6; }
10601 if test "${ac_cv_prog_CC+set}" = set; then :
10602 $as_echo_n "(cached) " >&6
10604 if test -n "$CC"; then
10605 ac_cv_prog_CC="$CC" # Let the user override the test.
10607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10608 for as_dir in $PATH
10611 test -z "$as_dir" && as_dir=.
10612 for ac_exec_ext in '' $ac_executable_extensions; do
10613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10614 ac_cv_prog_CC="${ac_tool_prefix}gcc"
10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10625 if test -n "$CC"; then
10626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10627 $as_echo "$CC" >&6; }
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630 $as_echo "no" >&6; }
10635 if test -z "$ac_cv_prog_CC"; then
10637 # Extract the first word of "gcc", so it can be a program name with args.
10638 set dummy gcc; ac_word=$2
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10640 $as_echo_n "checking for $ac_word... " >&6; }
10641 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10644 if test -n "$ac_ct_CC"; then
10645 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10648 for as_dir in $PATH
10651 test -z "$as_dir" && as_dir=.
10652 for ac_exec_ext in '' $ac_executable_extensions; do
10653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10654 ac_cv_prog_ac_ct_CC="gcc"
10655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10665 if test -n "$ac_ct_CC"; then
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10667 $as_echo "$ac_ct_CC" >&6; }
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10673 if test "x$ac_ct_CC" = x; then
10676 case $cross_compiling:$ac_tool_warned in
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10679 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10680 ac_tool_warned=yes ;;
10685 CC="$ac_cv_prog_CC"
10688 if test -z "$CC"; then
10689 if test -n "$ac_tool_prefix"; then
10690 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
10691 set dummy ${ac_tool_prefix}cc; ac_word=$2
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10693 $as_echo_n "checking for $ac_word... " >&6; }
10694 if test "${ac_cv_prog_CC+set}" = set; then :
10695 $as_echo_n "(cached) " >&6
10697 if test -n "$CC"; then
10698 ac_cv_prog_CC="$CC" # Let the user override the test.
10700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701 for as_dir in $PATH
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10707 ac_cv_prog_CC="${ac_tool_prefix}cc"
10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10718 if test -n "$CC"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10720 $as_echo "$CC" >&6; }
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10729 if test -z "$CC"; then
10730 # Extract the first word of "cc", so it can be a program name with args.
10731 set dummy cc; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if test "${ac_cv_prog_CC+set}" = set; then :
10735 $as_echo_n "(cached) " >&6
10737 if test -n "$CC"; then
10738 ac_cv_prog_CC="$CC" # Let the user override the test.
10740 ac_prog_rejected=no
10741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10742 for as_dir in $PATH
10745 test -z "$as_dir" && as_dir=.
10746 for ac_exec_ext in '' $ac_executable_extensions; do
10747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10748 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
10749 ac_prog_rejected=yes
10753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 if test $ac_prog_rejected = yes; then
10761 # We found a bogon in the path, so make sure we never use it.
10762 set dummy $ac_cv_prog_CC
10764 if test $# != 0; then
10765 # We chose a different compiler from the bogus one.
10766 # However, it has the same basename, so the bogon will be chosen
10767 # first if we set CC to just the basename; use the full file name.
10769 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
10775 if test -n "$CC"; then
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10777 $as_echo "$CC" >&6; }
10779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10780 $as_echo "no" >&6; }
10785 if test -z "$CC"; then
10786 if test -n "$ac_tool_prefix"; then
10787 for ac_prog in cl.exe
10789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 $as_echo_n "checking for $ac_word... " >&6; }
10793 if test "${ac_cv_prog_CC+set}" = set; then :
10794 $as_echo_n "(cached) " >&6
10796 if test -n "$CC"; then
10797 ac_cv_prog_CC="$CC" # Let the user override the test.
10799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800 for as_dir in $PATH
10803 test -z "$as_dir" && as_dir=.
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10806 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 if test -n "$CC"; then
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
10819 $as_echo "$CC" >&6; }
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; }
10826 test -n "$CC" && break
10829 if test -z "$CC"; then
10831 for ac_prog in cl.exe
10833 # Extract the first word of "$ac_prog", so it can be a program name with args.
10834 set dummy $ac_prog; ac_word=$2
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10836 $as_echo_n "checking for $ac_word... " >&6; }
10837 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
10838 $as_echo_n "(cached) " >&6
10840 if test -n "$ac_ct_CC"; then
10841 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10850 ac_cv_prog_ac_ct_CC="$ac_prog"
10851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10860 ac_ct_CC=$ac_cv_prog_ac_ct_CC
10861 if test -n "$ac_ct_CC"; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
10863 $as_echo "$ac_ct_CC" >&6; }
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10866 $as_echo "no" >&6; }
10870 test -n "$ac_ct_CC" && break
10873 if test "x$ac_ct_CC" = x; then
10876 case $cross_compiling:$ac_tool_warned in
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10879 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10880 ac_tool_warned=yes ;;
10889 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10891 as_fn_error "no acceptable C compiler found in \$PATH
10892 See \`config.log' for more details." "$LINENO" 5; }
10894 # Provide some information about the compiler.
10895 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
10898 for ac_option in --version -v -V -qversion; do
10899 { { ac_try="$ac_compiler $ac_option >&5"
10900 case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10905 $as_echo "$ac_try_echo"; } >&5
10906 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10908 if test -s conftest.err; then
10910 ... rest of stderr output deleted ...
10911 10q' conftest.err >conftest.er1
10912 cat conftest.er1 >&5
10913 rm -f conftest.er1 conftest.err
10915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10916 test $ac_status = 0; }
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
10920 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
10921 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
10922 $as_echo_n "(cached) " >&6
10924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10925 /* end confdefs.h. */
10938 if ac_fn_c_try_compile "$LINENO"; then :
10939 ac_compiler_gnu=yes
10943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10944 ac_cv_c_compiler_gnu=$ac_compiler_gnu
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
10948 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
10949 if test $ac_compiler_gnu = yes; then
10954 ac_test_CFLAGS=${CFLAGS+set}
10955 ac_save_CFLAGS=$CFLAGS
10956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
10957 $as_echo_n "checking whether $CC accepts -g... " >&6; }
10958 if test "${ac_cv_prog_cc_g+set}" = set; then :
10959 $as_echo_n "(cached) " >&6
10961 ac_save_c_werror_flag=$ac_c_werror_flag
10962 ac_c_werror_flag=yes
10965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10966 /* end confdefs.h. */
10976 if ac_fn_c_try_compile "$LINENO"; then :
10977 ac_cv_prog_cc_g=yes
10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10981 /* end confdefs.h. */
10991 if ac_fn_c_try_compile "$LINENO"; then :
10994 ac_c_werror_flag=$ac_save_c_werror_flag
10996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10997 /* end confdefs.h. */
11007 if ac_fn_c_try_compile "$LINENO"; then :
11008 ac_cv_prog_cc_g=yes
11010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11015 ac_c_werror_flag=$ac_save_c_werror_flag
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
11018 $as_echo "$ac_cv_prog_cc_g" >&6; }
11019 if test "$ac_test_CFLAGS" = set; then
11020 CFLAGS=$ac_save_CFLAGS
11021 elif test $ac_cv_prog_cc_g = yes; then
11022 if test "$GCC" = yes; then
11028 if test "$GCC" = yes; then
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
11035 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
11036 if test "${ac_cv_prog_cc_c89+set}" = set; then :
11037 $as_echo_n "(cached) " >&6
11039 ac_cv_prog_cc_c89=no
11041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11042 /* end confdefs.h. */
11043 #include <stdarg.h>
11045 #include <sys/types.h>
11046 #include <sys/stat.h>
11047 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
11048 struct buf { int x; };
11049 FILE * (*rcsopen) (struct buf *, struct stat *, int);
11050 static char *e (p, i)
11056 static char *f (char * (*g) (char **, int), char **p, ...)
11061 s = g (p, va_arg (v,int));
11066 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
11067 function prototypes and stuff, but not '\xHH' hex character constants.
11068 These don't provoke an error unfortunately, instead are silently treated
11069 as 'x'. The following induces an error, until -std is added to get
11070 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
11071 array size at least. It's necessary to write '\x00'==0 to get something
11072 that's true only with -std. */
11073 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
11075 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
11076 inside strings and character constants. */
11078 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
11080 int test (int i, double x);
11081 struct s1 {int (*f) (int a);};
11082 struct s2 {int (*f) (double a);};
11083 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
11089 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
11094 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
11095 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
11097 CC="$ac_save_CC $ac_arg"
11098 if ac_fn_c_try_compile "$LINENO"; then :
11099 ac_cv_prog_cc_c89=$ac_arg
11101 rm -f core conftest.err conftest.$ac_objext
11102 test "x$ac_cv_prog_cc_c89" != "xno" && break
11104 rm -f conftest.$ac_ext
11109 case "x$ac_cv_prog_cc_c89" in
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11112 $as_echo "none needed" >&6; } ;;
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11115 $as_echo "unsupported" >&6; } ;;
11117 CC="$CC $ac_cv_prog_cc_c89"
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
11119 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
11121 if test "x$ac_cv_prog_cc_c89" != xno; then :
11126 ac_cpp='$CXXCPP $CPPFLAGS'
11127 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11128 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11129 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11131 depcc="$CC" am_compiler_list=
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11134 $as_echo_n "checking dependency style of $depcc... " >&6; }
11135 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
11136 $as_echo_n "(cached) " >&6
11138 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11139 # We make a subdir and do the tests there. Otherwise we can end up
11140 # making bogus files that we don't know about and never remove. For
11141 # instance it was reported that on HP-UX the gcc test will end up
11142 # making a dummy file named `D' -- because `-MD' means `put the output
11145 # Copy depcomp to subdir because otherwise we won't find it if we're
11146 # using a relative directory.
11147 cp "$am_depcomp" conftest.dir
11149 # We will build objects and dependencies in a subdirectory because
11150 # it helps to detect inapplicable dependency modes. For instance
11151 # both Tru64's cc and ICC support -MD to output dependencies as a
11152 # side effect of compilation, but ICC will put the dependencies in
11153 # the current directory while Tru64 will put them in the object
11157 am_cv_CC_dependencies_compiler_type=none
11158 if test "$am_compiler_list" = ""; then
11159 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11161 am__universal=false
11162 case " $depcc " in #(
11163 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11166 for depmode in $am_compiler_list; do
11167 # Setup a source with many dependencies, because some compilers
11168 # like to wrap large dependency lists on column 80 (with \), and
11169 # we should not choose a depcomp mode which is confused by this.
11171 # We need to recreate these files for each test, as the compiler may
11172 # overwrite some of them when testing with obscure command lines.
11173 # This happens at least with the AIX C compiler.
11175 for i in 1 2 3 4 5 6; do
11176 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11177 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11178 # Solaris 8's {/usr,}/bin/sh.
11179 touch sub/conftst$i.h
11181 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11183 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11184 # mode. It turns out that the SunPro C++ compiler does not properly
11185 # handle `-M -o', and we need to detect this. Also, some Intel
11186 # versions had trouble with output in subdirs
11187 am__obj=sub/conftest.${OBJEXT-o}
11188 am__minus_obj="-o $am__obj"
11191 # This depmode causes a compiler race in universal mode.
11192 test "$am__universal" = false || continue
11195 # after this tag, mechanisms are not by side-effect, so they'll
11196 # only be used when explicitly requested
11197 if test "x$enable_dependency_tracking" = xyes; then
11203 msvisualcpp | msvcmsys)
11204 # This compiler won't grok `-c -o', but also, the minuso test has
11205 # not run yet. These depmodes are late enough in the game, and
11206 # so weak that their functioning should not be impacted.
11207 am__obj=conftest.${OBJEXT-o}
11212 if depmode=$depmode \
11213 source=sub/conftest.c object=$am__obj \
11214 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11215 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11216 >/dev/null 2>conftest.err &&
11217 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11218 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11219 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11220 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11221 # icc doesn't choke on unknown options, it will just issue warnings
11222 # or remarks (even with -Werror). So we grep stderr for any message
11223 # that says an option was ignored or not supported.
11224 # When given -MP, icc 7.0 and 7.1 complain thusly:
11225 # icc: Command line warning: ignoring option '-M'; no argument required
11226 # The diagnosis changed in icc 8.0:
11227 # icc: Command line remark: option '-MP' not supported
11228 if (grep 'ignoring option' conftest.err ||
11229 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11230 am_cv_CC_dependencies_compiler_type=$depmode
11237 rm -rf conftest.dir
11239 am_cv_CC_dependencies_compiler_type=none
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
11244 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
11245 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
11248 test "x$enable_dependency_tracking" != xno \
11249 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
11250 am__fastdepCC_TRUE=
11251 am__fastdepCC_FALSE='#'
11253 am__fastdepCC_TRUE='#'
11254 am__fastdepCC_FALSE=
11259 ac_cpp='$CXXCPP $CPPFLAGS'
11260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11263 if test -z "$CXX"; then
11264 if test -n "$CCC"; then
11267 if test -n "$ac_tool_prefix"; then
11268 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11273 $as_echo_n "checking for $ac_word... " >&6; }
11274 if test "${ac_cv_prog_CXX+set}" = set; then :
11275 $as_echo_n "(cached) " >&6
11277 if test -n "$CXX"; then
11278 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11281 for as_dir in $PATH
11284 test -z "$as_dir" && as_dir=.
11285 for ac_exec_ext in '' $ac_executable_extensions; do
11286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11287 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11297 CXX=$ac_cv_prog_CXX
11298 if test -n "$CXX"; then
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11300 $as_echo "$CXX" >&6; }
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11303 $as_echo "no" >&6; }
11307 test -n "$CXX" && break
11310 if test -z "$CXX"; then
11312 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11314 # Extract the first word of "$ac_prog", so it can be a program name with args.
11315 set dummy $ac_prog; ac_word=$2
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317 $as_echo_n "checking for $ac_word... " >&6; }
11318 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11319 $as_echo_n "(cached) " >&6
11321 if test -n "$ac_ct_CXX"; then
11322 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in $PATH
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11331 ac_cv_prog_ac_ct_CXX="$ac_prog"
11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11342 if test -n "$ac_ct_CXX"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11344 $as_echo "$ac_ct_CXX" >&6; }
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11351 test -n "$ac_ct_CXX" && break
11354 if test "x$ac_ct_CXX" = x; then
11357 case $cross_compiling:$ac_tool_warned in
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11361 ac_tool_warned=yes ;;
11369 # Provide some information about the compiler.
11370 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11373 for ac_option in --version -v -V -qversion; do
11374 { { ac_try="$ac_compiler $ac_option >&5"
11375 case "(($ac_try" in
11376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11377 *) ac_try_echo=$ac_try;;
11379 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11380 $as_echo "$ac_try_echo"; } >&5
11381 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11383 if test -s conftest.err; then
11385 ... rest of stderr output deleted ...
11386 10q' conftest.err >conftest.er1
11387 cat conftest.er1 >&5
11388 rm -f conftest.er1 conftest.err
11390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11391 test $ac_status = 0; }
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11395 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11396 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11397 $as_echo_n "(cached) " >&6
11399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11400 /* end confdefs.h. */
11413 if ac_fn_cxx_try_compile "$LINENO"; then :
11414 ac_compiler_gnu=yes
11418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11419 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11423 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11424 if test $ac_compiler_gnu = yes; then
11429 ac_test_CXXFLAGS=${CXXFLAGS+set}
11430 ac_save_CXXFLAGS=$CXXFLAGS
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11432 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11433 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11434 $as_echo_n "(cached) " >&6
11436 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11437 ac_cxx_werror_flag=yes
11438 ac_cv_prog_cxx_g=no
11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11451 if ac_fn_cxx_try_compile "$LINENO"; then :
11452 ac_cv_prog_cxx_g=yes
11455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 /* end confdefs.h. */
11466 if ac_fn_cxx_try_compile "$LINENO"; then :
11469 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11482 if ac_fn_cxx_try_compile "$LINENO"; then :
11483 ac_cv_prog_cxx_g=yes
11485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11490 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11493 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11494 if test "$ac_test_CXXFLAGS" = set; then
11495 CXXFLAGS=$ac_save_CXXFLAGS
11496 elif test $ac_cv_prog_cxx_g = yes; then
11497 if test "$GXX" = yes; then
11503 if test "$GXX" = yes; then
11510 ac_cpp='$CXXCPP $CPPFLAGS'
11511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11515 depcc="$CXX" am_compiler_list=
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11518 $as_echo_n "checking dependency style of $depcc... " >&6; }
11519 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11520 $as_echo_n "(cached) " >&6
11522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11523 # We make a subdir and do the tests there. Otherwise we can end up
11524 # making bogus files that we don't know about and never remove. For
11525 # instance it was reported that on HP-UX the gcc test will end up
11526 # making a dummy file named `D' -- because `-MD' means `put the output
11529 # Copy depcomp to subdir because otherwise we won't find it if we're
11530 # using a relative directory.
11531 cp "$am_depcomp" conftest.dir
11533 # We will build objects and dependencies in a subdirectory because
11534 # it helps to detect inapplicable dependency modes. For instance
11535 # both Tru64's cc and ICC support -MD to output dependencies as a
11536 # side effect of compilation, but ICC will put the dependencies in
11537 # the current directory while Tru64 will put them in the object
11541 am_cv_CXX_dependencies_compiler_type=none
11542 if test "$am_compiler_list" = ""; then
11543 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11545 am__universal=false
11546 case " $depcc " in #(
11547 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11550 for depmode in $am_compiler_list; do
11551 # Setup a source with many dependencies, because some compilers
11552 # like to wrap large dependency lists on column 80 (with \), and
11553 # we should not choose a depcomp mode which is confused by this.
11555 # We need to recreate these files for each test, as the compiler may
11556 # overwrite some of them when testing with obscure command lines.
11557 # This happens at least with the AIX C compiler.
11559 for i in 1 2 3 4 5 6; do
11560 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11561 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11562 # Solaris 8's {/usr,}/bin/sh.
11563 touch sub/conftst$i.h
11565 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11567 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11568 # mode. It turns out that the SunPro C++ compiler does not properly
11569 # handle `-M -o', and we need to detect this. Also, some Intel
11570 # versions had trouble with output in subdirs
11571 am__obj=sub/conftest.${OBJEXT-o}
11572 am__minus_obj="-o $am__obj"
11575 # This depmode causes a compiler race in universal mode.
11576 test "$am__universal" = false || continue
11579 # after this tag, mechanisms are not by side-effect, so they'll
11580 # only be used when explicitly requested
11581 if test "x$enable_dependency_tracking" = xyes; then
11587 msvisualcpp | msvcmsys)
11588 # This compiler won't grok `-c -o', but also, the minuso test has
11589 # not run yet. These depmodes are late enough in the game, and
11590 # so weak that their functioning should not be impacted.
11591 am__obj=conftest.${OBJEXT-o}
11596 if depmode=$depmode \
11597 source=sub/conftest.c object=$am__obj \
11598 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11599 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11600 >/dev/null 2>conftest.err &&
11601 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11602 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11603 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11604 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11605 # icc doesn't choke on unknown options, it will just issue warnings
11606 # or remarks (even with -Werror). So we grep stderr for any message
11607 # that says an option was ignored or not supported.
11608 # When given -MP, icc 7.0 and 7.1 complain thusly:
11609 # icc: Command line warning: ignoring option '-M'; no argument required
11610 # The diagnosis changed in icc 8.0:
11611 # icc: Command line remark: option '-MP' not supported
11612 if (grep 'ignoring option' conftest.err ||
11613 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11614 am_cv_CXX_dependencies_compiler_type=$depmode
11621 rm -rf conftest.dir
11623 am_cv_CXX_dependencies_compiler_type=none
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
11628 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11629 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11632 test "x$enable_dependency_tracking" != xno \
11633 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11634 am__fastdepCXX_TRUE=
11635 am__fastdepCXX_FALSE='#'
11637 am__fastdepCXX_TRUE='#'
11638 am__fastdepCXX_FALSE=
11644 ac_cpp='$CXXCPP $CPPFLAGS'
11645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11648 if test -z "$CXX"; then
11649 if test -n "$CCC"; then
11652 if test -n "$ac_tool_prefix"; then
11653 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11658 $as_echo_n "checking for $ac_word... " >&6; }
11659 if test "${ac_cv_prog_CXX+set}" = set; then :
11660 $as_echo_n "(cached) " >&6
11662 if test -n "$CXX"; then
11663 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11666 for as_dir in $PATH
11669 test -z "$as_dir" && as_dir=.
11670 for ac_exec_ext in '' $ac_executable_extensions; do
11671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11672 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11682 CXX=$ac_cv_prog_CXX
11683 if test -n "$CXX"; then
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11685 $as_echo "$CXX" >&6; }
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11692 test -n "$CXX" && break
11695 if test -z "$CXX"; then
11697 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11699 # Extract the first word of "$ac_prog", so it can be a program name with args.
11700 set dummy $ac_prog; ac_word=$2
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11702 $as_echo_n "checking for $ac_word... " >&6; }
11703 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11704 $as_echo_n "(cached) " >&6
11706 if test -n "$ac_ct_CXX"; then
11707 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11716 ac_cv_prog_ac_ct_CXX="$ac_prog"
11717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11726 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11727 if test -n "$ac_ct_CXX"; then
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11729 $as_echo "$ac_ct_CXX" >&6; }
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11732 $as_echo "no" >&6; }
11736 test -n "$ac_ct_CXX" && break
11739 if test "x$ac_ct_CXX" = x; then
11742 case $cross_compiling:$ac_tool_warned in
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11746 ac_tool_warned=yes ;;
11754 # Provide some information about the compiler.
11755 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11758 for ac_option in --version -v -V -qversion; do
11759 { { ac_try="$ac_compiler $ac_option >&5"
11760 case "(($ac_try" in
11761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762 *) ac_try_echo=$ac_try;;
11764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11765 $as_echo "$ac_try_echo"; } >&5
11766 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11768 if test -s conftest.err; then
11770 ... rest of stderr output deleted ...
11771 10q' conftest.err >conftest.er1
11772 cat conftest.er1 >&5
11773 rm -f conftest.er1 conftest.err
11775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11776 test $ac_status = 0; }
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11780 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11781 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11782 $as_echo_n "(cached) " >&6
11784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11785 /* end confdefs.h. */
11798 if ac_fn_cxx_try_compile "$LINENO"; then :
11799 ac_compiler_gnu=yes
11803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11804 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11808 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11809 if test $ac_compiler_gnu = yes; then
11814 ac_test_CXXFLAGS=${CXXFLAGS+set}
11815 ac_save_CXXFLAGS=$CXXFLAGS
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11817 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11818 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11819 $as_echo_n "(cached) " >&6
11821 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11822 ac_cxx_werror_flag=yes
11823 ac_cv_prog_cxx_g=no
11825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826 /* end confdefs.h. */
11836 if ac_fn_cxx_try_compile "$LINENO"; then :
11837 ac_cv_prog_cxx_g=yes
11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11841 /* end confdefs.h. */
11851 if ac_fn_cxx_try_compile "$LINENO"; then :
11854 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11857 /* end confdefs.h. */
11867 if ac_fn_cxx_try_compile "$LINENO"; then :
11868 ac_cv_prog_cxx_g=yes
11870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11875 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11878 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11879 if test "$ac_test_CXXFLAGS" = set; then
11880 CXXFLAGS=$ac_save_CXXFLAGS
11881 elif test $ac_cv_prog_cxx_g = yes; then
11882 if test "$GXX" = yes; then
11888 if test "$GXX" = yes; then
11895 ac_cpp='$CXXCPP $CPPFLAGS'
11896 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11897 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11898 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11900 depcc="$CXX" am_compiler_list=
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11903 $as_echo_n "checking dependency style of $depcc... " >&6; }
11904 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11905 $as_echo_n "(cached) " >&6
11907 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11908 # We make a subdir and do the tests there. Otherwise we can end up
11909 # making bogus files that we don't know about and never remove. For
11910 # instance it was reported that on HP-UX the gcc test will end up
11911 # making a dummy file named `D' -- because `-MD' means `put the output
11914 # Copy depcomp to subdir because otherwise we won't find it if we're
11915 # using a relative directory.
11916 cp "$am_depcomp" conftest.dir
11918 # We will build objects and dependencies in a subdirectory because
11919 # it helps to detect inapplicable dependency modes. For instance
11920 # both Tru64's cc and ICC support -MD to output dependencies as a
11921 # side effect of compilation, but ICC will put the dependencies in
11922 # the current directory while Tru64 will put them in the object
11926 am_cv_CXX_dependencies_compiler_type=none
11927 if test "$am_compiler_list" = ""; then
11928 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11930 am__universal=false
11931 case " $depcc " in #(
11932 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11935 for depmode in $am_compiler_list; do
11936 # Setup a source with many dependencies, because some compilers
11937 # like to wrap large dependency lists on column 80 (with \), and
11938 # we should not choose a depcomp mode which is confused by this.
11940 # We need to recreate these files for each test, as the compiler may
11941 # overwrite some of them when testing with obscure command lines.
11942 # This happens at least with the AIX C compiler.
11944 for i in 1 2 3 4 5 6; do
11945 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11946 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11947 # Solaris 8's {/usr,}/bin/sh.
11948 touch sub/conftst$i.h
11950 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11952 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11953 # mode. It turns out that the SunPro C++ compiler does not properly
11954 # handle `-M -o', and we need to detect this. Also, some Intel
11955 # versions had trouble with output in subdirs
11956 am__obj=sub/conftest.${OBJEXT-o}
11957 am__minus_obj="-o $am__obj"
11960 # This depmode causes a compiler race in universal mode.
11961 test "$am__universal" = false || continue
11964 # after this tag, mechanisms are not by side-effect, so they'll
11965 # only be used when explicitly requested
11966 if test "x$enable_dependency_tracking" = xyes; then
11972 msvisualcpp | msvcmsys)
11973 # This compiler won't grok `-c -o', but also, the minuso test has
11974 # not run yet. These depmodes are late enough in the game, and
11975 # so weak that their functioning should not be impacted.
11976 am__obj=conftest.${OBJEXT-o}
11981 if depmode=$depmode \
11982 source=sub/conftest.c object=$am__obj \
11983 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11984 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11985 >/dev/null 2>conftest.err &&
11986 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11987 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11988 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11989 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11990 # icc doesn't choke on unknown options, it will just issue warnings
11991 # or remarks (even with -Werror). So we grep stderr for any message
11992 # that says an option was ignored or not supported.
11993 # When given -MP, icc 7.0 and 7.1 complain thusly:
11994 # icc: Command line warning: ignoring option '-M'; no argument required
11995 # The diagnosis changed in icc 8.0:
11996 # icc: Command line remark: option '-MP' not supported
11997 if (grep 'ignoring option' conftest.err ||
11998 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11999 am_cv_CXX_dependencies_compiler_type=$depmode
12006 rm -rf conftest.dir
12008 am_cv_CXX_dependencies_compiler_type=none
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12013 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12014 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12017 test "x$enable_dependency_tracking" != xno \
12018 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12019 am__fastdepCXX_TRUE=
12020 am__fastdepCXX_FALSE='#'
12022 am__fastdepCXX_TRUE='#'
12023 am__fastdepCXX_FALSE=
12027 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12028 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12029 (test "X$CXX" != "Xg++"))) ; then
12031 ac_cpp='$CXXCPP $CPPFLAGS'
12032 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12033 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12034 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12036 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12037 if test -z "$CXXCPP"; then
12038 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
12041 # Double quotes because CXXCPP needs to be expanded
12042 for CXXCPP in "$CXX -E" "/lib/cpp"
12044 ac_preproc_ok=false
12045 for ac_cxx_preproc_warn_flag in '' yes
12047 # Use a header file that comes with gcc, so configuring glibc
12048 # with a fresh cross-compiler works.
12049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12050 # <limits.h> exists even on freestanding compilers.
12051 # On the NeXT, cc -E runs the code through the compiler's parser,
12052 # not just through cpp. "Syntax error" is here to catch this case.
12053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12056 # include <limits.h>
12058 # include <assert.h>
12062 if ac_fn_cxx_try_cpp "$LINENO"; then :
12065 # Broken: fails on valid input.
12068 rm -f conftest.err conftest.$ac_ext
12070 # OK, works on sane cases. Now check whether nonexistent headers
12071 # can be detected and how.
12072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12073 /* end confdefs.h. */
12074 #include <ac_nonexistent.h>
12076 if ac_fn_cxx_try_cpp "$LINENO"; then :
12077 # Broken: success on invalid input.
12080 # Passes both tests.
12084 rm -f conftest.err conftest.$ac_ext
12087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12088 rm -f conftest.err conftest.$ac_ext
12089 if $ac_preproc_ok; then :
12094 ac_cv_prog_CXXCPP=$CXXCPP
12097 CXXCPP=$ac_cv_prog_CXXCPP
12099 ac_cv_prog_CXXCPP=$CXXCPP
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12102 $as_echo "$CXXCPP" >&6; }
12103 ac_preproc_ok=false
12104 for ac_cxx_preproc_warn_flag in '' yes
12106 # Use a header file that comes with gcc, so configuring glibc
12107 # with a fresh cross-compiler works.
12108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12109 # <limits.h> exists even on freestanding compilers.
12110 # On the NeXT, cc -E runs the code through the compiler's parser,
12111 # not just through cpp. "Syntax error" is here to catch this case.
12112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12113 /* end confdefs.h. */
12115 # include <limits.h>
12117 # include <assert.h>
12121 if ac_fn_cxx_try_cpp "$LINENO"; then :
12124 # Broken: fails on valid input.
12127 rm -f conftest.err conftest.$ac_ext
12129 # OK, works on sane cases. Now check whether nonexistent headers
12130 # can be detected and how.
12131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12132 /* end confdefs.h. */
12133 #include <ac_nonexistent.h>
12135 if ac_fn_cxx_try_cpp "$LINENO"; then :
12136 # Broken: success on invalid input.
12139 # Passes both tests.
12143 rm -f conftest.err conftest.$ac_ext
12146 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12147 rm -f conftest.err conftest.$ac_ext
12148 if $ac_preproc_ok; then :
12151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12153 _lt_caught_CXX_error=yes; }
12157 ac_cpp='$CXXCPP $CPPFLAGS'
12158 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12159 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12160 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12163 _lt_caught_CXX_error=yes
12170 ac_cpp='$CXXCPP $CPPFLAGS'
12171 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12172 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12173 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12175 archive_cmds_need_lc_CXX=no
12176 allow_undefined_flag_CXX=
12177 always_export_symbols_CXX=no
12178 archive_expsym_cmds_CXX=
12179 compiler_needs_object_CXX=no
12180 export_dynamic_flag_spec_CXX=
12181 hardcode_direct_CXX=no
12182 hardcode_direct_absolute_CXX=no
12183 hardcode_libdir_flag_spec_CXX=
12184 hardcode_libdir_flag_spec_ld_CXX=
12185 hardcode_libdir_separator_CXX=
12186 hardcode_minus_L_CXX=no
12187 hardcode_shlibpath_var_CXX=unsupported
12188 hardcode_automatic_CXX=no
12189 inherit_rpath_CXX=no
12191 module_expsym_cmds_CXX=
12192 link_all_deplibs_CXX=unknown
12193 old_archive_cmds_CXX=$old_archive_cmds
12194 no_undefined_flag_CXX=
12195 whole_archive_flag_spec_CXX=
12196 enable_shared_with_static_runtimes_CXX=no
12198 # Source file extension for C++ test sources.
12201 # Object file extension for compiled C++ test sources.
12205 # No sense in running all these tests if we already determined that
12206 # the CXX compiler isn't working. Some variables (like enable_shared)
12207 # are currently assumed to apply to all compilers on this platform,
12208 # and will be corrupted by setting them based on a non-working compiler.
12209 if test "$_lt_caught_CXX_error" != yes; then
12210 # Code to be used in simple compile tests
12211 lt_simple_compile_test_code="int some_variable = 0;"
12213 # Code to be used in simple link tests
12214 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12216 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12223 # If no C compiler was specified, use CC.
12226 # If no C compiler flags were specified, use CFLAGS.
12227 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12229 # Allow CC to be a program name with arguments.
12233 # save warnings/boilerplate of simple test code
12234 ac_outfile=conftest.$ac_objext
12235 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12236 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12237 _lt_compiler_boilerplate=`cat conftest.err`
12240 ac_outfile=conftest.$ac_objext
12241 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12242 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12243 _lt_linker_boilerplate=`cat conftest.err`
12247 # Allow CC to be a program name with arguments.
12252 lt_save_with_gnu_ld=$with_gnu_ld
12253 lt_save_path_LD=$lt_cv_path_LD
12254 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12255 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12257 $as_unset lt_cv_prog_gnu_ld
12259 if test -n "${lt_cv_path_LDCXX+set}"; then
12260 lt_cv_path_LD=$lt_cv_path_LDCXX
12262 $as_unset lt_cv_path_LD
12264 test -z "${LDCXX+set}" || LD=$LDCXX
12268 for cc_temp in $compiler""; do
12270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12276 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12279 if test -n "$compiler"; then
12280 # We don't want -fno-exception when compiling C++ code, so set the
12281 # no_builtin_flag separately
12282 if test "$GXX" = yes; then
12283 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12285 lt_prog_compiler_no_builtin_flag_CXX=
12288 if test "$GXX" = yes; then
12289 # Set up default GNU C++ configuration
12293 # Check whether --with-gnu-ld was given.
12294 if test "${with_gnu_ld+set}" = set; then :
12295 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12301 if test "$GCC" = yes; then
12302 # Check if gcc -print-prog-name=ld gives a path.
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12304 $as_echo_n "checking for ld used by $CC... " >&6; }
12307 # gcc leaves a trailing carriage return which upsets mingw
12308 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12310 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12313 # Accept absolute paths.
12315 re_direlt='/[^/][^/]*/\.\./'
12316 # Canonicalize the pathname of ld
12317 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12318 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12319 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12321 test -z "$LD" && LD="$ac_prog"
12324 # If it fails, then pretend we aren't using GCC.
12328 # If it is relative, then search for the first ld in PATH.
12329 with_gnu_ld=unknown
12332 elif test "$with_gnu_ld" = yes; then
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12334 $as_echo_n "checking for GNU ld... " >&6; }
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12337 $as_echo_n "checking for non-GNU ld... " >&6; }
12339 if test "${lt_cv_path_LD+set}" = set; then :
12340 $as_echo_n "(cached) " >&6
12342 if test -z "$LD"; then
12343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12344 for ac_dir in $PATH; do
12346 test -z "$ac_dir" && ac_dir=.
12347 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12348 lt_cv_path_LD="$ac_dir/$ac_prog"
12349 # Check to see if the program is GNU ld. I'd rather use --version,
12350 # but apparently some variants of GNU ld only accept -v.
12351 # Break only if it was the GNU/non-GNU ld that we prefer.
12352 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12353 *GNU* | *'with BFD'*)
12354 test "$with_gnu_ld" != no && break
12357 test "$with_gnu_ld" != yes && break
12364 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12368 LD="$lt_cv_path_LD"
12369 if test -n "$LD"; then
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12371 $as_echo "$LD" >&6; }
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12376 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12379 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12380 $as_echo_n "(cached) " >&6
12382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12383 case `$LD -v 2>&1 </dev/null` in
12384 *GNU* | *'with BFD'*)
12385 lt_cv_prog_gnu_ld=yes
12388 lt_cv_prog_gnu_ld=no
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12394 with_gnu_ld=$lt_cv_prog_gnu_ld
12402 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12403 # archiving commands below assume that GNU ld is being used.
12404 if test "$with_gnu_ld" = yes; then
12405 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12406 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12408 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12409 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12411 # If archive_cmds runs LD, not CC, wlarc should be empty
12412 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12413 # investigate it a little bit more. (MM)
12416 # ancient GNU ld didn't support --whole-archive et. al.
12417 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12418 $GREP 'no-whole-archive' > /dev/null; then
12419 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12421 whole_archive_flag_spec_CXX=
12427 # A generic and very simple default shared library creation
12428 # command for GNU C++ for the case where it uses the native
12429 # linker, instead of GNU ld. If possible, this setting should
12430 # overridden to take advantage of the native linker features on
12431 # the platform it is being used on.
12432 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12435 # Commands to make compiler produce verbose output that lists
12436 # what "hidden" libraries, object files and flags are used when
12437 # linking a shared library.
12438 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12446 # PORTME: fill in a description of your system's C++ link characteristics
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12448 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12452 # FIXME: insert proper C++ library support
12456 if test "$host_cpu" = ia64; then
12457 # On IA64, the linker does run time linking by default, so we don't
12458 # have to do anything special.
12459 aix_use_runtimelinking=no
12460 exp_sym_flag='-Bexport'
12463 aix_use_runtimelinking=no
12465 # Test if we are trying to use run time linking or normal
12466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12467 # need to do runtime linking.
12468 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12469 for ld_flag in $LDFLAGS; do
12472 aix_use_runtimelinking=yes
12480 exp_sym_flag='-bexport'
12481 no_entry_flag='-bnoentry'
12484 # When large executables or shared objects are built, AIX ld can
12485 # have problems creating the table of contents. If linking a library
12486 # or program results in "error TOC overflow" add -mminimal-toc to
12487 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12488 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12490 archive_cmds_CXX=''
12491 hardcode_direct_CXX=yes
12492 hardcode_direct_absolute_CXX=yes
12493 hardcode_libdir_separator_CXX=':'
12494 link_all_deplibs_CXX=yes
12495 file_list_spec_CXX='${wl}-f,'
12497 if test "$GXX" = yes; then
12498 case $host_os in aix4.[012]|aix4.[012].*)
12499 # We only want to do this on AIX 4.2 and lower, the check
12500 # below for broken collect2 doesn't work under 4.3+
12501 collect2name=`${CC} -print-prog-name=collect2`
12502 if test -f "$collect2name" &&
12503 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12505 # We have reworked collect2
12508 # We have old collect2
12509 hardcode_direct_CXX=unsupported
12510 # It fails to find uninstalled libraries when the uninstalled
12511 # path is not listed in the libpath. Setting hardcode_minus_L
12512 # to unsupported forces relinking
12513 hardcode_minus_L_CXX=yes
12514 hardcode_libdir_flag_spec_CXX='-L$libdir'
12515 hardcode_libdir_separator_CXX=
12518 shared_flag='-shared'
12519 if test "$aix_use_runtimelinking" = yes; then
12520 shared_flag="$shared_flag "'${wl}-G'
12524 if test "$host_cpu" = ia64; then
12525 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12526 # chokes on -Wl,-G. The following line is correct:
12529 if test "$aix_use_runtimelinking" = yes; then
12530 shared_flag='${wl}-G'
12532 shared_flag='${wl}-bM:SRE'
12537 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12538 # It seems that -bexpall does not export symbols beginning with
12539 # underscore (_), so it is better to generate a list of symbols to
12541 always_export_symbols_CXX=yes
12542 if test "$aix_use_runtimelinking" = yes; then
12543 # Warning - without using the other runtime loading flags (-brtl),
12544 # -berok will link without error, but may produce a broken library.
12545 allow_undefined_flag_CXX='-berok'
12546 # Determine the default libpath from the value encoded in an empty
12548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12549 /* end confdefs.h. */
12559 if ac_fn_cxx_try_link "$LINENO"; then :
12561 lt_aix_libpath_sed='
12562 /Import File Strings/,/^$/ {
12568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12569 # Check for a 64-bit object if we didn't find anything.
12570 if test -z "$aix_libpath"; then
12571 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12574 rm -f core conftest.err conftest.$ac_objext \
12575 conftest$ac_exeext conftest.$ac_ext
12576 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12578 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12580 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12582 if test "$host_cpu" = ia64; then
12583 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12584 allow_undefined_flag_CXX="-z nodefs"
12585 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"
12587 # Determine the default libpath from the value encoded in an
12588 # empty executable.
12589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12590 /* end confdefs.h. */
12600 if ac_fn_cxx_try_link "$LINENO"; then :
12602 lt_aix_libpath_sed='
12603 /Import File Strings/,/^$/ {
12609 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12610 # Check for a 64-bit object if we didn't find anything.
12611 if test -z "$aix_libpath"; then
12612 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12615 rm -f core conftest.err conftest.$ac_objext \
12616 conftest$ac_exeext conftest.$ac_ext
12617 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12619 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12620 # Warning - without using the other run time loading flags,
12621 # -berok will link without error, but may produce a broken library.
12622 no_undefined_flag_CXX=' ${wl}-bernotok'
12623 allow_undefined_flag_CXX=' ${wl}-berok'
12624 # Exported symbols can be pulled into shared objects from archives
12625 whole_archive_flag_spec_CXX='$convenience'
12626 archive_cmds_need_lc_CXX=yes
12627 # This is similar to how AIX traditionally builds its shared
12629 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'
12635 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12636 allow_undefined_flag_CXX=unsupported
12637 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12638 # support --undefined. This deserves some investigation. FIXME
12639 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12646 case $cc_basename in
12648 # FIXME: insert proper C++ library support
12654 cygwin* | mingw* | pw32* | cegcc*)
12655 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12656 # as there is no search path for DLLs.
12657 hardcode_libdir_flag_spec_CXX='-L$libdir'
12658 allow_undefined_flag_CXX=unsupported
12659 always_export_symbols_CXX=no
12660 enable_shared_with_static_runtimes_CXX=yes
12662 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12663 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'
12664 # If the export-symbols file already is a .def file (1st line
12665 # is EXPORTS), use it as is; otherwise, prepend...
12666 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12667 cp $export_symbols $output_objdir/$soname.def;
12669 echo EXPORTS > $output_objdir/$soname.def;
12670 cat $export_symbols >> $output_objdir/$soname.def;
12672 $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'
12677 darwin* | rhapsody*)
12680 archive_cmds_need_lc_CXX=no
12681 hardcode_direct_CXX=no
12682 hardcode_automatic_CXX=yes
12683 hardcode_shlibpath_var_CXX=unsupported
12684 whole_archive_flag_spec_CXX=''
12685 link_all_deplibs_CXX=yes
12686 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12687 case $cc_basename in
12688 ifort*) _lt_dar_can_shared=yes ;;
12689 *) _lt_dar_can_shared=$GCC ;;
12691 if test "$_lt_dar_can_shared" = "yes"; then
12692 output_verbose_link_cmd=echo
12693 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}"
12694 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12695 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}"
12696 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}"
12697 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12698 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}"
12699 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}"
12709 case $cc_basename in
12711 # FIXME: insert proper C++ library support
12715 # Green Hills C++ Compiler
12716 # FIXME: insert proper C++ library support
12720 # FIXME: insert proper C++ library support
12727 # C++ shared libraries reported to be fairly broken before
12733 archive_cmds_need_lc_CXX=no
12736 freebsd* | dragonfly*)
12737 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12746 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12747 hardcode_libdir_separator_CXX=:
12748 export_dynamic_flag_spec_CXX='${wl}-E'
12749 hardcode_direct_CXX=yes
12750 hardcode_minus_L_CXX=yes # Not in the search PATH,
12751 # but as the default
12752 # location of the library.
12754 case $cc_basename in
12756 # FIXME: insert proper C++ library support
12760 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'
12761 # Commands to make compiler produce verbose output that lists
12762 # what "hidden" libraries, object files and flags are used when
12763 # linking a shared library.
12765 # There doesn't appear to be a way to prevent this compiler from
12766 # explicitly linking system object files so we need to strip them
12767 # from the output so that they don't get included in the library
12769 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; $ECHO "X$list" | $Xsed'
12772 if test "$GXX" = yes; then
12773 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
12775 # FIXME: insert proper C++ library support
12783 if test $with_gnu_ld = no; then
12784 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12785 hardcode_libdir_separator_CXX=:
12791 export_dynamic_flag_spec_CXX='${wl}-E'
12797 hardcode_direct_CXX=no
12798 hardcode_shlibpath_var_CXX=no
12801 hardcode_direct_CXX=yes
12802 hardcode_direct_absolute_CXX=yes
12803 hardcode_minus_L_CXX=yes # Not in the search PATH,
12804 # but as the default
12805 # location of the library.
12809 case $cc_basename in
12811 # FIXME: insert proper C++ library support
12817 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12820 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12823 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12826 # Commands to make compiler produce verbose output that lists
12827 # what "hidden" libraries, object files and flags are used when
12828 # linking a shared library.
12830 # There doesn't appear to be a way to prevent this compiler from
12831 # explicitly linking system object files so we need to strip them
12832 # from the output so that they don't get included in the library
12834 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; $ECHO "X$list" | $Xsed'
12837 if test "$GXX" = yes; then
12838 if test $with_gnu_ld = no; then
12841 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12844 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12847 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12852 # FIXME: insert proper C++ library support
12860 hardcode_direct_CXX=no
12861 hardcode_shlibpath_var_CXX=no
12862 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12863 export_dynamic_flag_spec_CXX='${wl}-E'
12864 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12865 # Instead, shared libraries are loaded at an image base (0x10000000 by
12866 # default) and relocated if they conflict, which is a slow very memory
12867 # consuming and fragmenting process. To avoid this, we pick a random,
12868 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12869 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12870 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'
12871 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'
12874 case $cc_basename in
12877 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12879 # Archives containing C++ object files must be created using
12880 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12881 # necessary to make sure instantiated templates are included
12883 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12886 if test "$GXX" = yes; then
12887 if test "$with_gnu_ld" = no; then
12888 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12890 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
12893 link_all_deplibs_CXX=yes
12896 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12897 hardcode_libdir_separator_CXX=:
12898 inherit_rpath_CXX=yes
12901 linux* | k*bsd*-gnu)
12902 case $cc_basename in
12904 # Kuck and Associates, Inc. (KAI) C++ Compiler
12906 # KCC will only create a shared library if the output file
12907 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12908 # to its proper name (with version) after linking.
12909 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'
12910 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'
12911 # Commands to make compiler produce verbose output that lists
12912 # what "hidden" libraries, object files and flags are used when
12913 # linking a shared library.
12915 # There doesn't appear to be a way to prevent this compiler from
12916 # explicitly linking system object files so we need to strip them
12917 # from the output so that they don't get included in the library
12919 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; $ECHO "X$list" | $Xsed'
12921 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12922 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12924 # Archives containing C++ object files must be created using
12925 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12926 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12931 # version 8.0 and above of icpc choke on multiply defined symbols
12932 # if we add $predep_objects and $postdep_objects, however 7.1 and
12933 # earlier do not add the objects themselves.
12934 case `$CC -V 2>&1` in
12936 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12937 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'
12939 *) # Version 8.0 or newer
12942 ia64*) tmp_idyn=' -i_dynamic';;
12944 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12945 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'
12948 archive_cmds_need_lc_CXX=no
12949 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12950 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12951 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12954 # Portland Group C++ compiler
12956 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
12957 prelink_cmds_CXX='tpldir=Template.dir~
12959 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12960 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12961 old_archive_cmds_CXX='tpldir=Template.dir~
12963 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12964 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12966 archive_cmds_CXX='tpldir=Template.dir~
12968 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12969 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12970 archive_expsym_cmds_CXX='tpldir=Template.dir~
12972 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12973 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12975 *) # Version 6 will use weak symbols
12976 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12977 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'
12981 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12982 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12983 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12987 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12988 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'
12990 runpath_var=LD_RUN_PATH
12991 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12992 hardcode_libdir_separator_CXX=:
12994 # Commands to make compiler produce verbose output that lists
12995 # what "hidden" libraries, object files and flags are used when
12996 # linking a shared library.
12998 # There doesn't appear to be a way to prevent this compiler from
12999 # explicitly linking system object files so we need to strip them
13000 # from the output so that they don't get included in the library
13002 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13005 # IBM XL 8.0 on PPC, with GNU ld
13006 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13007 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13008 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13009 if test "x$supports_anon_versioning" = xyes; then
13010 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13011 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13012 echo "local: *; };" >> $output_objdir/$libname.ver~
13013 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13017 case `$CC -V 2>&1 | sed 5q` in
13020 no_undefined_flag_CXX=' -zdefs'
13021 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13022 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'
13023 hardcode_libdir_flag_spec_CXX='-R$libdir'
13024 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13025 compiler_needs_object_CXX=yes
13027 # Not sure whether something based on
13028 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13030 output_verbose_link_cmd='echo'
13032 # Archives containing C++ object files must be created using
13033 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13034 # necessary to make sure instantiated templates are included
13036 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13044 # FIXME: insert proper C++ library support
13049 # FIXME: insert proper C++ library support
13054 case $cc_basename in
13056 # FIXME: insert proper C++ library support
13060 # FIXME: insert proper C++ library support
13067 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13068 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13070 hardcode_libdir_flag_spec_CXX='-R$libdir'
13071 hardcode_direct_CXX=yes
13072 hardcode_shlibpath_var_CXX=no
13074 # Workaround some broken pre-1.5 toolchains
13075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13083 # C++ shared libraries are fairly broken
13088 if test -f /usr/libexec/ld.so; then
13089 hardcode_direct_CXX=yes
13090 hardcode_shlibpath_var_CXX=no
13091 hardcode_direct_absolute_CXX=yes
13092 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13093 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13094 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13095 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13096 export_dynamic_flag_spec_CXX='${wl}-E'
13097 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13099 output_verbose_link_cmd=echo
13105 osf3* | osf4* | osf5*)
13106 case $cc_basename in
13108 # Kuck and Associates, Inc. (KAI) C++ Compiler
13110 # KCC will only create a shared library if the output file
13111 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13112 # to its proper name (with version) after linking.
13113 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'
13115 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13116 hardcode_libdir_separator_CXX=:
13118 # Archives containing C++ object files must be created using
13119 # the KAI C++ compiler.
13121 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13122 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13126 # Rational C++ 2.4.1
13127 # FIXME: insert proper C++ library support
13133 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13134 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13135 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13138 allow_undefined_flag_CXX=' -expect_unresolved \*'
13139 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13140 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13141 echo "-hidden">> $lib.exp~
13142 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13144 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13148 hardcode_libdir_separator_CXX=:
13150 # Commands to make compiler produce verbose output that lists
13151 # what "hidden" libraries, object files and flags are used when
13152 # linking a shared library.
13154 # There doesn't appear to be a way to prevent this compiler from
13155 # explicitly linking system object files so we need to strip them
13156 # from the output so that they don't get included in the library
13158 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13161 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13162 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13165 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13168 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13172 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13173 hardcode_libdir_separator_CXX=:
13175 # Commands to make compiler produce verbose output that lists
13176 # what "hidden" libraries, object files and flags are used when
13177 # linking a shared library.
13178 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13181 # FIXME: insert proper C++ library support
13189 # FIXME: insert proper C++ library support
13194 case $cc_basename in
13197 # FIXME: insert proper C++ library support
13202 # FIXME: insert proper C++ library support
13206 # FIXME: insert proper C++ library support
13213 case $cc_basename in
13215 # Sun C++ 4.2, 5.x and Centerline C++
13216 archive_cmds_need_lc_CXX=yes
13217 no_undefined_flag_CXX=' -zdefs'
13218 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13219 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13220 $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'
13222 hardcode_libdir_flag_spec_CXX='-R$libdir'
13223 hardcode_shlibpath_var_CXX=no
13225 solaris2.[0-5] | solaris2.[0-5].*) ;;
13227 # The compiler driver will combine and reorder linker options,
13228 # but understands `-z linker_flag'.
13229 # Supported since Solaris 2.6 (maybe 2.5.1?)
13230 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13233 link_all_deplibs_CXX=yes
13235 output_verbose_link_cmd='echo'
13237 # Archives containing C++ object files must be created using
13238 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13239 # necessary to make sure instantiated templates are included
13241 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13244 # Green Hills C++ Compiler
13245 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13247 # The C++ compiler must be used to create the archive.
13248 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13251 # GNU C++ compiler with Solaris linker
13252 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13253 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13254 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13255 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13256 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13257 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13259 # Commands to make compiler produce verbose output that lists
13260 # what "hidden" libraries, object files and flags are used when
13261 # linking a shared library.
13262 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13264 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13266 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13267 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13268 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13270 # Commands to make compiler produce verbose output that lists
13271 # what "hidden" libraries, object files and flags are used when
13272 # linking a shared library.
13273 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13276 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13278 solaris2.[0-5] | solaris2.[0-5].*) ;;
13280 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13288 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13289 no_undefined_flag_CXX='${wl}-z,text'
13290 archive_cmds_need_lc_CXX=no
13291 hardcode_shlibpath_var_CXX=no
13292 runpath_var='LD_RUN_PATH'
13294 case $cc_basename in
13296 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13297 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13300 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13301 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13306 sysv5* | sco3.2v5* | sco5v6*)
13307 # Note: We can NOT use -z defs as we might desire, because we do not
13308 # link with -lc, and that would cause any symbols used from libc to
13309 # always be unresolved, which means just about no library would
13310 # ever link correctly. If we're not using GNU ld we use -z text
13311 # though, which does catch some bad symbols but isn't as heavy-handed
13313 no_undefined_flag_CXX='${wl}-z,text'
13314 allow_undefined_flag_CXX='${wl}-z,nodefs'
13315 archive_cmds_need_lc_CXX=no
13316 hardcode_shlibpath_var_CXX=no
13317 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13318 hardcode_libdir_separator_CXX=':'
13319 link_all_deplibs_CXX=yes
13320 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13321 runpath_var='LD_RUN_PATH'
13323 case $cc_basename in
13325 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13326 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13329 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13330 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13336 case $cc_basename in
13338 # NonStop-UX NCC 3.20
13339 # FIXME: insert proper C++ library support
13343 # FIXME: insert proper C++ library support
13350 # FIXME: insert proper C++ library support
13355 # FIXME: insert proper C++ library support
13360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13361 $as_echo "$ld_shlibs_CXX" >&6; }
13362 test "$ld_shlibs_CXX" = no && can_build_shared=no
13368 ## There is no encapsulation within the following macros, do not change
13369 ## the running order or otherwise move them around unless you know exactly
13370 ## what you are doing...
13371 # Dependencies to place before and after the object being linked:
13372 predep_objects_CXX=
13373 postdep_objects_CXX=
13376 compiler_lib_search_path_CXX=
13378 cat > conftest.$ac_ext <<_LT_EOF
13382 Foo (void) { a = 0; }
13388 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13389 (eval $ac_compile) 2>&5
13391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13392 test $ac_status = 0; }; then
13393 # Parse the compiler output and extract the necessary
13394 # objects, libraries and library flags.
13396 # Sentinel used to keep track of whether or not we are before
13397 # the conftest object file.
13398 pre_test_object_deps_done=no
13400 for p in `eval "$output_verbose_link_cmd"`; do
13404 # Some compilers place space between "-{L,R}" and the path.
13405 # Remove the space.
13406 if test $p = "-L" ||
13407 test $p = "-R"; then
13414 if test "$pre_test_object_deps_done" = no; then
13417 # Internal compiler library paths should come after those
13418 # provided the user. The postdeps already come after the
13419 # user supplied libs so there is no need to process them.
13420 if test -z "$compiler_lib_search_path_CXX"; then
13421 compiler_lib_search_path_CXX="${prev}${p}"
13423 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13426 # The "-l" case would never come before the object being
13427 # linked, so don't bother handling this case.
13430 if test -z "$postdeps_CXX"; then
13431 postdeps_CXX="${prev}${p}"
13433 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13439 # This assumes that the test object file only shows up
13440 # once in the compiler output.
13441 if test "$p" = "conftest.$objext"; then
13442 pre_test_object_deps_done=yes
13446 if test "$pre_test_object_deps_done" = no; then
13447 if test -z "$predep_objects_CXX"; then
13448 predep_objects_CXX="$p"
13450 predep_objects_CXX="$predep_objects_CXX $p"
13453 if test -z "$postdep_objects_CXX"; then
13454 postdep_objects_CXX="$p"
13456 postdep_objects_CXX="$postdep_objects_CXX $p"
13461 *) ;; # Ignore the rest.
13469 echo "libtool.m4: error: problem compiling CXX test program"
13472 $RM -f confest.$objext
13474 # PORTME: override above test on systems where it is broken
13477 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13478 # hack all around it, let's just trust "g++" to DTRT.
13479 predep_objects_CXX=
13480 postdep_objects_CXX=
13485 case `$CC -V 2>&1 | sed 5q` in
13489 # The more standards-conforming stlport4 library is
13490 # incompatible with the Cstd library. Avoid specifying
13491 # it if it's in CXXFLAGS. Ignore libCrun as
13492 # -library=stlport4 depends on it.
13493 case " $CXX $CXXFLAGS " in
13494 *" -library=stlport4 "*)
13495 solaris_use_stlport4=yes
13499 if test "$solaris_use_stlport4" != yes; then
13500 postdeps_CXX='-library=Cstd -library=Crun'
13507 case $cc_basename in
13509 # The more standards-conforming stlport4 library is
13510 # incompatible with the Cstd library. Avoid specifying
13511 # it if it's in CXXFLAGS. Ignore libCrun as
13512 # -library=stlport4 depends on it.
13513 case " $CXX $CXXFLAGS " in
13514 *" -library=stlport4 "*)
13515 solaris_use_stlport4=yes
13519 # Adding this requires a known-good setup of shared libraries for
13520 # Sun compiler versions before 5.6, else PIC objects from an old
13521 # archive will be linked into the output, leading to subtle bugs.
13522 if test "$solaris_use_stlport4" != yes; then
13523 postdeps_CXX='-library=Cstd -library=Crun'
13531 case " $postdeps_CXX " in
13532 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13534 compiler_lib_search_dirs_CXX=
13535 if test -n "${compiler_lib_search_path_CXX}"; then
13536 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13569 lt_prog_compiler_wl_CXX=
13570 lt_prog_compiler_pic_CXX=
13571 lt_prog_compiler_static_CXX=
13573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13574 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13576 # C++ specific cases for pic, static, wl, etc.
13577 if test "$GXX" = yes; then
13578 lt_prog_compiler_wl_CXX='-Wl,'
13579 lt_prog_compiler_static_CXX='-static'
13583 # All AIX code is PIC.
13584 if test "$host_cpu" = ia64; then
13585 # AIX 5 now supports IA64 processor
13586 lt_prog_compiler_static_CXX='-Bstatic'
13593 # see comment about AmigaOS4 .so support
13594 lt_prog_compiler_pic_CXX='-fPIC'
13597 # FIXME: we need at least 68020 code to build shared libraries, but
13598 # adding the `-m68020' flag to GCC prevents building anything better,
13600 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13605 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13606 # PIC is the default for these OSes.
13608 mingw* | cygwin* | os2* | pw32* | cegcc*)
13609 # This hack is so that the source file can tell whether it is being
13610 # built for inclusion in a dll (and should export symbols for example).
13611 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13612 # (--disable-auto-import) libraries
13613 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13615 darwin* | rhapsody*)
13616 # PIC is the default on this platform
13617 # Common symbols not allowed in MH_DYLIB files
13618 lt_prog_compiler_pic_CXX='-fno-common'
13621 # DJGPP does not support shared libraries at all
13622 lt_prog_compiler_pic_CXX=
13625 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13626 # Instead, we relocate shared libraries at runtime.
13629 if test -d /usr/nec; then
13630 lt_prog_compiler_pic_CXX=-Kconform_pic
13634 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13635 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13636 # sets the default TLS model and affects inlining.
13641 lt_prog_compiler_pic_CXX='-fPIC'
13646 # QNX uses GNU C++, but need to define -shared option too, otherwise
13647 # it will coredump.
13648 lt_prog_compiler_pic_CXX='-fPIC -shared'
13651 lt_prog_compiler_pic_CXX='-fPIC'
13657 # All AIX code is PIC.
13658 if test "$host_cpu" = ia64; then
13659 # AIX 5 now supports IA64 processor
13660 lt_prog_compiler_static_CXX='-Bstatic'
13662 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13666 case $cc_basename in
13668 # Green Hills C++ Compiler
13669 # _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"
13674 case $cc_basename in
13676 lt_prog_compiler_pic_CXX='-KPIC'
13679 # Green Hills C++ Compiler
13680 lt_prog_compiler_pic_CXX='-pic'
13686 freebsd* | dragonfly*)
13687 # FreeBSD uses GNU C++
13689 hpux9* | hpux10* | hpux11*)
13690 case $cc_basename in
13692 lt_prog_compiler_wl_CXX='-Wl,'
13693 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13694 if test "$host_cpu" != ia64; then
13695 lt_prog_compiler_pic_CXX='+Z'
13699 lt_prog_compiler_wl_CXX='-Wl,'
13700 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13706 lt_prog_compiler_pic_CXX='+Z'
13715 # This is c89, which is MS Visual C++ (no shared libs)
13716 # Anyone wants to do a port?
13718 irix5* | irix6* | nonstopux*)
13719 case $cc_basename in
13721 lt_prog_compiler_wl_CXX='-Wl,'
13722 lt_prog_compiler_static_CXX='-non_shared'
13723 # CC pic flag -KPIC is the default.
13729 linux* | k*bsd*-gnu)
13730 case $cc_basename in
13733 lt_prog_compiler_wl_CXX='--backend -Wl,'
13734 lt_prog_compiler_pic_CXX='-fPIC'
13737 # old Intel C++ for x86_64 which still supported -KPIC.
13738 lt_prog_compiler_wl_CXX='-Wl,'
13739 lt_prog_compiler_pic_CXX='-KPIC'
13740 lt_prog_compiler_static_CXX='-static'
13743 # Intel C++, used to be incompatible with GCC.
13744 # ICC 10 doesn't accept -KPIC any more.
13745 lt_prog_compiler_wl_CXX='-Wl,'
13746 lt_prog_compiler_pic_CXX='-fPIC'
13747 lt_prog_compiler_static_CXX='-static'
13750 # Portland Group C++ compiler
13751 lt_prog_compiler_wl_CXX='-Wl,'
13752 lt_prog_compiler_pic_CXX='-fpic'
13753 lt_prog_compiler_static_CXX='-Bstatic'
13757 # Make sure the PIC flag is empty. It appears that all Alpha
13758 # Linux and Compaq Tru64 Unix objects are PIC.
13759 lt_prog_compiler_pic_CXX=
13760 lt_prog_compiler_static_CXX='-non_shared'
13763 # IBM XL 8.0 on PPC
13764 lt_prog_compiler_wl_CXX='-Wl,'
13765 lt_prog_compiler_pic_CXX='-qpic'
13766 lt_prog_compiler_static_CXX='-qstaticlink'
13769 case `$CC -V 2>&1 | sed 5q` in
13772 lt_prog_compiler_pic_CXX='-KPIC'
13773 lt_prog_compiler_static_CXX='-Bstatic'
13774 lt_prog_compiler_wl_CXX='-Qoption ld '
13785 case $cc_basename in
13787 lt_prog_compiler_pic_CXX='-W c,exportall'
13796 # QNX uses GNU C++, but need to define -shared option too, otherwise
13797 # it will coredump.
13798 lt_prog_compiler_pic_CXX='-fPIC -shared'
13800 osf3* | osf4* | osf5*)
13801 case $cc_basename in
13803 lt_prog_compiler_wl_CXX='--backend -Wl,'
13806 # Rational C++ 2.4.1
13807 lt_prog_compiler_pic_CXX='-pic'
13810 # Digital/Compaq C++
13811 lt_prog_compiler_wl_CXX='-Wl,'
13812 # Make sure the PIC flag is empty. It appears that all Alpha
13813 # Linux and Compaq Tru64 Unix objects are PIC.
13814 lt_prog_compiler_pic_CXX=
13815 lt_prog_compiler_static_CXX='-non_shared'
13824 case $cc_basename in
13826 # Sun C++ 4.2, 5.x and Centerline C++
13827 lt_prog_compiler_pic_CXX='-KPIC'
13828 lt_prog_compiler_static_CXX='-Bstatic'
13829 lt_prog_compiler_wl_CXX='-Qoption ld '
13832 # Green Hills C++ Compiler
13833 lt_prog_compiler_pic_CXX='-PIC'
13840 case $cc_basename in
13843 lt_prog_compiler_pic_CXX='-pic'
13844 lt_prog_compiler_static_CXX='-Bstatic'
13848 lt_prog_compiler_pic_CXX='-pic'
13854 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13855 case $cc_basename in
13857 lt_prog_compiler_wl_CXX='-Wl,'
13858 lt_prog_compiler_pic_CXX='-KPIC'
13859 lt_prog_compiler_static_CXX='-Bstatic'
13864 case $cc_basename in
13866 # NonStop-UX NCC 3.20
13867 lt_prog_compiler_pic_CXX='-KPIC'
13876 lt_prog_compiler_can_build_shared_CXX=no
13882 # For platforms which do not support PIC, -DPIC is meaningless:
13884 lt_prog_compiler_pic_CXX=
13887 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13891 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13896 # Check to make sure the PIC flag actually works.
13898 if test -n "$lt_prog_compiler_pic_CXX"; then
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13900 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13901 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13902 $as_echo_n "(cached) " >&6
13904 lt_cv_prog_compiler_pic_works_CXX=no
13905 ac_outfile=conftest.$ac_objext
13906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13907 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13908 # Insert the option either (1) after the last *FLAGS variable, or
13909 # (2) before a word containing "conftest.", or (3) at the end.
13910 # Note that $ac_compile itself does not contain backslashes and begins
13911 # with a dollar sign (not a hyphen), so the echo should work correctly.
13912 # The option is referenced via a variable to avoid confusing sed.
13913 lt_compile=`echo "$ac_compile" | $SED \
13914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13916 -e 's:$: $lt_compiler_flag:'`
13917 (eval echo "\"\$as_me:13917: $lt_compile\"" >&5)
13918 (eval "$lt_compile" 2>conftest.err)
13920 cat conftest.err >&5
13921 echo "$as_me:13921: \$? = $ac_status" >&5
13922 if (exit $ac_status) && test -s "$ac_outfile"; then
13923 # The compiler can only warn and ignore the option if not recognized
13924 # So say no if there are warnings other than the usual output.
13925 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13926 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13927 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13928 lt_cv_prog_compiler_pic_works_CXX=yes
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13935 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13937 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13938 case $lt_prog_compiler_pic_CXX in
13940 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13943 lt_prog_compiler_pic_CXX=
13944 lt_prog_compiler_can_build_shared_CXX=no
13952 # Check to make sure the static flag actually works.
13954 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13956 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13957 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13958 $as_echo_n "(cached) " >&6
13960 lt_cv_prog_compiler_static_works_CXX=no
13961 save_LDFLAGS="$LDFLAGS"
13962 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13963 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13965 # The linker can only warn and ignore the option if not recognized
13966 # So say no if there are warnings
13967 if test -s conftest.err; then
13968 # Append any errors to the config.log.
13969 cat conftest.err 1>&5
13970 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13972 if diff conftest.exp conftest.er2 >/dev/null; then
13973 lt_cv_prog_compiler_static_works_CXX=yes
13976 lt_cv_prog_compiler_static_works_CXX=yes
13980 LDFLAGS="$save_LDFLAGS"
13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13984 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13986 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13989 lt_prog_compiler_static_CXX=
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13996 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13997 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13998 $as_echo_n "(cached) " >&6
14000 lt_cv_prog_compiler_c_o_CXX=no
14001 $RM -r conftest 2>/dev/null
14005 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14007 lt_compiler_flag="-o out/conftest2.$ac_objext"
14008 # Insert the option either (1) after the last *FLAGS variable, or
14009 # (2) before a word containing "conftest.", or (3) at the end.
14010 # Note that $ac_compile itself does not contain backslashes and begins
14011 # with a dollar sign (not a hyphen), so the echo should work correctly.
14012 lt_compile=`echo "$ac_compile" | $SED \
14013 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14015 -e 's:$: $lt_compiler_flag:'`
14016 (eval echo "\"\$as_me:14016: $lt_compile\"" >&5)
14017 (eval "$lt_compile" 2>out/conftest.err)
14019 cat out/conftest.err >&5
14020 echo "$as_me:14020: \$? = $ac_status" >&5
14021 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14023 # The compiler can only warn and ignore the option if not recognized
14024 # So say no if there are warnings
14025 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14026 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14027 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14028 lt_cv_prog_compiler_c_o_CXX=yes
14033 # SGI C++ compiler will create directory out/ii_files/ for
14034 # template instantiation
14035 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14036 $RM out/* && rmdir out
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14043 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14048 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14049 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14050 $as_echo_n "(cached) " >&6
14052 lt_cv_prog_compiler_c_o_CXX=no
14053 $RM -r conftest 2>/dev/null
14057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14059 lt_compiler_flag="-o out/conftest2.$ac_objext"
14060 # Insert the option either (1) after the last *FLAGS variable, or
14061 # (2) before a word containing "conftest.", or (3) at the end.
14062 # Note that $ac_compile itself does not contain backslashes and begins
14063 # with a dollar sign (not a hyphen), so the echo should work correctly.
14064 lt_compile=`echo "$ac_compile" | $SED \
14065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14067 -e 's:$: $lt_compiler_flag:'`
14068 (eval echo "\"\$as_me:14068: $lt_compile\"" >&5)
14069 (eval "$lt_compile" 2>out/conftest.err)
14071 cat out/conftest.err >&5
14072 echo "$as_me:14072: \$? = $ac_status" >&5
14073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14075 # The compiler can only warn and ignore the option if not recognized
14076 # So say no if there are warnings
14077 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14078 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14079 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14080 lt_cv_prog_compiler_c_o_CXX=yes
14085 # SGI C++ compiler will create directory out/ii_files/ for
14086 # template instantiation
14087 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14088 $RM out/* && rmdir out
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14095 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14100 hard_links="nottested"
14101 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14102 # do not overwrite the value of need_locks provided by the user
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14104 $as_echo_n "checking if we can lock with hard links... " >&6; }
14107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14109 ln conftest.a conftest.b 2>&5 || hard_links=no
14110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14112 $as_echo "$hard_links" >&6; }
14113 if test "$hard_links" = no; then
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14115 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14125 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14127 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14130 # If we're using GNU nm, then we don't want the "-C" option.
14131 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14132 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14133 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14135 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'
14139 export_symbols_cmds_CXX="$ltdll_cmds"
14141 cygwin* | mingw* | cegcc*)
14142 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14145 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14148 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14151 $as_echo "$ld_shlibs_CXX" >&6; }
14152 test "$ld_shlibs_CXX" = no && can_build_shared=no
14154 with_gnu_ld_CXX=$with_gnu_ld
14162 # Do we need to explicitly link libc?
14164 case "x$archive_cmds_need_lc_CXX" in
14166 # Assume -lc should be added
14167 archive_cmds_need_lc_CXX=yes
14169 if test "$enable_shared" = yes && test "$GCC" = yes; then
14170 case $archive_cmds_CXX in
14172 # FIXME: we may have to deal with multi-command sequences.
14175 # Test whether the compiler implicitly links with -lc since on some
14176 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14177 # to ld, don't add -lc before -lgcc.
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14179 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14184 (eval $ac_compile) 2>&5
14186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14187 test $ac_status = 0; } 2>conftest.err; then
14190 libobjs=conftest.$ac_objext
14192 wl=$lt_prog_compiler_wl_CXX
14193 pic_flag=$lt_prog_compiler_pic_CXX
14199 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14200 allow_undefined_flag_CXX=
14201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14202 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14205 test $ac_status = 0; }
14207 archive_cmds_need_lc_CXX=no
14209 archive_cmds_need_lc_CXX=yes
14211 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14213 cat conftest.err 1>&5
14216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14217 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14288 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14290 library_names_spec=
14291 libname_spec='lib$name'
14295 postuninstall_cmds=
14299 shlibpath_overrides_runpath=unknown
14301 dynamic_linker="$host_os ld.so"
14302 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14303 need_lib_prefix=unknown
14304 hardcode_into_libs=no
14306 # when you set need_version to no, make sure it does not cause -set_version
14307 # flags to be left without arguments
14308 need_version=unknown
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14314 shlibpath_var=LIBPATH
14316 # AIX 3 has no versioning support, so we append a major version to the name.
14317 soname_spec='${libname}${release}${shared_ext}$major'
14324 hardcode_into_libs=yes
14325 if test "$host_cpu" = ia64; then
14326 # AIX 5 supports IA64
14327 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14328 shlibpath_var=LD_LIBRARY_PATH
14330 # With GCC up to 2.95.x, collect2 would create an import file
14331 # for dependence libraries. The import file would start with
14332 # the line `#! .'. This would cause the generated library to
14333 # depend on `.', always an invalid library. This was fixed in
14334 # development snapshots of GCC prior to 3.0.
14336 aix4 | aix4.[01] | aix4.[01].*)
14337 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14339 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14342 can_build_shared=no
14346 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14347 # soname into executable. Probably we can add versioning support to
14348 # collect2, so additional links can be useful in future.
14349 if test "$aix_use_runtimelinking" = yes; then
14350 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14351 # instead of lib<name>.a to let people know that these are not
14352 # typical AIX shared libraries.
14353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14355 # We preserve .a as extension for shared libraries through AIX4.2
14356 # and later when we are not doing run time linking.
14357 library_names_spec='${libname}${release}.a $libname.a'
14358 soname_spec='${libname}${release}${shared_ext}$major'
14360 shlibpath_var=LIBPATH
14367 # Since July 2007 AmigaOS4 officially supports .so libraries.
14368 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14372 library_names_spec='$libname.ixlibrary $libname.a'
14373 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14374 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14380 library_names_spec='${libname}${shared_ext}'
14381 dynamic_linker="$host_os ld.so"
14382 shlibpath_var=LIBRARY_PATH
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389 soname_spec='${libname}${release}${shared_ext}$major'
14390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14391 shlibpath_var=LD_LIBRARY_PATH
14392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14394 # the default ld.so.conf also contains /usr/contrib/lib and
14395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14396 # libtool to hard-code these into programs
14399 cygwin* | mingw* | pw32* | cegcc*)
14400 version_type=windows
14405 case $GCC,$host_os in
14406 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14407 library_names_spec='$libname.dll.a'
14408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14409 postinstall_cmds='base_file=`basename \${file}`~
14410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14411 dldir=$destdir/`dirname \$dlpath`~
14412 test -d \$dldir || mkdir -p \$dldir~
14413 $install_prog $dir/$dlname \$dldir/$dlname~
14414 chmod a+x \$dldir/$dlname~
14415 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14416 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14419 dlpath=$dir/\$dldll~
14421 shlibpath_overrides_runpath=yes
14425 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14426 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14427 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14430 # MinGW DLLs use traditional 'lib' prefix
14431 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14432 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14433 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14434 # It is most probably a Windows format PATH printed by
14435 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14436 # path with ; separators, and with drive letters. We can handle the
14437 # drive letters (cygwin fileutils understands them), so leave them,
14438 # especially as we might pass files found there to a mingw objdump,
14439 # which wouldn't understand a cygwinified path. Ahh.
14440 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14442 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14446 # pw32 DLLs use 'pw' prefix rather than 'lib'
14447 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14453 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14456 dynamic_linker='Win32 ld.exe'
14457 # FIXME: first we should search . and the directory the executable is in
14461 darwin* | rhapsody*)
14462 dynamic_linker="$host_os dyld"
14463 version_type=darwin
14466 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14467 soname_spec='${libname}${release}${major}$shared_ext'
14468 shlibpath_overrides_runpath=yes
14469 shlibpath_var=DYLD_LIBRARY_PATH
14470 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14472 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14480 soname_spec='${libname}${release}${shared_ext}$major'
14481 shlibpath_var=LD_LIBRARY_PATH
14488 freebsd* | dragonfly*)
14489 # DragonFly does not have aout. When/if they implement a new
14490 # versioning mechanism, adjust this.
14491 if test -x /usr/bin/objformat; then
14492 objformat=`/usr/bin/objformat`
14495 freebsd[123]*) objformat=aout ;;
14496 *) objformat=elf ;;
14499 # Handle Gentoo/FreeBSD as it was Linux
14500 case $host_vendor in
14502 version_type=linux ;;
14504 version_type=freebsd-$objformat ;;
14507 case $version_type in
14509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14519 soname_spec='${libname}${release}${shared_ext}$major'
14524 shlibpath_var=LD_LIBRARY_PATH
14527 shlibpath_overrides_runpath=yes
14529 freebsd3.[01]* | freebsdelf3.[01]*)
14530 shlibpath_overrides_runpath=yes
14531 hardcode_into_libs=yes
14533 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14534 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14535 shlibpath_overrides_runpath=no
14536 hardcode_into_libs=yes
14538 *) # from 4.6 on, and DragonFly
14539 shlibpath_overrides_runpath=yes
14540 hardcode_into_libs=yes
14549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14550 soname_spec='${libname}${release}${shared_ext}$major'
14551 shlibpath_var=LD_LIBRARY_PATH
14552 hardcode_into_libs=yes
14555 hpux9* | hpux10* | hpux11*)
14556 # Give a soname corresponding to the major version so that dld.sl refuses to
14557 # link against other versions.
14564 hardcode_into_libs=yes
14565 dynamic_linker="$host_os dld.so"
14566 shlibpath_var=LD_LIBRARY_PATH
14567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14569 soname_spec='${libname}${release}${shared_ext}$major'
14570 if test "X$HPUX_IA64_MODE" = X32; then
14571 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14573 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14579 hardcode_into_libs=yes
14580 dynamic_linker="$host_os dld.sl"
14581 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14584 soname_spec='${libname}${release}${shared_ext}$major'
14585 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14590 dynamic_linker="$host_os dld.sl"
14591 shlibpath_var=SHLIB_PATH
14592 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14594 soname_spec='${libname}${release}${shared_ext}$major'
14597 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14598 postinstall_cmds='chmod 555 $lib'
14605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14606 soname_spec='${libname}${release}${shared_ext}$major'
14607 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14608 shlibpath_var=LD_LIBRARY_PATH
14609 shlibpath_overrides_runpath=no
14610 hardcode_into_libs=yes
14613 irix5* | irix6* | nonstopux*)
14615 nonstopux*) version_type=nonstopux ;;
14617 if test "$lt_cv_prog_gnu_ld" = yes; then
14625 soname_spec='${libname}${release}${shared_ext}$major'
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14628 irix5* | nonstopux*)
14629 libsuff= shlibsuff=
14632 case $LD in # libtool.m4 will add one of these switches to LD
14633 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14634 libsuff= shlibsuff= libmagic=32-bit;;
14635 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14636 libsuff=32 shlibsuff=N32 libmagic=N32;;
14637 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14638 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14639 *) libsuff= shlibsuff= libmagic=never-match;;
14643 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14644 shlibpath_overrides_runpath=no
14645 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14646 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14647 hardcode_into_libs=yes
14650 # No shared lib support for Linux oldld, aout, or coff.
14651 linux*oldld* | linux*aout* | linux*coff*)
14655 # This must be Linux ELF.
14656 linux* | k*bsd*-gnu)
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661 soname_spec='${libname}${release}${shared_ext}$major'
14662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14663 shlibpath_var=LD_LIBRARY_PATH
14664 shlibpath_overrides_runpath=no
14665 # Some binutils ld are patched to set DT_RUNPATH
14666 save_LDFLAGS=$LDFLAGS
14667 save_libdir=$libdir
14668 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14669 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671 /* end confdefs.h. */
14681 if ac_fn_cxx_try_link "$LINENO"; then :
14682 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14683 shlibpath_overrides_runpath=yes
14686 rm -f core conftest.err conftest.$ac_objext \
14687 conftest$ac_exeext conftest.$ac_ext
14688 LDFLAGS=$save_LDFLAGS
14689 libdir=$save_libdir
14691 # This implies no fast_install, which is unacceptable.
14692 # Some rework will be needed to allow for fast_install
14693 # before this can be enabled.
14694 hardcode_into_libs=yes
14696 # Append ld.so.conf contents to the search path
14697 if test -f /etc/ld.so.conf; then
14698 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;/^$/d' | tr '\n' ' '`
14699 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14702 # We used to test for /lib/ld.so.1 and disable shared libraries on
14703 # powerpc, because MkLinux only supported shared libraries with the
14704 # GNU dynamic linker. Since this was broken with cross compilers,
14705 # most powerpc-linux boxes support dynamic linking these days and
14706 # people can always --disable-shared, the test was removed, and we
14707 # assume the GNU/Linux dynamic linker is in use.
14708 dynamic_linker='GNU/Linux ld.so'
14715 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14718 dynamic_linker='NetBSD (a.out) ld.so'
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14721 soname_spec='${libname}${release}${shared_ext}$major'
14722 dynamic_linker='NetBSD ld.elf_so'
14724 shlibpath_var=LD_LIBRARY_PATH
14725 shlibpath_overrides_runpath=yes
14726 hardcode_into_libs=yes
14731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14732 shlibpath_var=LD_LIBRARY_PATH
14733 shlibpath_overrides_runpath=yes
14740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741 soname_spec='${libname}${release}${shared_ext}$major'
14742 shlibpath_var=LD_LIBRARY_PATH
14743 shlibpath_overrides_runpath=no
14744 hardcode_into_libs=yes
14745 dynamic_linker='ldqnx.so'
14750 sys_lib_dlsearch_path_spec="/usr/lib"
14752 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14754 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14755 *) need_version=no ;;
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14759 shlibpath_var=LD_LIBRARY_PATH
14760 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14762 openbsd2.[89] | openbsd2.[89].*)
14763 shlibpath_overrides_runpath=no
14766 shlibpath_overrides_runpath=yes
14770 shlibpath_overrides_runpath=yes
14775 libname_spec='$name'
14778 library_names_spec='$libname${shared_ext} $libname.a'
14779 dynamic_linker='OS/2 ld.exe'
14780 shlibpath_var=LIBPATH
14783 osf3* | osf4* | osf5*)
14787 soname_spec='${libname}${release}${shared_ext}$major'
14788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14789 shlibpath_var=LD_LIBRARY_PATH
14790 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14791 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 soname_spec='${libname}${release}${shared_ext}$major'
14804 shlibpath_var=LD_LIBRARY_PATH
14805 shlibpath_overrides_runpath=yes
14806 hardcode_into_libs=yes
14807 # ldd complains unless libraries are executable
14808 postinstall_cmds='chmod +x $lib'
14813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14814 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14815 shlibpath_var=LD_LIBRARY_PATH
14816 shlibpath_overrides_runpath=yes
14817 if test "$with_gnu_ld" = yes; then
14825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14826 soname_spec='${libname}${release}${shared_ext}$major'
14827 shlibpath_var=LD_LIBRARY_PATH
14828 case $host_vendor in
14830 shlibpath_overrides_runpath=no
14832 runpath_var=LD_RUN_PATH
14840 shlibpath_overrides_runpath=no
14841 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14847 if test -d /usr/nec ;then
14849 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14850 soname_spec='$libname${shared_ext}.$major'
14851 shlibpath_var=LD_LIBRARY_PATH
14855 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14856 version_type=freebsd-elf
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14860 soname_spec='${libname}${release}${shared_ext}$major'
14861 shlibpath_var=LD_LIBRARY_PATH
14862 shlibpath_overrides_runpath=yes
14863 hardcode_into_libs=yes
14864 if test "$with_gnu_ld" = yes; then
14865 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14867 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14870 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14874 sys_lib_dlsearch_path_spec='/usr/lib'
14878 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14883 shlibpath_var=LD_LIBRARY_PATH
14884 shlibpath_overrides_runpath=no
14885 hardcode_into_libs=yes
14890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14891 soname_spec='${libname}${release}${shared_ext}$major'
14892 shlibpath_var=LD_LIBRARY_PATH
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14900 $as_echo "$dynamic_linker" >&6; }
14901 test "$dynamic_linker" = no && can_build_shared=no
14903 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14904 if test "$GCC" = yes; then
14905 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14908 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14909 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14911 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14912 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14951 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14952 hardcode_action_CXX=
14953 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14954 test -n "$runpath_var_CXX" ||
14955 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14957 # We can hardcode non-existent directories.
14958 if test "$hardcode_direct_CXX" != no &&
14959 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14960 # have to relink, otherwise we might link with an installed library
14961 # when we should be linking with a yet-to-be-installed one
14962 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14963 test "$hardcode_minus_L_CXX" != no; then
14964 # Linking always hardcodes the temporary library directory.
14965 hardcode_action_CXX=relink
14967 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14968 hardcode_action_CXX=immediate
14971 # We cannot hardcode anything, or else we can only hardcode existing
14973 hardcode_action_CXX=unsupported
14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14976 $as_echo "$hardcode_action_CXX" >&6; }
14978 if test "$hardcode_action_CXX" = relink ||
14979 test "$inherit_rpath_CXX" = yes; then
14980 # Fast installation is not supported
14981 enable_fast_install=no
14982 elif test "$shlibpath_overrides_runpath" = yes ||
14983 test "$enable_shared" = no; then
14984 # Fast installation is not necessary
14985 enable_fast_install=needless
14994 fi # test -n "$compiler"
15000 with_gnu_ld=$lt_save_with_gnu_ld
15001 lt_cv_path_LDCXX=$lt_cv_path_LD
15002 lt_cv_path_LD=$lt_save_path_LD
15003 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15004 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15005 fi # test "$_lt_caught_CXX_error" != yes
15008 ac_cpp='$CXXCPP $CPPFLAGS'
15009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15015 # Check for needed libraries.
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lstdc++" >&5
15017 $as_echo_n "checking for main in -lstdc++... " >&6; }
15018 if test "${ac_cv_lib_stdcpp_main+set}" = set; then :
15019 $as_echo_n "(cached) " >&6
15021 ac_check_lib_save_LIBS=$LIBS
15022 LIBS="-lstdc++ $LIBS"
15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15035 if ac_fn_cxx_try_link "$LINENO"; then :
15036 ac_cv_lib_stdcpp_main=yes
15038 ac_cv_lib_stdcpp_main=no
15040 rm -f core conftest.err conftest.$ac_objext \
15041 conftest$ac_exeext conftest.$ac_ext
15042 LIBS=$ac_check_lib_save_LIBS
15044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stdcpp_main" >&5
15045 $as_echo "$ac_cv_lib_stdcpp_main" >&6; }
15046 if test "x$ac_cv_lib_stdcpp_main" = x""yes; then :
15047 cat >>confdefs.h <<_ACEOF
15048 #define HAVE_LIBSTDC__ 1
15051 LIBS="-lstdc++ $LIBS"
15054 as_fn_error "libstdc++ not installed" "$LINENO" 5
15059 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15060 if test -n "$ac_tool_prefix"; then
15061 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15062 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15064 $as_echo_n "checking for $ac_word... " >&6; }
15065 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
15066 $as_echo_n "(cached) " >&6
15068 case $PKG_CONFIG in
15070 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15074 for as_dir in $PATH
15077 test -z "$as_dir" && as_dir=.
15078 for ac_exec_ext in '' $ac_executable_extensions; do
15079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15080 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15091 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15092 if test -n "$PKG_CONFIG"; then
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15094 $as_echo "$PKG_CONFIG" >&6; }
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15097 $as_echo "no" >&6; }
15102 if test -z "$ac_cv_path_PKG_CONFIG"; then
15103 ac_pt_PKG_CONFIG=$PKG_CONFIG
15104 # Extract the first word of "pkg-config", so it can be a program name with args.
15105 set dummy pkg-config; ac_word=$2
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15107 $as_echo_n "checking for $ac_word... " >&6; }
15108 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
15109 $as_echo_n "(cached) " >&6
15111 case $ac_pt_PKG_CONFIG in
15113 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15117 for as_dir in $PATH
15120 test -z "$as_dir" && as_dir=.
15121 for ac_exec_ext in '' $ac_executable_extensions; do
15122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15123 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15134 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15135 if test -n "$ac_pt_PKG_CONFIG"; then
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15137 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15140 $as_echo "no" >&6; }
15143 if test "x$ac_pt_PKG_CONFIG" = x; then
15146 case $cross_compiling:$ac_tool_warned in
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15149 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15150 ac_tool_warned=yes ;;
15152 PKG_CONFIG=$ac_pt_PKG_CONFIG
15155 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15159 if test -n "$PKG_CONFIG"; then
15160 _pkg_min_version=0.9.0
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15162 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15163 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15165 $as_echo "yes" >&6; }
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15168 $as_echo "no" >&6; }
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbinio" >&5
15176 $as_echo_n "checking for libbinio... " >&6; }
15178 if test -n "$libbinio_CFLAGS"; then
15179 pkg_cv_libbinio_CFLAGS="$libbinio_CFLAGS"
15180 elif test -n "$PKG_CONFIG"; then
15181 if test -n "$PKG_CONFIG" && \
15182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbinio >= 1.4\""; } >&5
15183 ($PKG_CONFIG --exists --print-errors "libbinio >= 1.4") 2>&5
15185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15186 test $ac_status = 0; }; then
15187 pkg_cv_libbinio_CFLAGS=`$PKG_CONFIG --cflags "libbinio >= 1.4" 2>/dev/null`
15194 if test -n "$libbinio_LIBS"; then
15195 pkg_cv_libbinio_LIBS="$libbinio_LIBS"
15196 elif test -n "$PKG_CONFIG"; then
15197 if test -n "$PKG_CONFIG" && \
15198 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbinio >= 1.4\""; } >&5
15199 ($PKG_CONFIG --exists --print-errors "libbinio >= 1.4") 2>&5
15201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15202 test $ac_status = 0; }; then
15203 pkg_cv_libbinio_LIBS=`$PKG_CONFIG --libs "libbinio >= 1.4" 2>/dev/null`
15213 if test $pkg_failed = yes; then
15215 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15216 _pkg_short_errors_supported=yes
15218 _pkg_short_errors_supported=no
15220 if test $_pkg_short_errors_supported = yes; then
15221 libbinio_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libbinio >= 1.4" 2>&1`
15223 libbinio_PKG_ERRORS=`$PKG_CONFIG --print-errors "libbinio >= 1.4" 2>&1`
15225 # Put the nasty error message in config.log where it belongs
15226 echo "$libbinio_PKG_ERRORS" >&5
15228 as_fn_error "Package requirements (libbinio >= 1.4) were not met:
15230 $libbinio_PKG_ERRORS
15232 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15233 installed software in a non-standard prefix.
15235 Alternatively, you may set the environment variables libbinio_CFLAGS
15236 and libbinio_LIBS to avoid the need to call pkg-config.
15237 See the pkg-config man page for more details.
15239 elif test $pkg_failed = untried; then
15240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15242 as_fn_error "The pkg-config script could not be found or is too old. Make sure it
15243 is in your PATH or set the PKG_CONFIG environment variable to the full
15244 path to pkg-config.
15246 Alternatively, you may set the environment variables libbinio_CFLAGS
15247 and libbinio_LIBS to avoid the need to call pkg-config.
15248 See the pkg-config man page for more details.
15250 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15251 See \`config.log' for more details." "$LINENO" 5; }
15253 libbinio_CFLAGS=$pkg_cv_libbinio_CFLAGS
15254 libbinio_LIBS=$pkg_cv_libbinio_LIBS
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15256 $as_echo "yes" >&6; }
15260 # Check if getopt header is installed on this system
15262 for ac_header in getopt.h
15264 ac_fn_cxx_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15265 if test "x$ac_cv_header_getopt_h" = x""yes; then :
15266 cat >>confdefs.h <<_ACEOF
15267 #define HAVE_GETOPT_H 1
15271 GETOPT_SOURCES=getopt.c getopt.h
15278 # Sanitize some compiler features, which may be broken...
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
15280 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
15281 if test "${ac_cv_c_const+set}" = set; then :
15282 $as_echo_n "(cached) " >&6
15284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15285 /* end confdefs.h. */
15290 /* FIXME: Include the comments suggested by Paul. */
15291 #ifndef __cplusplus
15292 /* Ultrix mips cc rejects this. */
15293 typedef int charset[2];
15295 /* SunOS 4.1.1 cc rejects this. */
15296 char const *const *pcpcc;
15298 /* NEC SVR4.0.2 mips cc rejects this. */
15299 struct point {int x, y;};
15300 static struct point const zero = {0,0};
15301 /* AIX XL C 1.02.0.0 rejects this.
15302 It does not let you subtract one const X* pointer from another in
15303 an arm of an if-expression whose if-part is not a constant
15305 const char *g = "string";
15306 pcpcc = &g + (g ? g-g : 0);
15307 /* HPUX 7.0 cc rejects these. */
15309 ppc = (char**) pcpcc;
15310 pcpcc = (char const *const *) ppc;
15311 { /* SCO 3.2v4 cc rejects this. */
15313 char const *s = 0 ? (char *) 0 : (char const *) 0;
15318 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
15319 int x[] = {25, 17};
15320 const int *foo = &x[0];
15323 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
15324 typedef const int *iptr;
15328 { /* AIX XL C 1.02.0.0 rejects this saying
15329 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
15330 struct s { int j; const int *ap[3]; };
15331 struct s *b; b->j = 5;
15333 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
15334 const int foo = 10;
15335 if (!foo) return 0;
15337 return !cs[0] && !zero.x;
15344 if ac_fn_cxx_try_compile "$LINENO"; then :
15349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
15352 $as_echo "$ac_cv_c_const" >&6; }
15353 if test $ac_cv_c_const = no; then
15355 $as_echo "#define const /**/" >>confdefs.h
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15360 $as_echo_n "checking for inline... " >&6; }
15361 if test "${ac_cv_c_inline+set}" = set; then :
15362 $as_echo_n "(cached) " >&6
15365 for ac_kw in inline __inline__ __inline; do
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15368 #ifndef __cplusplus
15370 static $ac_kw foo_t static_foo () {return 0; }
15371 $ac_kw foo_t foo () {return 0; }
15375 if ac_fn_cxx_try_compile "$LINENO"; then :
15376 ac_cv_c_inline=$ac_kw
15378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15379 test "$ac_cv_c_inline" != no && break
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15384 $as_echo "$ac_cv_c_inline" >&6; }
15386 case $ac_cv_c_inline in
15389 case $ac_cv_c_inline in
15391 *) ac_val=$ac_cv_c_inline;;
15393 cat >>confdefs.h <<_ACEOF
15394 #ifndef __cplusplus
15395 #define inline $ac_val
15402 # Enable debugging on user request.
15403 # Check whether --enable-debug was given.
15404 if test "${enable_debug+set}" = set; then :
15405 enableval=$enable_debug; $as_echo "#define DEBUG 1" >>confdefs.h
15410 cat >confcache <<\_ACEOF
15411 # This file is a shell script that caches the results of configure
15412 # tests run on this system so they can be shared between configure
15413 # scripts and configure runs, see configure's option --config-cache.
15414 # It is not useful on other systems. If it contains results you don't
15415 # want to keep, you may remove or edit it.
15417 # config.status only pays attention to the cache file if you give it
15418 # the --recheck option to rerun configure.
15420 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15421 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15422 # following values.
15426 # The following way of writing the cache mishandles newlines in values,
15427 # but we know of no workaround that is simple, portable, and efficient.
15428 # So, we kill variables containing newlines.
15429 # Ultrix sh set writes to stderr and can't be redirected directly,
15430 # and sets the high bit in the cache file unless we assign to the vars.
15432 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15433 eval ac_val=\$$ac_var
15437 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15438 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15441 _ | IFS | as_nl) ;; #(
15442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15443 *) { eval $ac_var=; unset $ac_var;} ;;
15449 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15450 *${as_nl}ac_space=\ *)
15451 # `set' does not quote correctly, so add quotes: double-quote
15452 # substitution turns \\\\ into \\, and sed turns \\ into \.
15455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15458 # `set' quotes correctly as required by POSIX, so do not add quotes.
15459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15468 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15470 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15472 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15473 if test -w "$cache_file"; then
15474 test "x$cache_file" != "x/dev/null" &&
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15476 $as_echo "$as_me: updating cache $cache_file" >&6;}
15477 cat confcache >$cache_file
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15480 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15485 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15486 # Let make expand exec_prefix.
15487 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15489 # Transform confdefs.h into DEFS.
15490 # Protect against shell expansion while executing Makefile rules.
15491 # Protect against Makefile macro expansion.
15493 # If the first sed substitution is executed (which looks for macros that
15494 # take arguments), then branch to the quote section. Otherwise,
15495 # look for a macro that doesn't take arguments.
15505 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
15507 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
15511 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15524 DEFS=`sed -n "$ac_script" confdefs.h`
15529 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15530 # 1. Remove the extension, and $U if already installed.
15531 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15532 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15533 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15534 # will be set to the directory where LIBOBJS objects are built.
15535 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15536 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15538 LIBOBJS=$ac_libobjs
15540 LTLIBOBJS=$ac_ltlibobjs
15543 if test -n "$EXEEXT"; then
15545 am__EXEEXT_FALSE='#'
15547 am__EXEEXT_TRUE='#'
15551 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15552 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15553 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15555 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15556 as_fn_error "conditional \"AMDEP\" was never defined.
15557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15559 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15560 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15563 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15564 as_fn_error "conditional \"am__fastdepCC\" was never defined.
15565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15567 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15568 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15571 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
15572 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
15573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15576 : ${CONFIG_STATUS=./config.status}
15578 ac_clean_files_save=$ac_clean_files
15579 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15581 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15583 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15585 # Generated by $as_me.
15586 # Run this file to recreate the current configuration.
15587 # Compiler output produced by configure, useful for debugging
15588 # configure, is in config.log if it exists.
15591 ac_cs_recheck=false
15594 SHELL=\${CONFIG_SHELL-$SHELL}
15597 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15598 ## -------------------- ##
15599 ## M4sh Initialization. ##
15600 ## -------------------- ##
15602 # Be more Bourne compatible
15603 DUALCASE=1; export DUALCASE # for MKS sh
15604 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15607 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15608 # is contrary to our usage. Disable this feature.
15609 alias -g '${1+"$@"}'='"$@"'
15610 setopt NO_GLOB_SUBST
15612 case `(set -o) 2>/dev/null` in #(
15624 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15625 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15626 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15627 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15628 # Prefer a ksh shell builtin over an external printf program on Solaris,
15629 # but without wasting forks for bash or zsh.
15630 if test -z "$BASH_VERSION$ZSH_VERSION" \
15631 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15632 as_echo='print -r --'
15633 as_echo_n='print -rn --'
15634 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15635 as_echo='printf %s\n'
15636 as_echo_n='printf %s'
15638 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15639 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15640 as_echo_n='/usr/ucb/echo -n'
15642 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15643 as_echo_n_body='eval
15647 expr "X$arg" : "X\\(.*\\)$as_nl";
15648 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15650 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15652 export as_echo_n_body
15653 as_echo_n='sh -c $as_echo_n_body as_echo'
15655 export as_echo_body
15656 as_echo='sh -c $as_echo_body as_echo'
15659 # The user is always right.
15660 if test "${PATH_SEPARATOR+set}" != set; then
15662 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15663 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15670 # We need space, tab and new line, in precisely that order. Quoting is
15671 # there to prevent editors from complaining about space-tab.
15672 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15673 # splitting by setting IFS to empty value.)
15676 # Find who we are. Look in the path if we contain no directory separator.
15678 *[\\/]* ) as_myself=$0 ;;
15679 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15680 for as_dir in $PATH
15683 test -z "$as_dir" && as_dir=.
15684 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15690 # We did not find ourselves, most probably we were run as `sh COMMAND'
15691 # in which case we are not to be found in the path.
15692 if test "x$as_myself" = x; then
15695 if test ! -f "$as_myself"; then
15696 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15700 # Unset variables that we do not need and which cause bugs (e.g. in
15701 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15702 # suppresses any "Segmentation fault" message there. '((' could
15703 # trigger a bug in pdksh 5.2.14.
15704 for as_var in BASH_ENV ENV MAIL MAILPATH
15705 do eval test x\${$as_var+set} = xset \
15706 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15719 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15722 # as_fn_error ERROR [LINENO LOG_FD]
15723 # ---------------------------------
15724 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15725 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15726 # script with status $?, using 1 if that was 0.
15729 as_status=$?; test $as_status -eq 0 && as_status=1
15731 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15732 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15734 $as_echo "$as_me: error: $1" >&2
15735 as_fn_exit $as_status
15739 # as_fn_set_status STATUS
15740 # -----------------------
15741 # Set $? to STATUS, without forking.
15742 as_fn_set_status ()
15745 } # as_fn_set_status
15747 # as_fn_exit STATUS
15748 # -----------------
15749 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15753 as_fn_set_status $1
15759 # Portably unset VAR.
15762 { eval $1=; unset $1;}
15764 as_unset=as_fn_unset
15765 # as_fn_append VAR VALUE
15766 # ----------------------
15767 # Append the text in VALUE to the end of the definition contained in VAR. Take
15768 # advantage of any shell optimizations that allow amortized linear growth over
15769 # repeated appends, instead of the typical quadratic growth present in naive
15771 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15772 eval 'as_fn_append ()
15783 # as_fn_arith ARG...
15784 # ------------------
15785 # Perform arithmetic evaluation on the ARGs, and store the result in the
15786 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15787 # must be portable across $(()) and expr.
15788 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15789 eval 'as_fn_arith ()
15796 as_val=`expr "$@" || test $? -eq 1`
15801 if expr a : '\(a\)' >/dev/null 2>&1 &&
15802 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15808 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15809 as_basename=basename
15814 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15820 as_me=`$as_basename -- "$0" ||
15821 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15822 X"$0" : 'X\(//\)$' \| \
15823 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15825 sed '/^.*\/\([^/][^/]*\)\/*$/{
15839 # Avoid depending upon Character Ranges.
15840 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15841 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15842 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15843 as_cr_digits='0123456789'
15844 as_cr_alnum=$as_cr_Letters$as_cr_digits
15846 ECHO_C= ECHO_N= ECHO_T=
15847 case `echo -n x` in #(((((
15849 case `echo 'xy\c'` in
15850 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15852 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15859 rm -f conf$$ conf$$.exe conf$$.file
15860 if test -d conf$$.dir; then
15861 rm -f conf$$.dir/conf$$.file
15864 mkdir conf$$.dir 2>/dev/null
15866 if (echo >conf$$.file) 2>/dev/null; then
15867 if ln -s conf$$.file conf$$ 2>/dev/null; then
15869 # ... but there are two gotchas:
15870 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15871 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15872 # In both cases, we have to default to `cp -p'.
15873 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15875 elif ln conf$$.file conf$$ 2>/dev/null; then
15883 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15884 rmdir conf$$.dir 2>/dev/null
15889 # Create "$as_dir" as a directory, including parents if necessary.
15894 -*) as_dir=./$as_dir;;
15896 test -d "$as_dir" || eval $as_mkdir_p || {
15900 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15901 *) as_qdir=$as_dir;;
15903 as_dirs="'$as_qdir' $as_dirs"
15904 as_dir=`$as_dirname -- "$as_dir" ||
15905 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15906 X"$as_dir" : 'X\(//\)[^/]' \| \
15907 X"$as_dir" : 'X\(//\)$' \| \
15908 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15909 $as_echo X"$as_dir" |
15910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15914 /^X\(\/\/\)[^/].*/{
15927 test -d "$as_dir" && break
15929 test -z "$as_dirs" || eval "mkdir $as_dirs"
15930 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15934 if mkdir -p . 2>/dev/null; then
15935 as_mkdir_p='mkdir -p "$as_dir"'
15937 test -d ./-p && rmdir ./-p
15941 if test -x / >/dev/null 2>&1; then
15942 as_test_x='test -x'
15944 if ls -dL / >/dev/null 2>&1; then
15951 if test -d "$1"; then
15957 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15958 ???[sx]*):;;*)false;;esac;fi
15962 as_executable_p=$as_test_x
15964 # Sed expression to map a string onto a valid CPP name.
15965 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15967 # Sed expression to map a string onto a valid variable name.
15968 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15972 ## ----------------------------------- ##
15973 ## Main body of $CONFIG_STATUS script. ##
15974 ## ----------------------------------- ##
15976 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15979 # Save the log message, to keep $0 and so on meaningful, and to
15980 # report actual input values of CONFIG_FILES etc. instead of their
15981 # values after options handling.
15983 This file was extended by adplug $as_me 2.2.1, which was
15984 generated by GNU Autoconf 2.64. Invocation command line was
15986 CONFIG_FILES = $CONFIG_FILES
15987 CONFIG_HEADERS = $CONFIG_HEADERS
15988 CONFIG_LINKS = $CONFIG_LINKS
15989 CONFIG_COMMANDS = $CONFIG_COMMANDS
15992 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15997 case $ac_config_files in *"
15998 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16003 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16004 # Files that config.status was made for.
16005 config_files="$ac_config_files"
16006 config_commands="$ac_config_commands"
16010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16012 \`$as_me' instantiates files and other configuration actions
16013 from templates according to the current configuration. Unless the files
16014 and actions are specified as TAGs, all are instantiated by default.
16016 Usage: $0 [OPTION]... [TAG]...
16018 -h, --help print this help, then exit
16019 -V, --version print version number and configuration settings, then exit
16020 -q, --quiet, --silent
16021 do not print progress messages
16022 -d, --debug don't remove temporary files
16023 --recheck update $as_me by reconfiguring in the same conditions
16024 --file=FILE[:TEMPLATE]
16025 instantiate the configuration file FILE
16027 Configuration files:
16030 Configuration commands:
16033 Report bugs to the package provider."
16036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16038 adplug config.status 2.2.1
16039 configured by $0, generated by GNU Autoconf 2.64,
16040 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
16042 Copyright (C) 2009 Free Software Foundation, Inc.
16043 This config.status script is free software; the Free Software Foundation
16044 gives unlimited permission to copy, distribute and modify it."
16051 test -n "\$AWK" || AWK=awk
16054 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16055 # The default lists apply if the user does not specify any file.
16061 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16062 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16073 # Handling of the options.
16074 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16076 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16077 $as_echo "$ac_cs_version"; exit ;;
16078 --debug | --debu | --deb | --de | --d | -d )
16080 --file | --fil | --fi | --f )
16083 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16085 as_fn_append CONFIG_FILES " '$ac_optarg'"
16086 ac_need_defaults=false;;
16087 --he | --h | --help | --hel | -h )
16088 $as_echo "$ac_cs_usage"; exit ;;
16089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16090 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16093 # This is an error.
16094 -*) as_fn_error "unrecognized option: \`$1'
16095 Try \`$0 --help' for more information." ;;
16097 *) as_fn_append ac_config_targets " $1"
16098 ac_need_defaults=false ;;
16104 ac_configure_extra_args=
16106 if $ac_cs_silent; then
16108 ac_configure_extra_args="$ac_configure_extra_args --silent"
16112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16113 if \$ac_cs_recheck; then
16114 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16116 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16117 CONFIG_SHELL='$SHELL'
16118 export CONFIG_SHELL
16123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16127 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16128 ## Running $as_me. ##
16134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16138 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16141 # The HP-UX ksh and POSIX shell print the target directory to stdout
16142 # if CDPATH is set.
16143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16145 sed_quote_subst='$sed_quote_subst'
16146 double_quote_subst='$double_quote_subst'
16147 delay_variable_subst='$delay_variable_subst'
16148 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
16149 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
16150 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
16151 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
16152 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
16153 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
16154 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
16155 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
16156 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
16157 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
16158 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
16159 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
16160 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
16161 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
16162 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
16163 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
16164 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
16165 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
16166 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
16167 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
16168 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
16169 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
16170 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
16171 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
16172 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
16173 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
16174 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
16175 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16176 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
16177 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
16178 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
16179 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
16180 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16181 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
16182 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
16183 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16184 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16185 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16186 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
16187 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
16188 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
16189 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
16190 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
16191 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
16192 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
16193 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16194 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
16195 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
16196 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
16197 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
16198 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
16199 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
16200 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
16201 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
16202 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
16203 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
16204 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
16205 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
16206 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
16207 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
16208 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
16209 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
16210 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16211 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16212 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
16213 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
16214 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16215 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16216 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
16217 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16218 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16219 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16220 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16221 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16222 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16223 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
16224 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16225 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
16226 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
16227 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
16228 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
16229 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
16230 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
16231 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
16232 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16233 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
16234 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
16235 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
16236 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
16237 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
16238 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16239 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16240 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
16241 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16242 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
16243 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
16244 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
16245 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
16246 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
16247 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16248 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
16249 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
16250 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16251 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
16252 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
16253 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16254 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16255 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
16256 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
16257 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
16258 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16259 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
16260 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
16261 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
16262 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
16263 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
16264 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
16265 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
16266 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
16267 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16268 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
16269 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
16270 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
16271 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
16272 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16273 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16274 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16275 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16276 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16277 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16278 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16279 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16280 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16281 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16282 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16283 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16284 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16285 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16286 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16287 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16288 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16289 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16290 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16291 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16292 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16293 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16294 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16295 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16296 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16297 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16298 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16299 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16300 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16301 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16302 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16303 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16304 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16305 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16306 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16307 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16308 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16309 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16310 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16311 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16312 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16313 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16314 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16315 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16316 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16317 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16318 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
16321 LTCFLAGS='$LTCFLAGS'
16322 compiler='$compiler_DEFAULT'
16324 # Quote evaled strings.
16336 deplibs_check_method \
16345 lt_cv_sys_global_symbol_pipe \
16346 lt_cv_sys_global_symbol_to_cdecl \
16347 lt_cv_sys_global_symbol_to_c_name_address \
16348 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16351 lt_prog_compiler_no_builtin_flag \
16352 lt_prog_compiler_wl \
16353 lt_prog_compiler_pic \
16354 lt_prog_compiler_static \
16355 lt_cv_prog_compiler_c_o \
16363 export_dynamic_flag_spec \
16364 whole_archive_flag_spec \
16365 compiler_needs_object \
16367 allow_undefined_flag \
16368 no_undefined_flag \
16369 hardcode_libdir_flag_spec \
16370 hardcode_libdir_flag_spec_ld \
16371 hardcode_libdir_separator \
16376 variables_saved_for_relink \
16378 library_names_spec \
16383 compiler_lib_search_dirs \
16388 compiler_lib_search_path \
16391 lt_prog_compiler_no_builtin_flag_CXX \
16392 lt_prog_compiler_wl_CXX \
16393 lt_prog_compiler_pic_CXX \
16394 lt_prog_compiler_static_CXX \
16395 lt_cv_prog_compiler_c_o_CXX \
16396 export_dynamic_flag_spec_CXX \
16397 whole_archive_flag_spec_CXX \
16398 compiler_needs_object_CXX \
16400 allow_undefined_flag_CXX \
16401 no_undefined_flag_CXX \
16402 hardcode_libdir_flag_spec_CXX \
16403 hardcode_libdir_flag_spec_ld_CXX \
16404 hardcode_libdir_separator_CXX \
16405 fix_srcfile_path_CXX \
16406 exclude_expsyms_CXX \
16407 include_expsyms_CXX \
16408 file_list_spec_CXX \
16409 compiler_lib_search_dirs_CXX \
16410 predep_objects_CXX \
16411 postdep_objects_CXX \
16414 compiler_lib_search_path_CXX; do
16415 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16416 *[\\\\\\\`\\"\\\$]*)
16417 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16420 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16425 # Double-quote double-evaled strings.
16426 for var in reload_cmds \
16427 old_postinstall_cmds \
16428 old_postuninstall_cmds \
16430 extract_expsyms_cmds \
16431 old_archive_from_new_cmds \
16432 old_archive_from_expsyms_cmds \
16434 archive_expsym_cmds \
16436 module_expsym_cmds \
16437 export_symbols_cmds \
16440 postuninstall_cmds \
16442 sys_lib_search_path_spec \
16443 sys_lib_dlsearch_path_spec \
16444 old_archive_cmds_CXX \
16445 old_archive_from_new_cmds_CXX \
16446 old_archive_from_expsyms_cmds_CXX \
16448 archive_expsym_cmds_CXX \
16450 module_expsym_cmds_CXX \
16451 export_symbols_cmds_CXX \
16452 prelink_cmds_CXX; do
16453 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
16454 *[\\\\\\\`\\"\\\$]*)
16455 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16458 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16463 # Fix-up fallback echo if it was mangled by the above quoting rules.
16465 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
16469 ac_aux_dir='$ac_aux_dir'
16470 xsi_shell='$xsi_shell'
16471 lt_shell_append='$lt_shell_append'
16473 # See if we are running on zsh, and set the options which allow our
16474 # commands through without removal of \ escapes INIT.
16475 if test -n "\${ZSH_VERSION+set}" ; then
16476 setopt NO_GLOB_SUBST
16482 TIMESTAMP='$TIMESTAMP'
16493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16495 # Handling of arguments.
16496 for ac_config_target in $ac_config_targets
16498 case $ac_config_target in
16499 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16500 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16501 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16502 "adplugdb/Makefile") CONFIG_FILES="$CONFIG_FILES adplugdb/Makefile" ;;
16503 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16504 "adplug.pc") CONFIG_FILES="$CONFIG_FILES adplug.pc" ;;
16505 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16506 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16508 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16513 # If the user did not use the arguments to specify the items to instantiate,
16514 # then the envvar interface is used. Set only those that are not.
16515 # We use the long form for the default assignment because of an extremely
16516 # bizarre bug on SunOS 4.1.3.
16517 if $ac_need_defaults; then
16518 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16519 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16522 # Have a temporary directory for convenience. Make it in the build tree
16523 # simply because there is no reason against having it here, and in addition,
16524 # creating and moving files from /tmp can sometimes cause problems.
16525 # Hook for its removal unless debugging.
16526 # Note that there is a small window in which the directory will not be cleaned:
16527 # after its creation but before its name has been assigned to `$tmp'.
16531 trap 'exit_status=$?
16532 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16534 trap 'as_fn_exit 1' 1 2 13 15
16536 # Create a (secure) tmp directory for tmp files.
16539 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16540 test -n "$tmp" && test -d "$tmp"
16543 tmp=./conf$$-$RANDOM
16544 (umask 077 && mkdir "$tmp")
16545 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16547 # Set up the scripts for CONFIG_FILES section.
16548 # No need to generate them if there are no CONFIG_FILES.
16549 # This happens for instance with `./config.status config.h'.
16550 if test -n "$CONFIG_FILES"; then
16553 ac_cr=`echo X | tr X '\015'`
16554 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16555 # But we know of no other shell where ac_cr would be empty at this
16556 # point, so we can use a bashism as a fallback.
16557 if test "x$ac_cr" = x; then
16558 eval ac_cr=\$\'\\r\'
16560 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16561 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16564 ac_cs_awk_cr=$ac_cr
16567 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16572 echo "cat >conf$$subs.awk <<_ACEOF" &&
16573 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16575 } >conf$$subs.sh ||
16576 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16577 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16579 for ac_last_try in false false false false false :; do
16580 . ./conf$$subs.sh ||
16581 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16583 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16584 if test $ac_delim_n = $ac_delim_num; then
16586 elif $ac_last_try; then
16587 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16589 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16592 rm -f conf$$subs.sh
16594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16595 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16599 s/^/S["/; s/!.*/"]=/
16609 s/\(.\{148\}\).*/\1/
16611 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16616 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16623 s/\(.\{148\}\).*/\1/
16625 s/["\\]/\\&/g; s/^/"/; s/$/"/
16629 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16634 ' <conf$$subs.awk | sed '
16639 ' >>$CONFIG_STATUS || ac_write_fail=1
16640 rm -f conf$$subs.awk
16641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16643 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16644 for (key in S) S_is_set[key] = 1
16650 nfields = split(line, field, "@")
16652 len = length(field[1])
16653 for (i = 2; i < nfields; i++) {
16655 keylen = length(key)
16656 if (S_is_set[key]) {
16658 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16659 len += length(value) + length(field[++i])
16670 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16671 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16672 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16675 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16676 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16679 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16680 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16681 # trailing colons and then remove the whole line if VPATH becomes empty
16682 # (actually we leave an empty line to preserve line numbers).
16683 if test "x$srcdir" = x.; then
16684 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16685 s/:*\$(srcdir):*/:/
16686 s/:*\${srcdir}:*/:/
16688 s/^\([^=]*=[ ]*\):*/\1/
16694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16695 fi # test -n "$CONFIG_FILES"
16698 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16703 :[FHLC]) ac_mode=$ac_tag; continue;;
16705 case $ac_mode$ac_tag in
16707 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16708 :[FH]-) ac_tag=-:-;;
16709 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16726 -) ac_f="$tmp/stdin";;
16727 *) # Look for the file first in the build tree, then in the source tree
16728 # (if the path is not absolute). The absolute path cannot be DOS-style,
16729 # because $ac_f cannot contain `:'.
16733 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16735 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16737 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16738 as_fn_append ac_file_inputs " '$ac_f'"
16741 # Let's still pretend it is `configure' which instantiates (i.e., don't
16742 # use $as_me), people would be surprised to read:
16743 # /* config.h. Generated by config.status. */
16744 configure_input='Generated from '`
16745 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16747 if test x"$ac_file" != x-; then
16748 configure_input="$ac_file. $configure_input"
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16750 $as_echo "$as_me: creating $ac_file" >&6;}
16752 # Neutralize special characters interpreted by sed in replacement strings.
16753 case $configure_input in #(
16754 *\&* | *\|* | *\\* )
16755 ac_sed_conf_input=`$as_echo "$configure_input" |
16756 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16757 *) ac_sed_conf_input=$configure_input;;
16761 *:-:* | *:-) cat >"$tmp/stdin" \
16762 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16767 ac_dir=`$as_dirname -- "$ac_file" ||
16768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16769 X"$ac_file" : 'X\(//\)[^/]' \| \
16770 X"$ac_file" : 'X\(//\)$' \| \
16771 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16772 $as_echo X"$ac_file" |
16773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16777 /^X\(\/\/\)[^/].*/{
16790 as_dir="$ac_dir"; as_fn_mkdir_p
16794 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16796 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16797 # A ".." for each directory in $ac_dir_suffix.
16798 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16799 case $ac_top_builddir_sub in
16800 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16801 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16804 ac_abs_top_builddir=$ac_pwd
16805 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16806 # for backward compatibility:
16807 ac_top_builddir=$ac_top_build_prefix
16810 .) # We are building in place.
16812 ac_top_srcdir=$ac_top_builddir_sub
16813 ac_abs_top_srcdir=$ac_pwd ;;
16814 [\\/]* | ?:[\\/]* ) # Absolute name.
16815 ac_srcdir=$srcdir$ac_dir_suffix;
16816 ac_top_srcdir=$srcdir
16817 ac_abs_top_srcdir=$srcdir ;;
16818 *) # Relative name.
16819 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16820 ac_top_srcdir=$ac_top_build_prefix$srcdir
16821 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16823 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16833 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16834 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16836 ac_MKDIR_P=$MKDIR_P
16838 [\\/$]* | ?:[\\/]* ) ;;
16839 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16844 # If the template does not know about datarootdir, expand it.
16845 # FIXME: This hack should be removed a few years after 2.60.
16846 ac_datarootdir_hack=; ac_datarootdir_seen=
16857 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16858 *datarootdir*) ac_datarootdir_seen=yes;;
16859 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16861 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16864 ac_datarootdir_hack='
16865 s&@datadir@&$datadir&g
16866 s&@docdir@&$docdir&g
16867 s&@infodir@&$infodir&g
16868 s&@localedir@&$localedir&g
16869 s&@mandir@&$mandir&g
16870 s&\\\${datarootdir}&$datarootdir&g' ;;
16874 # Neutralize VPATH when `$srcdir' = `.'.
16875 # Shell code in configure.ac might set extrasub.
16876 # FIXME: do we really want to maintain this feature?
16877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16878 ac_sed_extra="$ac_vpsub
16881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16883 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16884 s|@configure_input@|$ac_sed_conf_input|;t t
16885 s&@top_builddir@&$ac_top_builddir_sub&;t t
16886 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16887 s&@srcdir@&$ac_srcdir&;t t
16888 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16889 s&@top_srcdir@&$ac_top_srcdir&;t t
16890 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16891 s&@builddir@&$ac_builddir&;t t
16892 s&@abs_builddir@&$ac_abs_builddir&;t t
16893 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16894 s&@INSTALL@&$ac_INSTALL&;t t
16895 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16896 $ac_datarootdir_hack
16898 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16899 || as_fn_error "could not create $ac_file" "$LINENO" 5
16901 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16902 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16903 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16905 which seems to be undefined. Please make sure it is defined." >&5
16906 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16907 which seems to be undefined. Please make sure it is defined." >&2;}
16911 -) cat "$tmp/out" && rm -f "$tmp/out";;
16912 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16914 || as_fn_error "could not create $ac_file" "$LINENO" 5
16918 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16919 $as_echo "$as_me: executing $ac_file commands" >&6;}
16924 case $ac_file$ac_mode in
16925 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16926 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16927 # are listed without --file. Let's play safe and only enable the eval
16928 # if we detect the quoting.
16929 case $CONFIG_FILES in
16930 *\'*) eval set x "$CONFIG_FILES" ;;
16931 *) set x $CONFIG_FILES ;;
16936 # Strip MF so we end up with the name of the file.
16937 mf=`echo "$mf" | sed -e 's/:.*$//'`
16938 # Check whether this is an Automake generated Makefile or not.
16939 # We used to match only the files named `Makefile.in', but
16940 # some people rename them; so instead we look at the file content.
16941 # Grep'ing the first line is not enough: some people post-process
16942 # each Makefile.in and add a new line on top of each file to say so.
16943 # Grep'ing the whole file is not good either: AIX grep has a line
16944 # limit of 2048, but all sed's we know have understand at least 4000.
16945 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16946 dirpart=`$as_dirname -- "$mf" ||
16947 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16948 X"$mf" : 'X\(//\)[^/]' \| \
16949 X"$mf" : 'X\(//\)$' \| \
16950 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16956 /^X\(\/\/\)[^/].*/{
16972 # Extract the definition of DEPDIR, am__include, and am__quote
16973 # from the Makefile without running `make'.
16974 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16975 test -z "$DEPDIR" && continue
16976 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16977 test -z "am__include" && continue
16978 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16979 # When using ansi2knr, U may be empty or an underscore; expand it
16980 U=`sed -n 's/^U = //p' < "$mf"`
16981 # Find all dependency output files, they are included files with
16982 # $(DEPDIR) in their names. We invoke sed twice because it is the
16983 # simplest approach to changing $(DEPDIR) to its actual value in the
16985 for file in `sed -n "
16986 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16987 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16988 # Make sure the directory exists.
16989 test -f "$dirpart/$file" && continue
16990 fdir=`$as_dirname -- "$file" ||
16991 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16992 X"$file" : 'X\(//\)[^/]' \| \
16993 X"$file" : 'X\(//\)$' \| \
16994 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16995 $as_echo X"$file" |
16996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17000 /^X\(\/\/\)[^/].*/{
17013 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17014 # echo "creating $dirpart/$file"
17015 echo '# dummy' > "$dirpart/$file"
17022 # See if we are running on zsh, and set the options which allow our
17023 # commands through without removal of \ escapes.
17024 if test -n "${ZSH_VERSION+set}" ; then
17025 setopt NO_GLOB_SUBST
17028 cfgfile="${ofile}T"
17029 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17032 cat <<_LT_EOF >> "$cfgfile"
17035 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17036 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17037 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17038 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17040 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17041 # 2006, 2007, 2008 Free Software Foundation, Inc.
17042 # Written by Gordon Matzigkeit, 1996
17044 # This file is part of GNU Libtool.
17046 # GNU Libtool is free software; you can redistribute it and/or
17047 # modify it under the terms of the GNU General Public License as
17048 # published by the Free Software Foundation; either version 2 of
17049 # the License, or (at your option) any later version.
17051 # As a special exception to the GNU General Public License,
17052 # if you distribute this file as part of a program or library that
17053 # is built using GNU Libtool, you may include this file under the
17054 # same distribution terms that you use for the rest of that program.
17056 # GNU Libtool is distributed in the hope that it will be useful,
17057 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17058 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17059 # GNU General Public License for more details.
17061 # You should have received a copy of the GNU General Public License
17062 # along with GNU Libtool; see the file COPYING. If not, a copy
17063 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17064 # obtained by writing to the Free Software Foundation, Inc.,
17065 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17068 # The names of the tagged configurations supported by this script.
17069 available_tags="CXX "
17071 # ### BEGIN LIBTOOL CONFIG
17073 # Which release of libtool.m4 was used?
17074 macro_version=$macro_version
17075 macro_revision=$macro_revision
17077 # Whether or not to build shared libraries.
17078 build_libtool_libs=$enable_shared
17080 # Whether or not to build static libraries.
17081 build_old_libs=$enable_static
17083 # What type of objects to build.
17086 # Whether or not to optimize for fast installation.
17087 fast_install=$enable_fast_install
17090 host_alias=$host_alias
17094 # The build system.
17095 build_alias=$build_alias
17099 # A sed program that does not truncate output.
17102 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17103 Xsed="\$SED -e 1s/^X//"
17105 # A grep program that handles long lines.
17111 # A literal string matcher.
17114 # A BSD- or MS-compatible name lister.
17117 # Whether we need soft or hard links.
17120 # What is the maximum length of a command?
17121 max_cmd_len=$max_cmd_len
17123 # Object file suffix (normally "o").
17126 # Executable file suffix (normally "").
17129 # whether the shell understands "unset".
17132 # turn spaces into newlines.
17135 # turn newlines into spaces.
17138 # How to create reloadable object files.
17139 reload_flag=$lt_reload_flag
17140 reload_cmds=$lt_reload_cmds
17142 # An object symbol dumper.
17143 OBJDUMP=$lt_OBJDUMP
17145 # Method to check whether dependent libraries are shared objects.
17146 deplibs_check_method=$lt_deplibs_check_method
17148 # Command to use when deplibs_check_method == "file_magic".
17149 file_magic_cmd=$lt_file_magic_cmd
17153 AR_FLAGS=$lt_AR_FLAGS
17155 # A symbol stripping program.
17158 # Commands used to install an old-style archive.
17160 old_postinstall_cmds=$lt_old_postinstall_cmds
17161 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17166 # LTCC compiler flags.
17167 LTCFLAGS=$lt_CFLAGS
17169 # Take the output of nm and produce a listing of raw symbols and C names.
17170 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17172 # Transform the output of nm in a proper C declaration.
17173 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17175 # Transform the output of nm in a C name address pair.
17176 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17178 # Transform the output of nm in a C name address pair when lib prefix is needed.
17179 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17181 # The name of the directory that contains temporary libtool files.
17184 # Shell to use when invoking shell scripts.
17187 # An echo program that does not interpret backslashes.
17190 # Used to examine libraries when file_magic_cmd begins with "file".
17191 MAGIC_CMD=$MAGIC_CMD
17193 # Must we lock files when doing compilation?
17194 need_locks=$lt_need_locks
17196 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17197 DSYMUTIL=$lt_DSYMUTIL
17199 # Tool to change global to local symbols on Mac OS X.
17202 # Tool to manipulate fat objects and archives on Mac OS X.
17205 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17208 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17209 OTOOL64=$lt_OTOOL64
17211 # Old archive suffix (normally "a").
17214 # Shared library suffix (normally ".so").
17215 shrext_cmds=$lt_shrext_cmds
17217 # The commands to extract the exported symbol list from a shared archive.
17218 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17220 # Variables whose values should be saved in libtool wrapper scripts and
17221 # restored at link time.
17222 variables_saved_for_relink=$lt_variables_saved_for_relink
17224 # Do we need the "lib" prefix for modules?
17225 need_lib_prefix=$need_lib_prefix
17227 # Do we need a version for libraries?
17228 need_version=$need_version
17230 # Library versioning type.
17231 version_type=$version_type
17233 # Shared library runtime path variable.
17234 runpath_var=$runpath_var
17236 # Shared library path variable.
17237 shlibpath_var=$shlibpath_var
17239 # Is shlibpath searched before the hard-coded library search path?
17240 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17242 # Format of library name prefix.
17243 libname_spec=$lt_libname_spec
17245 # List of archive names. First name is the real one, the rest are links.
17246 # The last name is the one that the linker finds with -lNAME
17247 library_names_spec=$lt_library_names_spec
17249 # The coded name of the library, if different from the real name.
17250 soname_spec=$lt_soname_spec
17252 # Command to use after installation of a shared archive.
17253 postinstall_cmds=$lt_postinstall_cmds
17255 # Command to use after uninstallation of a shared archive.
17256 postuninstall_cmds=$lt_postuninstall_cmds
17258 # Commands used to finish a libtool library installation in a directory.
17259 finish_cmds=$lt_finish_cmds
17261 # As "finish_cmds", except a single script fragment to be evaled but
17263 finish_eval=$lt_finish_eval
17265 # Whether we should hardcode library paths into libraries.
17266 hardcode_into_libs=$hardcode_into_libs
17268 # Compile-time system search path for libraries.
17269 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17271 # Run-time system search path for libraries.
17272 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17274 # Whether dlopen is supported.
17275 dlopen_support=$enable_dlopen
17277 # Whether dlopen of programs is supported.
17278 dlopen_self=$enable_dlopen_self
17280 # Whether dlopen of statically linked programs is supported.
17281 dlopen_self_static=$enable_dlopen_self_static
17283 # Commands to strip libraries.
17284 old_striplib=$lt_old_striplib
17285 striplib=$lt_striplib
17288 # The linker used to build libraries.
17291 # Commands used to build an old-style archive.
17292 old_archive_cmds=$lt_old_archive_cmds
17294 # A language specific compiler.
17297 # Is the compiler the GNU compiler?
17300 # Compiler flag to turn off builtin functions.
17301 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17303 # How to pass a linker flag through the compiler.
17304 wl=$lt_lt_prog_compiler_wl
17306 # Additional compiler flags for building library objects.
17307 pic_flag=$lt_lt_prog_compiler_pic
17309 # Compiler flag to prevent dynamic linking.
17310 link_static_flag=$lt_lt_prog_compiler_static
17312 # Does compiler simultaneously support -c and -o options?
17313 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17315 # Whether or not to add -lc for building shared libraries.
17316 build_libtool_need_lc=$archive_cmds_need_lc
17318 # Whether or not to disallow shared libs when runtime libs are static.
17319 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17321 # Compiler flag to allow reflexive dlopens.
17322 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17324 # Compiler flag to generate shared objects directly from archives.
17325 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17327 # Whether the compiler copes with passing no objects directly.
17328 compiler_needs_object=$lt_compiler_needs_object
17330 # Create an old-style archive from a shared archive.
17331 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17333 # Create a temporary old-style archive to link instead of a shared archive.
17334 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17336 # Commands used to build a shared archive.
17337 archive_cmds=$lt_archive_cmds
17338 archive_expsym_cmds=$lt_archive_expsym_cmds
17340 # Commands used to build a loadable module if different from building
17341 # a shared archive.
17342 module_cmds=$lt_module_cmds
17343 module_expsym_cmds=$lt_module_expsym_cmds
17345 # Whether we are building with GNU ld or not.
17346 with_gnu_ld=$lt_with_gnu_ld
17348 # Flag that allows shared libraries with undefined symbols to be built.
17349 allow_undefined_flag=$lt_allow_undefined_flag
17351 # Flag that enforces no undefined symbols.
17352 no_undefined_flag=$lt_no_undefined_flag
17354 # Flag to hardcode \$libdir into a binary during linking.
17355 # This must work even if \$libdir does not exist
17356 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17358 # If ld is used when linking, flag to hardcode \$libdir into a binary
17359 # during linking. This must work even if \$libdir does not exist.
17360 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17362 # Whether we need a single "-rpath" flag with a separated argument.
17363 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17365 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17366 # DIR into the resulting binary.
17367 hardcode_direct=$hardcode_direct
17369 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17370 # DIR into the resulting binary and the resulting library dependency is
17371 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17372 # library is relocated.
17373 hardcode_direct_absolute=$hardcode_direct_absolute
17375 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17376 # into the resulting binary.
17377 hardcode_minus_L=$hardcode_minus_L
17379 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17380 # into the resulting binary.
17381 hardcode_shlibpath_var=$hardcode_shlibpath_var
17383 # Set to "yes" if building a shared library automatically hardcodes DIR
17384 # into the library and all subsequent libraries and executables linked
17386 hardcode_automatic=$hardcode_automatic
17388 # Set to yes if linker adds runtime paths of dependent libraries
17389 # to runtime path list.
17390 inherit_rpath=$inherit_rpath
17392 # Whether libtool must link a program against all its dependency libraries.
17393 link_all_deplibs=$link_all_deplibs
17395 # Fix the shell variable \$srcfile for the compiler.
17396 fix_srcfile_path=$lt_fix_srcfile_path
17398 # Set to "yes" if exported symbols are required.
17399 always_export_symbols=$always_export_symbols
17401 # The commands to list exported symbols.
17402 export_symbols_cmds=$lt_export_symbols_cmds
17404 # Symbols that should not be listed in the preloaded symbols.
17405 exclude_expsyms=$lt_exclude_expsyms
17407 # Symbols that must always be exported.
17408 include_expsyms=$lt_include_expsyms
17410 # Commands necessary for linking programs (against libraries) with templates.
17411 prelink_cmds=$lt_prelink_cmds
17413 # Specify filename containing input files.
17414 file_list_spec=$lt_file_list_spec
17416 # How to hardcode a shared library path into an executable.
17417 hardcode_action=$hardcode_action
17419 # The directories searched by this compiler when creating a shared library.
17420 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17422 # Dependencies to place before and after the objects being linked to
17423 # create a shared library.
17424 predep_objects=$lt_predep_objects
17425 postdep_objects=$lt_postdep_objects
17426 predeps=$lt_predeps
17427 postdeps=$lt_postdeps
17429 # The library search path used internally by the compiler when linking
17430 # a shared library.
17431 compiler_lib_search_path=$lt_compiler_lib_search_path
17433 # ### END LIBTOOL CONFIG
17439 cat <<\_LT_EOF >> "$cfgfile"
17440 # AIX sometimes has problems with the GCC collect2 program. For some
17441 # reason, if we set the COLLECT_NAMES environment variable, the problems
17442 # vanish in a puff of smoke.
17443 if test "X${COLLECT_NAMES+set}" != Xset; then
17445 export COLLECT_NAMES
17452 ltmain="$ac_aux_dir/ltmain.sh"
17455 # We use sed instead of cat because bash on DJGPP gets confused if
17456 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17457 # text mode, it properly converts lines to CR/LF. This bash problem
17458 # is reportedly fixed, but why not run on old versions too?
17459 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17460 || (rm -f "$cfgfile"; exit 1)
17464 cat << \_LT_EOF >> "$cfgfile"
17466 # func_dirname file append nondir_replacement
17467 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17468 # otherwise set result to NONDIR_REPLACEMENT.
17472 */*) func_dirname_result="${1%/*}${2}" ;;
17473 * ) func_dirname_result="${3}" ;;
17477 # func_basename file
17480 func_basename_result="${1##*/}"
17483 # func_dirname_and_basename file append nondir_replacement
17484 # perform func_basename and func_dirname in a single function
17486 # dirname: Compute the dirname of FILE. If nonempty,
17487 # add APPEND to the result, otherwise set result
17488 # to NONDIR_REPLACEMENT.
17489 # value returned in "$func_dirname_result"
17490 # basename: Compute filename of FILE.
17491 # value retuned in "$func_basename_result"
17492 # Implementation must be kept synchronized with func_dirname
17493 # and func_basename. For efficiency, we do not delegate to
17494 # those functions but instead duplicate the functionality here.
17495 func_dirname_and_basename ()
17498 */*) func_dirname_result="${1%/*}${2}" ;;
17499 * ) func_dirname_result="${3}" ;;
17501 func_basename_result="${1##*/}"
17504 # func_stripname prefix suffix name
17505 # strip PREFIX and SUFFIX off of NAME.
17506 # PREFIX and SUFFIX must not contain globbing or regex special
17507 # characters, hashes, percent signs, but SUFFIX may contain a leading
17508 # dot (in which case that matches only a dot).
17511 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17512 # positional parameters, so assign one to ordinary parameter first.
17513 func_stripname_result=${3}
17514 func_stripname_result=${func_stripname_result#"${1}"}
17515 func_stripname_result=${func_stripname_result%"${2}"}
17521 func_opt_split_opt=${1%%=*}
17522 func_opt_split_arg=${1#*=}
17529 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17530 *) func_lo2o_result=${1} ;;
17534 # func_xform libobj-or-source
17537 func_xform_result=${1%.*}.lo
17540 # func_arith arithmetic-term...
17543 func_arith_result=$(( $* ))
17547 # STRING may not start with a hyphen.
17550 func_len_result=${#1}
17555 *) # Bourne compatible functions.
17556 cat << \_LT_EOF >> "$cfgfile"
17558 # func_dirname file append nondir_replacement
17559 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17560 # otherwise set result to NONDIR_REPLACEMENT.
17563 # Extract subdirectory from the argument.
17564 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
17565 if test "X$func_dirname_result" = "X${1}"; then
17566 func_dirname_result="${3}"
17568 func_dirname_result="$func_dirname_result${2}"
17572 # func_basename file
17575 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
17579 # func_stripname prefix suffix name
17580 # strip PREFIX and SUFFIX off of NAME.
17581 # PREFIX and SUFFIX must not contain globbing or regex special
17582 # characters, hashes, percent signs, but SUFFIX may contain a leading
17583 # dot (in which case that matches only a dot).
17584 # func_strip_suffix prefix name
17588 .*) func_stripname_result=`$ECHO "X${3}" \
17589 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
17590 *) func_stripname_result=`$ECHO "X${3}" \
17591 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
17596 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17597 my_sed_long_arg='1s/^-[^=]*=//'
17602 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
17603 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
17609 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
17612 # func_xform libobj-or-source
17615 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
17618 # func_arith arithmetic-term...
17621 func_arith_result=`expr "$@"`
17625 # STRING may not start with a hyphen.
17628 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17634 case $lt_shell_append in
17636 cat << \_LT_EOF >> "$cfgfile"
17638 # func_append var value
17639 # Append VALUE to the end of shell variable VAR.
17647 cat << \_LT_EOF >> "$cfgfile"
17649 # func_append var value
17650 # Append VALUE to the end of shell variable VAR.
17661 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17662 || (rm -f "$cfgfile"; exit 1)
17664 mv -f "$cfgfile" "$ofile" ||
17665 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17669 cat <<_LT_EOF >> "$ofile"
17671 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17673 # The linker used to build libraries.
17676 # Commands used to build an old-style archive.
17677 old_archive_cmds=$lt_old_archive_cmds_CXX
17679 # A language specific compiler.
17680 CC=$lt_compiler_CXX
17682 # Is the compiler the GNU compiler?
17685 # Compiler flag to turn off builtin functions.
17686 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17688 # How to pass a linker flag through the compiler.
17689 wl=$lt_lt_prog_compiler_wl_CXX
17691 # Additional compiler flags for building library objects.
17692 pic_flag=$lt_lt_prog_compiler_pic_CXX
17694 # Compiler flag to prevent dynamic linking.
17695 link_static_flag=$lt_lt_prog_compiler_static_CXX
17697 # Does compiler simultaneously support -c and -o options?
17698 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17700 # Whether or not to add -lc for building shared libraries.
17701 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17703 # Whether or not to disallow shared libs when runtime libs are static.
17704 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17706 # Compiler flag to allow reflexive dlopens.
17707 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17709 # Compiler flag to generate shared objects directly from archives.
17710 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17712 # Whether the compiler copes with passing no objects directly.
17713 compiler_needs_object=$lt_compiler_needs_object_CXX
17715 # Create an old-style archive from a shared archive.
17716 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17718 # Create a temporary old-style archive to link instead of a shared archive.
17719 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17721 # Commands used to build a shared archive.
17722 archive_cmds=$lt_archive_cmds_CXX
17723 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17725 # Commands used to build a loadable module if different from building
17726 # a shared archive.
17727 module_cmds=$lt_module_cmds_CXX
17728 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17730 # Whether we are building with GNU ld or not.
17731 with_gnu_ld=$lt_with_gnu_ld_CXX
17733 # Flag that allows shared libraries with undefined symbols to be built.
17734 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17736 # Flag that enforces no undefined symbols.
17737 no_undefined_flag=$lt_no_undefined_flag_CXX
17739 # Flag to hardcode \$libdir into a binary during linking.
17740 # This must work even if \$libdir does not exist
17741 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17743 # If ld is used when linking, flag to hardcode \$libdir into a binary
17744 # during linking. This must work even if \$libdir does not exist.
17745 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17747 # Whether we need a single "-rpath" flag with a separated argument.
17748 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17750 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17751 # DIR into the resulting binary.
17752 hardcode_direct=$hardcode_direct_CXX
17754 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17755 # DIR into the resulting binary and the resulting library dependency is
17756 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17757 # library is relocated.
17758 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17760 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17761 # into the resulting binary.
17762 hardcode_minus_L=$hardcode_minus_L_CXX
17764 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17765 # into the resulting binary.
17766 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17768 # Set to "yes" if building a shared library automatically hardcodes DIR
17769 # into the library and all subsequent libraries and executables linked
17771 hardcode_automatic=$hardcode_automatic_CXX
17773 # Set to yes if linker adds runtime paths of dependent libraries
17774 # to runtime path list.
17775 inherit_rpath=$inherit_rpath_CXX
17777 # Whether libtool must link a program against all its dependency libraries.
17778 link_all_deplibs=$link_all_deplibs_CXX
17780 # Fix the shell variable \$srcfile for the compiler.
17781 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17783 # Set to "yes" if exported symbols are required.
17784 always_export_symbols=$always_export_symbols_CXX
17786 # The commands to list exported symbols.
17787 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17789 # Symbols that should not be listed in the preloaded symbols.
17790 exclude_expsyms=$lt_exclude_expsyms_CXX
17792 # Symbols that must always be exported.
17793 include_expsyms=$lt_include_expsyms_CXX
17795 # Commands necessary for linking programs (against libraries) with templates.
17796 prelink_cmds=$lt_prelink_cmds_CXX
17798 # Specify filename containing input files.
17799 file_list_spec=$lt_file_list_spec_CXX
17801 # How to hardcode a shared library path into an executable.
17802 hardcode_action=$hardcode_action_CXX
17804 # The directories searched by this compiler when creating a shared library.
17805 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17807 # Dependencies to place before and after the objects being linked to
17808 # create a shared library.
17809 predep_objects=$lt_predep_objects_CXX
17810 postdep_objects=$lt_postdep_objects_CXX
17811 predeps=$lt_predeps_CXX
17812 postdeps=$lt_postdeps_CXX
17814 # The library search path used internally by the compiler when linking
17815 # a shared library.
17816 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17818 # ### END LIBTOOL TAG CONFIG: CXX
17829 ac_clean_files=$ac_clean_files_save
17831 test $ac_write_fail = 0 ||
17832 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17835 # configure is writing to config.log, and then calls config.status.
17836 # config.status does its own redirection, appending to config.log.
17837 # Unfortunately, on DOS this fails, as config.log is still kept open
17838 # by configure, so config.status won't be able to write to it; its
17839 # output is simply discarded. So we exec the FD to /dev/null,
17840 # effectively closing config.log, so it can be properly (re)opened and
17841 # appended to by config.status. When coming back to configure, we
17842 # need to make the FD available again.
17843 if test "$no_create" != yes; then
17845 ac_config_status_args=
17846 test "$silent" = yes &&
17847 ac_config_status_args="$ac_config_status_args --quiet"
17849 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17851 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17852 # would make configure fail if this is the last instruction.
17853 $ac_cs_success || as_fn_exit $?
17855 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17857 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}