2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
258 CONFIG_SHELL=$as_shell
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
286 as_func_ret_success () {
289 as_func_ret_failure () {
294 if as_func_success; then
298 echo as_func_success failed.
301 if as_func_failure; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472 ECHO_C= ECHO_N= ECHO_T=
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
517 test -d ./-p && rmdir ./-p
521 if test -x / >/dev/null 2>&1; then
524 if ls -dL / >/dev/null 2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
597 echo_test_string="`eval $cmd`" &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
614 # So, first we look for a working echo in the user's PATH.
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
667 # maybe with a smaller string...
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683 # Oops. We lost completely, so just stick with echo.
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702 tagnames=${tagnames+${tagnames},}CXX
704 tagnames=${tagnames+${tagnames},}F77
706 exec 7<&0 </dev/null 6>&1
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716 ac_default_prefix=/usr/local
718 ac_config_libobj_dir=.
724 SHELL=${CONFIG_SHELL-/bin/sh}
726 # Identity of this package.
733 ac_unique_file="src/file.c"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
747 # ifdef HAVE_STDLIB_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
779 program_transform_name
821 INSTALL_STRIP_PROGRAM
830 MAINTAINER_MODE_FALSE
877 IS_CROSS_COMPILE_TRUE
878 IS_CROSS_COMPILE_FALSE
882 ac_precious_vars='build_alias
899 # Initialize some variables set by options.
901 ac_init_version=false
902 # The variables have the same names as the options, with
903 # dashes changed to underlines.
911 program_transform_name=s,x,x,
919 # Installation directory options.
920 # These are left unexpanded so users can "make install exec_prefix=/foo"
921 # and all the variables that are supposed to be based on exec_prefix
922 # by default will actually change.
923 # Use braces instead of parens because sh, perl, etc. also accept them.
924 # (The list follows the same order as the GNU Coding Standards.)
925 bindir='${exec_prefix}/bin'
926 sbindir='${exec_prefix}/sbin'
927 libexecdir='${exec_prefix}/libexec'
928 datarootdir='${prefix}/share'
929 datadir='${datarootdir}'
930 sysconfdir='${prefix}/etc'
931 sharedstatedir='${prefix}/com'
932 localstatedir='${prefix}/var'
933 includedir='${prefix}/include'
934 oldincludedir='/usr/include'
935 docdir='${datarootdir}/doc/${PACKAGE}'
936 infodir='${datarootdir}/info'
941 libdir='${exec_prefix}/lib'
942 localedir='${datarootdir}/locale'
943 mandir='${datarootdir}/man'
949 # If the previous option needs an argument, assign it.
950 if test -n "$ac_prev"; then
951 eval $ac_prev=\$ac_option
957 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
961 # Accept the important Cygnus configure options, so we can diagnose typos.
963 case $ac_dashdash$ac_option in
967 -bindir | --bindir | --bindi | --bind | --bin | --bi)
969 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
972 -build | --build | --buil | --bui | --bu)
973 ac_prev=build_alias ;;
974 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
975 build_alias=$ac_optarg ;;
977 -cache-file | --cache-file | --cache-fil | --cache-fi \
978 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
979 ac_prev=cache_file ;;
980 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
981 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
982 cache_file=$ac_optarg ;;
985 cache_file=config.cache ;;
987 -datadir | --datadir | --datadi | --datad)
989 -datadir=* | --datadir=* | --datadi=* | --datad=*)
990 datadir=$ac_optarg ;;
992 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
993 | --dataroo | --dataro | --datar)
994 ac_prev=datarootdir ;;
995 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
996 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
997 datarootdir=$ac_optarg ;;
999 -disable-* | --disable-*)
1000 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1001 # Reject names that are not valid shell variable names.
1002 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1003 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1004 { (exit 1); exit 1; }; }
1005 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1006 eval enable_$ac_feature=no ;;
1008 -docdir | --docdir | --docdi | --doc | --do)
1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1011 docdir=$ac_optarg ;;
1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1016 dvidir=$ac_optarg ;;
1018 -enable-* | --enable-*)
1019 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1020 # Reject names that are not valid shell variable names.
1021 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1022 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1023 { (exit 1); exit 1; }; }
1024 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1025 eval enable_$ac_feature=\$ac_optarg ;;
1027 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1028 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1029 | --exec | --exe | --ex)
1030 ac_prev=exec_prefix ;;
1031 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1032 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1033 | --exec=* | --exe=* | --ex=*)
1034 exec_prefix=$ac_optarg ;;
1036 -gas | --gas | --ga | --g)
1037 # Obsolete; use --with-gas.
1040 -help | --help | --hel | --he | -h)
1041 ac_init_help=long ;;
1042 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1043 ac_init_help=recursive ;;
1044 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1045 ac_init_help=short ;;
1047 -host | --host | --hos | --ho)
1048 ac_prev=host_alias ;;
1049 -host=* | --host=* | --hos=* | --ho=*)
1050 host_alias=$ac_optarg ;;
1052 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 htmldir=$ac_optarg ;;
1058 -includedir | --includedir | --includedi | --included | --include \
1059 | --includ | --inclu | --incl | --inc)
1060 ac_prev=includedir ;;
1061 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1062 | --includ=* | --inclu=* | --incl=* | --inc=*)
1063 includedir=$ac_optarg ;;
1065 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1068 infodir=$ac_optarg ;;
1070 -libdir | --libdir | --libdi | --libd)
1072 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1073 libdir=$ac_optarg ;;
1075 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1076 | --libexe | --libex | --libe)
1077 ac_prev=libexecdir ;;
1078 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1079 | --libexe=* | --libex=* | --libe=*)
1080 libexecdir=$ac_optarg ;;
1082 -localedir | --localedir | --localedi | --localed | --locale)
1083 ac_prev=localedir ;;
1084 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1085 localedir=$ac_optarg ;;
1087 -localstatedir | --localstatedir | --localstatedi | --localstated \
1088 | --localstate | --localstat | --localsta | --localst | --locals)
1089 ac_prev=localstatedir ;;
1090 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1091 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1092 localstatedir=$ac_optarg ;;
1094 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1097 mandir=$ac_optarg ;;
1099 -nfp | --nfp | --nf)
1100 # Obsolete; use --without-fp.
1103 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1104 | --no-cr | --no-c | -n)
1107 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1108 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1111 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1112 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1113 | --oldin | --oldi | --old | --ol | --o)
1114 ac_prev=oldincludedir ;;
1115 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1116 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1117 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1118 oldincludedir=$ac_optarg ;;
1120 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1123 prefix=$ac_optarg ;;
1125 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1126 | --program-pre | --program-pr | --program-p)
1127 ac_prev=program_prefix ;;
1128 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1129 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1130 program_prefix=$ac_optarg ;;
1132 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1133 | --program-suf | --program-su | --program-s)
1134 ac_prev=program_suffix ;;
1135 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1136 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1137 program_suffix=$ac_optarg ;;
1139 -program-transform-name | --program-transform-name \
1140 | --program-transform-nam | --program-transform-na \
1141 | --program-transform-n | --program-transform- \
1142 | --program-transform | --program-transfor \
1143 | --program-transfo | --program-transf \
1144 | --program-trans | --program-tran \
1145 | --progr-tra | --program-tr | --program-t)
1146 ac_prev=program_transform_name ;;
1147 -program-transform-name=* | --program-transform-name=* \
1148 | --program-transform-nam=* | --program-transform-na=* \
1149 | --program-transform-n=* | --program-transform-=* \
1150 | --program-transform=* | --program-transfor=* \
1151 | --program-transfo=* | --program-transf=* \
1152 | --program-trans=* | --program-tran=* \
1153 | --progr-tra=* | --program-tr=* | --program-t=*)
1154 program_transform_name=$ac_optarg ;;
1156 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1159 pdfdir=$ac_optarg ;;
1161 -psdir | --psdir | --psdi | --psd | --ps)
1163 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1166 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1167 | -silent | --silent | --silen | --sile | --sil)
1170 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 sbindir=$ac_optarg ;;
1176 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1177 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1178 | --sharedst | --shareds | --shared | --share | --shar \
1180 ac_prev=sharedstatedir ;;
1181 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1182 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1183 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 sharedstatedir=$ac_optarg ;;
1187 -site | --site | --sit)
1189 -site=* | --site=* | --sit=*)
1192 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1195 srcdir=$ac_optarg ;;
1197 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1198 | --syscon | --sysco | --sysc | --sys | --sy)
1199 ac_prev=sysconfdir ;;
1200 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1201 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1202 sysconfdir=$ac_optarg ;;
1204 -target | --target | --targe | --targ | --tar | --ta | --t)
1205 ac_prev=target_alias ;;
1206 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1207 target_alias=$ac_optarg ;;
1209 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1212 -version | --version | --versio | --versi | --vers | -V)
1213 ac_init_version=: ;;
1216 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1219 { echo "$as_me: error: invalid package name: $ac_package" >&2
1220 { (exit 1); exit 1; }; }
1221 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1222 eval with_$ac_package=\$ac_optarg ;;
1224 -without-* | --without-*)
1225 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231 eval with_$ac_package=no ;;
1234 # Obsolete; use --with-x.
1237 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1238 | --x-incl | --x-inc | --x-in | --x-i)
1239 ac_prev=x_includes ;;
1240 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1241 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1242 x_includes=$ac_optarg ;;
1244 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1245 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1246 ac_prev=x_libraries ;;
1247 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1248 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1249 x_libraries=$ac_optarg ;;
1251 -*) { echo "$as_me: error: unrecognized option: $ac_option
1252 Try \`$0 --help' for more information." >&2
1253 { (exit 1); exit 1; }; }
1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1260 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1261 { (exit 1); exit 1; }; }
1262 eval $ac_envvar=\$ac_optarg
1263 export $ac_envvar ;;
1266 # FIXME: should be removed in autoconf 3.0.
1267 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1268 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1269 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1270 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1276 if test -n "$ac_prev"; then
1277 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1278 { echo "$as_me: error: missing argument to $ac_option" >&2
1279 { (exit 1); exit 1; }; }
1282 # Be sure to have absolute directory names.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val=\$$ac_var
1290 [\\/$]* | ?:[\\/]* ) continue;;
1291 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1294 { (exit 1); exit 1; }; }
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 { echo "$as_me: error: Working directory cannot be determined" >&2
1325 { (exit 1); exit 1; }; }
1326 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1327 { echo "$as_me: error: pwd does not report name of working directory" >&2
1328 { (exit 1); exit 1; }; }
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$0" ||
1336 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$0" : 'X\(//\)[^/]' \| \
1338 X"$0" : 'X\(//\)$' \| \
1339 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1363 ac_srcdir_defaulted=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1368 { (exit 1); exit 1; }; }
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1373 { (exit 1); exit 1; }; }
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 # Report the --help message.
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1399 \`configure' configures this package to adapt to many kinds of systems.
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1406 Defaults for the options are specified in brackets.
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1430 For better control, use the options below.
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1467 if test -n "$ac_init_help"; then
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --enable-maintainer-mode enable make rules and dependencies not useful
1475 (and sometimes confusing) to the casual installer
1476 --disable-elf disable builtin ELF support
1477 --disable-elf-core disable ELF core file support
1478 --enable-fsect-man5 enable file formats in man section 5
1479 --disable-dependency-tracking speeds up one-time build
1480 --enable-dependency-tracking do not reject slow dependency extractors
1481 --enable-shared[=PKGS] build shared libraries [default=yes]
1482 --enable-static[=PKGS] build static libraries [default=yes]
1483 --enable-fast-install[=PKGS]
1484 optimize for fast installation [default=yes]
1485 --disable-libtool-lock avoid locking (might break parallel builds)
1486 --disable-largefile omit support for large files
1489 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1490 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-pic try to use only PIC/non-PIC objects [default=use
1494 --with-tags[=TAGS] include additional configurations [automatic]
1496 Some influential environment variables:
1497 CC C compiler command
1498 CFLAGS C compiler flags
1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1500 nonstandard directory <lib dir>
1501 LIBS libraries to pass to the linker, e.g. -l<library>
1502 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1503 you have headers in a nonstandard directory <include dir>
1505 CXX C++ compiler command
1506 CXXFLAGS C++ compiler flags
1507 CXXCPP C++ preprocessor
1508 F77 Fortran 77 compiler command
1509 FFLAGS Fortran 77 compiler flags
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" || continue
1525 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1527 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1528 # A ".." for each directory in $ac_dir_suffix.
1529 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1530 case $ac_top_builddir_sub in
1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 ac_abs_top_builddir=$ac_pwd
1536 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1537 # for backward compatibility:
1538 ac_top_builddir=$ac_top_build_prefix
1541 .) # We are building in place.
1543 ac_top_srcdir=$ac_top_builddir_sub
1544 ac_abs_top_srcdir=$ac_pwd ;;
1545 [\\/]* | ?:[\\/]* ) # Absolute name.
1546 ac_srcdir=$srcdir$ac_dir_suffix;
1547 ac_top_srcdir=$srcdir
1548 ac_abs_top_srcdir=$srcdir ;;
1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1551 ac_top_srcdir=$ac_top_build_prefix$srcdir
1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1554 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1556 cd "$ac_dir" || { ac_status=$?; continue; }
1557 # Check for guested configure.
1558 if test -f "$ac_srcdir/configure.gnu"; then
1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1561 elif test -f "$ac_srcdir/configure"; then
1563 $SHELL "$ac_srcdir/configure" --help=recursive
1565 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1567 cd "$ac_pwd" || { ac_status=$?; break; }
1571 test -n "$ac_init_help" && exit $ac_status
1572 if $ac_init_version; then
1575 generated by GNU Autoconf 2.61
1577 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1578 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1579 This configure script is free software; the Free Software Foundation
1580 gives unlimited permission to copy, distribute and modify it.
1584 cat >config.log <<_ACEOF
1585 This file contains any messages produced by compilers while
1586 running configure, to aid debugging if configure makes a mistake.
1588 It was created by $as_me, which was
1589 generated by GNU Autoconf 2.61. Invocation command line was
1601 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1602 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1603 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1604 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1605 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1607 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1608 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1610 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1611 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1612 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1613 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1614 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1615 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1616 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624 test -z "$as_dir" && as_dir=.
1625 echo "PATH: $as_dir"
1641 # Keep a trace of the command line.
1642 # Strip out --no-create and --no-recursion so they do not pile up.
1643 # Strip out --silent because we don't want to record it for future runs.
1644 # Also quote any args containing shell meta-characters.
1645 # Make two passes to allow for proper duplicate-argument suppression.
1649 ac_must_keep_next=false
1655 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1657 | -silent | --silent | --silen | --sile | --sil)
1660 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1663 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1665 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1666 if test $ac_must_keep_next = true; then
1667 ac_must_keep_next=false # Got value, back to normal.
1670 *=* | --config-cache | -C | -disable-* | --disable-* \
1671 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1672 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1673 | -with-* | --with-* | -without-* | --without-* | --x)
1674 case "$ac_configure_args0 " in
1675 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1678 -* ) ac_must_keep_next=true ;;
1681 ac_configure_args="$ac_configure_args '$ac_arg'"
1686 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1687 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1689 # When interrupted or exit'd, cleanup temporary files, and complete
1690 # config.log. We remove comments because anyway the quotes in there
1691 # would cause problems or look ugly.
1692 # WARNING: Use '\'' to represent an apostrophe within the trap.
1693 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1694 trap 'exit_status=$?
1695 # Save into config.log some information that might help in debugging.
1700 ## ---------------- ##
1701 ## Cache variables. ##
1702 ## ---------------- ##
1705 # The following way of writing the cache mishandles newlines in values,
1707 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1708 eval ac_val=\$$ac_var
1712 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1713 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1716 _ | IFS | as_nl) ;; #(
1717 *) $as_unset $ac_var ;;
1722 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1723 *${as_nl}ac_space=\ *)
1725 "s/'\''/'\''\\\\'\'''\''/g;
1726 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1737 ## ----------------- ##
1738 ## Output variables. ##
1739 ## ----------------- ##
1742 for ac_var in $ac_subst_vars
1744 eval ac_val=\$$ac_var
1746 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1748 echo "$ac_var='\''$ac_val'\''"
1752 if test -n "$ac_subst_files"; then
1754 ## ------------------- ##
1755 ## File substitutions. ##
1756 ## ------------------- ##
1759 for ac_var in $ac_subst_files
1761 eval ac_val=\$$ac_var
1763 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1765 echo "$ac_var='\''$ac_val'\''"
1770 if test -s confdefs.h; then
1780 test "$ac_signal" != 0 &&
1781 echo "$as_me: caught signal $ac_signal"
1782 echo "$as_me: exit $exit_status"
1784 rm -f core *.core core.conftest.* &&
1785 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1788 for ac_signal in 1 2 13 15; do
1789 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1793 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1794 rm -f -r conftest* confdefs.h
1796 # Predefined preprocessor variables.
1798 cat >>confdefs.h <<_ACEOF
1799 #define PACKAGE_NAME "$PACKAGE_NAME"
1803 cat >>confdefs.h <<_ACEOF
1804 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_STRING "$PACKAGE_STRING"
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1823 # Let the site file select an alternate cache file if it wants to.
1824 # Prefer explicitly selected file to automatically selected ones.
1825 if test -n "$CONFIG_SITE"; then
1826 set x "$CONFIG_SITE"
1827 elif test "x$prefix" != xNONE; then
1828 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1830 set x "$ac_default_prefix/share/config.site" \
1831 "$ac_default_prefix/etc/config.site"
1836 if test -r "$ac_site_file"; then
1837 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1838 echo "$as_me: loading site script $ac_site_file" >&6;}
1839 sed 's/^/| /' "$ac_site_file" >&5
1844 if test -r "$cache_file"; then
1845 # Some versions of bash will fail to source /dev/null (special
1846 # files actually), so we avoid doing that.
1847 if test -f "$cache_file"; then
1848 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1849 echo "$as_me: loading cache $cache_file" >&6;}
1851 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1852 *) . "./$cache_file";;
1856 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1857 echo "$as_me: creating cache $cache_file" >&6;}
1861 # Check that the precious variables saved in the cache have kept the same
1863 ac_cache_corrupted=false
1864 for ac_var in $ac_precious_vars; do
1865 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1866 eval ac_new_set=\$ac_env_${ac_var}_set
1867 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1868 eval ac_new_val=\$ac_env_${ac_var}_value
1869 case $ac_old_set,$ac_new_set in
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1875 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1876 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1877 ac_cache_corrupted=: ;;
1880 if test "x$ac_old_val" != "x$ac_new_val"; then
1881 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1882 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1883 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1884 echo "$as_me: former value: $ac_old_val" >&2;}
1885 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1886 echo "$as_me: current value: $ac_new_val" >&2;}
1887 ac_cache_corrupted=:
1890 # Pass precious variables to config.status.
1891 if test "$ac_new_set" = set; then
1893 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1894 *) ac_arg=$ac_var=$ac_new_val ;;
1896 case " $ac_configure_args " in
1897 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1898 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1902 if $ac_cache_corrupted; then
1903 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1904 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1905 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1906 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1907 { (exit 1); exit 1; }; }
1927 ac_cpp='$CPP $CPPFLAGS'
1928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1934 am__api_version='1.10'
1937 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1938 if test -f "$ac_dir/install-sh"; then
1940 ac_install_sh="$ac_aux_dir/install-sh -c"
1942 elif test -f "$ac_dir/install.sh"; then
1944 ac_install_sh="$ac_aux_dir/install.sh -c"
1946 elif test -f "$ac_dir/shtool"; then
1948 ac_install_sh="$ac_aux_dir/shtool install -c"
1952 if test -z "$ac_aux_dir"; then
1953 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1954 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1955 { (exit 1); exit 1; }; }
1958 # These three variables are undocumented and unsupported,
1959 # and are intended to be withdrawn in a future Autoconf release.
1960 # They can cause serious problems if a builder's source tree is in a directory
1961 # whose full name contains unusual characters.
1962 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1963 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1964 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1967 # Find a good install program. We prefer a C program (faster),
1968 # so one script is as good as another. But avoid the broken or
1969 # incompatible versions:
1970 # SysV /etc/install, /usr/sbin/install
1971 # SunOS /usr/etc/install
1972 # IRIX /sbin/install
1974 # AmigaOS /C/install, which installs bootblocks on floppy discs
1975 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1976 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1977 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1978 # OS/2's system install, which has a completely different semantic
1979 # ./install, which can be erroneously created by make from ./install.sh.
1980 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1981 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1982 if test -z "$INSTALL"; then
1983 if test "${ac_cv_path_install+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1990 test -z "$as_dir" && as_dir=.
1991 # Account for people who put trailing slashes in PATH elements.
1993 ./ | .// | /cC/* | \
1994 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1995 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1998 # OSF1 and SCO ODT 3.0 have their own names for install.
1999 # Don't use installbsd from OSF since it installs stuff as root
2001 for ac_prog in ginstall scoinst install; do
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2004 if test $ac_prog = install &&
2005 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2006 # AIX install. It has an incompatible calling convention.
2008 elif test $ac_prog = install &&
2009 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2010 # program-specific install script used by HP pwplus--don't use.
2013 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2026 if test "${ac_cv_path_install+set}" = set; then
2027 INSTALL=$ac_cv_path_install
2029 # As a last resort, use the slow shell script. Don't cache a
2030 # value for INSTALL within a source directory, because that will
2031 # break other packages using the cache if that directory is
2032 # removed, or if the value is a relative name.
2033 INSTALL=$ac_install_sh
2036 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2037 echo "${ECHO_T}$INSTALL" >&6; }
2039 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2040 # It thinks the first close brace ends the variable substitution.
2041 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2043 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2045 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2047 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2048 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2051 echo timestamp > conftest.file
2052 # Do `set' in a subshell so we don't clobber the current shell's
2053 # arguments. Must try -L first in case configure is actually a
2054 # symlink; some systems play weird games with the mod time of symlinks
2055 # (eg FreeBSD returns the mod time of the symlink's containing
2058 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2059 if test "$*" = "X"; then
2061 set X `ls -t $srcdir/configure conftest.file`
2064 if test "$*" != "X $srcdir/configure conftest.file" \
2065 && test "$*" != "X conftest.file $srcdir/configure"; then
2067 # If neither matched, then we have a broken ls. This can happen
2068 # if, for instance, CONFIG_SHELL is bash and it inherits a
2069 # broken ls alias from the environment. This has actually
2070 # happened. Such a system could not be considered "sane".
2071 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2072 alias in your environment" >&5
2073 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2074 alias in your environment" >&2;}
2075 { (exit 1); exit 1; }; }
2078 test "$2" = conftest.file
2084 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2085 Check your system clock" >&5
2086 echo "$as_me: error: newly created file is older than distributed files!
2087 Check your system clock" >&2;}
2088 { (exit 1); exit 1; }; }
2090 { echo "$as_me:$LINENO: result: yes" >&5
2091 echo "${ECHO_T}yes" >&6; }
2092 test "$program_prefix" != NONE &&
2093 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2094 # Use a double $ so make ignores it.
2095 test "$program_suffix" != NONE &&
2096 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2097 # Double any \ or $. echo might interpret backslashes.
2098 # By default was `s,x,x', remove it if useless.
2099 cat <<\_ACEOF >conftest.sed
2100 s/[\\$]/&&/g;s/;s,x,x,$//
2102 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2105 # expand $ac_aux_dir to an absolute path
2106 am_aux_dir=`cd $ac_aux_dir && pwd`
2108 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2109 # Use eval to expand $SHELL
2110 if eval "$MISSING --run true"; then
2111 am_missing_run="$MISSING --run "
2114 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2115 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2118 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2119 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2120 if test -z "$MKDIR_P"; then
2121 if test "${ac_cv_path_mkdir+set}" = set; then
2122 echo $ECHO_N "(cached) $ECHO_C" >&6
2124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2128 test -z "$as_dir" && as_dir=.
2129 for ac_prog in mkdir gmkdir; do
2130 for ac_exec_ext in '' $ac_executable_extensions; do
2131 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2132 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2133 'mkdir (GNU coreutils) '* | \
2134 'mkdir (coreutils) '* | \
2135 'mkdir (fileutils) '4.1*)
2136 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2146 if test "${ac_cv_path_mkdir+set}" = set; then
2147 MKDIR_P="$ac_cv_path_mkdir -p"
2149 # As a last resort, use the slow shell script. Don't cache a
2150 # value for MKDIR_P within a source directory, because that will
2151 # break other packages using the cache if that directory is
2152 # removed, or if the value is a relative name.
2153 test -d ./--version && rmdir ./--version
2154 MKDIR_P="$ac_install_sh -d"
2157 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2158 echo "${ECHO_T}$MKDIR_P" >&6; }
2162 [\\/$]* | ?:[\\/]*) ;;
2163 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2166 for ac_prog in gawk mawk nawk awk
2168 # Extract the first word of "$ac_prog", so it can be a program name with args.
2169 set dummy $ac_prog; ac_word=$2
2170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2172 if test "${ac_cv_prog_AWK+set}" = set; then
2173 echo $ECHO_N "(cached) $ECHO_C" >&6
2175 if test -n "$AWK"; then
2176 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2182 test -z "$as_dir" && as_dir=.
2183 for ac_exec_ext in '' $ac_executable_extensions; do
2184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2185 ac_cv_prog_AWK="$ac_prog"
2186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2196 if test -n "$AWK"; then
2197 { echo "$as_me:$LINENO: result: $AWK" >&5
2198 echo "${ECHO_T}$AWK" >&6; }
2200 { echo "$as_me:$LINENO: result: no" >&5
2201 echo "${ECHO_T}no" >&6; }
2205 test -n "$AWK" && break
2208 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2209 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2210 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2211 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2214 cat >conftest.make <<\_ACEOF
2217 @echo '@@@%%%=$(MAKE)=@@@%%%'
2219 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2220 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2222 eval ac_cv_prog_make_${ac_make}_set=yes;;
2224 eval ac_cv_prog_make_${ac_make}_set=no;;
2228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2229 { echo "$as_me:$LINENO: result: yes" >&5
2230 echo "${ECHO_T}yes" >&6; }
2233 { echo "$as_me:$LINENO: result: no" >&5
2234 echo "${ECHO_T}no" >&6; }
2235 SET_MAKE="MAKE=${MAKE-make}"
2238 rm -rf .tst 2>/dev/null
2239 mkdir .tst 2>/dev/null
2240 if test -d .tst; then
2245 rmdir .tst 2>/dev/null
2247 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2248 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2249 # is not polluted with repeated "-I."
2250 am__isrc=' -I$(srcdir)'
2251 # test to see if srcdir already configured
2252 if test -f $srcdir/config.status; then
2253 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2254 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2255 { (exit 1); exit 1; }; }
2259 # test whether we have cygpath
2260 if test -z "$CYGPATH_W"; then
2261 if (cygpath --version) >/dev/null 2>/dev/null; then
2262 CYGPATH_W='cygpath -w'
2269 # Define the identity of the package.
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE "$PACKAGE"
2279 cat >>confdefs.h <<_ACEOF
2280 #define VERSION "$VERSION"
2283 # Some tools Automake needs.
2285 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2288 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2291 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2294 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2297 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2299 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2301 # Installed binaries are usually stripped using `strip' when the user
2302 # run `make install-strip'. However `strip' might not be the right
2303 # tool to use in cross-compilation environments, therefore Automake
2304 # will honor the `STRIP' environment variable to overrule this program.
2305 if test "$cross_compiling" != no; then
2306 if test -n "$ac_tool_prefix"; then
2307 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2308 set dummy ${ac_tool_prefix}strip; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_STRIP+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2314 if test -n "$STRIP"; then
2315 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2334 STRIP=$ac_cv_prog_STRIP
2335 if test -n "$STRIP"; then
2336 { echo "$as_me:$LINENO: result: $STRIP" >&5
2337 echo "${ECHO_T}$STRIP" >&6; }
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2345 if test -z "$ac_cv_prog_STRIP"; then
2347 # Extract the first word of "strip", so it can be a program name with args.
2348 set dummy strip; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2354 if test -n "$ac_ct_STRIP"; then
2355 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_ac_ct_STRIP="strip"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2375 if test -n "$ac_ct_STRIP"; then
2376 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2377 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2383 if test "x$ac_ct_STRIP" = x; then
2386 case $cross_compiling:$ac_tool_warned in
2388 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2389 whose name does not start with the host triplet. If you think this
2390 configuration is useful to you, please write to autoconf@gnu.org." >&5
2391 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2392 whose name does not start with the host triplet. If you think this
2393 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2394 ac_tool_warned=yes ;;
2399 STRIP="$ac_cv_prog_STRIP"
2403 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2405 # We need awk for the "check" target. The system "awk" is bad on
2407 # Always define AMTAR for backward compatibility.
2409 AMTAR=${AMTAR-"${am_missing_run}tar"}
2411 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2417 ac_config_headers="$ac_config_headers config.h"
2419 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2420 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2421 # Check whether --enable-maintainer-mode was given.
2422 if test "${enable_maintainer_mode+set}" = set; then
2423 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2425 USE_MAINTAINER_MODE=no
2428 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2429 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2430 if test $USE_MAINTAINER_MODE = yes; then
2431 MAINTAINER_MODE_TRUE=
2432 MAINTAINER_MODE_FALSE='#'
2434 MAINTAINER_MODE_TRUE='#'
2435 MAINTAINER_MODE_FALSE=
2438 MAINT=$MAINTAINER_MODE_TRUE
2442 { echo "$as_me:$LINENO: checking for builtin ELF support" >&5
2443 echo $ECHO_N "checking for builtin ELF support... $ECHO_C" >&6; }
2444 # Check whether --enable-elf was given.
2445 if test "${enable_elf+set}" = set; then
2446 enableval=$enable_elf; if test "${enableval}" = yes; then
2447 { echo "$as_me:$LINENO: result: yes" >&5
2448 echo "${ECHO_T}yes" >&6; }
2449 cat >>confdefs.h <<\_ACEOF
2450 #define BUILTIN_ELF 1
2454 { echo "$as_me:$LINENO: result: no" >&5
2455 echo "${ECHO_T}no" >&6; }
2460 { echo "$as_me:$LINENO: result: yes" >&5
2461 echo "${ECHO_T}yes" >&6; }
2462 cat >>confdefs.h <<\_ACEOF
2463 #define BUILTIN_ELF 1
2470 { echo "$as_me:$LINENO: checking for ELF core file support" >&5
2471 echo $ECHO_N "checking for ELF core file support... $ECHO_C" >&6; }
2472 # Check whether --enable-elf-core was given.
2473 if test "${enable_elf_core+set}" = set; then
2474 enableval=$enable_elf_core; if test "${enableval}" = yes; then
2475 { echo "$as_me:$LINENO: result: yes" >&5
2476 echo "${ECHO_T}yes" >&6; }
2477 cat >>confdefs.h <<\_ACEOF
2482 { echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6; }
2488 { echo "$as_me:$LINENO: result: yes" >&5
2489 echo "${ECHO_T}yes" >&6; }
2490 cat >>confdefs.h <<\_ACEOF
2498 { echo "$as_me:$LINENO: checking for file formats in man section 5" >&5
2499 echo $ECHO_N "checking for file formats in man section 5... $ECHO_C" >&6; }
2500 # Check whether --enable-fsect-man5 was given.
2501 if test "${enable_fsect_man5+set}" = set; then
2502 enableval=$enable_fsect_man5; if test "${enableval}" = yes; then
2503 { echo "$as_me:$LINENO: result: yes" >&5
2504 echo "${ECHO_T}yes" >&6; }
2507 { echo "$as_me:$LINENO: result: no" >&5
2508 echo "${ECHO_T}no" >&6; }
2513 # disable by default
2514 { echo "$as_me:$LINENO: result: no" >&5
2515 echo "${ECHO_T}no" >&6; }
2521 if test x$fsect = x5; then
2530 cat >>confdefs.h <<\_ACEOF
2531 #define _GNU_SOURCE 1
2537 ac_cpp='$CPP $CPPFLAGS'
2538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2541 if test -n "$ac_tool_prefix"; then
2542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2544 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2545 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2546 if test "${ac_cv_prog_CC+set}" = set; then
2547 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 if test -n "$CC"; then
2550 ac_cv_prog_CC="$CC" # Let the user override the test.
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 if test -n "$CC"; then
2571 { echo "$as_me:$LINENO: result: $CC" >&5
2572 echo "${ECHO_T}$CC" >&6; }
2574 { echo "$as_me:$LINENO: result: no" >&5
2575 echo "${ECHO_T}no" >&6; }
2580 if test -z "$ac_cv_prog_CC"; then
2582 # Extract the first word of "gcc", so it can be a program name with args.
2583 set dummy gcc; ac_word=$2
2584 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 if test -n "$ac_ct_CC"; then
2590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2596 test -z "$as_dir" && as_dir=.
2597 for ac_exec_ext in '' $ac_executable_extensions; do
2598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599 ac_cv_prog_ac_ct_CC="gcc"
2600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2610 if test -n "$ac_ct_CC"; then
2611 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2612 echo "${ECHO_T}$ac_ct_CC" >&6; }
2614 { echo "$as_me:$LINENO: result: no" >&5
2615 echo "${ECHO_T}no" >&6; }
2618 if test "x$ac_ct_CC" = x; then
2621 case $cross_compiling:$ac_tool_warned in
2623 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2624 whose name does not start with the host triplet. If you think this
2625 configuration is useful to you, please write to autoconf@gnu.org." >&5
2626 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2627 whose name does not start with the host triplet. If you think this
2628 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2629 ac_tool_warned=yes ;;
2637 if test -z "$CC"; then
2638 if test -n "$ac_tool_prefix"; then
2639 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2640 set dummy ${ac_tool_prefix}cc; ac_word=$2
2641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2643 if test "${ac_cv_prog_CC+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2646 if test -n "$CC"; then
2647 ac_cv_prog_CC="$CC" # Let the user override the test.
2649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2653 test -z "$as_dir" && as_dir=.
2654 for ac_exec_ext in '' $ac_executable_extensions; do
2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2656 ac_cv_prog_CC="${ac_tool_prefix}cc"
2657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 if test -n "$CC"; then
2668 { echo "$as_me:$LINENO: result: $CC" >&5
2669 echo "${ECHO_T}$CC" >&6; }
2671 { echo "$as_me:$LINENO: result: no" >&5
2672 echo "${ECHO_T}no" >&6; }
2678 if test -z "$CC"; then
2679 # Extract the first word of "cc", so it can be a program name with args.
2680 set dummy cc; ac_word=$2
2681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_CC+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 if test -n "$CC"; then
2687 ac_cv_prog_CC="$CC" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2698 ac_prog_rejected=yes
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2709 if test $ac_prog_rejected = yes; then
2710 # We found a bogon in the path, so make sure we never use it.
2711 set dummy $ac_cv_prog_CC
2713 if test $# != 0; then
2714 # We chose a different compiler from the bogus one.
2715 # However, it has the same basename, so the bogon will be chosen
2716 # first if we set CC to just the basename; use the full file name.
2718 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2724 if test -n "$CC"; then
2725 { echo "$as_me:$LINENO: result: $CC" >&5
2726 echo "${ECHO_T}$CC" >&6; }
2728 { echo "$as_me:$LINENO: result: no" >&5
2729 echo "${ECHO_T}no" >&6; }
2734 if test -z "$CC"; then
2735 if test -n "$ac_tool_prefix"; then
2736 for ac_prog in cl.exe
2738 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2739 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2755 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 if test -n "$CC"; then
2767 { echo "$as_me:$LINENO: result: $CC" >&5
2768 echo "${ECHO_T}$CC" >&6; }
2770 { echo "$as_me:$LINENO: result: no" >&5
2771 echo "${ECHO_T}no" >&6; }
2775 test -n "$CC" && break
2778 if test -z "$CC"; then
2780 for ac_prog in cl.exe
2782 # Extract the first word of "$ac_prog", so it can be a program name with args.
2783 set dummy $ac_prog; ac_word=$2
2784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 if test -n "$ac_ct_CC"; then
2790 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_ac_ct_CC="$ac_prog"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2810 if test -n "$ac_ct_CC"; then
2811 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2812 echo "${ECHO_T}$ac_ct_CC" >&6; }
2814 { echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6; }
2819 test -n "$ac_ct_CC" && break
2822 if test "x$ac_ct_CC" = x; then
2825 case $cross_compiling:$ac_tool_warned in
2827 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2828 whose name does not start with the host triplet. If you think this
2829 configuration is useful to you, please write to autoconf@gnu.org." >&5
2830 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2831 whose name does not start with the host triplet. If you think this
2832 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2833 ac_tool_warned=yes ;;
2842 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2843 See \`config.log' for more details." >&5
2844 echo "$as_me: error: no acceptable C compiler found in \$PATH
2845 See \`config.log' for more details." >&2;}
2846 { (exit 1); exit 1; }; }
2848 # Provide some information about the compiler.
2849 echo "$as_me:$LINENO: checking for C compiler version" >&5
2850 ac_compiler=`set X $ac_compile; echo $2`
2851 { (ac_try="$ac_compiler --version >&5"
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_compiler --version >&5") 2>&5
2859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860 (exit $ac_status); }
2861 { (ac_try="$ac_compiler -v >&5"
2863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2864 *) ac_try_echo=$ac_try;;
2866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2867 (eval "$ac_compiler -v >&5") 2>&5
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }
2871 { (ac_try="$ac_compiler -V >&5"
2873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compiler -V >&5") 2>&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }
2882 cat >conftest.$ac_ext <<_ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h. */
2897 ac_clean_files_save=$ac_clean_files
2898 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2899 # Try to create an executable without -o first, disregard a.out.
2900 # It will help us diagnose broken compilers, and finding out an intuition
2902 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2903 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2904 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2906 # List of possible output files, starting from the most likely.
2907 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2908 # only as a last resort. b.out is created by i960 compilers.
2909 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2911 # The IRIX 6 linker writes into existing files which may not be
2912 # executable, retaining their permissions. Remove them first so a
2913 # subsequent execution test works.
2915 for ac_file in $ac_files
2918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2919 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2924 if { (ac_try="$ac_link_default"
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_link_default") 2>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; then
2934 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2935 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2936 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2937 # so that the user can short-circuit this test for compilers unknown to
2939 for ac_file in $ac_files ''
2941 test -f "$ac_file" || continue
2943 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2946 # We found the default executable, but exeext='' is most
2950 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2952 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2954 # We set ac_cv_exeext here because the later test for it is not
2955 # safe: cross compilers may not add the suffix if given an `-o'
2956 # argument, so we may need to know it at that point already.
2957 # Even if this section looks crufty: it has the advantage of
2964 test "$ac_cv_exeext" = no && ac_cv_exeext=
2970 { echo "$as_me:$LINENO: result: $ac_file" >&5
2971 echo "${ECHO_T}$ac_file" >&6; }
2972 if test -z "$ac_file"; then
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2976 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2977 See \`config.log' for more details." >&5
2978 echo "$as_me: error: C compiler cannot create executables
2979 See \`config.log' for more details." >&2;}
2980 { (exit 77); exit 77; }; }
2983 ac_exeext=$ac_cv_exeext
2985 # Check that the compiler produces executables we can run. If not, either
2986 # the compiler is broken, or we cross compile.
2987 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2988 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2989 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2990 # If not cross compiling, check that we can run a simple program.
2991 if test "$cross_compiling" != yes; then
2992 if { ac_try='./$ac_file'
2993 { (case "(($ac_try" in
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2998 (eval "$ac_try") 2>&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3004 if test "$cross_compiling" = maybe; then
3007 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3008 If you meant to cross compile, use \`--host'.
3009 See \`config.log' for more details." >&5
3010 echo "$as_me: error: cannot run C compiled programs.
3011 If you meant to cross compile, use \`--host'.
3012 See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }
3017 { echo "$as_me:$LINENO: result: yes" >&5
3018 echo "${ECHO_T}yes" >&6; }
3020 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3021 ac_clean_files=$ac_clean_files_save
3022 # Check that the compiler produces executables we can run. If not, either
3023 # the compiler is broken, or we cross compile.
3024 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3025 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3026 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3027 echo "${ECHO_T}$cross_compiling" >&6; }
3029 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3030 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3031 if { (ac_try="$ac_link"
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_link") 2>&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; then
3041 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3042 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3043 # work properly (i.e., refer to `conftest.exe'), while it won't with
3045 for ac_file in conftest.exe conftest conftest.*; do
3046 test -f "$ac_file" || continue
3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3049 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3055 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3058 See \`config.log' for more details." >&2;}
3059 { (exit 1); exit 1; }; }
3062 rm -f conftest$ac_cv_exeext
3063 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3064 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3066 rm -f conftest.$ac_ext
3067 EXEEXT=$ac_cv_exeext
3069 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3070 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3071 if test "${ac_cv_objext+set}" = set; then
3072 echo $ECHO_N "(cached) $ECHO_C" >&6
3074 cat >conftest.$ac_ext <<_ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3089 rm -f conftest.o conftest.obj
3090 if { (ac_try="$ac_compile"
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; then
3100 for ac_file in conftest.o conftest.obj conftest.*; do
3101 test -f "$ac_file" || continue;
3103 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3104 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3109 echo "$as_me: failed program was:" >&5
3110 sed 's/^/| /' conftest.$ac_ext >&5
3112 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3113 See \`config.log' for more details." >&5
3114 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3115 See \`config.log' for more details." >&2;}
3116 { (exit 1); exit 1; }; }
3119 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3121 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3122 echo "${ECHO_T}$ac_cv_objext" >&6; }
3123 OBJEXT=$ac_cv_objext
3125 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3126 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3127 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3148 rm -f conftest.$ac_objext
3149 if { (ac_try="$ac_compile"
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>conftest.er1
3157 grep -v '^ *+' conftest.er1 >conftest.err
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } && {
3162 test -z "$ac_c_werror_flag" ||
3163 test ! -s conftest.err
3164 } && test -s conftest.$ac_objext; then
3167 echo "$as_me: failed program was:" >&5
3168 sed 's/^/| /' conftest.$ac_ext >&5
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3177 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3178 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3179 GCC=`test $ac_compiler_gnu = yes && echo yes`
3180 ac_test_CFLAGS=${CFLAGS+set}
3181 ac_save_CFLAGS=$CFLAGS
3182 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3183 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3184 if test "${ac_cv_prog_cc_g+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 ac_save_c_werror_flag=$ac_c_werror_flag
3188 ac_c_werror_flag=yes
3191 cat >conftest.$ac_ext <<_ACEOF
3194 cat confdefs.h >>conftest.$ac_ext
3195 cat >>conftest.$ac_ext <<_ACEOF
3196 /* end confdefs.h. */
3206 rm -f conftest.$ac_objext
3207 if { (ac_try="$ac_compile"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_compile") 2>conftest.er1
3215 grep -v '^ *+' conftest.er1 >conftest.err
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } && {
3220 test -z "$ac_c_werror_flag" ||
3221 test ! -s conftest.err
3222 } && test -s conftest.$ac_objext; then
3225 echo "$as_me: failed program was:" >&5
3226 sed 's/^/| /' conftest.$ac_ext >&5
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3244 rm -f conftest.$ac_objext
3245 if { (ac_try="$ac_compile"
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3251 (eval "$ac_compile") 2>conftest.er1
3253 grep -v '^ *+' conftest.er1 >conftest.err
3255 cat conftest.err >&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); } && {
3258 test -z "$ac_c_werror_flag" ||
3259 test ! -s conftest.err
3260 } && test -s conftest.$ac_objext; then
3263 echo "$as_me: failed program was:" >&5
3264 sed 's/^/| /' conftest.$ac_ext >&5
3266 ac_c_werror_flag=$ac_save_c_werror_flag
3268 cat >conftest.$ac_ext <<_ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3315 ac_c_werror_flag=$ac_save_c_werror_flag
3317 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3318 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3319 if test "$ac_test_CFLAGS" = set; then
3320 CFLAGS=$ac_save_CFLAGS
3321 elif test $ac_cv_prog_cc_g = yes; then
3322 if test "$GCC" = yes; then
3328 if test "$GCC" = yes; then
3334 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3335 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3336 if test "${ac_cv_prog_cc_c89+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3339 ac_cv_prog_cc_c89=no
3341 cat >conftest.$ac_ext <<_ACEOF
3344 cat confdefs.h >>conftest.$ac_ext
3345 cat >>conftest.$ac_ext <<_ACEOF
3346 /* end confdefs.h. */
3349 #include <sys/types.h>
3350 #include <sys/stat.h>
3351 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3352 struct buf { int x; };
3353 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3354 static char *e (p, i)
3360 static char *f (char * (*g) (char **, int), char **p, ...)
3365 s = g (p, va_arg (v,int));
3370 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3371 function prototypes and stuff, but not '\xHH' hex character constants.
3372 These don't provoke an error unfortunately, instead are silently treated
3373 as 'x'. The following induces an error, until -std is added to get
3374 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3375 array size at least. It's necessary to write '\x00'==0 to get something
3376 that's true only with -std. */
3377 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3379 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3380 inside strings and character constants. */
3382 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3384 int test (int i, double x);
3385 struct s1 {int (*f) (int a);};
3386 struct s2 {int (*f) (double a);};
3387 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3393 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3398 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3399 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3401 CC="$ac_save_CC $ac_arg"
3402 rm -f conftest.$ac_objext
3403 if { (ac_try="$ac_compile"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_compile") 2>conftest.er1
3411 grep -v '^ *+' conftest.er1 >conftest.err
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } && {
3416 test -z "$ac_c_werror_flag" ||
3417 test ! -s conftest.err
3418 } && test -s conftest.$ac_objext; then
3419 ac_cv_prog_cc_c89=$ac_arg
3421 echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3427 rm -f core conftest.err conftest.$ac_objext
3428 test "x$ac_cv_prog_cc_c89" != "xno" && break
3430 rm -f conftest.$ac_ext
3435 case "x$ac_cv_prog_cc_c89" in
3437 { echo "$as_me:$LINENO: result: none needed" >&5
3438 echo "${ECHO_T}none needed" >&6; } ;;
3440 { echo "$as_me:$LINENO: result: unsupported" >&5
3441 echo "${ECHO_T}unsupported" >&6; } ;;
3443 CC="$CC $ac_cv_prog_cc_c89"
3444 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3445 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454 DEPDIR="${am__leading_dot}deps"
3456 ac_config_commands="$ac_config_commands depfiles"
3459 am_make=${MAKE-make}
3460 cat > confinc << 'END'
3465 # If we don't find an include directive, just comment out the code.
3466 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3467 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3471 # First try GNU make style include.
3472 echo "include confinc" > confmf
3473 # We grep out `Entering directory' and `Leaving directory'
3474 # messages which can occur if `w' ends up in MAKEFLAGS.
3475 # In particular we don't look at `^make:' because GNU make might
3476 # be invoked under some other name (usually "gmake"), in which
3477 # case it prints its new name instead of `make'.
3478 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3483 # Now try BSD make style include.
3484 if test "$am__include" = "#"; then
3485 echo '.include "confinc"' > confmf
3486 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3487 am__include=.include
3494 { echo "$as_me:$LINENO: result: $_am_result" >&5
3495 echo "${ECHO_T}$_am_result" >&6; }
3496 rm -f confinc confmf
3498 # Check whether --enable-dependency-tracking was given.
3499 if test "${enable_dependency_tracking+set}" = set; then
3500 enableval=$enable_dependency_tracking;
3503 if test "x$enable_dependency_tracking" != xno; then
3504 am_depcomp="$ac_aux_dir/depcomp"
3507 if test "x$enable_dependency_tracking" != xno; then
3517 depcc="$CC" am_compiler_list=
3519 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3520 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3521 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3522 echo $ECHO_N "(cached) $ECHO_C" >&6
3524 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3525 # We make a subdir and do the tests there. Otherwise we can end up
3526 # making bogus files that we don't know about and never remove. For
3527 # instance it was reported that on HP-UX the gcc test will end up
3528 # making a dummy file named `D' -- because `-MD' means `put the output
3531 # Copy depcomp to subdir because otherwise we won't find it if we're
3532 # using a relative directory.
3533 cp "$am_depcomp" conftest.dir
3535 # We will build objects and dependencies in a subdirectory because
3536 # it helps to detect inapplicable dependency modes. For instance
3537 # both Tru64's cc and ICC support -MD to output dependencies as a
3538 # side effect of compilation, but ICC will put the dependencies in
3539 # the current directory while Tru64 will put them in the object
3543 am_cv_CC_dependencies_compiler_type=none
3544 if test "$am_compiler_list" = ""; then
3545 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3547 for depmode in $am_compiler_list; do
3548 # Setup a source with many dependencies, because some compilers
3549 # like to wrap large dependency lists on column 80 (with \), and
3550 # we should not choose a depcomp mode which is confused by this.
3552 # We need to recreate these files for each test, as the compiler may
3553 # overwrite some of them when testing with obscure command lines.
3554 # This happens at least with the AIX C compiler.
3556 for i in 1 2 3 4 5 6; do
3557 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3558 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3559 # Solaris 8's {/usr,}/bin/sh.
3560 touch sub/conftst$i.h
3562 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3566 # after this tag, mechanisms are not by side-effect, so they'll
3567 # only be used when explicitly requested
3568 if test "x$enable_dependency_tracking" = xyes; then
3576 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3577 # mode. It turns out that the SunPro C++ compiler does not properly
3578 # handle `-M -o', and we need to detect this.
3579 if depmode=$depmode \
3580 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3581 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3582 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3583 >/dev/null 2>conftest.err &&
3584 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3585 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3586 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3587 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3588 # icc doesn't choke on unknown options, it will just issue warnings
3589 # or remarks (even with -Werror). So we grep stderr for any message
3590 # that says an option was ignored or not supported.
3591 # When given -MP, icc 7.0 and 7.1 complain thusly:
3592 # icc: Command line warning: ignoring option '-M'; no argument required
3593 # The diagnosis changed in icc 8.0:
3594 # icc: Command line remark: option '-MP' not supported
3595 if (grep 'ignoring option' conftest.err ||
3596 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3597 am_cv_CC_dependencies_compiler_type=$depmode
3606 am_cv_CC_dependencies_compiler_type=none
3610 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3611 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3612 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3615 test "x$enable_dependency_tracking" != xno \
3616 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3618 am__fastdepCC_FALSE='#'
3620 am__fastdepCC_TRUE='#'
3621 am__fastdepCC_FALSE=
3625 # Find a good install program. We prefer a C program (faster),
3626 # so one script is as good as another. But avoid the broken or
3627 # incompatible versions:
3628 # SysV /etc/install, /usr/sbin/install
3629 # SunOS /usr/etc/install
3630 # IRIX /sbin/install
3632 # AmigaOS /C/install, which installs bootblocks on floppy discs
3633 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3634 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3635 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3636 # OS/2's system install, which has a completely different semantic
3637 # ./install, which can be erroneously created by make from ./install.sh.
3638 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3639 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3640 if test -z "$INSTALL"; then
3641 if test "${ac_cv_path_install+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 test -z "$as_dir" && as_dir=.
3649 # Account for people who put trailing slashes in PATH elements.
3651 ./ | .// | /cC/* | \
3652 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3653 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3656 # OSF1 and SCO ODT 3.0 have their own names for install.
3657 # Don't use installbsd from OSF since it installs stuff as root
3659 for ac_prog in ginstall scoinst install; do
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3662 if test $ac_prog = install &&
3663 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3664 # AIX install. It has an incompatible calling convention.
3666 elif test $ac_prog = install &&
3667 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3668 # program-specific install script used by HP pwplus--don't use.
3671 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3684 if test "${ac_cv_path_install+set}" = set; then
3685 INSTALL=$ac_cv_path_install
3687 # As a last resort, use the slow shell script. Don't cache a
3688 # value for INSTALL within a source directory, because that will
3689 # break other packages using the cache if that directory is
3690 # removed, or if the value is a relative name.
3691 INSTALL=$ac_install_sh
3694 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3695 echo "${ECHO_T}$INSTALL" >&6; }
3697 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3698 # It thinks the first close brace ends the variable substitution.
3699 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3701 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3703 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3705 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3706 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3708 if test "$LN_S" = "ln -s"; then
3709 { echo "$as_me:$LINENO: result: yes" >&5
3710 echo "${ECHO_T}yes" >&6; }
3712 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3713 echo "${ECHO_T}no, using $LN_S" >&6; }
3716 # Check whether --enable-shared was given.
3717 if test "${enable_shared+set}" = set; then
3718 enableval=$enable_shared; p=${PACKAGE-default}
3720 yes) enable_shared=yes ;;
3721 no) enable_shared=no ;;
3724 # Look at the argument we got. We use all the common list separators.
3725 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3726 for pkg in $enableval; do
3728 if test "X$pkg" = "X$p"; then
3740 # Check whether --enable-static was given.
3741 if test "${enable_static+set}" = set; then
3742 enableval=$enable_static; p=${PACKAGE-default}
3744 yes) enable_static=yes ;;
3745 no) enable_static=no ;;
3748 # Look at the argument we got. We use all the common list separators.
3749 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3750 for pkg in $enableval; do
3752 if test "X$pkg" = "X$p"; then
3764 # Check whether --enable-fast-install was given.
3765 if test "${enable_fast_install+set}" = set; then
3766 enableval=$enable_fast_install; p=${PACKAGE-default}
3768 yes) enable_fast_install=yes ;;
3769 no) enable_fast_install=no ;;
3771 enable_fast_install=no
3772 # Look at the argument we got. We use all the common list separators.
3773 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3774 for pkg in $enableval; do
3776 if test "X$pkg" = "X$p"; then
3777 enable_fast_install=yes
3784 enable_fast_install=yes
3788 # Make sure we can run config.sub.
3789 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3790 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3791 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3792 { (exit 1); exit 1; }; }
3794 { echo "$as_me:$LINENO: checking build system type" >&5
3795 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3796 if test "${ac_cv_build+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 ac_build_alias=$build_alias
3800 test "x$ac_build_alias" = x &&
3801 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3802 test "x$ac_build_alias" = x &&
3803 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3804 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3805 { (exit 1); exit 1; }; }
3806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3807 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3808 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3809 { (exit 1); exit 1; }; }
3812 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3813 echo "${ECHO_T}$ac_cv_build" >&6; }
3814 case $ac_cv_build in
3816 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3817 echo "$as_me: error: invalid value of canonical build" >&2;}
3818 { (exit 1); exit 1; }; };;
3821 ac_save_IFS=$IFS; IFS='-'
3827 # Remember, the first character of IFS is used to create $*,
3828 # except with old shells:
3831 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3834 { echo "$as_me:$LINENO: checking host system type" >&5
3835 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3836 if test "${ac_cv_host+set}" = set; then
3837 echo $ECHO_N "(cached) $ECHO_C" >&6
3839 if test "x$host_alias" = x; then
3840 ac_cv_host=$ac_cv_build
3842 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3843 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3844 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3845 { (exit 1); exit 1; }; }
3849 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3850 echo "${ECHO_T}$ac_cv_host" >&6; }
3853 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3854 echo "$as_me: error: invalid value of canonical host" >&2;}
3855 { (exit 1); exit 1; }; };;
3858 ac_save_IFS=$IFS; IFS='-'
3864 # Remember, the first character of IFS is used to create $*,
3865 # except with old shells:
3868 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3871 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3872 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3873 if test "${lt_cv_path_SED+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 # Loop through the user's path and test for sed and gsed.
3877 # Then use that list of sed's as ones to test for truncation.
3878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 test -z "$as_dir" && as_dir=.
3883 for lt_ac_prog in sed gsed; do
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3886 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3893 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3894 # along with /bin/sed that truncates output.
3895 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3896 test ! -f $lt_ac_sed && continue
3897 cat /dev/null > conftest.in
3899 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3900 # Check for GNU sed and select it if it is found.
3901 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3902 lt_cv_path_SED=$lt_ac_sed
3906 cat conftest.in conftest.in >conftest.tmp
3907 mv conftest.tmp conftest.in
3908 cp conftest.in conftest.nl
3910 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3911 cmp -s conftest.out conftest.nl || break
3912 # 10000 chars as input seems more than enough
3913 test $lt_ac_count -gt 10 && break
3914 lt_ac_count=`expr $lt_ac_count + 1`
3915 if test $lt_ac_count -gt $lt_ac_max; then
3916 lt_ac_max=$lt_ac_count
3917 lt_cv_path_SED=$lt_ac_sed
3925 { echo "$as_me:$LINENO: result: $SED" >&5
3926 echo "${ECHO_T}$SED" >&6; }
3928 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3929 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3930 if test "${ac_cv_path_GREP+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 # Extract the first word of "grep ggrep" to use in msg output
3934 if test -z "$GREP"; then
3935 set dummy grep ggrep; ac_prog_name=$2
3936 if test "${ac_cv_path_GREP+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 ac_path_GREP_found=false
3940 # Loop through the user's path and test for each of PROGNAME-LIST
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3945 test -z "$as_dir" && as_dir=.
3946 for ac_prog in grep ggrep; do
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3949 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3950 # Check for GNU ac_path_GREP and select it if it is found.
3951 # Check for GNU $ac_path_GREP
3952 case `"$ac_path_GREP" --version 2>&1` in
3954 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3957 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3960 cat "conftest.in" "conftest.in" >"conftest.tmp"
3961 mv "conftest.tmp" "conftest.in"
3962 cp "conftest.in" "conftest.nl"
3963 echo 'GREP' >> "conftest.nl"
3964 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3966 ac_count=`expr $ac_count + 1`
3967 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3968 # Best one so far, save it but keep looking for a better one
3969 ac_cv_path_GREP="$ac_path_GREP"
3970 ac_path_GREP_max=$ac_count
3972 # 10*(2^10) chars as input seems more than enough
3973 test $ac_count -gt 10 && break
3975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3979 $ac_path_GREP_found && break 3
3989 GREP="$ac_cv_path_GREP"
3990 if test -z "$GREP"; then
3991 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3992 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3993 { (exit 1); exit 1; }; }
3997 ac_cv_path_GREP=$GREP
4002 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4003 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4004 GREP="$ac_cv_path_GREP"
4007 { echo "$as_me:$LINENO: checking for egrep" >&5
4008 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4009 if test "${ac_cv_path_EGREP+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4013 then ac_cv_path_EGREP="$GREP -E"
4015 # Extract the first word of "egrep" to use in msg output
4016 if test -z "$EGREP"; then
4017 set dummy egrep; ac_prog_name=$2
4018 if test "${ac_cv_path_EGREP+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 ac_path_EGREP_found=false
4022 # Loop through the user's path and test for each of PROGNAME-LIST
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027 test -z "$as_dir" && as_dir=.
4028 for ac_prog in egrep; do
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4031 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4032 # Check for GNU ac_path_EGREP and select it if it is found.
4033 # Check for GNU $ac_path_EGREP
4034 case `"$ac_path_EGREP" --version 2>&1` in
4036 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4039 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4042 cat "conftest.in" "conftest.in" >"conftest.tmp"
4043 mv "conftest.tmp" "conftest.in"
4044 cp "conftest.in" "conftest.nl"
4045 echo 'EGREP' >> "conftest.nl"
4046 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4048 ac_count=`expr $ac_count + 1`
4049 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4050 # Best one so far, save it but keep looking for a better one
4051 ac_cv_path_EGREP="$ac_path_EGREP"
4052 ac_path_EGREP_max=$ac_count
4054 # 10*(2^10) chars as input seems more than enough
4055 test $ac_count -gt 10 && break
4057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4061 $ac_path_EGREP_found && break 3
4071 EGREP="$ac_cv_path_EGREP"
4072 if test -z "$EGREP"; then
4073 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4074 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4075 { (exit 1); exit 1; }; }
4079 ac_cv_path_EGREP=$EGREP
4085 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4086 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4087 EGREP="$ac_cv_path_EGREP"
4091 # Check whether --with-gnu-ld was given.
4092 if test "${with_gnu_ld+set}" = set; then
4093 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4099 if test "$GCC" = yes; then
4100 # Check if gcc -print-prog-name=ld gives a path.
4101 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4102 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4105 # gcc leaves a trailing carriage return which upsets mingw
4106 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4108 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4111 # Accept absolute paths.
4113 re_direlt='/[^/][^/]*/\.\./'
4114 # Canonicalize the pathname of ld
4115 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4116 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4117 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4119 test -z "$LD" && LD="$ac_prog"
4122 # If it fails, then pretend we aren't using GCC.
4126 # If it is relative, then search for the first ld in PATH.
4130 elif test "$with_gnu_ld" = yes; then
4131 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4132 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4134 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4135 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4137 if test "${lt_cv_path_LD+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 if test -z "$LD"; then
4141 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4142 for ac_dir in $PATH; do
4144 test -z "$ac_dir" && ac_dir=.
4145 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4146 lt_cv_path_LD="$ac_dir/$ac_prog"
4147 # Check to see if the program is GNU ld. I'd rather use --version,
4148 # but apparently some GNU ld's only accept -v.
4149 # Break only if it was the GNU/non-GNU ld that we prefer.
4150 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4151 *GNU* | *'with BFD'*)
4152 test "$with_gnu_ld" != no && break
4155 test "$with_gnu_ld" != yes && break
4162 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4167 if test -n "$LD"; then
4168 { echo "$as_me:$LINENO: result: $LD" >&5
4169 echo "${ECHO_T}$LD" >&6; }
4171 { echo "$as_me:$LINENO: result: no" >&5
4172 echo "${ECHO_T}no" >&6; }
4174 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4175 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4176 { (exit 1); exit 1; }; }
4177 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4178 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4179 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4183 case `$LD -v 2>&1 </dev/null` in
4184 *GNU* | *'with BFD'*)
4185 lt_cv_prog_gnu_ld=yes
4188 lt_cv_prog_gnu_ld=no
4192 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4193 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4194 with_gnu_ld=$lt_cv_prog_gnu_ld
4197 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4198 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4199 if test "${lt_cv_ld_reload_flag+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4202 lt_cv_ld_reload_flag='-r'
4204 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4205 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4206 reload_flag=$lt_cv_ld_reload_flag
4207 case $reload_flag in
4209 *) reload_flag=" $reload_flag" ;;
4211 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4214 if test "$GCC" = yes; then
4215 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
4217 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4222 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4223 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4224 if test "${lt_cv_path_NM+set}" = set; then
4225 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 if test -n "$NM"; then
4228 # Let the user override the test.
4231 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4232 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4234 test -z "$ac_dir" && ac_dir=.
4235 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4236 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4237 # Check to see if the nm accepts a BSD-compat flag.
4238 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4239 # nm: unknown option "B" ignored
4240 # Tru64's nm complains that /dev/null is an invalid object file
4241 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4242 */dev/null* | *'Invalid file or object type'*)
4243 lt_cv_path_NM="$tmp_nm -B"
4247 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4249 lt_cv_path_NM="$tmp_nm -p"
4253 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4254 continue # so that we can try to find one that supports BSD flags
4261 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4264 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4265 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4268 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4269 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4270 if test "${lt_cv_deplibs_check_method+set}" = set; then
4271 echo $ECHO_N "(cached) $ECHO_C" >&6
4273 lt_cv_file_magic_cmd='$MAGIC_CMD'
4274 lt_cv_file_magic_test_file=
4275 lt_cv_deplibs_check_method='unknown'
4276 # Need to set the preceding variable on all platforms that support
4277 # interlibrary dependencies.
4278 # 'none' -- dependencies not supported.
4279 # `unknown' -- same as none, but documents that we really don't know.
4280 # 'pass_all' -- all dependencies passed with no checks.
4281 # 'test_compile' -- check by making test program.
4282 # 'file_magic [[regex]]' -- check by looking for files in library path
4283 # which responds to the $file_magic_cmd with a given extended regex.
4284 # If you have `file' or equivalent on your system and you're not sure
4285 # whether `pass_all' will *always* work, you probably want this one.
4289 lt_cv_deplibs_check_method=pass_all
4293 lt_cv_deplibs_check_method=pass_all
4297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4298 lt_cv_file_magic_cmd='/usr/bin/file -L'
4299 lt_cv_file_magic_test_file=/shlib/libc.so
4303 # func_win32_libid is a shell function defined in ltmain.sh
4304 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4305 lt_cv_file_magic_cmd='func_win32_libid'
4309 # Base MSYS/MinGW do not provide the 'file' command needed by
4310 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4311 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4312 lt_cv_file_magic_cmd='$OBJDUMP -f'
4315 darwin* | rhapsody*)
4316 lt_cv_deplibs_check_method=pass_all
4319 freebsd* | kfreebsd*-gnu | dragonfly*)
4320 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4323 # Not sure whether the presence of OpenBSD here was a mistake.
4324 # Let's accept both of them until this is cleared up.
4325 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4326 lt_cv_file_magic_cmd=/usr/bin/file
4327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4331 lt_cv_deplibs_check_method=pass_all
4336 lt_cv_deplibs_check_method=pass_all
4339 hpux10.20* | hpux11*)
4340 lt_cv_file_magic_cmd=/usr/bin/file
4343 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4344 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4347 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]'
4348 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4351 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4352 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4357 irix5* | irix6* | nonstopux*)
4359 *-32|*"-32 ") libmagic=32-bit;;
4360 *-n32|*"-n32 ") libmagic=N32;;
4361 *-64|*"-64 ") libmagic=64-bit;;
4362 *) libmagic=never-match;;
4364 lt_cv_deplibs_check_method=pass_all
4367 # This must be Linux ELF.
4369 lt_cv_deplibs_check_method=pass_all
4373 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4381 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4382 lt_cv_file_magic_cmd=/usr/bin/file
4383 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4387 lt_cv_deplibs_check_method=unknown
4391 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4392 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4398 osf3* | osf4* | osf5*)
4399 lt_cv_deplibs_check_method=pass_all
4403 lt_cv_deplibs_check_method=pass_all
4407 lt_cv_deplibs_check_method=pass_all
4410 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4411 case $host_vendor in
4413 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]'
4414 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4417 lt_cv_deplibs_check_method=pass_all
4420 lt_cv_file_magic_cmd='/bin/file'
4421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4424 lt_cv_file_magic_cmd='/bin/file'
4425 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4426 lt_cv_file_magic_test_file=/lib/libc.so
4429 lt_cv_deplibs_check_method=pass_all
4434 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4435 lt_cv_deplibs_check_method=pass_all
4440 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4441 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4442 file_magic_cmd=$lt_cv_file_magic_cmd
4443 deplibs_check_method=$lt_cv_deplibs_check_method
4444 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4449 # If no C compiler was specified, use CC.
4452 # Allow CC to be a program name with arguments.
4456 # Check whether --enable-libtool-lock was given.
4457 if test "${enable_libtool_lock+set}" = set; then
4458 enableval=$enable_libtool_lock;
4461 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4463 # Some flags need to be propagated to the compiler or linker for good
4467 # Find out which ABI we are using.
4468 echo 'int i;' > conftest.$ac_ext
4469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4470 (eval $ac_compile) 2>&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); }; then
4474 case `/usr/bin/file conftest.$ac_objext` in
4486 # Find out which ABI we are using.
4487 echo '#line 4487 "configure"' > conftest.$ac_ext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4489 (eval $ac_compile) 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; then
4493 if test "$lt_cv_prog_gnu_ld" = yes; then
4494 case `/usr/bin/file conftest.$ac_objext` in
4496 LD="${LD-ld} -melf32bsmip"
4499 LD="${LD-ld} -melf32bmipn32"
4502 LD="${LD-ld} -melf64bmip"
4506 case `/usr/bin/file conftest.$ac_objext` in
4522 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4523 # Find out which ABI we are using.
4524 echo 'int i;' > conftest.$ac_ext
4525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4526 (eval $ac_compile) 2>&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); }; then
4530 case "`/usr/bin/file conftest.o`" in
4534 LD="${LD-ld} -m elf_i386"
4536 ppc64-*linux*|powerpc64-*linux*)
4537 LD="${LD-ld} -m elf32ppclinux"
4540 LD="${LD-ld} -m elf_s390"
4543 LD="${LD-ld} -m elf32_sparc"
4550 LD="${LD-ld} -m elf_x86_64"
4552 ppc*-*linux*|powerpc*-*linux*)
4553 LD="${LD-ld} -m elf64ppc"
4556 LD="${LD-ld} -m elf64_s390"
4559 LD="${LD-ld} -m elf64_sparc"
4569 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4570 SAVE_CFLAGS="$CFLAGS"
4571 CFLAGS="$CFLAGS -belf"
4572 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4573 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4574 if test "${lt_cv_cc_needs_belf+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4578 ac_cpp='$CPP $CPPFLAGS'
4579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4583 cat >conftest.$ac_ext <<_ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4598 rm -f conftest.$ac_objext conftest$ac_exeext
4599 if { (ac_try="$ac_link"
4601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4602 *) ac_try_echo=$ac_try;;
4604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4605 (eval "$ac_link") 2>conftest.er1
4607 grep -v '^ *+' conftest.er1 >conftest.err
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } && {
4612 test -z "$ac_c_werror_flag" ||
4613 test ! -s conftest.err
4614 } && test -s conftest$ac_exeext &&
4615 $as_test_x conftest$ac_exeext; then
4616 lt_cv_cc_needs_belf=yes
4618 echo "$as_me: failed program was:" >&5
4619 sed 's/^/| /' conftest.$ac_ext >&5
4621 lt_cv_cc_needs_belf=no
4624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4625 conftest$ac_exeext conftest.$ac_ext
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4633 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4634 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4635 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4636 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4637 CFLAGS="$SAVE_CFLAGS"
4643 need_locks="$enable_libtool_lock"
4647 ac_cpp='$CPP $CPPFLAGS'
4648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4652 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4653 # On Suns, sometimes $CPP names a directory.
4654 if test -n "$CPP" && test -d "$CPP"; then
4657 if test -z "$CPP"; then
4658 if test "${ac_cv_prog_CPP+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 # Double quotes because CPP needs to be expanded
4662 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4665 for ac_c_preproc_warn_flag in '' yes
4667 # Use a header file that comes with gcc, so configuring glibc
4668 # with a fresh cross-compiler works.
4669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4670 # <limits.h> exists even on freestanding compilers.
4671 # On the NeXT, cc -E runs the code through the compiler's parser,
4672 # not just through cpp. "Syntax error" is here to catch this case.
4673 cat >conftest.$ac_ext <<_ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4680 # include <limits.h>
4682 # include <assert.h>
4686 if { (ac_try="$ac_cpp conftest.$ac_ext"
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4694 grep -v '^ *+' conftest.er1 >conftest.err
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } >/dev/null && {
4699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4700 test ! -s conftest.err
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4707 # Broken: fails on valid input.
4711 rm -f conftest.err conftest.$ac_ext
4713 # OK, works on sane cases. Now check whether nonexistent headers
4714 # can be detected and how.
4715 cat >conftest.$ac_ext <<_ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 #include <ac_nonexistent.h>
4723 if { (ac_try="$ac_cpp conftest.$ac_ext"
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4731 grep -v '^ *+' conftest.er1 >conftest.err
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } >/dev/null && {
4736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4739 # Broken: success on invalid input.
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4745 # Passes both tests.
4750 rm -f conftest.err conftest.$ac_ext
4753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4754 rm -f conftest.err conftest.$ac_ext
4755 if $ac_preproc_ok; then
4767 { echo "$as_me:$LINENO: result: $CPP" >&5
4768 echo "${ECHO_T}$CPP" >&6; }
4770 for ac_c_preproc_warn_flag in '' yes
4772 # Use a header file that comes with gcc, so configuring glibc
4773 # with a fresh cross-compiler works.
4774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4775 # <limits.h> exists even on freestanding compilers.
4776 # On the NeXT, cc -E runs the code through the compiler's parser,
4777 # not just through cpp. "Syntax error" is here to catch this case.
4778 cat >conftest.$ac_ext <<_ACEOF
4781 cat confdefs.h >>conftest.$ac_ext
4782 cat >>conftest.$ac_ext <<_ACEOF
4783 /* end confdefs.h. */
4785 # include <limits.h>
4787 # include <assert.h>
4791 if { (ac_try="$ac_cpp conftest.$ac_ext"
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4799 grep -v '^ *+' conftest.er1 >conftest.err
4801 cat conftest.err >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } >/dev/null && {
4804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4805 test ! -s conftest.err
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4812 # Broken: fails on valid input.
4816 rm -f conftest.err conftest.$ac_ext
4818 # OK, works on sane cases. Now check whether nonexistent headers
4819 # can be detected and how.
4820 cat >conftest.$ac_ext <<_ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 #include <ac_nonexistent.h>
4828 if { (ac_try="$ac_cpp conftest.$ac_ext"
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4836 grep -v '^ *+' conftest.er1 >conftest.err
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } >/dev/null && {
4841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4842 test ! -s conftest.err
4844 # Broken: success on invalid input.
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 # Passes both tests.
4855 rm -f conftest.err conftest.$ac_ext
4858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4859 rm -f conftest.err conftest.$ac_ext
4860 if $ac_preproc_ok; then
4863 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4864 See \`config.log' for more details." >&5
4865 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4866 See \`config.log' for more details." >&2;}
4867 { (exit 1); exit 1; }; }
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4877 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4878 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4879 if test "${ac_cv_header_stdc+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 cat >conftest.$ac_ext <<_ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4901 rm -f conftest.$ac_objext
4902 if { (ac_try="$ac_compile"
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908 (eval "$ac_compile") 2>conftest.er1
4910 grep -v '^ *+' conftest.er1 >conftest.err
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } && {
4915 test -z "$ac_c_werror_flag" ||
4916 test ! -s conftest.err
4917 } && test -s conftest.$ac_objext; then
4918 ac_cv_header_stdc=yes
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4923 ac_cv_header_stdc=no
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 if test $ac_cv_header_stdc = yes; then
4929 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4930 cat >conftest.$ac_ext <<_ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4940 $EGREP "memchr" >/dev/null 2>&1; then
4943 ac_cv_header_stdc=no
4949 if test $ac_cv_header_stdc = yes; then
4950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4951 cat >conftest.$ac_ext <<_ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4961 $EGREP "free" >/dev/null 2>&1; then
4964 ac_cv_header_stdc=no
4970 if test $ac_cv_header_stdc = yes; then
4971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4972 if test "$cross_compiling" = yes; then
4975 cat >conftest.$ac_ext <<_ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4983 #if ((' ' & 0x0FF) == 0x020)
4984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4987 # define ISLOWER(c) \
4988 (('a' <= (c) && (c) <= 'i') \
4989 || ('j' <= (c) && (c) <= 'r') \
4990 || ('s' <= (c) && (c) <= 'z'))
4991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4999 for (i = 0; i < 256; i++)
5000 if (XOR (islower (i), ISLOWER (i))
5001 || toupper (i) != TOUPPER (i))
5006 rm -f conftest$ac_exeext
5007 if { (ac_try="$ac_link"
5009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010 *) ac_try_echo=$ac_try;;
5012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5013 (eval "$ac_link") 2>&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5017 { (case "(($ac_try" in
5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019 *) ac_try_echo=$ac_try;;
5021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022 (eval "$ac_try") 2>&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; }; then
5028 echo "$as_me: program exited with status $ac_status" >&5
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5033 ac_cv_header_stdc=no
5035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5041 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5042 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5043 if test $ac_cv_header_stdc = yes; then
5045 cat >>confdefs.h <<\_ACEOF
5046 #define STDC_HEADERS 1
5051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5062 inttypes.h stdint.h unistd.h
5064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 cat >conftest.$ac_ext <<_ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5078 #include <$ac_header>
5080 rm -f conftest.$ac_objext
5081 if { (ac_try="$ac_compile"
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087 (eval "$ac_compile") 2>conftest.er1
5089 grep -v '^ *+' conftest.er1 >conftest.err
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } && {
5094 test -z "$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5096 } && test -s conftest.$ac_objext; then
5097 eval "$as_ac_Header=yes"
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5102 eval "$as_ac_Header=no"
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 ac_res=`eval echo '${'$as_ac_Header'}'`
5108 { echo "$as_me:$LINENO: result: $ac_res" >&5
5109 echo "${ECHO_T}$ac_res" >&6; }
5110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5111 cat >>confdefs.h <<_ACEOF
5112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5121 for ac_header in dlfcn.h
5123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 ac_res=`eval echo '${'$as_ac_Header'}'`
5131 { echo "$as_me:$LINENO: result: $ac_res" >&5
5132 echo "${ECHO_T}$ac_res" >&6; }
5134 # Is the header compilable?
5135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5137 cat >conftest.$ac_ext <<_ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 $ac_includes_default
5144 #include <$ac_header>
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_compile") 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.$ac_objext; then
5163 ac_header_compiler=yes
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 ac_header_compiler=no
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5173 echo "${ECHO_T}$ac_header_compiler" >&6; }
5175 # Is the header present?
5176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5178 cat >conftest.$ac_ext <<_ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5184 #include <$ac_header>
5186 if { (ac_try="$ac_cpp conftest.$ac_ext"
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } >/dev/null && {
5199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5202 ac_header_preproc=yes
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5207 ac_header_preproc=no
5210 rm -f conftest.err conftest.$ac_ext
5211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5212 echo "${ECHO_T}$ac_header_preproc" >&6; }
5214 # So? What about this header?
5215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5221 ac_header_preproc=yes
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5231 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5239 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5240 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5242 echo $ECHO_N "(cached) $ECHO_C" >&6
5244 eval "$as_ac_Header=\$ac_header_preproc"
5246 ac_res=`eval echo '${'$as_ac_Header'}'`
5247 { echo "$as_me:$LINENO: result: $ac_res" >&5
5248 echo "${ECHO_T}$ac_res" >&6; }
5251 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5252 cat >>confdefs.h <<_ACEOF
5253 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5261 ac_cpp='$CXXCPP $CPPFLAGS'
5262 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5263 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5264 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5265 if test -z "$CXX"; then
5266 if test -n "$CCC"; then
5269 if test -n "$ac_tool_prefix"; then
5270 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5276 if test "${ac_cv_prog_CXX+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5279 if test -n "$CXX"; then
5280 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5286 test -z "$as_dir" && as_dir=.
5287 for ac_exec_ext in '' $ac_executable_extensions; do
5288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5289 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 if test -n "$CXX"; then
5301 { echo "$as_me:$LINENO: result: $CXX" >&5
5302 echo "${ECHO_T}$CXX" >&6; }
5304 { echo "$as_me:$LINENO: result: no" >&5
5305 echo "${ECHO_T}no" >&6; }
5309 test -n "$CXX" && break
5312 if test -z "$CXX"; then
5314 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5316 # Extract the first word of "$ac_prog", so it can be a program name with args.
5317 set dummy $ac_prog; ac_word=$2
5318 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5320 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5323 if test -n "$ac_ct_CXX"; then
5324 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 test -z "$as_dir" && as_dir=.
5331 for ac_exec_ext in '' $ac_executable_extensions; do
5332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5333 ac_cv_prog_ac_ct_CXX="$ac_prog"
5334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5343 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5344 if test -n "$ac_ct_CXX"; then
5345 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5346 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5348 { echo "$as_me:$LINENO: result: no" >&5
5349 echo "${ECHO_T}no" >&6; }
5353 test -n "$ac_ct_CXX" && break
5356 if test "x$ac_ct_CXX" = x; then
5359 case $cross_compiling:$ac_tool_warned in
5361 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5362 whose name does not start with the host triplet. If you think this
5363 configuration is useful to you, please write to autoconf@gnu.org." >&5
5364 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5365 whose name does not start with the host triplet. If you think this
5366 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5367 ac_tool_warned=yes ;;
5375 # Provide some information about the compiler.
5376 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5377 ac_compiler=`set X $ac_compile; echo $2`
5378 { (ac_try="$ac_compiler --version >&5"
5380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_compiler --version >&5") 2>&5
5386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5387 (exit $ac_status); }
5388 { (ac_try="$ac_compiler -v >&5"
5390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5391 *) ac_try_echo=$ac_try;;
5393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5394 (eval "$ac_compiler -v >&5") 2>&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }
5398 { (ac_try="$ac_compiler -V >&5"
5400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5401 *) ac_try_echo=$ac_try;;
5403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5404 (eval "$ac_compiler -V >&5") 2>&5
5406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5407 (exit $ac_status); }
5409 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5410 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5411 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 cat >conftest.$ac_ext <<_ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5432 rm -f conftest.$ac_objext
5433 if { (ac_try="$ac_compile"
5435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5436 *) ac_try_echo=$ac_try;;
5438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5439 (eval "$ac_compile") 2>conftest.er1
5441 grep -v '^ *+' conftest.er1 >conftest.err
5443 cat conftest.err >&5
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } && {
5446 test -z "$ac_cxx_werror_flag" ||
5447 test ! -s conftest.err
5448 } && test -s conftest.$ac_objext; then
5451 echo "$as_me: failed program was:" >&5
5452 sed 's/^/| /' conftest.$ac_ext >&5
5457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5458 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5461 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5462 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5463 GXX=`test $ac_compiler_gnu = yes && echo yes`
5464 ac_test_CXXFLAGS=${CXXFLAGS+set}
5465 ac_save_CXXFLAGS=$CXXFLAGS
5466 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5467 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5468 if test "${ac_cv_prog_cxx_g+set}" = set; then
5469 echo $ECHO_N "(cached) $ECHO_C" >&6
5471 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5472 ac_cxx_werror_flag=yes
5475 cat >conftest.$ac_ext <<_ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h. */
5490 rm -f conftest.$ac_objext
5491 if { (ac_try="$ac_compile"
5493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5494 *) ac_try_echo=$ac_try;;
5496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5497 (eval "$ac_compile") 2>conftest.er1
5499 grep -v '^ *+' conftest.er1 >conftest.err
5501 cat conftest.err >&5
5502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5503 (exit $ac_status); } && {
5504 test -z "$ac_cxx_werror_flag" ||
5505 test ! -s conftest.err
5506 } && test -s conftest.$ac_objext; then
5507 ac_cv_prog_cxx_g=yes
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5513 cat >conftest.$ac_ext <<_ACEOF
5516 cat confdefs.h >>conftest.$ac_ext
5517 cat >>conftest.$ac_ext <<_ACEOF
5518 /* end confdefs.h. */
5528 rm -f conftest.$ac_objext
5529 if { (ac_try="$ac_compile"
5531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5532 *) ac_try_echo=$ac_try;;
5534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5535 (eval "$ac_compile") 2>conftest.er1
5537 grep -v '^ *+' conftest.er1 >conftest.err
5539 cat conftest.err >&5
5540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541 (exit $ac_status); } && {
5542 test -z "$ac_cxx_werror_flag" ||
5543 test ! -s conftest.err
5544 } && test -s conftest.$ac_objext; then
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5552 cat >conftest.$ac_ext <<_ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5567 rm -f conftest.$ac_objext
5568 if { (ac_try="$ac_compile"
5570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_compile") 2>conftest.er1
5576 grep -v '^ *+' conftest.er1 >conftest.err
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } && {
5581 test -z "$ac_cxx_werror_flag" ||
5582 test ! -s conftest.err
5583 } && test -s conftest.$ac_objext; then
5584 ac_cv_prog_cxx_g=yes
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5601 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5602 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5603 if test "$ac_test_CXXFLAGS" = set; then
5604 CXXFLAGS=$ac_save_CXXFLAGS
5605 elif test $ac_cv_prog_cxx_g = yes; then
5606 if test "$GXX" = yes; then
5612 if test "$GXX" = yes; then
5619 ac_cpp='$CXXCPP $CPPFLAGS'
5620 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5621 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5622 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5624 depcc="$CXX" am_compiler_list=
5626 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5627 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5628 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5631 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5632 # We make a subdir and do the tests there. Otherwise we can end up
5633 # making bogus files that we don't know about and never remove. For
5634 # instance it was reported that on HP-UX the gcc test will end up
5635 # making a dummy file named `D' -- because `-MD' means `put the output
5638 # Copy depcomp to subdir because otherwise we won't find it if we're
5639 # using a relative directory.
5640 cp "$am_depcomp" conftest.dir
5642 # We will build objects and dependencies in a subdirectory because
5643 # it helps to detect inapplicable dependency modes. For instance
5644 # both Tru64's cc and ICC support -MD to output dependencies as a
5645 # side effect of compilation, but ICC will put the dependencies in
5646 # the current directory while Tru64 will put them in the object
5650 am_cv_CXX_dependencies_compiler_type=none
5651 if test "$am_compiler_list" = ""; then
5652 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5654 for depmode in $am_compiler_list; do
5655 # Setup a source with many dependencies, because some compilers
5656 # like to wrap large dependency lists on column 80 (with \), and
5657 # we should not choose a depcomp mode which is confused by this.
5659 # We need to recreate these files for each test, as the compiler may
5660 # overwrite some of them when testing with obscure command lines.
5661 # This happens at least with the AIX C compiler.
5663 for i in 1 2 3 4 5 6; do
5664 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5665 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5666 # Solaris 8's {/usr,}/bin/sh.
5667 touch sub/conftst$i.h
5669 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5673 # after this tag, mechanisms are not by side-effect, so they'll
5674 # only be used when explicitly requested
5675 if test "x$enable_dependency_tracking" = xyes; then
5683 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5684 # mode. It turns out that the SunPro C++ compiler does not properly
5685 # handle `-M -o', and we need to detect this.
5686 if depmode=$depmode \
5687 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5688 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5689 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5690 >/dev/null 2>conftest.err &&
5691 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5692 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5693 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5694 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5695 # icc doesn't choke on unknown options, it will just issue warnings
5696 # or remarks (even with -Werror). So we grep stderr for any message
5697 # that says an option was ignored or not supported.
5698 # When given -MP, icc 7.0 and 7.1 complain thusly:
5699 # icc: Command line warning: ignoring option '-M'; no argument required
5700 # The diagnosis changed in icc 8.0:
5701 # icc: Command line remark: option '-MP' not supported
5702 if (grep 'ignoring option' conftest.err ||
5703 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5704 am_cv_CXX_dependencies_compiler_type=$depmode
5713 am_cv_CXX_dependencies_compiler_type=none
5717 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5718 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5719 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5722 test "x$enable_dependency_tracking" != xno \
5723 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5724 am__fastdepCXX_TRUE=
5725 am__fastdepCXX_FALSE='#'
5727 am__fastdepCXX_TRUE='#'
5728 am__fastdepCXX_FALSE=
5734 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5735 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5736 (test "X$CXX" != "Xg++"))) ; then
5738 ac_cpp='$CXXCPP $CPPFLAGS'
5739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5742 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5743 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5744 if test -z "$CXXCPP"; then
5745 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5748 # Double quotes because CXXCPP needs to be expanded
5749 for CXXCPP in "$CXX -E" "/lib/cpp"
5752 for ac_cxx_preproc_warn_flag in '' yes
5754 # Use a header file that comes with gcc, so configuring glibc
5755 # with a fresh cross-compiler works.
5756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5757 # <limits.h> exists even on freestanding compilers.
5758 # On the NeXT, cc -E runs the code through the compiler's parser,
5759 # not just through cpp. "Syntax error" is here to catch this case.
5760 cat >conftest.$ac_ext <<_ACEOF
5763 cat confdefs.h >>conftest.$ac_ext
5764 cat >>conftest.$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5767 # include <limits.h>
5769 # include <assert.h>
5773 if { (ac_try="$ac_cpp conftest.$ac_ext"
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5781 grep -v '^ *+' conftest.er1 >conftest.err
5783 cat conftest.err >&5
5784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5785 (exit $ac_status); } >/dev/null && {
5786 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5787 test ! -s conftest.err
5791 echo "$as_me: failed program was:" >&5
5792 sed 's/^/| /' conftest.$ac_ext >&5
5794 # Broken: fails on valid input.
5798 rm -f conftest.err conftest.$ac_ext
5800 # OK, works on sane cases. Now check whether nonexistent headers
5801 # can be detected and how.
5802 cat >conftest.$ac_ext <<_ACEOF
5805 cat confdefs.h >>conftest.$ac_ext
5806 cat >>conftest.$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 #include <ac_nonexistent.h>
5810 if { (ac_try="$ac_cpp conftest.$ac_ext"
5812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5818 grep -v '^ *+' conftest.er1 >conftest.err
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } >/dev/null && {
5823 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5824 test ! -s conftest.err
5826 # Broken: success on invalid input.
5829 echo "$as_me: failed program was:" >&5
5830 sed 's/^/| /' conftest.$ac_ext >&5
5832 # Passes both tests.
5837 rm -f conftest.err conftest.$ac_ext
5840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5841 rm -f conftest.err conftest.$ac_ext
5842 if $ac_preproc_ok; then
5847 ac_cv_prog_CXXCPP=$CXXCPP
5850 CXXCPP=$ac_cv_prog_CXXCPP
5852 ac_cv_prog_CXXCPP=$CXXCPP
5854 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5855 echo "${ECHO_T}$CXXCPP" >&6; }
5857 for ac_cxx_preproc_warn_flag in '' yes
5859 # Use a header file that comes with gcc, so configuring glibc
5860 # with a fresh cross-compiler works.
5861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5862 # <limits.h> exists even on freestanding compilers.
5863 # On the NeXT, cc -E runs the code through the compiler's parser,
5864 # not just through cpp. "Syntax error" is here to catch this case.
5865 cat >conftest.$ac_ext <<_ACEOF
5868 cat confdefs.h >>conftest.$ac_ext
5869 cat >>conftest.$ac_ext <<_ACEOF
5870 /* end confdefs.h. */
5872 # include <limits.h>
5874 # include <assert.h>
5878 if { (ac_try="$ac_cpp conftest.$ac_ext"
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5886 grep -v '^ *+' conftest.er1 >conftest.err
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } >/dev/null && {
5891 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5892 test ! -s conftest.err
5896 echo "$as_me: failed program was:" >&5
5897 sed 's/^/| /' conftest.$ac_ext >&5
5899 # Broken: fails on valid input.
5903 rm -f conftest.err conftest.$ac_ext
5905 # OK, works on sane cases. Now check whether nonexistent headers
5906 # can be detected and how.
5907 cat >conftest.$ac_ext <<_ACEOF
5910 cat confdefs.h >>conftest.$ac_ext
5911 cat >>conftest.$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5913 #include <ac_nonexistent.h>
5915 if { (ac_try="$ac_cpp conftest.$ac_ext"
5917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5918 *) ac_try_echo=$ac_try;;
5920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5923 grep -v '^ *+' conftest.er1 >conftest.err
5925 cat conftest.err >&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } >/dev/null && {
5928 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5929 test ! -s conftest.err
5931 # Broken: success on invalid input.
5934 echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5937 # Passes both tests.
5942 rm -f conftest.err conftest.$ac_ext
5945 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5946 rm -f conftest.err conftest.$ac_ext
5947 if $ac_preproc_ok; then
5950 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5951 See \`config.log' for more details." >&5
5952 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5953 See \`config.log' for more details." >&2;}
5954 { (exit 1); exit 1; }; }
5958 ac_cpp='$CXXCPP $CPPFLAGS'
5959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5967 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5968 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5969 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5970 if test -n "$ac_tool_prefix"; then
5971 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5977 if test "${ac_cv_prog_F77+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 if test -n "$F77"; then
5981 ac_cv_prog_F77="$F77" # Let the user override the test.
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6001 if test -n "$F77"; then
6002 { echo "$as_me:$LINENO: result: $F77" >&5
6003 echo "${ECHO_T}$F77" >&6; }
6005 { echo "$as_me:$LINENO: result: no" >&5
6006 echo "${ECHO_T}no" >&6; }
6010 test -n "$F77" && break
6013 if test -z "$F77"; then
6015 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6017 # Extract the first word of "$ac_prog", so it can be a program name with args.
6018 set dummy $ac_prog; ac_word=$2
6019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6021 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6
6024 if test -n "$ac_ct_F77"; then
6025 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6034 ac_cv_prog_ac_ct_F77="$ac_prog"
6035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6045 if test -n "$ac_ct_F77"; then
6046 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6047 echo "${ECHO_T}$ac_ct_F77" >&6; }
6049 { echo "$as_me:$LINENO: result: no" >&5
6050 echo "${ECHO_T}no" >&6; }
6054 test -n "$ac_ct_F77" && break
6057 if test "x$ac_ct_F77" = x; then
6060 case $cross_compiling:$ac_tool_warned in
6062 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6063 whose name does not start with the host triplet. If you think this
6064 configuration is useful to you, please write to autoconf@gnu.org." >&5
6065 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6066 whose name does not start with the host triplet. If you think this
6067 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6068 ac_tool_warned=yes ;;
6075 # Provide some information about the compiler.
6076 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6077 ac_compiler=`set X $ac_compile; echo $2`
6078 { (ac_try="$ac_compiler --version >&5"
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_compiler --version >&5") 2>&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }
6088 { (ac_try="$ac_compiler -v >&5"
6090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6091 *) ac_try_echo=$ac_try;;
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_compiler -v >&5") 2>&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }
6098 { (ac_try="$ac_compiler -V >&5"
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6104 (eval "$ac_compiler -V >&5") 2>&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); }
6110 # If we don't use `.F' as extension, the preprocessor is not run on the
6111 # input file. (Note that this only needs to work for GNU compilers.)
6114 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6115 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6116 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 cat >conftest.$ac_ext <<_ACEOF
6127 rm -f conftest.$ac_objext
6128 if { (ac_try="$ac_compile"
6130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6131 *) ac_try_echo=$ac_try;;
6133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6134 (eval "$ac_compile") 2>conftest.er1
6136 grep -v '^ *+' conftest.er1 >conftest.err
6138 cat conftest.err >&5
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); } && {
6141 test -z "$ac_f77_werror_flag" ||
6142 test ! -s conftest.err
6143 } && test -s conftest.$ac_objext; then
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.$ac_ext >&5
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6153 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6156 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6157 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6159 ac_test_FFLAGS=${FFLAGS+set}
6160 ac_save_FFLAGS=$FFLAGS
6162 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6163 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6164 if test "${ac_cv_prog_f77_g+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 cat >conftest.$ac_ext <<_ACEOF
6173 rm -f conftest.$ac_objext
6174 if { (ac_try="$ac_compile"
6176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177 *) ac_try_echo=$ac_try;;
6179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6180 (eval "$ac_compile") 2>conftest.er1
6182 grep -v '^ *+' conftest.er1 >conftest.err
6184 cat conftest.err >&5
6185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6186 (exit $ac_status); } && {
6187 test -z "$ac_f77_werror_flag" ||
6188 test ! -s conftest.err
6189 } && test -s conftest.$ac_objext; then
6190 ac_cv_prog_f77_g=yes
6192 echo "$as_me: failed program was:" >&5
6193 sed 's/^/| /' conftest.$ac_ext >&5
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6201 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6202 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6203 if test "$ac_test_FFLAGS" = set; then
6204 FFLAGS=$ac_save_FFLAGS
6205 elif test $ac_cv_prog_f77_g = yes; then
6206 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6212 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6219 G77=`test $ac_compiler_gnu = yes && echo yes`
6221 ac_cpp='$CPP $CPPFLAGS'
6222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6228 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6230 # find the maximum length of command line arguments
6231 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6232 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6233 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6234 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 # On DJGPP, this test can blow up pretty badly due to problems in libc
6242 # (any single argument exceeding 2000 bytes causes a buffer overrun
6243 # during glob expansion). Even if it were fixed, the result of this
6244 # check would be larger than it should be.
6245 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6249 # Under GNU Hurd, this test is not required because there is
6250 # no limit to the length of command line arguments.
6251 # Libtool will interpret -1 as no limit whatsoever
6252 lt_cv_sys_max_cmd_len=-1;
6256 # On Win9x/ME, this test blows up -- it succeeds, but takes
6257 # about 5 minutes as the teststring grows exponentially.
6258 # Worse, since 9x/ME are not pre-emptively multitasking,
6259 # you end up with a "frozen" computer, even though with patience
6260 # the test eventually succeeds (with a max line length of 256k).
6261 # Instead, let's just punt: use the minimum linelength reported by
6262 # all of the supported platforms: 8192 (on NT/2K/XP).
6263 lt_cv_sys_max_cmd_len=8192;
6267 # On AmigaOS with pdksh, this test takes hours, literally.
6268 # So we just punt and use a minimum line length of 8192.
6269 lt_cv_sys_max_cmd_len=8192;
6272 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6273 # This has been around since 386BSD, at least. Likely further.
6274 if test -x /sbin/sysctl; then
6275 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6276 elif test -x /usr/sbin/sysctl; then
6277 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6279 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
6281 # And add a safety zone
6282 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6283 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6286 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6287 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6288 # nice to cause kernel panics so lets avoid the loop below.
6289 # First set a reasonable default.
6290 lt_cv_sys_max_cmd_len=16384
6292 if test -x /sbin/sysconfig; then
6293 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6294 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6299 # If test is not a shell built-in, we'll probably end up computing a
6300 # maximum length that is only half of the actual maximum length, but
6302 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6303 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6304 = "XX$teststring") >/dev/null 2>&1 &&
6305 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6306 lt_cv_sys_max_cmd_len=$new_result &&
6307 test $i != 17 # 1/2 MB should be enough
6310 teststring=$teststring$teststring
6313 # Add a significant safety factor because C++ compilers can tack on massive
6314 # amounts of additional arguments before passing them to the linker.
6315 # It appears as though 1/2 is a usable value.
6316 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6322 if test -n $lt_cv_sys_max_cmd_len ; then
6323 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6324 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6326 { echo "$as_me:$LINENO: result: none" >&5
6327 echo "${ECHO_T}none" >&6; }
6333 # Check for command to grab the raw symbol name followed by C symbol from nm.
6334 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6335 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6336 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6337 echo $ECHO_N "(cached) $ECHO_C" >&6
6340 # These are sane defaults that work on at least a few old systems.
6341 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6343 # Character class describing NM global symbol codes.
6344 symcode='[BCDEGRST]'
6346 # Regexp to match symbols that can be accessed directly from C.
6347 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6349 # Transform an extracted symbol line into a proper C declaration
6350 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6352 # Transform an extracted symbol line into symbol name and symbol address
6353 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6355 # Define system-specific variables.
6360 cygwin* | mingw* | pw32*)
6361 symcode='[ABCDGISTW]'
6363 hpux*) # Its linker distinguishes data from code symbols
6364 if test "$host_cpu" = ia64; then
6365 symcode='[ABCDEGRST]'
6367 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6368 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6371 if test "$host_cpu" = ia64; then
6372 symcode='[ABCDGIRSTW]'
6373 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6374 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6378 symcode='[BCDEGRST]'
6381 symcode='[BCDEGQRST]'
6391 # Handle CRLF in mingw tool chain
6395 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6399 # If we're using GNU nm, then use its standard symbol codes.
6400 case `$NM -V 2>&1` in
6401 *GNU* | *'with BFD'*)
6402 symcode='[ABCDGIRSTW]' ;;
6405 # Try without a prefix undercore, then with it.
6406 for ac_symprfx in "" "_"; do
6408 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6409 symxfrm="\\1 $ac_symprfx\\2 \\2"
6411 # Write the raw and C identifiers.
6412 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6414 # Check to see that the pipe works correctly.
6418 cat > conftest.$ac_ext <<EOF
6423 void nm_test_func(){}
6427 int main(){nm_test_var='a';nm_test_func();return(0);}
6430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6431 (eval $ac_compile) 2>&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); }; then
6435 # Now try to grab the symbols.
6437 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6438 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } && test -s "$nlist"; then
6442 # Try sorting and uniquifying the output.
6443 if sort "$nlist" | uniq > "$nlist"T; then
6444 mv -f "$nlist"T "$nlist"
6449 # Make sure that we snagged all the symbols we need.
6450 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6451 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6452 cat <<EOF > conftest.$ac_ext
6458 # Now generate the symbol file.
6459 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6461 cat <<EOF >> conftest.$ac_ext
6462 #if defined (__STDC__) && __STDC__
6463 # define lt_ptr_t void *
6465 # define lt_ptr_t char *
6469 /* The mapping between symbol names and symbols. */
6474 lt_preloaded_symbols[] =
6477 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6478 cat <<\EOF >> conftest.$ac_ext
6486 # Now try linking the two files.
6487 mv conftest.$ac_objext conftstm.$ac_objext
6488 lt_save_LIBS="$LIBS"
6489 lt_save_CFLAGS="$CFLAGS"
6490 LIBS="conftstm.$ac_objext"
6491 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6492 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6493 (eval $ac_link) 2>&5
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6499 LIBS="$lt_save_LIBS"
6500 CFLAGS="$lt_save_CFLAGS"
6502 echo "cannot find nm_test_func in $nlist" >&5
6505 echo "cannot find nm_test_var in $nlist" >&5
6508 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6511 echo "$progname: failed program was:" >&5
6512 cat conftest.$ac_ext >&5
6514 rm -f conftest* conftst*
6516 # Do not use the global_symbol_pipe unless it works.
6517 if test "$pipe_works" = yes; then
6520 lt_cv_sys_global_symbol_pipe=
6526 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6527 lt_cv_sys_global_symbol_to_cdecl=
6529 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6530 { echo "$as_me:$LINENO: result: failed" >&5
6531 echo "${ECHO_T}failed" >&6; }
6533 { echo "$as_me:$LINENO: result: ok" >&5
6534 echo "${ECHO_T}ok" >&6; }
6537 { echo "$as_me:$LINENO: checking for objdir" >&5
6538 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6539 if test "${lt_cv_objdir+set}" = set; then
6540 echo $ECHO_N "(cached) $ECHO_C" >&6
6542 rm -f .libs 2>/dev/null
6543 mkdir .libs 2>/dev/null
6544 if test -d .libs; then
6547 # MS-DOS does not allow filenames that begin with a dot.
6550 rmdir .libs 2>/dev/null
6552 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6553 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6554 objdir=$lt_cv_objdir
6562 # AIX sometimes has problems with the GCC collect2 program. For some
6563 # reason, if we set the COLLECT_NAMES environment variable, the problems
6564 # vanish in a puff of smoke.
6565 if test "X${COLLECT_NAMES+set}" != Xset; then
6567 export COLLECT_NAMES
6572 # Sed substitution that helps us do robust quoting. It backslashifies
6573 # metacharacters that are still active within double-quoted strings.
6574 Xsed='sed -e 1s/^X//'
6575 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6577 # Same as above, but do not quote variable references.
6578 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6580 # Sed substitution to delay expansion of an escaped shell variable in a
6581 # double_quote_subst'ed string.
6582 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6584 # Sed substitution to avoid accidental globbing in evaled expressions
6585 no_glob_subst='s/\*/\\\*/g'
6591 default_ofile=libtool
6592 can_build_shared=yes
6594 # All known linkers require a `.a' archive for static linking (except M$VC,
6595 # which needs '.lib').
6597 ltmain="$ac_aux_dir/ltmain.sh"
6598 ofile="$default_ofile"
6599 with_gnu_ld="$lt_cv_prog_gnu_ld"
6601 if test -n "$ac_tool_prefix"; then
6602 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6603 set dummy ${ac_tool_prefix}ar; ac_word=$2
6604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6606 if test "${ac_cv_prog_AR+set}" = set; then
6607 echo $ECHO_N "(cached) $ECHO_C" >&6
6609 if test -n "$AR"; then
6610 ac_cv_prog_AR="$AR" # Let the user override the test.
6612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6616 test -z "$as_dir" && as_dir=.
6617 for ac_exec_ext in '' $ac_executable_extensions; do
6618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6619 ac_cv_prog_AR="${ac_tool_prefix}ar"
6620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 if test -n "$AR"; then
6631 { echo "$as_me:$LINENO: result: $AR" >&5
6632 echo "${ECHO_T}$AR" >&6; }
6634 { echo "$as_me:$LINENO: result: no" >&5
6635 echo "${ECHO_T}no" >&6; }
6640 if test -z "$ac_cv_prog_AR"; then
6642 # Extract the first word of "ar", so it can be a program name with args.
6643 set dummy ar; ac_word=$2
6644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6646 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6647 echo $ECHO_N "(cached) $ECHO_C" >&6
6649 if test -n "$ac_ct_AR"; then
6650 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6656 test -z "$as_dir" && as_dir=.
6657 for ac_exec_ext in '' $ac_executable_extensions; do
6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6659 ac_cv_prog_ac_ct_AR="ar"
6660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6669 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6670 if test -n "$ac_ct_AR"; then
6671 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6672 echo "${ECHO_T}$ac_ct_AR" >&6; }
6674 { echo "$as_me:$LINENO: result: no" >&5
6675 echo "${ECHO_T}no" >&6; }
6678 if test "x$ac_ct_AR" = x; then
6681 case $cross_compiling:$ac_tool_warned in
6683 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6684 whose name does not start with the host triplet. If you think this
6685 configuration is useful to you, please write to autoconf@gnu.org." >&5
6686 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6687 whose name does not start with the host triplet. If you think this
6688 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6689 ac_tool_warned=yes ;;
6697 if test -n "$ac_tool_prefix"; then
6698 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6699 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6702 if test "${ac_cv_prog_RANLIB+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 if test -n "$RANLIB"; then
6706 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6712 test -z "$as_dir" && as_dir=.
6713 for ac_exec_ext in '' $ac_executable_extensions; do
6714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6715 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6725 RANLIB=$ac_cv_prog_RANLIB
6726 if test -n "$RANLIB"; then
6727 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6728 echo "${ECHO_T}$RANLIB" >&6; }
6730 { echo "$as_me:$LINENO: result: no" >&5
6731 echo "${ECHO_T}no" >&6; }
6736 if test -z "$ac_cv_prog_RANLIB"; then
6737 ac_ct_RANLIB=$RANLIB
6738 # Extract the first word of "ranlib", so it can be a program name with args.
6739 set dummy ranlib; ac_word=$2
6740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6742 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6745 if test -n "$ac_ct_RANLIB"; then
6746 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 test -z "$as_dir" && as_dir=.
6753 for ac_exec_ext in '' $ac_executable_extensions; do
6754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6755 ac_cv_prog_ac_ct_RANLIB="ranlib"
6756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6765 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6766 if test -n "$ac_ct_RANLIB"; then
6767 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6768 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6770 { echo "$as_me:$LINENO: result: no" >&5
6771 echo "${ECHO_T}no" >&6; }
6774 if test "x$ac_ct_RANLIB" = x; then
6777 case $cross_compiling:$ac_tool_warned in
6779 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6780 whose name does not start with the host triplet. If you think this
6781 configuration is useful to you, please write to autoconf@gnu.org." >&5
6782 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6783 whose name does not start with the host triplet. If you think this
6784 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6785 ac_tool_warned=yes ;;
6787 RANLIB=$ac_ct_RANLIB
6790 RANLIB="$ac_cv_prog_RANLIB"
6793 if test -n "$ac_tool_prefix"; then
6794 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6795 set dummy ${ac_tool_prefix}strip; ac_word=$2
6796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6798 if test "${ac_cv_prog_STRIP+set}" = set; then
6799 echo $ECHO_N "(cached) $ECHO_C" >&6
6801 if test -n "$STRIP"; then
6802 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 test -z "$as_dir" && as_dir=.
6809 for ac_exec_ext in '' $ac_executable_extensions; do
6810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6811 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6821 STRIP=$ac_cv_prog_STRIP
6822 if test -n "$STRIP"; then
6823 { echo "$as_me:$LINENO: result: $STRIP" >&5
6824 echo "${ECHO_T}$STRIP" >&6; }
6826 { echo "$as_me:$LINENO: result: no" >&5
6827 echo "${ECHO_T}no" >&6; }
6832 if test -z "$ac_cv_prog_STRIP"; then
6834 # Extract the first word of "strip", so it can be a program name with args.
6835 set dummy strip; ac_word=$2
6836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6838 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 if test -n "$ac_ct_STRIP"; then
6842 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6851 ac_cv_prog_ac_ct_STRIP="strip"
6852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6862 if test -n "$ac_ct_STRIP"; then
6863 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6864 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6866 { echo "$as_me:$LINENO: result: no" >&5
6867 echo "${ECHO_T}no" >&6; }
6870 if test "x$ac_ct_STRIP" = x; then
6873 case $cross_compiling:$ac_tool_warned in
6875 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6876 whose name does not start with the host triplet. If you think this
6877 configuration is useful to you, please write to autoconf@gnu.org." >&5
6878 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6879 whose name does not start with the host triplet. If you think this
6880 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6881 ac_tool_warned=yes ;;
6886 STRIP="$ac_cv_prog_STRIP"
6891 old_CFLAGS="$CFLAGS"
6893 # Set sane defaults for various variables
6894 test -z "$AR" && AR=ar
6895 test -z "$AR_FLAGS" && AR_FLAGS=cru
6896 test -z "$AS" && AS=as
6897 test -z "$CC" && CC=cc
6898 test -z "$LTCC" && LTCC=$CC
6899 test -z "$DLLTOOL" && DLLTOOL=dlltool
6900 test -z "$LD" && LD=ld
6901 test -z "$LN_S" && LN_S="ln -s"
6902 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6903 test -z "$NM" && NM=nm
6904 test -z "$SED" && SED=sed
6905 test -z "$OBJDUMP" && OBJDUMP=objdump
6906 test -z "$RANLIB" && RANLIB=:
6907 test -z "$STRIP" && STRIP=:
6908 test -z "$ac_objext" && ac_objext=o
6910 # Determine commands to create old-style static archives.
6911 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6912 old_postinstall_cmds='chmod 644 $oldlib'
6913 old_postuninstall_cmds=
6915 if test -n "$RANLIB"; then
6918 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6921 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6924 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6927 for cc_temp in $compiler""; do
6929 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6930 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6935 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6938 # Only perform the check for file, if the check method requires it
6939 case $deplibs_check_method in
6941 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6942 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6943 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6944 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6952 lt_save_MAGIC_CMD="$MAGIC_CMD"
6953 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6954 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6955 for ac_dir in $ac_dummy; do
6957 test -z "$ac_dir" && ac_dir=.
6958 if test -f $ac_dir/${ac_tool_prefix}file; then
6959 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6960 if test -n "$file_magic_test_file"; then
6961 case $deplibs_check_method in
6963 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6964 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6965 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6966 $EGREP "$file_magic_regex" > /dev/null; then
6971 *** Warning: the command libtool uses to detect shared libraries,
6972 *** $file_magic_cmd, produces output that libtool cannot recognize.
6973 *** The result is that libtool may fail to recognize shared libraries
6974 *** as such. This will affect the creation of libtool libraries that
6975 *** depend on shared libraries, but programs linked with such libtool
6976 *** libraries will work regardless of this problem. Nevertheless, you
6977 *** may want to report the problem to your system manager and/or to
6978 *** bug-libtool@gnu.org
6988 MAGIC_CMD="$lt_save_MAGIC_CMD"
6993 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6994 if test -n "$MAGIC_CMD"; then
6995 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6996 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6998 { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7002 if test -z "$lt_cv_path_MAGIC_CMD"; then
7003 if test -n "$ac_tool_prefix"; then
7004 { echo "$as_me:$LINENO: checking for file" >&5
7005 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7006 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7007 echo $ECHO_N "(cached) $ECHO_C" >&6
7011 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7014 lt_save_MAGIC_CMD="$MAGIC_CMD"
7015 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7016 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7017 for ac_dir in $ac_dummy; do
7019 test -z "$ac_dir" && ac_dir=.
7020 if test -f $ac_dir/file; then
7021 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7022 if test -n "$file_magic_test_file"; then
7023 case $deplibs_check_method in
7025 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7026 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7027 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7028 $EGREP "$file_magic_regex" > /dev/null; then
7033 *** Warning: the command libtool uses to detect shared libraries,
7034 *** $file_magic_cmd, produces output that libtool cannot recognize.
7035 *** The result is that libtool may fail to recognize shared libraries
7036 *** as such. This will affect the creation of libtool libraries that
7037 *** depend on shared libraries, but programs linked with such libtool
7038 *** libraries will work regardless of this problem. Nevertheless, you
7039 *** may want to report the problem to your system manager and/or to
7040 *** bug-libtool@gnu.org
7050 MAGIC_CMD="$lt_save_MAGIC_CMD"
7055 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7056 if test -n "$MAGIC_CMD"; then
7057 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7058 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7060 { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7076 # Check whether --enable-libtool-lock was given.
7077 if test "${enable_libtool_lock+set}" = set; then
7078 enableval=$enable_libtool_lock;
7081 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7084 # Check whether --with-pic was given.
7085 if test "${with_pic+set}" = set; then
7086 withval=$with_pic; pic_mode="$withval"
7091 test -z "$pic_mode" && pic_mode=default
7093 # Use C for the default configuration in the libtool script
7097 ac_cpp='$CPP $CPPFLAGS'
7098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7103 # Source file extension for C test sources.
7106 # Object file extension for compiled C test sources.
7110 # Code to be used in simple compile tests
7111 lt_simple_compile_test_code="int some_variable = 0;\n"
7113 # Code to be used in simple link tests
7114 lt_simple_link_test_code='int main(){return(0);}\n'
7117 # If no C compiler was specified, use CC.
7120 # Allow CC to be a program name with arguments.
7124 # save warnings/boilerplate of simple test code
7125 ac_outfile=conftest.$ac_objext
7126 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7127 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7128 _lt_compiler_boilerplate=`cat conftest.err`
7131 ac_outfile=conftest.$ac_objext
7132 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7133 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
7134 _lt_linker_boilerplate=`cat conftest.err`
7139 # Check for any special shared library compilation flags.
7142 if test "$GCC" = no; then
7145 lt_prog_cc_shlib='-belf'
7149 if test -n "$lt_prog_cc_shlib"; then
7150 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
7151 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
7152 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
7154 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
7155 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
7156 lt_cv_prog_cc_can_build_shared=no
7162 # Check to make sure the static flag actually works.
7164 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
7165 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
7166 if test "${lt_prog_compiler_static_works+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 lt_prog_compiler_static_works=no
7170 save_LDFLAGS="$LDFLAGS"
7171 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
7172 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7173 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7174 # The compiler can only warn and ignore the option if not recognized
7175 # So say no if there are warnings
7176 if test -s conftest.err; then
7177 # Append any errors to the config.log.
7178 cat conftest.err 1>&5
7179 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
7180 $SED '/^$/d' conftest.err >conftest.er2
7181 if diff conftest.exp conftest.er2 >/dev/null; then
7182 lt_prog_compiler_static_works=yes
7185 lt_prog_compiler_static_works=yes
7189 LDFLAGS="$save_LDFLAGS"
7192 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7193 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7195 if test x"$lt_prog_compiler_static_works" = xyes; then
7198 lt_prog_compiler_static=
7204 lt_prog_compiler_no_builtin_flag=
7206 if test "$GCC" = yes; then
7207 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7210 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7211 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7212 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7213 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 lt_cv_prog_compiler_rtti_exceptions=no
7216 ac_outfile=conftest.$ac_objext
7217 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7218 lt_compiler_flag="-fno-rtti -fno-exceptions"
7219 # Insert the option either (1) after the last *FLAGS variable, or
7220 # (2) before a word containing "conftest.", or (3) at the end.
7221 # Note that $ac_compile itself does not contain backslashes and begins
7222 # with a dollar sign (not a hyphen), so the echo should work correctly.
7223 # The option is referenced via a variable to avoid confusing sed.
7224 lt_compile=`echo "$ac_compile" | $SED \
7225 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7226 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7227 -e 's:$: $lt_compiler_flag:'`
7228 (eval echo "\"\$as_me:7228: $lt_compile\"" >&5)
7229 (eval "$lt_compile" 2>conftest.err)
7231 cat conftest.err >&5
7232 echo "$as_me:7232: \$? = $ac_status" >&5
7233 if (exit $ac_status) && test -s "$ac_outfile"; then
7234 # The compiler can only warn and ignore the option if not recognized
7235 # So say no if there are warnings other than the usual output.
7236 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7237 $SED '/^$/d' conftest.err >conftest.er2
7238 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7239 lt_cv_prog_compiler_rtti_exceptions=yes
7245 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7246 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7248 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7249 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7256 lt_prog_compiler_wl=
7257 lt_prog_compiler_pic=
7258 lt_prog_compiler_static=
7260 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7261 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7263 if test "$GCC" = yes; then
7264 lt_prog_compiler_wl='-Wl,'
7265 lt_prog_compiler_static='-static'
7269 # All AIX code is PIC.
7270 if test "$host_cpu" = ia64; then
7271 # AIX 5 now supports IA64 processor
7272 lt_prog_compiler_static='-Bstatic'
7277 # FIXME: we need at least 68020 code to build shared libraries, but
7278 # adding the `-m68020' flag to GCC prevents building anything better,
7280 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7283 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7284 # PIC is the default for these OSes.
7287 mingw* | pw32* | os2*)
7288 # This hack is so that the source file can tell whether it is being
7289 # built for inclusion in a dll (and should export symbols for example).
7290 lt_prog_compiler_pic='-DDLL_EXPORT'
7293 darwin* | rhapsody*)
7294 # PIC is the default on this platform
7295 # Common symbols not allowed in MH_DYLIB files
7296 lt_prog_compiler_pic='-fno-common'
7300 # Just because we use GCC doesn't mean we suddenly get shared libraries
7301 # on systems that don't support them.
7302 lt_prog_compiler_can_build_shared=no
7307 if test -d /usr/nec; then
7308 lt_prog_compiler_pic=-Kconform_pic
7313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7320 lt_prog_compiler_pic='-fPIC'
7326 lt_prog_compiler_pic='-fPIC'
7330 # PORTME Check for flag to pass linker flags through the system compiler.
7333 lt_prog_compiler_wl='-Wl,'
7334 if test "$host_cpu" = ia64; then
7335 # AIX 5 now supports IA64 processor
7336 lt_prog_compiler_static='-Bstatic'
7338 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7342 # PIC is the default on this platform
7343 # Common symbols not allowed in MH_DYLIB files
7344 case $cc_basename in
7346 lt_prog_compiler_pic='-qnocommon'
7347 lt_prog_compiler_wl='-Wl,'
7352 mingw* | pw32* | os2*)
7353 # This hack is so that the source file can tell whether it is being
7354 # built for inclusion in a dll (and should export symbols for example).
7355 lt_prog_compiler_pic='-DDLL_EXPORT'
7358 hpux9* | hpux10* | hpux11*)
7359 lt_prog_compiler_wl='-Wl,'
7360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7367 lt_prog_compiler_pic='+Z'
7370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7371 lt_prog_compiler_static='${wl}-a ${wl}archive'
7374 irix5* | irix6* | nonstopux*)
7375 lt_prog_compiler_wl='-Wl,'
7376 # PIC (with -KPIC) is the default.
7377 lt_prog_compiler_static='-non_shared'
7381 lt_prog_compiler_pic='-KPIC'
7382 lt_prog_compiler_static='-Bstatic'
7386 case $cc_basename in
7388 lt_prog_compiler_wl='-Wl,'
7389 lt_prog_compiler_pic='-KPIC'
7390 lt_prog_compiler_static='-static'
7392 pgcc* | pgf77* | pgf90*)
7393 # Portland Group compilers (*not* the Pentium gcc compiler,
7394 # which looks to be a dead project)
7395 lt_prog_compiler_wl='-Wl,'
7396 lt_prog_compiler_pic='-fpic'
7397 lt_prog_compiler_static='-static'
7400 lt_prog_compiler_wl='-Wl,'
7401 # All Alpha code is PIC.
7402 lt_prog_compiler_static='-non_shared'
7407 osf3* | osf4* | osf5*)
7408 lt_prog_compiler_wl='-Wl,'
7409 # All OSF/1 code is PIC.
7410 lt_prog_compiler_static='-non_shared'
7414 lt_prog_compiler_pic='-Kpic'
7415 lt_prog_compiler_static='-dn'
7419 lt_prog_compiler_pic='-KPIC'
7420 lt_prog_compiler_static='-Bstatic'
7421 case $cc_basename in
7423 lt_prog_compiler_wl='-Qoption ld ';;
7425 lt_prog_compiler_wl='-Wl,';;
7430 lt_prog_compiler_wl='-Qoption ld '
7431 lt_prog_compiler_pic='-PIC'
7432 lt_prog_compiler_static='-Bstatic'
7435 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7436 lt_prog_compiler_wl='-Wl,'
7437 lt_prog_compiler_pic='-KPIC'
7438 lt_prog_compiler_static='-Bstatic'
7442 if test -d /usr/nec ;then
7443 lt_prog_compiler_pic='-Kconform_pic'
7444 lt_prog_compiler_static='-Bstatic'
7449 lt_prog_compiler_wl='-Wl,'
7450 lt_prog_compiler_can_build_shared=no
7454 lt_prog_compiler_pic='-pic'
7455 lt_prog_compiler_static='-Bstatic'
7459 lt_prog_compiler_can_build_shared=no
7464 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7465 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7468 # Check to make sure the PIC flag actually works.
7470 if test -n "$lt_prog_compiler_pic"; then
7472 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7473 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7474 if test "${lt_prog_compiler_pic_works+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 lt_prog_compiler_pic_works=no
7478 ac_outfile=conftest.$ac_objext
7479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7480 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7481 # Insert the option either (1) after the last *FLAGS variable, or
7482 # (2) before a word containing "conftest.", or (3) at the end.
7483 # Note that $ac_compile itself does not contain backslashes and begins
7484 # with a dollar sign (not a hyphen), so the echo should work correctly.
7485 # The option is referenced via a variable to avoid confusing sed.
7486 lt_compile=`echo "$ac_compile" | $SED \
7487 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7489 -e 's:$: $lt_compiler_flag:'`
7490 (eval echo "\"\$as_me:7490: $lt_compile\"" >&5)
7491 (eval "$lt_compile" 2>conftest.err)
7493 cat conftest.err >&5
7494 echo "$as_me:7494: \$? = $ac_status" >&5
7495 if (exit $ac_status) && test -s "$ac_outfile"; then
7496 # The compiler can only warn and ignore the option if not recognized
7497 # So say no if there are warnings other than the usual output.
7498 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
7499 $SED '/^$/d' conftest.err >conftest.er2
7500 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
7501 lt_prog_compiler_pic_works=yes
7507 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7508 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7510 if test x"$lt_prog_compiler_pic_works" = xyes; then
7511 case $lt_prog_compiler_pic in
7513 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7516 lt_prog_compiler_pic=
7517 lt_prog_compiler_can_build_shared=no
7522 # For platforms which do not support PIC, -DPIC is meaningless:
7524 lt_prog_compiler_pic=
7527 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7531 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7532 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7533 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7534 echo $ECHO_N "(cached) $ECHO_C" >&6
7536 lt_cv_prog_compiler_c_o=no
7537 $rm -r conftest 2>/dev/null
7541 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7543 lt_compiler_flag="-o out/conftest2.$ac_objext"
7544 # Insert the option either (1) after the last *FLAGS variable, or
7545 # (2) before a word containing "conftest.", or (3) at the end.
7546 # Note that $ac_compile itself does not contain backslashes and begins
7547 # with a dollar sign (not a hyphen), so the echo should work correctly.
7548 lt_compile=`echo "$ac_compile" | $SED \
7549 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
7550 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7551 -e 's:$: $lt_compiler_flag:'`
7552 (eval echo "\"\$as_me:7552: $lt_compile\"" >&5)
7553 (eval "$lt_compile" 2>out/conftest.err)
7555 cat out/conftest.err >&5
7556 echo "$as_me:7556: \$? = $ac_status" >&5
7557 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7559 # The compiler can only warn and ignore the option if not recognized
7560 # So say no if there are warnings
7561 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
7562 $SED '/^$/d' out/conftest.err >out/conftest.er2
7563 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7564 lt_cv_prog_compiler_c_o=yes
7569 # SGI C++ compiler will create directory out/ii_files/ for
7570 # template instantiation
7571 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7572 $rm out/* && rmdir out
7578 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7579 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7582 hard_links="nottested"
7583 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7584 # do not overwrite the value of need_locks provided by the user
7585 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7586 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7591 ln conftest.a conftest.b 2>&5 || hard_links=no
7592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7593 { echo "$as_me:$LINENO: result: $hard_links" >&5
7594 echo "${ECHO_T}$hard_links" >&6; }
7595 if test "$hard_links" = no; then
7596 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7597 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7604 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7605 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7608 allow_undefined_flag=
7609 enable_shared_with_static_runtimes=no
7611 archive_expsym_cmds=
7612 old_archive_From_new_cmds=
7613 old_archive_from_expsyms_cmds=
7614 export_dynamic_flag_spec=
7615 whole_archive_flag_spec=
7616 thread_safe_flag_spec=
7617 hardcode_libdir_flag_spec=
7618 hardcode_libdir_flag_spec_ld=
7619 hardcode_libdir_separator=
7622 hardcode_shlibpath_var=unsupported
7623 link_all_deplibs=unknown
7624 hardcode_automatic=no
7627 always_export_symbols=no
7628 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7629 # include_expsyms should be a list of space-separated symbols to be *always*
7630 # included in the symbol list
7632 # exclude_expsyms can be an extended regexp of symbols to exclude
7633 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7634 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7635 # as well as any symbol that contains `d'.
7636 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7637 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7638 # platforms (ab)use it in PIC code, but their linkers get confused if
7639 # the symbol is explicitly referenced. Since portable code cannot
7640 # rely on this symbol name, it's probably fine to never include it in
7641 # preloaded symbol tables.
7642 extract_expsyms_cmds=
7643 # Just being paranoid about ensuring that cc_basename is set.
7644 for cc_temp in $compiler""; do
7646 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7647 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7652 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7655 cygwin* | mingw* | pw32*)
7656 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7657 # When not using gcc, we currently assume that we are using
7658 # Microsoft Visual C++.
7659 if test "$GCC" != yes; then
7669 if test "$with_gnu_ld" = yes; then
7670 # If archive_cmds runs LD, not CC, wlarc should be empty
7673 # Set some defaults for GNU ld with shared library support. These
7674 # are reset later if shared libraries are not supported. Putting them
7675 # here allows them to be overridden if necessary.
7676 runpath_var=LD_RUN_PATH
7677 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7678 export_dynamic_flag_spec='${wl}--export-dynamic'
7679 # ancient GNU ld didn't support --whole-archive et. al.
7680 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7681 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7683 whole_archive_flag_spec=
7685 supports_anon_versioning=no
7686 case `$LD -v 2>/dev/null` in
7687 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7688 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7689 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7690 *\ 2.11.*) ;; # other 2.11 versions
7691 *) supports_anon_versioning=yes ;;
7694 # See if GNU ld supports shared libraries.
7696 aix3* | aix4* | aix5*)
7697 # On AIX/PPC, the GNU linker is very broken
7698 if test "$host_cpu" != ia64; then
7702 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7703 *** to be unable to reliably create shared libraries on AIX.
7704 *** Therefore, libtool is disabling shared libraries support. If you
7705 *** really care for shared libraries, you may want to modify your PATH
7706 *** so that a non-GNU linker is found, and then restart.
7713 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)'
7714 hardcode_libdir_flag_spec='-L$libdir'
7715 hardcode_minus_L=yes
7717 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7718 # that the semantics of dynamic libraries on AmigaOS, at least up
7719 # to version 4, is to share data among multiple programs linked
7720 # with the same dynamic library. Since this doesn't match the
7721 # behavior of shared libraries on other platforms, we can't use
7727 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7728 allow_undefined_flag=unsupported
7729 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7730 # support --undefined. This deserves some investigation. FIXME
7731 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7737 cygwin* | mingw* | pw32*)
7738 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7739 # as there is no search path for DLLs.
7740 hardcode_libdir_flag_spec='-L$libdir'
7741 allow_undefined_flag=unsupported
7742 always_export_symbols=no
7743 enable_shared_with_static_runtimes=yes
7744 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7746 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7747 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7748 # If the export-symbols file already is a .def file (1st line
7749 # is EXPORTS), use it as is; otherwise, prepend...
7750 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7751 cp $export_symbols $output_objdir/$soname.def;
7753 echo EXPORTS > $output_objdir/$soname.def;
7754 cat $export_symbols >> $output_objdir/$soname.def;
7756 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7763 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7765 case $cc_basename,$host_cpu in
7766 pgcc*) # Portland Group C compiler
7767 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'
7768 tmp_addflag=' $pic_flag'
7770 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
7771 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'
7772 tmp_addflag=' $pic_flag -Mnomain' ;;
7773 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7774 tmp_addflag=' -i_dynamic' ;;
7775 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7776 tmp_addflag=' -i_dynamic -nofor_main' ;;
7777 ifc* | ifort*) # Intel Fortran compiler
7778 tmp_addflag=' -nofor_main' ;;
7780 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7782 if test $supports_anon_versioning = yes; then
7783 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7785 $echo "local: *; };" >> $output_objdir/$libname.ver~
7786 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7794 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7795 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7804 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7808 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7809 *** create shared libraries on Solaris systems. Therefore, libtool
7810 *** is disabling shared libraries support. We urge you to upgrade GNU
7811 *** binutils to release 2.9.1 or newer. Another option is to modify
7812 *** your PATH or compiler configuration so that the native linker is
7813 *** used, and then restart.
7816 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7825 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7828 hardcode_shlibpath_var=no
7832 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7834 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7841 if test "$ld_shlibs" = no; then
7843 hardcode_libdir_flag_spec=
7844 export_dynamic_flag_spec=
7845 whole_archive_flag_spec=
7848 # PORTME fill in a description of your system's linker (not GNU ld)
7851 allow_undefined_flag=unsupported
7852 always_export_symbols=yes
7853 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'
7854 # Note: this linker hardcodes the directories in LIBPATH if there
7855 # are no directories specified by -L.
7856 hardcode_minus_L=yes
7857 if test "$GCC" = yes && test -z "$link_static_flag"; then
7858 # Neither direct hardcoding nor static linking is supported with a
7860 hardcode_direct=unsupported
7865 if test "$host_cpu" = ia64; then
7866 # On IA64, the linker does run time linking by default, so we don't
7867 # have to do anything special.
7868 aix_use_runtimelinking=no
7869 exp_sym_flag='-Bexport'
7872 # If we're using GNU nm, then we don't want the "-C" option.
7873 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7874 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7875 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'
7877 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'
7879 aix_use_runtimelinking=no
7881 # Test if we are trying to use run time linking or normal
7882 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7883 # need to do runtime linking.
7884 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7885 for ld_flag in $LDFLAGS; do
7886 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7887 aix_use_runtimelinking=yes
7893 exp_sym_flag='-bexport'
7894 no_entry_flag='-bnoentry'
7897 # When large executables or shared objects are built, AIX ld can
7898 # have problems creating the table of contents. If linking a library
7899 # or program results in "error TOC overflow" add -mminimal-toc to
7900 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7901 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7905 hardcode_libdir_separator=':'
7906 link_all_deplibs=yes
7908 if test "$GCC" = yes; then
7909 case $host_os in aix4.[012]|aix4.[012].*)
7910 # We only want to do this on AIX 4.2 and lower, the check
7911 # below for broken collect2 doesn't work under 4.3+
7912 collect2name=`${CC} -print-prog-name=collect2`
7913 if test -f "$collect2name" && \
7914 strings "$collect2name" | grep resolve_lib_name >/dev/null
7916 # We have reworked collect2
7919 # We have old collect2
7920 hardcode_direct=unsupported
7921 # It fails to find uninstalled libraries when the uninstalled
7922 # path is not listed in the libpath. Setting hardcode_minus_L
7923 # to unsupported forces relinking
7924 hardcode_minus_L=yes
7925 hardcode_libdir_flag_spec='-L$libdir'
7926 hardcode_libdir_separator=
7929 shared_flag='-shared'
7930 if test "$aix_use_runtimelinking" = yes; then
7931 shared_flag="$shared_flag "'${wl}-G'
7935 if test "$host_cpu" = ia64; then
7936 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7937 # chokes on -Wl,-G. The following line is correct:
7940 if test "$aix_use_runtimelinking" = yes; then
7941 shared_flag='${wl}-G'
7943 shared_flag='${wl}-bM:SRE'
7948 # It seems that -bexpall does not export symbols beginning with
7949 # underscore (_), so it is better to generate a list of symbols to export.
7950 always_export_symbols=yes
7951 if test "$aix_use_runtimelinking" = yes; then
7952 # Warning - without using the other runtime loading flags (-brtl),
7953 # -berok will link without error, but may produce a broken library.
7954 allow_undefined_flag='-berok'
7955 # Determine the default libpath from the value encoded in an empty executable.
7956 cat >conftest.$ac_ext <<_ACEOF
7959 cat confdefs.h >>conftest.$ac_ext
7960 cat >>conftest.$ac_ext <<_ACEOF
7961 /* end confdefs.h. */
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978 (eval "$ac_link") 2>conftest.er1
7980 grep -v '^ *+' conftest.er1 >conftest.err
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && {
7985 test -z "$ac_c_werror_flag" ||
7986 test ! -s conftest.err
7987 } && test -s conftest$ac_exeext &&
7988 $as_test_x conftest$ac_exeext; then
7990 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7992 # Check for a 64-bit object if we didn't find anything.
7993 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
8002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8003 conftest$ac_exeext conftest.$ac_ext
8004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8006 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8007 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8009 if test "$host_cpu" = ia64; then
8010 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8011 allow_undefined_flag="-z nodefs"
8012 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
8014 # Determine the default libpath from the value encoded in an empty executable.
8015 cat >conftest.$ac_ext <<_ACEOF
8018 cat confdefs.h >>conftest.$ac_ext
8019 cat >>conftest.$ac_ext <<_ACEOF
8020 /* end confdefs.h. */
8030 rm -f conftest.$ac_objext conftest$ac_exeext
8031 if { (ac_try="$ac_link"
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037 (eval "$ac_link") 2>conftest.er1
8039 grep -v '^ *+' conftest.er1 >conftest.err
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } && {
8044 test -z "$ac_c_werror_flag" ||
8045 test ! -s conftest.err
8046 } && test -s conftest$ac_exeext &&
8047 $as_test_x conftest$ac_exeext; then
8049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8051 # Check for a 64-bit object if we didn't find anything.
8052 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8062 conftest$ac_exeext conftest.$ac_ext
8063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8065 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8066 # Warning - without using the other run time loading flags,
8067 # -berok will link without error, but may produce a broken library.
8068 no_undefined_flag=' ${wl}-bernotok'
8069 allow_undefined_flag=' ${wl}-berok'
8070 # -bexpall does not export symbols beginning with underscore (_)
8071 always_export_symbols=yes
8072 # Exported symbols can be pulled into shared objects from archives
8073 whole_archive_flag_spec=' '
8074 archive_cmds_need_lc=yes
8075 # This is similar to how AIX traditionally builds it's shared libraries.
8076 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8082 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)'
8083 hardcode_libdir_flag_spec='-L$libdir'
8084 hardcode_minus_L=yes
8085 # see comment about different semantics on the GNU ld section
8090 export_dynamic_flag_spec=-rdynamic
8093 cygwin* | mingw* | pw32*)
8094 # When not using gcc, we currently assume that we are using
8095 # Microsoft Visual C++.
8096 # hardcode_libdir_flag_spec is actually meaningless, as there is
8097 # no search path for DLLs.
8098 hardcode_libdir_flag_spec=' '
8099 allow_undefined_flag=unsupported
8100 # Tell ltmain to make .lib files, not .a files.
8102 # Tell ltmain to make .dll files, not .so files.
8104 # FIXME: Setting linknames here is a bad hack.
8105 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8106 # The linker will automatically build a .lib file if we build a DLL.
8107 old_archive_From_new_cmds='true'
8108 # FIXME: Should let the user specify the lib program.
8109 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8110 fix_srcfile_path='`cygpath -w "$srcfile"`'
8111 enable_shared_with_static_runtimes=yes
8114 darwin* | rhapsody*)
8116 rhapsody* | darwin1.[012])
8117 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8120 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8121 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8123 case ${MACOSX_DEPLOYMENT_TARGET} in
8125 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8128 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8134 archive_cmds_need_lc=no
8136 hardcode_automatic=yes
8137 hardcode_shlibpath_var=unsupported
8138 whole_archive_flag_spec=''
8139 link_all_deplibs=yes
8140 if test "$GCC" = yes ; then
8141 output_verbose_link_cmd='echo'
8142 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8143 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8144 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8145 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8146 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8148 case $cc_basename in
8150 output_verbose_link_cmd='echo'
8151 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8152 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8153 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8154 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8155 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8165 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8166 hardcode_libdir_flag_spec='-L$libdir'
8167 hardcode_shlibpath_var=no
8174 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8175 # support. Future versions do this automatically, but an explicit c++rt0.o
8176 # does not break anything, and helps significantly (at the cost of a little
8179 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8180 hardcode_libdir_flag_spec='-R$libdir'
8182 hardcode_shlibpath_var=no
8185 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8187 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8189 hardcode_minus_L=yes
8190 hardcode_shlibpath_var=no
8193 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8194 freebsd* | kfreebsd*-gnu | dragonfly*)
8195 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8196 hardcode_libdir_flag_spec='-R$libdir'
8198 hardcode_shlibpath_var=no
8202 if test "$GCC" = yes; then
8203 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'
8205 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'
8207 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8208 hardcode_libdir_separator=:
8211 # hardcode_minus_L: Not really in the search PATH,
8212 # but as the default location of the library.
8213 hardcode_minus_L=yes
8214 export_dynamic_flag_spec='${wl}-E'
8218 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8221 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8224 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8230 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
8233 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8237 if test "$with_gnu_ld" = no; then
8240 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8241 hardcode_libdir_flag_spec_ld='+b $libdir'
8242 hardcode_libdir_separator=:
8244 hardcode_shlibpath_var=no
8247 hardcode_libdir_flag_spec='-L$libdir'
8249 hardcode_shlibpath_var=no
8251 # hardcode_minus_L: Not really in the search PATH,
8252 # but as the default location of the library.
8253 hardcode_minus_L=yes
8256 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8257 hardcode_libdir_separator=:
8259 export_dynamic_flag_spec='${wl}-E'
8261 # hardcode_minus_L: Not really in the search PATH,
8262 # but as the default location of the library.
8263 hardcode_minus_L=yes
8269 irix5* | irix6* | nonstopux*)
8270 if test "$GCC" = yes; then
8271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8273 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8274 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8276 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8277 hardcode_libdir_separator=:
8278 link_all_deplibs=yes
8282 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8285 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8287 hardcode_libdir_flag_spec='-R$libdir'
8289 hardcode_shlibpath_var=no
8293 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8296 hardcode_libdir_separator=:
8297 hardcode_shlibpath_var=no
8302 hardcode_shlibpath_var=no
8303 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8304 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8305 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8306 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8307 export_dynamic_flag_spec='${wl}-E'
8310 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8311 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8312 hardcode_libdir_flag_spec='-R$libdir'
8315 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8316 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8323 hardcode_libdir_flag_spec='-L$libdir'
8324 hardcode_minus_L=yes
8325 allow_undefined_flag=unsupported
8326 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'
8327 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8331 if test "$GCC" = yes; then
8332 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8333 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8335 allow_undefined_flag=' -expect_unresolved \*'
8336 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8338 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8339 hardcode_libdir_separator=:
8342 osf4* | osf5*) # as osf3* with the addition of -msym flag
8343 if test "$GCC" = yes; then
8344 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8345 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8348 allow_undefined_flag=' -expect_unresolved \*'
8349 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8350 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8351 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8353 # Both c and cxx compiler support -rpath directly
8354 hardcode_libdir_flag_spec='-rpath $libdir'
8356 hardcode_libdir_separator=:
8360 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8361 hardcode_shlibpath_var=no
8362 export_dynamic_flag_spec='${wl}-Bexport'
8363 runpath_var=LD_RUN_PATH
8364 hardcode_runpath_var=yes
8368 no_undefined_flag=' -z text'
8369 if test "$GCC" = yes; then
8371 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8372 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8373 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8376 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8377 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8378 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8380 hardcode_libdir_flag_spec='-R$libdir'
8381 hardcode_shlibpath_var=no
8383 solaris2.[0-5] | solaris2.[0-5].*) ;;
8385 # The compiler driver will combine linker options so we
8386 # cannot just pass the convience library names through
8387 # without $wl, iff we do not link with $LD.
8388 # Luckily, gcc supports the same syntax we need for Sun Studio.
8389 # Supported since Solaris 2.6 (maybe 2.5.1?)
8392 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8394 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8397 link_all_deplibs=yes
8401 if test "x$host_vendor" = xsequent; then
8402 # Use $CC to link under sequent, because it throws in some extra .o
8403 # files that make .init and .fini sections work.
8404 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8406 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8408 hardcode_libdir_flag_spec='-L$libdir'
8410 hardcode_minus_L=yes
8411 hardcode_shlibpath_var=no
8415 case $host_vendor in
8417 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8418 hardcode_direct=yes # is this really true???
8421 ## LD is ld it makes a PLAMLIB
8422 ## CC just makes a GrossModule.
8423 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8424 reload_cmds='$CC -r -o $output$reload_objs'
8428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8429 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8432 runpath_var='LD_RUN_PATH'
8433 hardcode_shlibpath_var=no
8437 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8438 hardcode_shlibpath_var=no
8439 export_dynamic_flag_spec='-Bexport'
8443 if test -d /usr/nec; then
8444 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8445 hardcode_shlibpath_var=no
8446 runpath_var=LD_RUN_PATH
8447 hardcode_runpath_var=yes
8453 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8456 hardcode_shlibpath_var=no
8457 hardcode_runpath_var=yes
8458 runpath_var=LD_RUN_PATH
8461 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
8462 no_undefined_flag='${wl}-z ${wl}text'
8463 if test "$GCC" = yes; then
8464 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8466 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8468 runpath_var='LD_RUN_PATH'
8469 hardcode_shlibpath_var=no
8473 no_undefined_flag=' -z text'
8474 # $CC -shared without GNU ld will not create a library from C++
8475 # object files and a static libstdc++, better avoid it by now
8476 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8477 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8478 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8479 hardcode_libdir_flag_spec=
8480 hardcode_shlibpath_var=no
8481 runpath_var='LD_RUN_PATH'
8485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8486 hardcode_libdir_flag_spec='-L$libdir'
8487 hardcode_shlibpath_var=no
8496 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8497 echo "${ECHO_T}$ld_shlibs" >&6; }
8498 test "$ld_shlibs" = no && can_build_shared=no
8500 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8501 if test "$GCC" = yes; then
8502 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8506 # Do we need to explicitly link libc?
8508 case "x$archive_cmds_need_lc" in
8510 # Assume -lc should be added
8511 archive_cmds_need_lc=yes
8513 if test "$enable_shared" = yes && test "$GCC" = yes; then
8514 case $archive_cmds in
8516 # FIXME: we may have to deal with multi-command sequences.
8519 # Test whether the compiler implicitly links with -lc since on some
8520 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8521 # to ld, don't add -lc before -lgcc.
8522 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8523 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8528 (eval $ac_compile) 2>&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } 2>conftest.err; then
8534 libobjs=conftest.$ac_objext
8536 wl=$lt_prog_compiler_wl
8542 lt_save_allow_undefined_flag=$allow_undefined_flag
8543 allow_undefined_flag=
8544 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8545 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8548 (exit $ac_status); }
8550 archive_cmds_need_lc=no
8552 archive_cmds_need_lc=yes
8554 allow_undefined_flag=$lt_save_allow_undefined_flag
8556 cat conftest.err 1>&5
8559 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8560 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8567 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8568 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8570 libname_spec='lib$name'
8578 shlibpath_overrides_runpath=unknown
8580 dynamic_linker="$host_os ld.so"
8581 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8582 if test "$GCC" = yes; then
8583 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8584 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8585 # if the path contains ";" then we assume it to be the separator
8586 # otherwise default to the standard path separator (i.e. ":") - it is
8587 # assumed that no part of a normal pathname contains ";" but that should
8588 # okay in the real world where ";" in dirpaths is itself problematic.
8589 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8591 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8594 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8596 need_lib_prefix=unknown
8597 hardcode_into_libs=no
8599 # when you set need_version to no, make sure it does not cause -set_version
8600 # flags to be left without arguments
8601 need_version=unknown
8606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8607 shlibpath_var=LIBPATH
8609 # AIX 3 has no versioning support, so we append a major version to the name.
8610 soname_spec='${libname}${release}${shared_ext}$major'
8617 hardcode_into_libs=yes
8618 if test "$host_cpu" = ia64; then
8619 # AIX 5 supports IA64
8620 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8621 shlibpath_var=LD_LIBRARY_PATH
8623 # With GCC up to 2.95.x, collect2 would create an import file
8624 # for dependence libraries. The import file would start with
8625 # the line `#! .'. This would cause the generated library to
8626 # depend on `.', always an invalid library. This was fixed in
8627 # development snapshots of GCC prior to 3.0.
8629 aix4 | aix4.[01] | aix4.[01].*)
8630 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8632 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8639 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8640 # soname into executable. Probably we can add versioning support to
8641 # collect2, so additional links can be useful in future.
8642 if test "$aix_use_runtimelinking" = yes; then
8643 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8644 # instead of lib<name>.a to let people know that these are not
8645 # typical AIX shared libraries.
8646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8648 # We preserve .a as extension for shared libraries through AIX4.2
8649 # and later when we are not doing run time linking.
8650 library_names_spec='${libname}${release}.a $libname.a'
8651 soname_spec='${libname}${release}${shared_ext}$major'
8653 shlibpath_var=LIBPATH
8658 library_names_spec='$libname.ixlibrary $libname.a'
8659 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8660 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'
8664 library_names_spec='${libname}${shared_ext}'
8665 dynamic_linker="$host_os ld.so"
8666 shlibpath_var=LIBRARY_PATH
8672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8673 soname_spec='${libname}${release}${shared_ext}$major'
8674 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8675 shlibpath_var=LD_LIBRARY_PATH
8676 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8677 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8678 # the default ld.so.conf also contains /usr/contrib/lib and
8679 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8680 # libtool to hard-code these into programs
8683 cygwin* | mingw* | pw32*)
8684 version_type=windows
8689 case $GCC,$host_os in
8690 yes,cygwin* | yes,mingw* | yes,pw32*)
8691 library_names_spec='$libname.dll.a'
8692 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8693 postinstall_cmds='base_file=`basename \${file}`~
8694 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8695 dldir=$destdir/`dirname \$dlpath`~
8696 test -d \$dldir || mkdir -p \$dldir~
8697 $install_prog $dir/$dlname \$dldir/$dlname'
8698 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8699 dlpath=$dir/\$dldll~
8701 shlibpath_overrides_runpath=yes
8705 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8706 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8707 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8710 # MinGW DLLs use traditional 'lib' prefix
8711 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8712 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8713 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8714 # It is most probably a Windows format PATH printed by
8715 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8716 # path with ; separators, and with drive letters. We can handle the
8717 # drive letters (cygwin fileutils understands them), so leave them,
8718 # especially as we might pass files found there to a mingw objdump,
8719 # which wouldn't understand a cygwinified path. Ahh.
8720 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8726 # pw32 DLLs use 'pw' prefix rather than 'lib'
8727 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8733 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8736 dynamic_linker='Win32 ld.exe'
8737 # FIXME: first we should search . and the directory the executable is in
8741 darwin* | rhapsody*)
8742 dynamic_linker="$host_os dyld"
8746 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8747 soname_spec='${libname}${release}${major}$shared_ext'
8748 shlibpath_overrides_runpath=yes
8749 shlibpath_var=DYLD_LIBRARY_PATH
8750 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8751 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8752 if test "$GCC" = yes; then
8753 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8755 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8757 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8765 soname_spec='${libname}${release}${shared_ext}$major'
8766 shlibpath_var=LD_LIBRARY_PATH
8777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8778 soname_spec='${libname}${release}${shared_ext}$major'
8779 shlibpath_var=LD_LIBRARY_PATH
8780 shlibpath_overrides_runpath=no
8781 hardcode_into_libs=yes
8782 dynamic_linker='GNU ld.so'
8785 freebsd* | dragonfly*)
8786 # DragonFly does not have aout. When/if they implement a new
8787 # versioning mechanism, adjust this.
8788 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8789 version_type=freebsd-$objformat
8790 case $version_type in
8792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8801 shlibpath_var=LD_LIBRARY_PATH
8804 shlibpath_overrides_runpath=yes
8806 freebsd3.[01]* | freebsdelf3.[01]*)
8807 shlibpath_overrides_runpath=yes
8808 hardcode_into_libs=yes
8811 shlibpath_overrides_runpath=no
8812 hardcode_into_libs=yes
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 shlibpath_var=LD_LIBRARY_PATH
8824 hardcode_into_libs=yes
8827 hpux9* | hpux10* | hpux11*)
8828 # Give a soname corresponding to the major version so that dld.sl refuses to
8829 # link against other versions.
8836 hardcode_into_libs=yes
8837 dynamic_linker="$host_os dld.so"
8838 shlibpath_var=LD_LIBRARY_PATH
8839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 if test "X$HPUX_IA64_MODE" = X32; then
8843 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8845 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8851 hardcode_into_libs=yes
8852 dynamic_linker="$host_os dld.sl"
8853 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8862 dynamic_linker="$host_os dld.sl"
8863 shlibpath_var=SHLIB_PATH
8864 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8866 soname_spec='${libname}${release}${shared_ext}$major'
8869 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8870 postinstall_cmds='chmod 555 $lib'
8873 irix5* | irix6* | nonstopux*)
8875 nonstopux*) version_type=nonstopux ;;
8877 if test "$lt_cv_prog_gnu_ld" = yes; then
8885 soname_spec='${libname}${release}${shared_ext}$major'
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8888 irix5* | nonstopux*)
8892 case $LD in # libtool.m4 will add one of these switches to LD
8893 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8894 libsuff= shlibsuff= libmagic=32-bit;;
8895 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8896 libsuff=32 shlibsuff=N32 libmagic=N32;;
8897 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8898 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8899 *) libsuff= shlibsuff= libmagic=never-match;;
8903 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8904 shlibpath_overrides_runpath=no
8905 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8906 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8907 hardcode_into_libs=yes
8910 # No shared lib support for Linux oldld, aout, or coff.
8911 linux*oldld* | linux*aout* | linux*coff*)
8915 # This must be Linux ELF.
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8921 soname_spec='${libname}${release}${shared_ext}$major'
8922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 shlibpath_overrides_runpath=no
8925 # This implies no fast_install, which is unacceptable.
8926 # Some rework will be needed to allow for fast_install
8927 # before this can be enabled.
8928 hardcode_into_libs=yes
8930 # Append ld.so.conf contents to the search path
8931 if test -f /etc/ld.so.conf; then
8932 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8936 # We used to test for /lib/ld.so.1 and disable shared libraries on
8937 # powerpc, because MkLinux only supported shared libraries with the
8938 # GNU dynamic linker. Since this was broken with cross compilers,
8939 # most powerpc-linux boxes support dynamic linking these days and
8940 # people can always --disable-shared, the test was removed, and we
8941 # assume the GNU/Linux dynamic linker is in use.
8942 dynamic_linker='GNU/Linux ld.so'
8949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8950 soname_spec='${libname}${release}${shared_ext}$major'
8951 shlibpath_var=LD_LIBRARY_PATH
8952 shlibpath_overrides_runpath=no
8953 hardcode_into_libs=yes
8954 dynamic_linker='GNU ld.so'
8961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8964 dynamic_linker='NetBSD (a.out) ld.so'
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 dynamic_linker='NetBSD ld.elf_so'
8970 shlibpath_var=LD_LIBRARY_PATH
8971 shlibpath_overrides_runpath=yes
8972 hardcode_into_libs=yes
8977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 shlibpath_overrides_runpath=yes
8986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987 soname_spec='${libname}${release}${shared_ext}$major'
8988 shlibpath_var=LD_LIBRARY_PATH
8989 shlibpath_overrides_runpath=yes
8995 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8997 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8998 *) need_version=no ;;
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9005 openbsd2.[89] | openbsd2.[89].*)
9006 shlibpath_overrides_runpath=no
9009 shlibpath_overrides_runpath=yes
9013 shlibpath_overrides_runpath=yes
9018 libname_spec='$name'
9021 library_names_spec='$libname${shared_ext} $libname.a'
9022 dynamic_linker='OS/2 ld.exe'
9023 shlibpath_var=LIBPATH
9026 osf3* | osf4* | osf5*)
9030 soname_spec='${libname}${release}${shared_ext}$major'
9031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9032 shlibpath_var=LD_LIBRARY_PATH
9033 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9034 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9041 shlibpath_var=LD_LIBRARY_PATH
9048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9049 soname_spec='${libname}${release}${shared_ext}$major'
9050 shlibpath_var=LD_LIBRARY_PATH
9051 shlibpath_overrides_runpath=yes
9052 hardcode_into_libs=yes
9053 # ldd complains unless libraries are executable
9054 postinstall_cmds='chmod +x $lib'
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9060 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9061 shlibpath_var=LD_LIBRARY_PATH
9062 shlibpath_overrides_runpath=yes
9063 if test "$with_gnu_ld" = yes; then
9069 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 shlibpath_var=LD_LIBRARY_PATH
9074 case $host_vendor in
9076 shlibpath_overrides_runpath=no
9078 export_dynamic_flag_spec='${wl}-Blargedynsym'
9079 runpath_var=LD_RUN_PATH
9087 shlibpath_overrides_runpath=no
9088 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9094 if test -d /usr/nec ;then
9096 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9097 soname_spec='$libname${shared_ext}.$major'
9098 shlibpath_var=LD_LIBRARY_PATH
9104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9105 soname_spec='${libname}${release}${shared_ext}$major'
9106 shlibpath_var=LD_LIBRARY_PATH
9113 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9114 echo "${ECHO_T}$dynamic_linker" >&6; }
9115 test "$dynamic_linker" = no && can_build_shared=no
9117 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9118 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9120 if test -n "$hardcode_libdir_flag_spec" || \
9121 test -n "$runpath_var" || \
9122 test "X$hardcode_automatic" = "Xyes" ; then
9124 # We can hardcode non-existant directories.
9125 if test "$hardcode_direct" != no &&
9126 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9127 # have to relink, otherwise we might link with an installed library
9128 # when we should be linking with a yet-to-be-installed one
9129 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9130 test "$hardcode_minus_L" != no; then
9131 # Linking always hardcodes the temporary library directory.
9132 hardcode_action=relink
9134 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9135 hardcode_action=immediate
9138 # We cannot hardcode anything, or else we can only hardcode existing
9140 hardcode_action=unsupported
9142 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9143 echo "${ECHO_T}$hardcode_action" >&6; }
9145 if test "$hardcode_action" = relink; then
9146 # Fast installation is not supported
9147 enable_fast_install=no
9148 elif test "$shlibpath_overrides_runpath" = yes ||
9149 test "$enable_shared" = no; then
9150 # Fast installation is not necessary
9151 enable_fast_install=needless
9156 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9157 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9158 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9159 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9160 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9161 { echo "$as_me:$LINENO: result: yes" >&5
9162 echo "${ECHO_T}yes" >&6; }
9164 # FIXME - insert some real tests, host_os isn't really good enough
9167 if test -n "$STRIP" ; then
9168 striplib="$STRIP -x"
9169 { echo "$as_me:$LINENO: result: yes" >&5
9170 echo "${ECHO_T}yes" >&6; }
9172 { echo "$as_me:$LINENO: result: no" >&5
9173 echo "${ECHO_T}no" >&6; }
9177 { echo "$as_me:$LINENO: result: no" >&5
9178 echo "${ECHO_T}no" >&6; }
9183 if test "x$enable_dlopen" != xyes; then
9184 enable_dlopen=unknown
9185 enable_dlopen_self=unknown
9186 enable_dlopen_self_static=unknown
9193 lt_cv_dlopen="load_add_on"
9195 lt_cv_dlopen_self=yes
9199 lt_cv_dlopen="LoadLibrary"
9204 lt_cv_dlopen="dlopen"
9209 # if libdl is installed we need to link against it
9210 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9211 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9212 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 ac_check_lib_save_LIBS=$LIBS
9217 cat >conftest.$ac_ext <<_ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9224 /* Override any GCC internal prototype to avoid an error.
9225 Use char because int might match the return type of a GCC
9226 builtin and then its argument prototype would still apply. */
9239 rm -f conftest.$ac_objext conftest$ac_exeext
9240 if { (ac_try="$ac_link"
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_link") 2>conftest.er1
9248 grep -v '^ *+' conftest.er1 >conftest.err
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } && {
9253 test -z "$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9255 } && test -s conftest$ac_exeext &&
9256 $as_test_x conftest$ac_exeext; then
9257 ac_cv_lib_dl_dlopen=yes
9259 echo "$as_me: failed program was:" >&5
9260 sed 's/^/| /' conftest.$ac_ext >&5
9262 ac_cv_lib_dl_dlopen=no
9265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9266 conftest$ac_exeext conftest.$ac_ext
9267 LIBS=$ac_check_lib_save_LIBS
9269 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9270 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9271 if test $ac_cv_lib_dl_dlopen = yes; then
9272 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9277 lt_cv_dlopen_self=yes
9284 { echo "$as_me:$LINENO: checking for shl_load" >&5
9285 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9286 if test "${ac_cv_func_shl_load+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 cat >conftest.$ac_ext <<_ACEOF
9292 cat confdefs.h >>conftest.$ac_ext
9293 cat >>conftest.$ac_ext <<_ACEOF
9294 /* end confdefs.h. */
9295 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9297 #define shl_load innocuous_shl_load
9299 /* System header to define __stub macros and hopefully few prototypes,
9300 which can conflict with char shl_load (); below.
9301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9302 <limits.h> exists even on freestanding compilers. */
9305 # include <limits.h>
9307 # include <assert.h>
9312 /* Override any GCC internal prototype to avoid an error.
9313 Use char because int might match the return type of a GCC
9314 builtin and then its argument prototype would still apply. */
9319 /* The GNU C library defines this for functions which it implements
9320 to always fail with ENOSYS. Some functions are actually named
9321 something starting with __ and the normal name is an alias. */
9322 #if defined __stub_shl_load || defined __stub___shl_load
9334 rm -f conftest.$ac_objext conftest$ac_exeext
9335 if { (ac_try="$ac_link"
9337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9338 *) ac_try_echo=$ac_try;;
9340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9341 (eval "$ac_link") 2>conftest.er1
9343 grep -v '^ *+' conftest.er1 >conftest.err
9345 cat conftest.err >&5
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); } && {
9348 test -z "$ac_c_werror_flag" ||
9349 test ! -s conftest.err
9350 } && test -s conftest$ac_exeext &&
9351 $as_test_x conftest$ac_exeext; then
9352 ac_cv_func_shl_load=yes
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.$ac_ext >&5
9357 ac_cv_func_shl_load=no
9360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9361 conftest$ac_exeext conftest.$ac_ext
9363 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9364 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9365 if test $ac_cv_func_shl_load = yes; then
9366 lt_cv_dlopen="shl_load"
9368 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9369 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9370 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9373 ac_check_lib_save_LIBS=$LIBS
9375 cat >conftest.$ac_ext <<_ACEOF
9378 cat confdefs.h >>conftest.$ac_ext
9379 cat >>conftest.$ac_ext <<_ACEOF
9380 /* end confdefs.h. */
9382 /* Override any GCC internal prototype to avoid an error.
9383 Use char because int might match the return type of a GCC
9384 builtin and then its argument prototype would still apply. */
9397 rm -f conftest.$ac_objext conftest$ac_exeext
9398 if { (ac_try="$ac_link"
9400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9401 *) ac_try_echo=$ac_try;;
9403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9404 (eval "$ac_link") 2>conftest.er1
9406 grep -v '^ *+' conftest.er1 >conftest.err
9408 cat conftest.err >&5
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); } && {
9411 test -z "$ac_c_werror_flag" ||
9412 test ! -s conftest.err
9413 } && test -s conftest$ac_exeext &&
9414 $as_test_x conftest$ac_exeext; then
9415 ac_cv_lib_dld_shl_load=yes
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9420 ac_cv_lib_dld_shl_load=no
9423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9424 conftest$ac_exeext conftest.$ac_ext
9425 LIBS=$ac_check_lib_save_LIBS
9427 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9428 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9429 if test $ac_cv_lib_dld_shl_load = yes; then
9430 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9432 { echo "$as_me:$LINENO: checking for dlopen" >&5
9433 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9434 if test "${ac_cv_func_dlopen+set}" = set; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 cat >conftest.$ac_ext <<_ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h. */
9443 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9445 #define dlopen innocuous_dlopen
9447 /* System header to define __stub macros and hopefully few prototypes,
9448 which can conflict with char dlopen (); below.
9449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9450 <limits.h> exists even on freestanding compilers. */
9453 # include <limits.h>
9455 # include <assert.h>
9460 /* Override any GCC internal prototype to avoid an error.
9461 Use char because int might match the return type of a GCC
9462 builtin and then its argument prototype would still apply. */
9467 /* The GNU C library defines this for functions which it implements
9468 to always fail with ENOSYS. Some functions are actually named
9469 something starting with __ and the normal name is an alias. */
9470 #if defined __stub_dlopen || defined __stub___dlopen
9482 rm -f conftest.$ac_objext conftest$ac_exeext
9483 if { (ac_try="$ac_link"
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_link") 2>conftest.er1
9491 grep -v '^ *+' conftest.er1 >conftest.err
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } && {
9496 test -z "$ac_c_werror_flag" ||
9497 test ! -s conftest.err
9498 } && test -s conftest$ac_exeext &&
9499 $as_test_x conftest$ac_exeext; then
9500 ac_cv_func_dlopen=yes
9502 echo "$as_me: failed program was:" >&5
9503 sed 's/^/| /' conftest.$ac_ext >&5
9505 ac_cv_func_dlopen=no
9508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9509 conftest$ac_exeext conftest.$ac_ext
9511 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9512 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9513 if test $ac_cv_func_dlopen = yes; then
9514 lt_cv_dlopen="dlopen"
9516 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9517 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9518 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 ac_check_lib_save_LIBS=$LIBS
9523 cat >conftest.$ac_ext <<_ACEOF
9526 cat confdefs.h >>conftest.$ac_ext
9527 cat >>conftest.$ac_ext <<_ACEOF
9528 /* end confdefs.h. */
9530 /* Override any GCC internal prototype to avoid an error.
9531 Use char because int might match the return type of a GCC
9532 builtin and then its argument prototype would still apply. */
9545 rm -f conftest.$ac_objext conftest$ac_exeext
9546 if { (ac_try="$ac_link"
9548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9549 *) ac_try_echo=$ac_try;;
9551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9552 (eval "$ac_link") 2>conftest.er1
9554 grep -v '^ *+' conftest.er1 >conftest.err
9556 cat conftest.err >&5
9557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558 (exit $ac_status); } && {
9559 test -z "$ac_c_werror_flag" ||
9560 test ! -s conftest.err
9561 } && test -s conftest$ac_exeext &&
9562 $as_test_x conftest$ac_exeext; then
9563 ac_cv_lib_dl_dlopen=yes
9565 echo "$as_me: failed program was:" >&5
9566 sed 's/^/| /' conftest.$ac_ext >&5
9568 ac_cv_lib_dl_dlopen=no
9571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9572 conftest$ac_exeext conftest.$ac_ext
9573 LIBS=$ac_check_lib_save_LIBS
9575 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9576 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9577 if test $ac_cv_lib_dl_dlopen = yes; then
9578 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9580 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9581 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9582 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 ac_check_lib_save_LIBS=$LIBS
9587 cat >conftest.$ac_ext <<_ACEOF
9590 cat confdefs.h >>conftest.$ac_ext
9591 cat >>conftest.$ac_ext <<_ACEOF
9592 /* end confdefs.h. */
9594 /* Override any GCC internal prototype to avoid an error.
9595 Use char because int might match the return type of a GCC
9596 builtin and then its argument prototype would still apply. */
9609 rm -f conftest.$ac_objext conftest$ac_exeext
9610 if { (ac_try="$ac_link"
9612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9613 *) ac_try_echo=$ac_try;;
9615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9616 (eval "$ac_link") 2>conftest.er1
9618 grep -v '^ *+' conftest.er1 >conftest.err
9620 cat conftest.err >&5
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); } && {
9623 test -z "$ac_c_werror_flag" ||
9624 test ! -s conftest.err
9625 } && test -s conftest$ac_exeext &&
9626 $as_test_x conftest$ac_exeext; then
9627 ac_cv_lib_svld_dlopen=yes
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9632 ac_cv_lib_svld_dlopen=no
9635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9636 conftest$ac_exeext conftest.$ac_ext
9637 LIBS=$ac_check_lib_save_LIBS
9639 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9640 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9641 if test $ac_cv_lib_svld_dlopen = yes; then
9642 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9644 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9645 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9646 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 ac_check_lib_save_LIBS=$LIBS
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9658 /* Override any GCC internal prototype to avoid an error.
9659 Use char because int might match the return type of a GCC
9660 builtin and then its argument prototype would still apply. */
9673 rm -f conftest.$ac_objext conftest$ac_exeext
9674 if { (ac_try="$ac_link"
9676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext &&
9690 $as_test_x conftest$ac_exeext; then
9691 ac_cv_lib_dld_dld_link=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_cv_lib_dld_dld_link=no
9699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700 conftest$ac_exeext conftest.$ac_ext
9701 LIBS=$ac_check_lib_save_LIBS
9703 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9704 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9705 if test $ac_cv_lib_dld_dld_link = yes; then
9706 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9727 if test "x$lt_cv_dlopen" != xno; then
9733 case $lt_cv_dlopen in
9735 save_CPPFLAGS="$CPPFLAGS"
9736 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9738 save_LDFLAGS="$LDFLAGS"
9739 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9742 LIBS="$lt_cv_dlopen_libs $LIBS"
9744 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9745 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9746 if test "${lt_cv_dlopen_self+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
9749 if test "$cross_compiling" = yes; then :
9750 lt_cv_dlopen_self=cross
9752 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9753 lt_status=$lt_dlunknown
9754 cat > conftest.$ac_ext <<EOF
9755 #line 9755 "configure"
9756 #include "confdefs.h"
9765 # define LT_DLGLOBAL RTLD_GLOBAL
9768 # define LT_DLGLOBAL DL_GLOBAL
9770 # define LT_DLGLOBAL 0
9774 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9775 find out it does not work in some platform. */
9776 #ifndef LT_DLLAZY_OR_NOW
9778 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9781 # define LT_DLLAZY_OR_NOW DL_LAZY
9784 # define LT_DLLAZY_OR_NOW RTLD_NOW
9787 # define LT_DLLAZY_OR_NOW DL_NOW
9789 # define LT_DLLAZY_OR_NOW 0
9797 extern "C" void exit (int);
9800 void fnord() { int i=42;}
9803 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9804 int status = $lt_dlunknown;
9808 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9809 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9810 /* dlclose (self); */
9816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9817 (eval $ac_link) 2>&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9821 (./conftest; exit; ) 2>/dev/null
9824 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9825 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9826 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9829 # compilation failed
9830 lt_cv_dlopen_self=no
9837 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9838 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9840 if test "x$lt_cv_dlopen_self" = xyes; then
9841 LDFLAGS="$LDFLAGS $link_static_flag"
9842 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9843 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9844 if test "${lt_cv_dlopen_self_static+set}" = set; then
9845 echo $ECHO_N "(cached) $ECHO_C" >&6
9847 if test "$cross_compiling" = yes; then :
9848 lt_cv_dlopen_self_static=cross
9850 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9851 lt_status=$lt_dlunknown
9852 cat > conftest.$ac_ext <<EOF
9853 #line 9853 "configure"
9854 #include "confdefs.h"
9863 # define LT_DLGLOBAL RTLD_GLOBAL
9866 # define LT_DLGLOBAL DL_GLOBAL
9868 # define LT_DLGLOBAL 0
9872 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9873 find out it does not work in some platform. */
9874 #ifndef LT_DLLAZY_OR_NOW
9876 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9879 # define LT_DLLAZY_OR_NOW DL_LAZY
9882 # define LT_DLLAZY_OR_NOW RTLD_NOW
9885 # define LT_DLLAZY_OR_NOW DL_NOW
9887 # define LT_DLLAZY_OR_NOW 0
9895 extern "C" void exit (int);
9898 void fnord() { int i=42;}
9901 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9902 int status = $lt_dlunknown;
9906 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9907 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9908 /* dlclose (self); */
9914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9915 (eval $ac_link) 2>&5
9917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9918 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9919 (./conftest; exit; ) 2>/dev/null
9922 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9923 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9924 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9927 # compilation failed
9928 lt_cv_dlopen_self_static=no
9935 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9936 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9939 CPPFLAGS="$save_CPPFLAGS"
9940 LDFLAGS="$save_LDFLAGS"
9945 case $lt_cv_dlopen_self in
9946 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9947 *) enable_dlopen_self=unknown ;;
9950 case $lt_cv_dlopen_self_static in
9951 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9952 *) enable_dlopen_self_static=unknown ;;
9957 # Report which librarie types wil actually be built
9958 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9959 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9960 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9961 echo "${ECHO_T}$can_build_shared" >&6; }
9963 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9964 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9965 test "$can_build_shared" = "no" && enable_shared=no
9967 # On AIX, shared libraries and static libraries use the same namespace, and
9968 # are all built from PIC.
9971 test "$enable_shared" = yes && enable_static=no
9972 if test -n "$RANLIB"; then
9973 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9974 postinstall_cmds='$RANLIB $lib'
9979 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9980 test "$enable_shared" = yes && enable_static=no
9984 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9985 echo "${ECHO_T}$enable_shared" >&6; }
9987 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9988 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9989 # Make sure either enable_shared or enable_static is yes.
9990 test "$enable_shared" = yes || enable_static=yes
9991 { echo "$as_me:$LINENO: result: $enable_static" >&5
9992 echo "${ECHO_T}$enable_static" >&6; }
9994 # The else clause should only fire when bootstrapping the
9995 # libtool distribution, otherwise you forgot to ship ltmain.sh
9996 # with your package, and you will get complaints that there are
9997 # no rules to generate ltmain.sh.
9998 if test -f "$ltmain"; then
9999 # See if we are running on zsh, and set the options which allow our commands through
10000 # without removal of \ escapes.
10001 if test -n "${ZSH_VERSION+set}" ; then
10002 setopt NO_GLOB_SUBST
10004 # Now quote all the things that may contain metacharacters while being
10005 # careful not to overquote the AC_SUBSTed values. We take copies of the
10006 # variables and quote the copies for generation of the libtool script.
10007 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
10009 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10010 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10011 deplibs_check_method reload_flag reload_cmds need_locks \
10012 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10013 lt_cv_sys_global_symbol_to_c_name_address \
10014 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10015 old_postinstall_cmds old_postuninstall_cmds \
10019 lt_prog_compiler_wl \
10020 lt_prog_compiler_pic \
10021 lt_prog_compiler_static \
10022 lt_prog_compiler_no_builtin_flag \
10023 export_dynamic_flag_spec \
10024 thread_safe_flag_spec \
10025 whole_archive_flag_spec \
10026 enable_shared_with_static_runtimes \
10028 old_archive_from_new_cmds \
10033 compiler_lib_search_path \
10035 archive_expsym_cmds \
10037 postuninstall_cmds \
10038 old_archive_from_expsyms_cmds \
10039 allow_undefined_flag \
10040 no_undefined_flag \
10041 export_symbols_cmds \
10042 hardcode_libdir_flag_spec \
10043 hardcode_libdir_flag_spec_ld \
10044 hardcode_libdir_separator \
10045 hardcode_automatic \
10047 module_expsym_cmds \
10048 lt_cv_prog_compiler_c_o \
10050 include_expsyms; do
10053 old_archive_cmds | \
10054 old_archive_from_new_cmds | \
10056 archive_expsym_cmds | \
10058 module_expsym_cmds | \
10059 old_archive_from_expsyms_cmds | \
10060 export_symbols_cmds | \
10061 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10062 postinstall_cmds | postuninstall_cmds | \
10063 old_postinstall_cmds | old_postuninstall_cmds | \
10064 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10065 # Double-quote double-evaled strings.
10066 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10069 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10075 *'\$0 --fallback-echo"')
10076 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10080 cfgfile="${ofile}T"
10081 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10083 { echo "$as_me:$LINENO: creating $ofile" >&5
10084 echo "$as_me: creating $ofile" >&6;}
10086 cat <<__EOF__ >> "$cfgfile"
10089 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10090 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10091 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10093 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10094 # Free Software Foundation, Inc.
10096 # This file is part of GNU Libtool:
10097 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10099 # This program is free software; you can redistribute it and/or modify
10100 # it under the terms of the GNU General Public License as published by
10101 # the Free Software Foundation; either version 2 of the License, or
10102 # (at your option) any later version.
10104 # This program is distributed in the hope that it will be useful, but
10105 # WITHOUT ANY WARRANTY; without even the implied warranty of
10106 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10107 # General Public License for more details.
10109 # You should have received a copy of the GNU General Public License
10110 # along with this program; if not, write to the Free Software
10111 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10113 # As a special exception to the GNU General Public License, if you
10114 # distribute this file as part of a program that contains a
10115 # configuration script generated by Autoconf, you may include it under
10116 # the same distribution terms that you use for the rest of that program.
10118 # A sed program that does not truncate output.
10121 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10122 Xsed="$SED -e 1s/^X//"
10124 # The HP-UX ksh and POSIX shell print the target directory to stdout
10125 # if CDPATH is set.
10126 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10128 # The names of the tagged configurations supported by this script.
10131 # ### BEGIN LIBTOOL CONFIG
10133 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10135 # Shell to use when invoking shell scripts.
10138 # Whether or not to build shared libraries.
10139 build_libtool_libs=$enable_shared
10141 # Whether or not to build static libraries.
10142 build_old_libs=$enable_static
10144 # Whether or not to add -lc for building shared libraries.
10145 build_libtool_need_lc=$archive_cmds_need_lc
10147 # Whether or not to disallow shared libs when runtime libs are static
10148 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10150 # Whether or not to optimize for fast installation.
10151 fast_install=$enable_fast_install
10154 host_alias=$host_alias
10158 # The build system.
10159 build_alias=$build_alias
10163 # An echo program that does not interpret backslashes.
10168 AR_FLAGS=$lt_AR_FLAGS
10173 # A language-specific compiler.
10176 # Is the compiler the GNU C compiler?
10182 # The linker used to build libraries.
10185 # Whether we need hard or soft links.
10188 # A BSD-compatible nm program.
10191 # A symbol stripping program
10194 # Used to examine libraries when file_magic_cmd begins "file"
10195 MAGIC_CMD=$MAGIC_CMD
10197 # Used on cygwin: DLL creation program.
10200 # Used on cygwin: object dumper.
10203 # Used on cygwin: assembler.
10206 # The name of the directory that contains temporary libtool files.
10209 # How to create reloadable object files.
10210 reload_flag=$lt_reload_flag
10211 reload_cmds=$lt_reload_cmds
10213 # How to pass a linker flag through the compiler.
10214 wl=$lt_lt_prog_compiler_wl
10216 # Object file suffix (normally "o").
10217 objext="$ac_objext"
10219 # Old archive suffix (normally "a").
10222 # Shared library suffix (normally ".so").
10223 shrext_cmds='$shrext_cmds'
10225 # Executable file suffix (normally "").
10228 # Additional compiler flags for building library objects.
10229 pic_flag=$lt_lt_prog_compiler_pic
10232 # What is the maximum length of a command?
10233 max_cmd_len=$lt_cv_sys_max_cmd_len
10235 # Does compiler simultaneously support -c and -o options?
10236 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10238 # Must we lock files when doing compilation?
10239 need_locks=$lt_need_locks
10241 # Do we need the lib prefix for modules?
10242 need_lib_prefix=$need_lib_prefix
10244 # Do we need a version for libraries?
10245 need_version=$need_version
10247 # Whether dlopen is supported.
10248 dlopen_support=$enable_dlopen
10250 # Whether dlopen of programs is supported.
10251 dlopen_self=$enable_dlopen_self
10253 # Whether dlopen of statically linked programs is supported.
10254 dlopen_self_static=$enable_dlopen_self_static
10256 # Compiler flag to prevent dynamic linking.
10257 link_static_flag=$lt_lt_prog_compiler_static
10259 # Compiler flag to turn off builtin functions.
10260 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10262 # Compiler flag to allow reflexive dlopens.
10263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10265 # Compiler flag to generate shared objects directly from archives.
10266 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10268 # Compiler flag to generate thread-safe objects.
10269 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10271 # Library versioning type.
10272 version_type=$version_type
10274 # Format of library name prefix.
10275 libname_spec=$lt_libname_spec
10277 # List of archive names. First name is the real one, the rest are links.
10278 # The last name is the one that the linker finds with -lNAME.
10279 library_names_spec=$lt_library_names_spec
10281 # The coded name of the library, if different from the real name.
10282 soname_spec=$lt_soname_spec
10284 # Commands used to build and install an old-style archive.
10286 old_archive_cmds=$lt_old_archive_cmds
10287 old_postinstall_cmds=$lt_old_postinstall_cmds
10288 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10290 # Create an old-style archive from a shared archive.
10291 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10293 # Create a temporary old-style archive to link instead of a shared archive.
10294 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10296 # Commands used to build and install a shared archive.
10297 archive_cmds=$lt_archive_cmds
10298 archive_expsym_cmds=$lt_archive_expsym_cmds
10299 postinstall_cmds=$lt_postinstall_cmds
10300 postuninstall_cmds=$lt_postuninstall_cmds
10302 # Commands used to build a loadable module (assumed same as above if empty)
10303 module_cmds=$lt_module_cmds
10304 module_expsym_cmds=$lt_module_expsym_cmds
10306 # Commands to strip libraries.
10307 old_striplib=$lt_old_striplib
10308 striplib=$lt_striplib
10310 # Dependencies to place before the objects being linked to create a
10312 predep_objects=$lt_predep_objects
10314 # Dependencies to place after the objects being linked to create a
10316 postdep_objects=$lt_postdep_objects
10318 # Dependencies to place before the objects being linked to create a
10320 predeps=$lt_predeps
10322 # Dependencies to place after the objects being linked to create a
10324 postdeps=$lt_postdeps
10326 # The library search path used internally by the compiler when linking
10327 # a shared library.
10328 compiler_lib_search_path=$lt_compiler_lib_search_path
10330 # Method to check whether dependent libraries are shared objects.
10331 deplibs_check_method=$lt_deplibs_check_method
10333 # Command to use when deplibs_check_method == file_magic.
10334 file_magic_cmd=$lt_file_magic_cmd
10336 # Flag that allows shared libraries with undefined symbols to be built.
10337 allow_undefined_flag=$lt_allow_undefined_flag
10339 # Flag that forces no undefined symbols.
10340 no_undefined_flag=$lt_no_undefined_flag
10342 # Commands used to finish a libtool library installation in a directory.
10343 finish_cmds=$lt_finish_cmds
10345 # Same as above, but a single script fragment to be evaled but not shown.
10346 finish_eval=$lt_finish_eval
10348 # Take the output of nm and produce a listing of raw symbols and C names.
10349 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10351 # Transform the output of nm in a proper C declaration
10352 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10354 # Transform the output of nm in a C name address pair
10355 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10357 # This is the shared library runtime path variable.
10358 runpath_var=$runpath_var
10360 # This is the shared library path variable.
10361 shlibpath_var=$shlibpath_var
10363 # Is shlibpath searched before the hard-coded library search path?
10364 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10366 # How to hardcode a shared library path into an executable.
10367 hardcode_action=$hardcode_action
10369 # Whether we should hardcode library paths into libraries.
10370 hardcode_into_libs=$hardcode_into_libs
10372 # Flag to hardcode \$libdir into a binary during linking.
10373 # This must work even if \$libdir does not exist.
10374 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10376 # If ld is used when linking, flag to hardcode \$libdir into
10377 # a binary during linking. This must work even if \$libdir does
10379 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10381 # Whether we need a single -rpath flag with a separated argument.
10382 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10384 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10385 # resulting binary.
10386 hardcode_direct=$hardcode_direct
10388 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10389 # resulting binary.
10390 hardcode_minus_L=$hardcode_minus_L
10392 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10393 # the resulting binary.
10394 hardcode_shlibpath_var=$hardcode_shlibpath_var
10396 # Set to yes if building a shared library automatically hardcodes DIR into the library
10397 # and all subsequent libraries and executables linked against it.
10398 hardcode_automatic=$hardcode_automatic
10400 # Variables whose values should be saved in libtool wrapper scripts and
10401 # restored at relink time.
10402 variables_saved_for_relink="$variables_saved_for_relink"
10404 # Whether libtool must link a program against all its dependency libraries.
10405 link_all_deplibs=$link_all_deplibs
10407 # Compile-time system search path for libraries
10408 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10410 # Run-time system search path for libraries
10411 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10413 # Fix the shell variable \$srcfile for the compiler.
10414 fix_srcfile_path="$fix_srcfile_path"
10416 # Set to yes if exported symbols are required.
10417 always_export_symbols=$always_export_symbols
10419 # The commands to list exported symbols.
10420 export_symbols_cmds=$lt_export_symbols_cmds
10422 # The commands to extract the exported symbol list from a shared archive.
10423 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10425 # Symbols that should not be listed in the preloaded symbols.
10426 exclude_expsyms=$lt_exclude_expsyms
10428 # Symbols that must always be exported.
10429 include_expsyms=$lt_include_expsyms
10431 # ### END LIBTOOL CONFIG
10438 cat <<\EOF >> "$cfgfile"
10440 # AIX sometimes has problems with the GCC collect2 program. For some
10441 # reason, if we set the COLLECT_NAMES environment variable, the problems
10442 # vanish in a puff of smoke.
10443 if test "X${COLLECT_NAMES+set}" != Xset; then
10445 export COLLECT_NAMES
10451 # We use sed instead of cat because bash on DJGPP gets confused if
10452 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10453 # text mode, it properly converts lines to CR/LF. This bash problem
10454 # is reportedly fixed, but why not run on old versions too?
10455 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10457 mv -f "$cfgfile" "$ofile" || \
10458 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10462 # If there is no Makefile yet, we rely on a make rule to execute
10463 # `config.status --recheck' to rerun these tests and create the
10464 # libtool script then.
10465 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10466 if test -f "$ltmain_in"; then
10467 test -f Makefile && make "$ltmain"
10473 ac_cpp='$CPP $CPPFLAGS'
10474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10481 # Check whether --with-tags was given.
10482 if test "${with_tags+set}" = set; then
10483 withval=$with_tags; tagnames="$withval"
10487 if test -f "$ltmain" && test -n "$tagnames"; then
10488 if test ! -f "${ofile}"; then
10489 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10490 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10493 if test -z "$LTCC"; then
10494 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10495 if test -z "$LTCC"; then
10496 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10497 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10499 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10500 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10504 # Extract list of available tagged configurations in $ofile.
10505 # Note that this assumes the entire list is on one line.
10506 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10508 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10509 for tagname in $tagnames; do
10511 # Check whether tagname contains only valid characters
10512 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10514 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10515 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10516 { (exit 1); exit 1; }; }
10520 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10522 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10523 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10524 { (exit 1); exit 1; }; }
10527 # Update the list of available tags.
10528 if test -n "$tagname"; then
10529 echo appending configuration tag \"$tagname\" to $ofile
10533 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10534 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10535 (test "X$CXX" != "Xg++"))) ; then
10537 ac_cpp='$CXXCPP $CPPFLAGS'
10538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10545 archive_cmds_need_lc_CXX=no
10546 allow_undefined_flag_CXX=
10547 always_export_symbols_CXX=no
10548 archive_expsym_cmds_CXX=
10549 export_dynamic_flag_spec_CXX=
10550 hardcode_direct_CXX=no
10551 hardcode_libdir_flag_spec_CXX=
10552 hardcode_libdir_flag_spec_ld_CXX=
10553 hardcode_libdir_separator_CXX=
10554 hardcode_minus_L_CXX=no
10555 hardcode_automatic_CXX=no
10557 module_expsym_cmds_CXX=
10558 link_all_deplibs_CXX=unknown
10559 old_archive_cmds_CXX=$old_archive_cmds
10560 no_undefined_flag_CXX=
10561 whole_archive_flag_spec_CXX=
10562 enable_shared_with_static_runtimes_CXX=no
10564 # Dependencies to place before and after the object being linked:
10565 predep_objects_CXX=
10566 postdep_objects_CXX=
10569 compiler_lib_search_path_CXX=
10571 # Source file extension for C++ test sources.
10574 # Object file extension for compiled C++ test sources.
10578 # Code to be used in simple compile tests
10579 lt_simple_compile_test_code="int some_variable = 0;\n"
10581 # Code to be used in simple link tests
10582 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
10584 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10586 # If no C compiler was specified, use CC.
10589 # Allow CC to be a program name with arguments.
10593 # save warnings/boilerplate of simple test code
10594 ac_outfile=conftest.$ac_objext
10595 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10596 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10597 _lt_compiler_boilerplate=`cat conftest.err`
10600 ac_outfile=conftest.$ac_objext
10601 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10602 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
10603 _lt_linker_boilerplate=`cat conftest.err`
10607 # Allow CC to be a program name with arguments.
10612 lt_save_with_gnu_ld=$with_gnu_ld
10613 lt_save_path_LD=$lt_cv_path_LD
10614 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10615 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10617 unset lt_cv_prog_gnu_ld
10619 if test -n "${lt_cv_path_LDCXX+set}"; then
10620 lt_cv_path_LD=$lt_cv_path_LDCXX
10622 unset lt_cv_path_LD
10624 test -z "${LDCXX+set}" || LD=$LDCXX
10628 for cc_temp in $compiler""; do
10630 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10631 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10636 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10639 # We don't want -fno-exception wen compiling C++ code, so set the
10640 # no_builtin_flag separately
10641 if test "$GXX" = yes; then
10642 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10644 lt_prog_compiler_no_builtin_flag_CXX=
10647 if test "$GXX" = yes; then
10648 # Set up default GNU C++ configuration
10651 # Check whether --with-gnu-ld was given.
10652 if test "${with_gnu_ld+set}" = set; then
10653 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10659 if test "$GCC" = yes; then
10660 # Check if gcc -print-prog-name=ld gives a path.
10661 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10662 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10665 # gcc leaves a trailing carriage return which upsets mingw
10666 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10668 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10671 # Accept absolute paths.
10673 re_direlt='/[^/][^/]*/\.\./'
10674 # Canonicalize the pathname of ld
10675 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10676 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10677 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10679 test -z "$LD" && LD="$ac_prog"
10682 # If it fails, then pretend we aren't using GCC.
10686 # If it is relative, then search for the first ld in PATH.
10687 with_gnu_ld=unknown
10690 elif test "$with_gnu_ld" = yes; then
10691 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10692 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10694 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10695 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10697 if test "${lt_cv_path_LD+set}" = set; then
10698 echo $ECHO_N "(cached) $ECHO_C" >&6
10700 if test -z "$LD"; then
10701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10702 for ac_dir in $PATH; do
10704 test -z "$ac_dir" && ac_dir=.
10705 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10706 lt_cv_path_LD="$ac_dir/$ac_prog"
10707 # Check to see if the program is GNU ld. I'd rather use --version,
10708 # but apparently some GNU ld's only accept -v.
10709 # Break only if it was the GNU/non-GNU ld that we prefer.
10710 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10711 *GNU* | *'with BFD'*)
10712 test "$with_gnu_ld" != no && break
10715 test "$with_gnu_ld" != yes && break
10722 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10726 LD="$lt_cv_path_LD"
10727 if test -n "$LD"; then
10728 { echo "$as_me:$LINENO: result: $LD" >&5
10729 echo "${ECHO_T}$LD" >&6; }
10731 { echo "$as_me:$LINENO: result: no" >&5
10732 echo "${ECHO_T}no" >&6; }
10734 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10735 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10736 { (exit 1); exit 1; }; }
10737 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10738 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10739 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10743 case `$LD -v 2>&1 </dev/null` in
10744 *GNU* | *'with BFD'*)
10745 lt_cv_prog_gnu_ld=yes
10748 lt_cv_prog_gnu_ld=no
10752 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10753 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10754 with_gnu_ld=$lt_cv_prog_gnu_ld
10758 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10759 # archiving commands below assume that GNU ld is being used.
10760 if test "$with_gnu_ld" = yes; then
10761 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10762 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'
10764 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10767 # If archive_cmds runs LD, not CC, wlarc should be empty
10768 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10769 # investigate it a little bit more. (MM)
10772 # ancient GNU ld didn't support --whole-archive et. al.
10773 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10774 grep 'no-whole-archive' > /dev/null; then
10775 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10777 whole_archive_flag_spec_CXX=
10783 # A generic and very simple default shared library creation
10784 # command for GNU C++ for the case where it uses the native
10785 # linker, instead of GNU ld. If possible, this setting should
10786 # overridden to take advantage of the native linker features on
10787 # the platform it is being used on.
10788 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10791 # Commands to make compiler produce verbose output that lists
10792 # what "hidden" libraries, object files and flags are used when
10793 # linking a shared library.
10794 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10802 # PORTME: fill in a description of your system's C++ link characteristics
10803 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10808 # FIXME: insert proper C++ library support
10812 if test "$host_cpu" = ia64; then
10813 # On IA64, the linker does run time linking by default, so we don't
10814 # have to do anything special.
10815 aix_use_runtimelinking=no
10816 exp_sym_flag='-Bexport'
10819 aix_use_runtimelinking=no
10821 # Test if we are trying to use run time linking or normal
10822 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10823 # need to do runtime linking.
10824 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10825 for ld_flag in $LDFLAGS; do
10828 aix_use_runtimelinking=yes
10835 exp_sym_flag='-bexport'
10836 no_entry_flag='-bnoentry'
10839 # When large executables or shared objects are built, AIX ld can
10840 # have problems creating the table of contents. If linking a library
10841 # or program results in "error TOC overflow" add -mminimal-toc to
10842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10845 archive_cmds_CXX=''
10846 hardcode_direct_CXX=yes
10847 hardcode_libdir_separator_CXX=':'
10848 link_all_deplibs_CXX=yes
10850 if test "$GXX" = yes; then
10851 case $host_os in aix4.[012]|aix4.[012].*)
10852 # We only want to do this on AIX 4.2 and lower, the check
10853 # below for broken collect2 doesn't work under 4.3+
10854 collect2name=`${CC} -print-prog-name=collect2`
10855 if test -f "$collect2name" && \
10856 strings "$collect2name" | grep resolve_lib_name >/dev/null
10858 # We have reworked collect2
10859 hardcode_direct_CXX=yes
10861 # We have old collect2
10862 hardcode_direct_CXX=unsupported
10863 # It fails to find uninstalled libraries when the uninstalled
10864 # path is not listed in the libpath. Setting hardcode_minus_L
10865 # to unsupported forces relinking
10866 hardcode_minus_L_CXX=yes
10867 hardcode_libdir_flag_spec_CXX='-L$libdir'
10868 hardcode_libdir_separator_CXX=
10871 shared_flag='-shared'
10872 if test "$aix_use_runtimelinking" = yes; then
10873 shared_flag="$shared_flag "'${wl}-G'
10877 if test "$host_cpu" = ia64; then
10878 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10879 # chokes on -Wl,-G. The following line is correct:
10882 if test "$aix_use_runtimelinking" = yes; then
10883 shared_flag='${wl}-G'
10885 shared_flag='${wl}-bM:SRE'
10890 # It seems that -bexpall does not export symbols beginning with
10891 # underscore (_), so it is better to generate a list of symbols to export.
10892 always_export_symbols_CXX=yes
10893 if test "$aix_use_runtimelinking" = yes; then
10894 # Warning - without using the other runtime loading flags (-brtl),
10895 # -berok will link without error, but may produce a broken library.
10896 allow_undefined_flag_CXX='-berok'
10897 # Determine the default libpath from the value encoded in an empty executable.
10898 cat >conftest.$ac_ext <<_ACEOF
10901 cat confdefs.h >>conftest.$ac_ext
10902 cat >>conftest.$ac_ext <<_ACEOF
10903 /* end confdefs.h. */
10913 rm -f conftest.$ac_objext conftest$ac_exeext
10914 if { (ac_try="$ac_link"
10915 case "(($ac_try" in
10916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10917 *) ac_try_echo=$ac_try;;
10919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10920 (eval "$ac_link") 2>conftest.er1
10922 grep -v '^ *+' conftest.er1 >conftest.err
10924 cat conftest.err >&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); } && {
10927 test -z "$ac_cxx_werror_flag" ||
10928 test ! -s conftest.err
10929 } && test -s conftest$ac_exeext &&
10930 $as_test_x conftest$ac_exeext; then
10932 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10934 # Check for a 64-bit object if we didn't find anything.
10935 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10938 echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10945 conftest$ac_exeext conftest.$ac_ext
10946 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10948 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10950 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10952 if test "$host_cpu" = ia64; then
10953 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10954 allow_undefined_flag_CXX="-z nodefs"
10955 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10957 # Determine the default libpath from the value encoded in an empty executable.
10958 cat >conftest.$ac_ext <<_ACEOF
10961 cat confdefs.h >>conftest.$ac_ext
10962 cat >>conftest.$ac_ext <<_ACEOF
10963 /* end confdefs.h. */
10973 rm -f conftest.$ac_objext conftest$ac_exeext
10974 if { (ac_try="$ac_link"
10975 case "(($ac_try" in
10976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10977 *) ac_try_echo=$ac_try;;
10979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10980 (eval "$ac_link") 2>conftest.er1
10982 grep -v '^ *+' conftest.er1 >conftest.err
10984 cat conftest.err >&5
10985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } && {
10987 test -z "$ac_cxx_werror_flag" ||
10988 test ! -s conftest.err
10989 } && test -s conftest$ac_exeext &&
10990 $as_test_x conftest$ac_exeext; then
10992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10994 # Check for a 64-bit object if we didn't find anything.
10995 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10998 echo "$as_me: failed program was:" >&5
10999 sed 's/^/| /' conftest.$ac_ext >&5
11004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11005 conftest$ac_exeext conftest.$ac_ext
11006 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11008 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11009 # Warning - without using the other run time loading flags,
11010 # -berok will link without error, but may produce a broken library.
11011 no_undefined_flag_CXX=' ${wl}-bernotok'
11012 allow_undefined_flag_CXX=' ${wl}-berok'
11013 # -bexpall does not export symbols beginning with underscore (_)
11014 always_export_symbols_CXX=yes
11015 # Exported symbols can be pulled into shared objects from archives
11016 whole_archive_flag_spec_CXX=' '
11017 archive_cmds_need_lc_CXX=yes
11018 # This is similar to how AIX traditionally builds it's shared libraries.
11019 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11024 case $cc_basename in
11026 # FIXME: insert proper C++ library support
11033 cygwin* | mingw* | pw32*)
11034 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11035 # as there is no search path for DLLs.
11036 hardcode_libdir_flag_spec_CXX='-L$libdir'
11037 allow_undefined_flag_CXX=unsupported
11038 always_export_symbols_CXX=no
11039 enable_shared_with_static_runtimes_CXX=yes
11041 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11042 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11043 # If the export-symbols file already is a .def file (1st line
11044 # is EXPORTS), use it as is; otherwise, prepend...
11045 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11046 cp $export_symbols $output_objdir/$soname.def;
11048 echo EXPORTS > $output_objdir/$soname.def;
11049 cat $export_symbols >> $output_objdir/$soname.def;
11051 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
11056 darwin* | rhapsody*)
11058 rhapsody* | darwin1.[012])
11059 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11062 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11063 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11065 case ${MACOSX_DEPLOYMENT_TARGET} in
11067 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11070 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11076 archive_cmds_need_lc_CXX=no
11077 hardcode_direct_CXX=no
11078 hardcode_automatic_CXX=yes
11079 hardcode_shlibpath_var_CXX=unsupported
11080 whole_archive_flag_spec_CXX=''
11081 link_all_deplibs_CXX=yes
11083 if test "$GXX" = yes ; then
11084 lt_int_apple_cc_single_mod=no
11085 output_verbose_link_cmd='echo'
11086 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11087 lt_int_apple_cc_single_mod=yes
11089 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11090 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11092 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'
11094 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11095 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11096 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11097 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11099 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11101 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11103 case $cc_basename in
11105 output_verbose_link_cmd='echo'
11106 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11107 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11108 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11109 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11110 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11120 case $cc_basename in
11122 # FIXME: insert proper C++ library support
11126 # Green Hills C++ Compiler
11127 # FIXME: insert proper C++ library support
11131 # FIXME: insert proper C++ library support
11137 # C++ shared libraries reported to be fairly broken before switch to ELF
11141 archive_cmds_need_lc_CXX=no
11143 freebsd* | kfreebsd*-gnu | dragonfly*)
11144 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11151 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11152 hardcode_libdir_separator_CXX=:
11153 export_dynamic_flag_spec_CXX='${wl}-E'
11154 hardcode_direct_CXX=yes
11155 hardcode_minus_L_CXX=yes # Not in the search PATH,
11156 # but as the default
11157 # location of the library.
11159 case $cc_basename in
11161 # FIXME: insert proper C++ library support
11165 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'
11166 # Commands to make compiler produce verbose output that lists
11167 # what "hidden" libraries, object files and flags are used when
11168 # linking a shared library.
11170 # There doesn't appear to be a way to prevent this compiler from
11171 # explicitly linking system object files so we need to strip them
11172 # from the output so that they don't get included in the library
11174 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 $list'
11177 if test "$GXX" = yes; then
11178 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'
11180 # FIXME: insert proper C++ library support
11187 if test $with_gnu_ld = no; then
11188 case "$host_cpu" in
11190 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11191 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11192 hardcode_libdir_separator_CXX=:
11195 hardcode_libdir_flag_spec_CXX='-L$libdir'
11198 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11199 hardcode_libdir_separator_CXX=:
11200 export_dynamic_flag_spec_CXX='${wl}-E'
11204 case "$host_cpu" in
11206 hardcode_direct_CXX=no
11207 hardcode_shlibpath_var_CXX=no
11210 hardcode_direct_CXX=no
11211 hardcode_shlibpath_var_CXX=no
11212 hardcode_minus_L_CXX=yes # Not in the search PATH,
11213 # but as the default
11214 # location of the library.
11217 hardcode_direct_CXX=yes
11218 hardcode_minus_L_CXX=yes # Not in the search PATH,
11219 # but as the default
11220 # location of the library.
11224 case $cc_basename in
11226 # FIXME: insert proper C++ library support
11230 case "$host_cpu" in
11232 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11235 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11238 # Commands to make compiler produce verbose output that lists
11239 # what "hidden" libraries, object files and flags are used when
11240 # linking a shared library.
11242 # There doesn't appear to be a way to prevent this compiler from
11243 # explicitly linking system object files so we need to strip them
11244 # from the output so that they don't get included in the library
11246 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 $list'
11249 if test "$GXX" = yes; then
11250 if test $with_gnu_ld = no; then
11251 case "$host_cpu" in
11253 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
11256 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'
11261 # FIXME: insert proper C++ library support
11268 case $cc_basename in
11271 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11273 # Archives containing C++ object files must be created using
11274 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11275 # necessary to make sure instantiated templates are included
11277 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11280 if test "$GXX" = yes; then
11281 if test "$with_gnu_ld" = no; then
11282 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11284 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11287 link_all_deplibs_CXX=yes
11290 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11291 hardcode_libdir_separator_CXX=:
11294 case $cc_basename in
11296 # Kuck and Associates, Inc. (KAI) C++ Compiler
11298 # KCC will only create a shared library if the output file
11299 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11300 # to its proper name (with version) after linking.
11301 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'
11302 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'
11303 # Commands to make compiler produce verbose output that lists
11304 # what "hidden" libraries, object files and flags are used when
11305 # linking a shared library.
11307 # There doesn't appear to be a way to prevent this compiler from
11308 # explicitly linking system object files so we need to strip them
11309 # from the output so that they don't get included in the library
11311 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 $list'
11313 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11314 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11316 # Archives containing C++ object files must be created using
11317 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11318 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11323 # version 8.0 and above of icpc choke on multiply defined symbols
11324 # if we add $predep_objects and $postdep_objects, however 7.1 and
11325 # earlier do not add the objects themselves.
11326 case `$CC -V 2>&1` in
11328 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11329 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'
11331 *) # Version 8.0 or newer
11334 ia64*) tmp_idyn=' -i_dynamic';;
11336 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11337 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'
11340 archive_cmds_need_lc_CXX=no
11341 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11342 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11343 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11346 # Portland Group C++ compiler
11347 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11348 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'
11350 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11351 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11352 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'
11356 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11357 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'
11359 runpath_var=LD_RUN_PATH
11360 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11361 hardcode_libdir_separator_CXX=:
11363 # Commands to make compiler produce verbose output that lists
11364 # what "hidden" libraries, object files and flags are used when
11365 # linking a shared library.
11367 # There doesn't appear to be a way to prevent this compiler from
11368 # explicitly linking system object files so we need to strip them
11369 # from the output so that they don't get included in the library
11371 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11376 # FIXME: insert proper C++ library support
11380 # FIXME: insert proper C++ library support
11384 case $cc_basename in
11386 # FIXME: insert proper C++ library support
11390 # FIXME: insert proper C++ library support
11396 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11397 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11399 hardcode_libdir_flag_spec_CXX='-R$libdir'
11400 hardcode_direct_CXX=yes
11401 hardcode_shlibpath_var_CXX=no
11403 # Workaround some broken pre-1.5 toolchains
11404 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11407 # C++ shared libraries are fairly broken
11411 hardcode_direct_CXX=yes
11412 hardcode_shlibpath_var_CXX=no
11413 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11414 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11415 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11416 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11417 export_dynamic_flag_spec_CXX='${wl}-E'
11418 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11420 output_verbose_link_cmd='echo'
11423 case $cc_basename in
11425 # Kuck and Associates, Inc. (KAI) C++ Compiler
11427 # KCC will only create a shared library if the output file
11428 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11429 # to its proper name (with version) after linking.
11430 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'
11432 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11433 hardcode_libdir_separator_CXX=:
11435 # Archives containing C++ object files must be created using
11436 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11437 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11441 # Rational C++ 2.4.1
11442 # FIXME: insert proper C++ library support
11446 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11447 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11449 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11450 hardcode_libdir_separator_CXX=:
11452 # Commands to make compiler produce verbose output that lists
11453 # what "hidden" libraries, object files and flags are used when
11454 # linking a shared library.
11456 # There doesn't appear to be a way to prevent this compiler from
11457 # explicitly linking system object files so we need to strip them
11458 # from the output so that they don't get included in the library
11460 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11463 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11464 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11465 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11467 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11468 hardcode_libdir_separator_CXX=:
11470 # Commands to make compiler produce verbose output that lists
11471 # what "hidden" libraries, object files and flags are used when
11472 # linking a shared library.
11473 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11476 # FIXME: insert proper C++ library support
11483 case $cc_basename in
11485 # Kuck and Associates, Inc. (KAI) C++ Compiler
11487 # KCC will only create a shared library if the output file
11488 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11489 # to its proper name (with version) after linking.
11490 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'
11492 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11493 hardcode_libdir_separator_CXX=:
11495 # Archives containing C++ object files must be created using
11496 # the KAI C++ compiler.
11497 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11500 # Rational C++ 2.4.1
11501 # FIXME: insert proper C++ library support
11505 allow_undefined_flag_CXX=' -expect_unresolved \*'
11506 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11507 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11508 echo "-hidden">> $lib.exp~
11509 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11512 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11513 hardcode_libdir_separator_CXX=:
11515 # Commands to make compiler produce verbose output that lists
11516 # what "hidden" libraries, object files and flags are used when
11517 # linking a shared library.
11519 # There doesn't appear to be a way to prevent this compiler from
11520 # explicitly linking system object files so we need to strip them
11521 # from the output so that they don't get included in the library
11523 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11526 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11527 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11528 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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11530 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11531 hardcode_libdir_separator_CXX=:
11533 # Commands to make compiler produce verbose output that lists
11534 # what "hidden" libraries, object files and flags are used when
11535 # linking a shared library.
11536 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11539 # FIXME: insert proper C++ library support
11546 # FIXME: insert proper C++ library support
11550 archive_cmds_need_lc_CXX=no
11551 case $cc_basename in
11553 # FIXME: insert proper C++ library support
11557 # FIXME: insert proper C++ library support
11563 case $cc_basename in
11566 # FIXME: insert proper C++ library support
11571 # FIXME: insert proper C++ library support
11575 # FIXME: insert proper C++ library support
11581 case $cc_basename in
11583 # Sun C++ 4.2, 5.x and Centerline C++
11584 no_undefined_flag_CXX=' -zdefs'
11585 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11586 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11587 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11589 hardcode_libdir_flag_spec_CXX='-R$libdir'
11590 hardcode_shlibpath_var_CXX=no
11592 solaris2.[0-5] | solaris2.[0-5].*) ;;
11594 # The C++ compiler is used as linker so we must use $wl
11595 # flag to pass the commands to the underlying system
11596 # linker. We must also pass each convience library through
11597 # to the system linker between allextract/defaultextract.
11598 # The C++ compiler will combine linker options so we
11599 # cannot just pass the convience library names through
11601 # Supported since Solaris 2.6 (maybe 2.5.1?)
11602 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11605 link_all_deplibs_CXX=yes
11607 # Commands to make compiler produce verbose output that lists
11608 # what "hidden" libraries, object files and flags are used when
11609 # linking a shared library.
11611 # There doesn't appear to be a way to prevent this compiler from
11612 # explicitly linking system object files so we need to strip them
11613 # from the output so that they don't get included in the library
11615 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11617 # Archives containing C++ object files must be created using
11618 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11619 # necessary to make sure instantiated templates are included
11621 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11624 # Green Hills C++ Compiler
11625 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11627 # The C++ compiler must be used to create the archive.
11628 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11631 # GNU C++ compiler with Solaris linker
11632 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11633 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11634 if $CC --version | grep -v '^2\.7' > /dev/null; then
11635 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11636 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11637 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11639 # Commands to make compiler produce verbose output that lists
11640 # what "hidden" libraries, object files and flags are used when
11641 # linking a shared library.
11642 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11644 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11646 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11647 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11648 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11650 # Commands to make compiler produce verbose output that lists
11651 # what "hidden" libraries, object files and flags are used when
11652 # linking a shared library.
11653 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11656 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11661 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11662 archive_cmds_need_lc_CXX=no
11665 case $cc_basename in
11667 # NonStop-UX NCC 3.20
11668 # FIXME: insert proper C++ library support
11672 # FIXME: insert proper C++ library support
11678 # FIXME: insert proper C++ library support
11682 # FIXME: insert proper C++ library support
11686 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11687 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11688 test "$ld_shlibs_CXX" = no && can_build_shared=no
11694 cat > conftest.$ac_ext <<EOF
11698 Foo (void) { a = 0; }
11704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11705 (eval $ac_compile) 2>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; then
11709 # Parse the compiler output and extract the necessary
11710 # objects, libraries and library flags.
11712 # Sentinel used to keep track of whether or not we are before
11713 # the conftest object file.
11714 pre_test_object_deps_done=no
11716 # The `*' in the case matches for architectures that use `case' in
11717 # $output_verbose_cmd can trigger glob expansion during the loop
11718 # eval without this substitution.
11719 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
11721 for p in `eval $output_verbose_link_cmd`; do
11725 # Some compilers place space between "-{L,R}" and the path.
11726 # Remove the space.
11727 if test $p = "-L" \
11728 || test $p = "-R"; then
11735 if test "$pre_test_object_deps_done" = no; then
11738 # Internal compiler library paths should come after those
11739 # provided the user. The postdeps already come after the
11740 # user supplied libs so there is no need to process them.
11741 if test -z "$compiler_lib_search_path_CXX"; then
11742 compiler_lib_search_path_CXX="${prev}${p}"
11744 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11747 # The "-l" case would never come before the object being
11748 # linked, so don't bother handling this case.
11751 if test -z "$postdeps_CXX"; then
11752 postdeps_CXX="${prev}${p}"
11754 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11760 # This assumes that the test object file only shows up
11761 # once in the compiler output.
11762 if test "$p" = "conftest.$objext"; then
11763 pre_test_object_deps_done=yes
11767 if test "$pre_test_object_deps_done" = no; then
11768 if test -z "$predep_objects_CXX"; then
11769 predep_objects_CXX="$p"
11771 predep_objects_CXX="$predep_objects_CXX $p"
11774 if test -z "$postdep_objects_CXX"; then
11775 postdep_objects_CXX="$p"
11777 postdep_objects_CXX="$postdep_objects_CXX $p"
11782 *) ;; # Ignore the rest.
11790 echo "libtool.m4: error: problem compiling CXX test program"
11793 $rm -f confest.$objext
11795 case " $postdeps_CXX " in
11796 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11799 lt_prog_compiler_wl_CXX=
11800 lt_prog_compiler_pic_CXX=
11801 lt_prog_compiler_static_CXX=
11803 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11804 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11806 # C++ specific cases for pic, static, wl, etc.
11807 if test "$GXX" = yes; then
11808 lt_prog_compiler_wl_CXX='-Wl,'
11809 lt_prog_compiler_static_CXX='-static'
11813 # All AIX code is PIC.
11814 if test "$host_cpu" = ia64; then
11815 # AIX 5 now supports IA64 processor
11816 lt_prog_compiler_static_CXX='-Bstatic'
11820 # FIXME: we need at least 68020 code to build shared libraries, but
11821 # adding the `-m68020' flag to GCC prevents building anything better,
11823 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11825 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11826 # PIC is the default for these OSes.
11828 mingw* | os2* | pw32*)
11829 # This hack is so that the source file can tell whether it is being
11830 # built for inclusion in a dll (and should export symbols for example).
11831 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11833 darwin* | rhapsody*)
11834 # PIC is the default on this platform
11835 # Common symbols not allowed in MH_DYLIB files
11836 lt_prog_compiler_pic_CXX='-fno-common'
11839 # DJGPP does not support shared libraries at all
11840 lt_prog_compiler_pic_CXX=
11843 if test -d /usr/nec; then
11844 lt_prog_compiler_pic_CXX=-Kconform_pic
11848 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11849 # not for PA HP-UX.
11850 case "$host_cpu" in
11854 lt_prog_compiler_pic_CXX='-fPIC'
11859 lt_prog_compiler_pic_CXX='-fPIC'
11865 # All AIX code is PIC.
11866 if test "$host_cpu" = ia64; then
11867 # AIX 5 now supports IA64 processor
11868 lt_prog_compiler_static_CXX='-Bstatic'
11870 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11874 case $cc_basename in
11876 # Green Hills C++ Compiler
11877 # _LT_AC_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"
11882 # PIC is the default on this platform
11883 # Common symbols not allowed in MH_DYLIB files
11884 case $cc_basename in
11886 lt_prog_compiler_pic_CXX='-qnocommon'
11887 lt_prog_compiler_wl_CXX='-Wl,'
11892 case $cc_basename in
11894 lt_prog_compiler_pic_CXX='-KPIC'
11897 # Green Hills C++ Compiler
11898 lt_prog_compiler_pic_CXX='-pic'
11904 freebsd* | kfreebsd*-gnu | dragonfly*)
11905 # FreeBSD uses GNU C++
11907 hpux9* | hpux10* | hpux11*)
11908 case $cc_basename in
11910 lt_prog_compiler_wl_CXX='-Wl,'
11911 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11912 if test "$host_cpu" != ia64; then
11913 lt_prog_compiler_pic_CXX='+Z'
11917 lt_prog_compiler_wl_CXX='-Wl,'
11918 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11919 case "$host_cpu" in
11924 lt_prog_compiler_pic_CXX='+Z'
11932 irix5* | irix6* | nonstopux*)
11933 case $cc_basename in
11935 lt_prog_compiler_wl_CXX='-Wl,'
11936 lt_prog_compiler_static_CXX='-non_shared'
11937 # CC pic flag -KPIC is the default.
11944 case $cc_basename in
11947 lt_prog_compiler_wl_CXX='--backend -Wl,'
11948 lt_prog_compiler_pic_CXX='-fPIC'
11952 lt_prog_compiler_wl_CXX='-Wl,'
11953 lt_prog_compiler_pic_CXX='-KPIC'
11954 lt_prog_compiler_static_CXX='-static'
11957 # Portland Group C++ compiler.
11958 lt_prog_compiler_wl_CXX='-Wl,'
11959 lt_prog_compiler_pic_CXX='-fpic'
11960 lt_prog_compiler_static_CXX='-static'
11964 # Make sure the PIC flag is empty. It appears that all Alpha
11965 # Linux and Compaq Tru64 Unix objects are PIC.
11966 lt_prog_compiler_pic_CXX=
11967 lt_prog_compiler_static_CXX='-non_shared'
11978 case $cc_basename in
11980 lt_prog_compiler_pic_CXX='-W c,exportall'
11988 osf3* | osf4* | osf5*)
11989 case $cc_basename in
11991 lt_prog_compiler_wl_CXX='--backend -Wl,'
11994 # Rational C++ 2.4.1
11995 lt_prog_compiler_pic_CXX='-pic'
11998 # Digital/Compaq C++
11999 lt_prog_compiler_wl_CXX='-Wl,'
12000 # Make sure the PIC flag is empty. It appears that all Alpha
12001 # Linux and Compaq Tru64 Unix objects are PIC.
12002 lt_prog_compiler_pic_CXX=
12003 lt_prog_compiler_static_CXX='-non_shared'
12012 case $cc_basename in
12014 lt_prog_compiler_pic_CXX='-fPIC'
12021 case $cc_basename in
12023 # Sun C++ 4.2, 5.x and Centerline C++
12024 lt_prog_compiler_pic_CXX='-KPIC'
12025 lt_prog_compiler_static_CXX='-Bstatic'
12026 lt_prog_compiler_wl_CXX='-Qoption ld '
12029 # Green Hills C++ Compiler
12030 lt_prog_compiler_pic_CXX='-PIC'
12037 case $cc_basename in
12040 lt_prog_compiler_pic_CXX='-pic'
12041 lt_prog_compiler_static_CXX='-Bstatic'
12045 lt_prog_compiler_pic_CXX='-pic'
12052 case $cc_basename in
12054 # NonStop-UX NCC 3.20
12055 lt_prog_compiler_pic_CXX='-KPIC'
12066 lt_prog_compiler_can_build_shared_CXX=no
12071 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12072 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12075 # Check to make sure the PIC flag actually works.
12077 if test -n "$lt_prog_compiler_pic_CXX"; then
12079 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12080 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12081 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12082 echo $ECHO_N "(cached) $ECHO_C" >&6
12084 lt_prog_compiler_pic_works_CXX=no
12085 ac_outfile=conftest.$ac_objext
12086 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12087 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12088 # Insert the option either (1) after the last *FLAGS variable, or
12089 # (2) before a word containing "conftest.", or (3) at the end.
12090 # Note that $ac_compile itself does not contain backslashes and begins
12091 # with a dollar sign (not a hyphen), so the echo should work correctly.
12092 # The option is referenced via a variable to avoid confusing sed.
12093 lt_compile=`echo "$ac_compile" | $SED \
12094 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12096 -e 's:$: $lt_compiler_flag:'`
12097 (eval echo "\"\$as_me:12097: $lt_compile\"" >&5)
12098 (eval "$lt_compile" 2>conftest.err)
12100 cat conftest.err >&5
12101 echo "$as_me:12101: \$? = $ac_status" >&5
12102 if (exit $ac_status) && test -s "$ac_outfile"; then
12103 # The compiler can only warn and ignore the option if not recognized
12104 # So say no if there are warnings other than the usual output.
12105 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
12106 $SED '/^$/d' conftest.err >conftest.er2
12107 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
12108 lt_prog_compiler_pic_works_CXX=yes
12114 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12115 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12117 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12118 case $lt_prog_compiler_pic_CXX in
12120 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12123 lt_prog_compiler_pic_CXX=
12124 lt_prog_compiler_can_build_shared_CXX=no
12129 # For platforms which do not support PIC, -DPIC is meaningless:
12131 lt_prog_compiler_pic_CXX=
12134 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12138 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12139 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12140 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12141 echo $ECHO_N "(cached) $ECHO_C" >&6
12143 lt_cv_prog_compiler_c_o_CXX=no
12144 $rm -r conftest 2>/dev/null
12148 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12150 lt_compiler_flag="-o out/conftest2.$ac_objext"
12151 # Insert the option either (1) after the last *FLAGS variable, or
12152 # (2) before a word containing "conftest.", or (3) at the end.
12153 # Note that $ac_compile itself does not contain backslashes and begins
12154 # with a dollar sign (not a hyphen), so the echo should work correctly.
12155 lt_compile=`echo "$ac_compile" | $SED \
12156 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12157 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12158 -e 's:$: $lt_compiler_flag:'`
12159 (eval echo "\"\$as_me:12159: $lt_compile\"" >&5)
12160 (eval "$lt_compile" 2>out/conftest.err)
12162 cat out/conftest.err >&5
12163 echo "$as_me:12163: \$? = $ac_status" >&5
12164 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12166 # The compiler can only warn and ignore the option if not recognized
12167 # So say no if there are warnings
12168 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
12169 $SED '/^$/d' out/conftest.err >out/conftest.er2
12170 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12171 lt_cv_prog_compiler_c_o_CXX=yes
12176 # SGI C++ compiler will create directory out/ii_files/ for
12177 # template instantiation
12178 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12179 $rm out/* && rmdir out
12185 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12186 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12189 hard_links="nottested"
12190 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12191 # do not overwrite the value of need_locks provided by the user
12192 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12193 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12196 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12198 ln conftest.a conftest.b 2>&5 || hard_links=no
12199 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12200 { echo "$as_me:$LINENO: result: $hard_links" >&5
12201 echo "${ECHO_T}$hard_links" >&6; }
12202 if test "$hard_links" = no; then
12203 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12204 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12211 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12212 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12214 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12217 # If we're using GNU nm, then we don't want the "-C" option.
12218 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12219 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12220 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'
12222 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'
12226 export_symbols_cmds_CXX="$ltdll_cmds"
12229 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'
12232 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12236 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12237 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12238 test "$ld_shlibs_CXX" = no && can_build_shared=no
12240 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12241 if test "$GCC" = yes; then
12242 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12246 # Do we need to explicitly link libc?
12248 case "x$archive_cmds_need_lc_CXX" in
12250 # Assume -lc should be added
12251 archive_cmds_need_lc_CXX=yes
12253 if test "$enable_shared" = yes && test "$GCC" = yes; then
12254 case $archive_cmds_CXX in
12256 # FIXME: we may have to deal with multi-command sequences.
12259 # Test whether the compiler implicitly links with -lc since on some
12260 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12261 # to ld, don't add -lc before -lgcc.
12262 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12263 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12265 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12268 (eval $ac_compile) 2>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } 2>conftest.err; then
12274 libobjs=conftest.$ac_objext
12276 wl=$lt_prog_compiler_wl_CXX
12282 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12283 allow_undefined_flag_CXX=
12284 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12285 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }
12290 archive_cmds_need_lc_CXX=no
12292 archive_cmds_need_lc_CXX=yes
12294 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12296 cat conftest.err 1>&5
12299 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12300 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12307 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12308 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12309 library_names_spec=
12310 libname_spec='lib$name'
12314 postuninstall_cmds=
12318 shlibpath_overrides_runpath=unknown
12320 dynamic_linker="$host_os ld.so"
12321 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12322 if test "$GCC" = yes; then
12323 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12324 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12325 # if the path contains ";" then we assume it to be the separator
12326 # otherwise default to the standard path separator (i.e. ":") - it is
12327 # assumed that no part of a normal pathname contains ";" but that should
12328 # okay in the real world where ";" in dirpaths is itself problematic.
12329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12331 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12334 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12336 need_lib_prefix=unknown
12337 hardcode_into_libs=no
12339 # when you set need_version to no, make sure it does not cause -set_version
12340 # flags to be left without arguments
12341 need_version=unknown
12346 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12347 shlibpath_var=LIBPATH
12349 # AIX 3 has no versioning support, so we append a major version to the name.
12350 soname_spec='${libname}${release}${shared_ext}$major'
12357 hardcode_into_libs=yes
12358 if test "$host_cpu" = ia64; then
12359 # AIX 5 supports IA64
12360 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12361 shlibpath_var=LD_LIBRARY_PATH
12363 # With GCC up to 2.95.x, collect2 would create an import file
12364 # for dependence libraries. The import file would start with
12365 # the line `#! .'. This would cause the generated library to
12366 # depend on `.', always an invalid library. This was fixed in
12367 # development snapshots of GCC prior to 3.0.
12369 aix4 | aix4.[01] | aix4.[01].*)
12370 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12372 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12375 can_build_shared=no
12379 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12380 # soname into executable. Probably we can add versioning support to
12381 # collect2, so additional links can be useful in future.
12382 if test "$aix_use_runtimelinking" = yes; then
12383 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12384 # instead of lib<name>.a to let people know that these are not
12385 # typical AIX shared libraries.
12386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12388 # We preserve .a as extension for shared libraries through AIX4.2
12389 # and later when we are not doing run time linking.
12390 library_names_spec='${libname}${release}.a $libname.a'
12391 soname_spec='${libname}${release}${shared_ext}$major'
12393 shlibpath_var=LIBPATH
12398 library_names_spec='$libname.ixlibrary $libname.a'
12399 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12400 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'
12404 library_names_spec='${libname}${shared_ext}'
12405 dynamic_linker="$host_os ld.so"
12406 shlibpath_var=LIBRARY_PATH
12412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12413 soname_spec='${libname}${release}${shared_ext}$major'
12414 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12415 shlibpath_var=LD_LIBRARY_PATH
12416 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12417 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12418 # the default ld.so.conf also contains /usr/contrib/lib and
12419 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12420 # libtool to hard-code these into programs
12423 cygwin* | mingw* | pw32*)
12424 version_type=windows
12429 case $GCC,$host_os in
12430 yes,cygwin* | yes,mingw* | yes,pw32*)
12431 library_names_spec='$libname.dll.a'
12432 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12433 postinstall_cmds='base_file=`basename \${file}`~
12434 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12435 dldir=$destdir/`dirname \$dlpath`~
12436 test -d \$dldir || mkdir -p \$dldir~
12437 $install_prog $dir/$dlname \$dldir/$dlname'
12438 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12439 dlpath=$dir/\$dldll~
12441 shlibpath_overrides_runpath=yes
12445 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12446 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12447 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12450 # MinGW DLLs use traditional 'lib' prefix
12451 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12452 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12453 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12454 # It is most probably a Windows format PATH printed by
12455 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12456 # path with ; separators, and with drive letters. We can handle the
12457 # drive letters (cygwin fileutils understands them), so leave them,
12458 # especially as we might pass files found there to a mingw objdump,
12459 # which wouldn't understand a cygwinified path. Ahh.
12460 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12462 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12466 # pw32 DLLs use 'pw' prefix rather than 'lib'
12467 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12473 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12476 dynamic_linker='Win32 ld.exe'
12477 # FIXME: first we should search . and the directory the executable is in
12481 darwin* | rhapsody*)
12482 dynamic_linker="$host_os dyld"
12483 version_type=darwin
12486 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12487 soname_spec='${libname}${release}${major}$shared_ext'
12488 shlibpath_overrides_runpath=yes
12489 shlibpath_var=DYLD_LIBRARY_PATH
12490 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
12491 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12492 if test "$GCC" = yes; then
12493 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12495 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12497 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12505 soname_spec='${libname}${release}${shared_ext}$major'
12506 shlibpath_var=LD_LIBRARY_PATH
12517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12518 soname_spec='${libname}${release}${shared_ext}$major'
12519 shlibpath_var=LD_LIBRARY_PATH
12520 shlibpath_overrides_runpath=no
12521 hardcode_into_libs=yes
12522 dynamic_linker='GNU ld.so'
12525 freebsd* | dragonfly*)
12526 # DragonFly does not have aout. When/if they implement a new
12527 # versioning mechanism, adjust this.
12528 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
12529 version_type=freebsd-$objformat
12530 case $version_type in
12532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12537 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12541 shlibpath_var=LD_LIBRARY_PATH
12544 shlibpath_overrides_runpath=yes
12546 freebsd3.[01]* | freebsdelf3.[01]*)
12547 shlibpath_overrides_runpath=yes
12548 hardcode_into_libs=yes
12551 shlibpath_overrides_runpath=no
12552 hardcode_into_libs=yes
12561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12562 soname_spec='${libname}${release}${shared_ext}$major'
12563 shlibpath_var=LD_LIBRARY_PATH
12564 hardcode_into_libs=yes
12567 hpux9* | hpux10* | hpux11*)
12568 # Give a soname corresponding to the major version so that dld.sl refuses to
12569 # link against other versions.
12573 case "$host_cpu" in
12576 hardcode_into_libs=yes
12577 dynamic_linker="$host_os dld.so"
12578 shlibpath_var=LD_LIBRARY_PATH
12579 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12581 soname_spec='${libname}${release}${shared_ext}$major'
12582 if test "X$HPUX_IA64_MODE" = X32; then
12583 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12585 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12587 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12591 hardcode_into_libs=yes
12592 dynamic_linker="$host_os dld.sl"
12593 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12594 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12596 soname_spec='${libname}${release}${shared_ext}$major'
12597 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12598 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12602 dynamic_linker="$host_os dld.sl"
12603 shlibpath_var=SHLIB_PATH
12604 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12606 soname_spec='${libname}${release}${shared_ext}$major'
12609 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12610 postinstall_cmds='chmod 555 $lib'
12613 irix5* | irix6* | nonstopux*)
12615 nonstopux*) version_type=nonstopux ;;
12617 if test "$lt_cv_prog_gnu_ld" = yes; then
12625 soname_spec='${libname}${release}${shared_ext}$major'
12626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12628 irix5* | nonstopux*)
12629 libsuff= shlibsuff=
12632 case $LD in # libtool.m4 will add one of these switches to LD
12633 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12634 libsuff= shlibsuff= libmagic=32-bit;;
12635 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12636 libsuff=32 shlibsuff=N32 libmagic=N32;;
12637 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12638 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12639 *) libsuff= shlibsuff= libmagic=never-match;;
12643 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12644 shlibpath_overrides_runpath=no
12645 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12646 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12647 hardcode_into_libs=yes
12650 # No shared lib support for Linux oldld, aout, or coff.
12651 linux*oldld* | linux*aout* | linux*coff*)
12655 # This must be Linux ELF.
12660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12661 soname_spec='${libname}${release}${shared_ext}$major'
12662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12663 shlibpath_var=LD_LIBRARY_PATH
12664 shlibpath_overrides_runpath=no
12665 # This implies no fast_install, which is unacceptable.
12666 # Some rework will be needed to allow for fast_install
12667 # before this can be enabled.
12668 hardcode_into_libs=yes
12670 # Append ld.so.conf contents to the search path
12671 if test -f /etc/ld.so.conf; then
12672 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12673 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12676 # We used to test for /lib/ld.so.1 and disable shared libraries on
12677 # powerpc, because MkLinux only supported shared libraries with the
12678 # GNU dynamic linker. Since this was broken with cross compilers,
12679 # most powerpc-linux boxes support dynamic linking these days and
12680 # people can always --disable-shared, the test was removed, and we
12681 # assume the GNU/Linux dynamic linker is in use.
12682 dynamic_linker='GNU/Linux ld.so'
12689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12690 soname_spec='${libname}${release}${shared_ext}$major'
12691 shlibpath_var=LD_LIBRARY_PATH
12692 shlibpath_overrides_runpath=no
12693 hardcode_into_libs=yes
12694 dynamic_linker='GNU ld.so'
12701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12703 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12704 dynamic_linker='NetBSD (a.out) ld.so'
12706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12707 soname_spec='${libname}${release}${shared_ext}$major'
12708 dynamic_linker='NetBSD ld.elf_so'
12710 shlibpath_var=LD_LIBRARY_PATH
12711 shlibpath_overrides_runpath=yes
12712 hardcode_into_libs=yes
12717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12718 shlibpath_var=LD_LIBRARY_PATH
12719 shlibpath_overrides_runpath=yes
12726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12727 soname_spec='${libname}${release}${shared_ext}$major'
12728 shlibpath_var=LD_LIBRARY_PATH
12729 shlibpath_overrides_runpath=yes
12735 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12737 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12738 *) need_version=no ;;
12740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12742 shlibpath_var=LD_LIBRARY_PATH
12743 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12745 openbsd2.[89] | openbsd2.[89].*)
12746 shlibpath_overrides_runpath=no
12749 shlibpath_overrides_runpath=yes
12753 shlibpath_overrides_runpath=yes
12758 libname_spec='$name'
12761 library_names_spec='$libname${shared_ext} $libname.a'
12762 dynamic_linker='OS/2 ld.exe'
12763 shlibpath_var=LIBPATH
12766 osf3* | osf4* | osf5*)
12770 soname_spec='${libname}${release}${shared_ext}$major'
12771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12772 shlibpath_var=LD_LIBRARY_PATH
12773 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12774 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12779 soname_spec='${libname}${release}${shared_ext}$major'
12780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12781 shlibpath_var=LD_LIBRARY_PATH
12788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12789 soname_spec='${libname}${release}${shared_ext}$major'
12790 shlibpath_var=LD_LIBRARY_PATH
12791 shlibpath_overrides_runpath=yes
12792 hardcode_into_libs=yes
12793 # ldd complains unless libraries are executable
12794 postinstall_cmds='chmod +x $lib'
12799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12800 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12801 shlibpath_var=LD_LIBRARY_PATH
12802 shlibpath_overrides_runpath=yes
12803 if test "$with_gnu_ld" = yes; then
12809 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12812 soname_spec='${libname}${release}${shared_ext}$major'
12813 shlibpath_var=LD_LIBRARY_PATH
12814 case $host_vendor in
12816 shlibpath_overrides_runpath=no
12818 export_dynamic_flag_spec='${wl}-Blargedynsym'
12819 runpath_var=LD_RUN_PATH
12827 shlibpath_overrides_runpath=no
12828 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12834 if test -d /usr/nec ;then
12836 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12837 soname_spec='$libname${shared_ext}.$major'
12838 shlibpath_var=LD_LIBRARY_PATH
12844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12845 soname_spec='${libname}${release}${shared_ext}$major'
12846 shlibpath_var=LD_LIBRARY_PATH
12853 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12854 echo "${ECHO_T}$dynamic_linker" >&6; }
12855 test "$dynamic_linker" = no && can_build_shared=no
12857 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12858 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12859 hardcode_action_CXX=
12860 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12861 test -n "$runpath_var_CXX" || \
12862 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12864 # We can hardcode non-existant directories.
12865 if test "$hardcode_direct_CXX" != no &&
12866 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12867 # have to relink, otherwise we might link with an installed library
12868 # when we should be linking with a yet-to-be-installed one
12869 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12870 test "$hardcode_minus_L_CXX" != no; then
12871 # Linking always hardcodes the temporary library directory.
12872 hardcode_action_CXX=relink
12874 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12875 hardcode_action_CXX=immediate
12878 # We cannot hardcode anything, or else we can only hardcode existing
12880 hardcode_action_CXX=unsupported
12882 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12883 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12885 if test "$hardcode_action_CXX" = relink; then
12886 # Fast installation is not supported
12887 enable_fast_install=no
12888 elif test "$shlibpath_overrides_runpath" = yes ||
12889 test "$enable_shared" = no; then
12890 # Fast installation is not necessary
12891 enable_fast_install=needless
12896 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12897 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
12898 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12899 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12900 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12901 { echo "$as_me:$LINENO: result: yes" >&5
12902 echo "${ECHO_T}yes" >&6; }
12904 # FIXME - insert some real tests, host_os isn't really good enough
12907 if test -n "$STRIP" ; then
12908 striplib="$STRIP -x"
12909 { echo "$as_me:$LINENO: result: yes" >&5
12910 echo "${ECHO_T}yes" >&6; }
12912 { echo "$as_me:$LINENO: result: no" >&5
12913 echo "${ECHO_T}no" >&6; }
12917 { echo "$as_me:$LINENO: result: no" >&5
12918 echo "${ECHO_T}no" >&6; }
12923 if test "x$enable_dlopen" != xyes; then
12924 enable_dlopen=unknown
12925 enable_dlopen_self=unknown
12926 enable_dlopen_self_static=unknown
12933 lt_cv_dlopen="load_add_on"
12935 lt_cv_dlopen_self=yes
12939 lt_cv_dlopen="LoadLibrary"
12944 lt_cv_dlopen="dlopen"
12949 # if libdl is installed we need to link against it
12950 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12951 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12952 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12953 echo $ECHO_N "(cached) $ECHO_C" >&6
12955 ac_check_lib_save_LIBS=$LIBS
12957 cat >conftest.$ac_ext <<_ACEOF
12960 cat confdefs.h >>conftest.$ac_ext
12961 cat >>conftest.$ac_ext <<_ACEOF
12962 /* end confdefs.h. */
12964 /* Override any GCC internal prototype to avoid an error.
12965 Use char because int might match the return type of a GCC
12966 builtin and then its argument prototype would still apply. */
12979 rm -f conftest.$ac_objext conftest$ac_exeext
12980 if { (ac_try="$ac_link"
12981 case "(($ac_try" in
12982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12983 *) ac_try_echo=$ac_try;;
12985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12986 (eval "$ac_link") 2>conftest.er1
12988 grep -v '^ *+' conftest.er1 >conftest.err
12990 cat conftest.err >&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); } && {
12993 test -z "$ac_cxx_werror_flag" ||
12994 test ! -s conftest.err
12995 } && test -s conftest$ac_exeext &&
12996 $as_test_x conftest$ac_exeext; then
12997 ac_cv_lib_dl_dlopen=yes
12999 echo "$as_me: failed program was:" >&5
13000 sed 's/^/| /' conftest.$ac_ext >&5
13002 ac_cv_lib_dl_dlopen=no
13005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13006 conftest$ac_exeext conftest.$ac_ext
13007 LIBS=$ac_check_lib_save_LIBS
13009 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13010 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13011 if test $ac_cv_lib_dl_dlopen = yes; then
13012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13015 lt_cv_dlopen="dyld"
13017 lt_cv_dlopen_self=yes
13024 { echo "$as_me:$LINENO: checking for shl_load" >&5
13025 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
13026 if test "${ac_cv_func_shl_load+set}" = set; then
13027 echo $ECHO_N "(cached) $ECHO_C" >&6
13029 cat >conftest.$ac_ext <<_ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h. */
13035 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13037 #define shl_load innocuous_shl_load
13039 /* System header to define __stub macros and hopefully few prototypes,
13040 which can conflict with char shl_load (); below.
13041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13042 <limits.h> exists even on freestanding compilers. */
13045 # include <limits.h>
13047 # include <assert.h>
13052 /* Override any GCC internal prototype to avoid an error.
13053 Use char because int might match the return type of a GCC
13054 builtin and then its argument prototype would still apply. */
13059 /* The GNU C library defines this for functions which it implements
13060 to always fail with ENOSYS. Some functions are actually named
13061 something starting with __ and the normal name is an alias. */
13062 #if defined __stub_shl_load || defined __stub___shl_load
13069 return shl_load ();
13074 rm -f conftest.$ac_objext conftest$ac_exeext
13075 if { (ac_try="$ac_link"
13076 case "(($ac_try" in
13077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13078 *) ac_try_echo=$ac_try;;
13080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13081 (eval "$ac_link") 2>conftest.er1
13083 grep -v '^ *+' conftest.er1 >conftest.err
13085 cat conftest.err >&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); } && {
13088 test -z "$ac_cxx_werror_flag" ||
13089 test ! -s conftest.err
13090 } && test -s conftest$ac_exeext &&
13091 $as_test_x conftest$ac_exeext; then
13092 ac_cv_func_shl_load=yes
13094 echo "$as_me: failed program was:" >&5
13095 sed 's/^/| /' conftest.$ac_ext >&5
13097 ac_cv_func_shl_load=no
13100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13101 conftest$ac_exeext conftest.$ac_ext
13103 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13104 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
13105 if test $ac_cv_func_shl_load = yes; then
13106 lt_cv_dlopen="shl_load"
13108 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13109 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
13110 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13111 echo $ECHO_N "(cached) $ECHO_C" >&6
13113 ac_check_lib_save_LIBS=$LIBS
13115 cat >conftest.$ac_ext <<_ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13122 /* Override any GCC internal prototype to avoid an error.
13123 Use char because int might match the return type of a GCC
13124 builtin and then its argument prototype would still apply. */
13132 return shl_load ();
13137 rm -f conftest.$ac_objext conftest$ac_exeext
13138 if { (ac_try="$ac_link"
13139 case "(($ac_try" in
13140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141 *) ac_try_echo=$ac_try;;
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144 (eval "$ac_link") 2>conftest.er1
13146 grep -v '^ *+' conftest.er1 >conftest.err
13148 cat conftest.err >&5
13149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13150 (exit $ac_status); } && {
13151 test -z "$ac_cxx_werror_flag" ||
13152 test ! -s conftest.err
13153 } && test -s conftest$ac_exeext &&
13154 $as_test_x conftest$ac_exeext; then
13155 ac_cv_lib_dld_shl_load=yes
13157 echo "$as_me: failed program was:" >&5
13158 sed 's/^/| /' conftest.$ac_ext >&5
13160 ac_cv_lib_dld_shl_load=no
13163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13164 conftest$ac_exeext conftest.$ac_ext
13165 LIBS=$ac_check_lib_save_LIBS
13167 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13168 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
13169 if test $ac_cv_lib_dld_shl_load = yes; then
13170 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13172 { echo "$as_me:$LINENO: checking for dlopen" >&5
13173 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
13174 if test "${ac_cv_func_dlopen+set}" = set; then
13175 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 cat >conftest.$ac_ext <<_ACEOF
13180 cat confdefs.h >>conftest.$ac_ext
13181 cat >>conftest.$ac_ext <<_ACEOF
13182 /* end confdefs.h. */
13183 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13185 #define dlopen innocuous_dlopen
13187 /* System header to define __stub macros and hopefully few prototypes,
13188 which can conflict with char dlopen (); below.
13189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13190 <limits.h> exists even on freestanding compilers. */
13193 # include <limits.h>
13195 # include <assert.h>
13200 /* Override any GCC internal prototype to avoid an error.
13201 Use char because int might match the return type of a GCC
13202 builtin and then its argument prototype would still apply. */
13207 /* The GNU C library defines this for functions which it implements
13208 to always fail with ENOSYS. Some functions are actually named
13209 something starting with __ and the normal name is an alias. */
13210 #if defined __stub_dlopen || defined __stub___dlopen
13222 rm -f conftest.$ac_objext conftest$ac_exeext
13223 if { (ac_try="$ac_link"
13224 case "(($ac_try" in
13225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13226 *) ac_try_echo=$ac_try;;
13228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13229 (eval "$ac_link") 2>conftest.er1
13231 grep -v '^ *+' conftest.er1 >conftest.err
13233 cat conftest.err >&5
13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13235 (exit $ac_status); } && {
13236 test -z "$ac_cxx_werror_flag" ||
13237 test ! -s conftest.err
13238 } && test -s conftest$ac_exeext &&
13239 $as_test_x conftest$ac_exeext; then
13240 ac_cv_func_dlopen=yes
13242 echo "$as_me: failed program was:" >&5
13243 sed 's/^/| /' conftest.$ac_ext >&5
13245 ac_cv_func_dlopen=no
13248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13249 conftest$ac_exeext conftest.$ac_ext
13251 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13252 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
13253 if test $ac_cv_func_dlopen = yes; then
13254 lt_cv_dlopen="dlopen"
13256 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13257 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
13258 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13259 echo $ECHO_N "(cached) $ECHO_C" >&6
13261 ac_check_lib_save_LIBS=$LIBS
13263 cat >conftest.$ac_ext <<_ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13270 /* Override any GCC internal prototype to avoid an error.
13271 Use char because int might match the return type of a GCC
13272 builtin and then its argument prototype would still apply. */
13285 rm -f conftest.$ac_objext conftest$ac_exeext
13286 if { (ac_try="$ac_link"
13287 case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_link") 2>conftest.er1
13294 grep -v '^ *+' conftest.er1 >conftest.err
13296 cat conftest.err >&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } && {
13299 test -z "$ac_cxx_werror_flag" ||
13300 test ! -s conftest.err
13301 } && test -s conftest$ac_exeext &&
13302 $as_test_x conftest$ac_exeext; then
13303 ac_cv_lib_dl_dlopen=yes
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13308 ac_cv_lib_dl_dlopen=no
13311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13312 conftest$ac_exeext conftest.$ac_ext
13313 LIBS=$ac_check_lib_save_LIBS
13315 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13316 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
13317 if test $ac_cv_lib_dl_dlopen = yes; then
13318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13320 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13321 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
13322 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13323 echo $ECHO_N "(cached) $ECHO_C" >&6
13325 ac_check_lib_save_LIBS=$LIBS
13326 LIBS="-lsvld $LIBS"
13327 cat >conftest.$ac_ext <<_ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13334 /* Override any GCC internal prototype to avoid an error.
13335 Use char because int might match the return type of a GCC
13336 builtin and then its argument prototype would still apply. */
13349 rm -f conftest.$ac_objext conftest$ac_exeext
13350 if { (ac_try="$ac_link"
13351 case "(($ac_try" in
13352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13353 *) ac_try_echo=$ac_try;;
13355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13356 (eval "$ac_link") 2>conftest.er1
13358 grep -v '^ *+' conftest.er1 >conftest.err
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 (exit $ac_status); } && {
13363 test -z "$ac_cxx_werror_flag" ||
13364 test ! -s conftest.err
13365 } && test -s conftest$ac_exeext &&
13366 $as_test_x conftest$ac_exeext; then
13367 ac_cv_lib_svld_dlopen=yes
13369 echo "$as_me: failed program was:" >&5
13370 sed 's/^/| /' conftest.$ac_ext >&5
13372 ac_cv_lib_svld_dlopen=no
13375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13376 conftest$ac_exeext conftest.$ac_ext
13377 LIBS=$ac_check_lib_save_LIBS
13379 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
13380 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
13381 if test $ac_cv_lib_svld_dlopen = yes; then
13382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13384 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
13385 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
13386 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 ac_check_lib_save_LIBS=$LIBS
13391 cat >conftest.$ac_ext <<_ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13398 /* Override any GCC internal prototype to avoid an error.
13399 Use char because int might match the return type of a GCC
13400 builtin and then its argument prototype would still apply. */
13408 return dld_link ();
13413 rm -f conftest.$ac_objext conftest$ac_exeext
13414 if { (ac_try="$ac_link"
13415 case "(($ac_try" in
13416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_link") 2>conftest.er1
13422 grep -v '^ *+' conftest.er1 >conftest.err
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } && {
13427 test -z "$ac_cxx_werror_flag" ||
13428 test ! -s conftest.err
13429 } && test -s conftest$ac_exeext &&
13430 $as_test_x conftest$ac_exeext; then
13431 ac_cv_lib_dld_dld_link=yes
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13436 ac_cv_lib_dld_dld_link=no
13439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13440 conftest$ac_exeext conftest.$ac_ext
13441 LIBS=$ac_check_lib_save_LIBS
13443 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
13444 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
13445 if test $ac_cv_lib_dld_dld_link = yes; then
13446 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
13467 if test "x$lt_cv_dlopen" != xno; then
13473 case $lt_cv_dlopen in
13475 save_CPPFLAGS="$CPPFLAGS"
13476 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13478 save_LDFLAGS="$LDFLAGS"
13479 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13482 LIBS="$lt_cv_dlopen_libs $LIBS"
13484 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
13485 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
13486 if test "${lt_cv_dlopen_self+set}" = set; then
13487 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 if test "$cross_compiling" = yes; then :
13490 lt_cv_dlopen_self=cross
13492 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13493 lt_status=$lt_dlunknown
13494 cat > conftest.$ac_ext <<EOF
13495 #line 13495 "configure"
13496 #include "confdefs.h"
13505 # define LT_DLGLOBAL RTLD_GLOBAL
13508 # define LT_DLGLOBAL DL_GLOBAL
13510 # define LT_DLGLOBAL 0
13514 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13515 find out it does not work in some platform. */
13516 #ifndef LT_DLLAZY_OR_NOW
13518 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13521 # define LT_DLLAZY_OR_NOW DL_LAZY
13524 # define LT_DLLAZY_OR_NOW RTLD_NOW
13527 # define LT_DLLAZY_OR_NOW DL_NOW
13529 # define LT_DLLAZY_OR_NOW 0
13537 extern "C" void exit (int);
13540 void fnord() { int i=42;}
13543 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13544 int status = $lt_dlunknown;
13548 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13549 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13550 /* dlclose (self); */
13556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13557 (eval $ac_link) 2>&5
13559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13560 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13561 (./conftest; exit; ) 2>/dev/null
13563 case x$lt_status in
13564 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13565 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13566 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
13569 # compilation failed
13570 lt_cv_dlopen_self=no
13577 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
13578 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
13580 if test "x$lt_cv_dlopen_self" = xyes; then
13581 LDFLAGS="$LDFLAGS $link_static_flag"
13582 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
13583 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
13584 if test "${lt_cv_dlopen_self_static+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 if test "$cross_compiling" = yes; then :
13588 lt_cv_dlopen_self_static=cross
13590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13591 lt_status=$lt_dlunknown
13592 cat > conftest.$ac_ext <<EOF
13593 #line 13593 "configure"
13594 #include "confdefs.h"
13603 # define LT_DLGLOBAL RTLD_GLOBAL
13606 # define LT_DLGLOBAL DL_GLOBAL
13608 # define LT_DLGLOBAL 0
13612 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13613 find out it does not work in some platform. */
13614 #ifndef LT_DLLAZY_OR_NOW
13616 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13619 # define LT_DLLAZY_OR_NOW DL_LAZY
13622 # define LT_DLLAZY_OR_NOW RTLD_NOW
13625 # define LT_DLLAZY_OR_NOW DL_NOW
13627 # define LT_DLLAZY_OR_NOW 0
13635 extern "C" void exit (int);
13638 void fnord() { int i=42;}
13641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13642 int status = $lt_dlunknown;
13646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13648 /* dlclose (self); */
13654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13655 (eval $ac_link) 2>&5
13657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13658 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
13659 (./conftest; exit; ) 2>/dev/null
13661 case x$lt_status in
13662 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13663 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13664 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
13667 # compilation failed
13668 lt_cv_dlopen_self_static=no
13675 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
13676 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
13679 CPPFLAGS="$save_CPPFLAGS"
13680 LDFLAGS="$save_LDFLAGS"
13685 case $lt_cv_dlopen_self in
13686 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13687 *) enable_dlopen_self=unknown ;;
13690 case $lt_cv_dlopen_self_static in
13691 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13692 *) enable_dlopen_self_static=unknown ;;
13697 # The else clause should only fire when bootstrapping the
13698 # libtool distribution, otherwise you forgot to ship ltmain.sh
13699 # with your package, and you will get complaints that there are
13700 # no rules to generate ltmain.sh.
13701 if test -f "$ltmain"; then
13702 # See if we are running on zsh, and set the options which allow our commands through
13703 # without removal of \ escapes.
13704 if test -n "${ZSH_VERSION+set}" ; then
13705 setopt NO_GLOB_SUBST
13707 # Now quote all the things that may contain metacharacters while being
13708 # careful not to overquote the AC_SUBSTed values. We take copies of the
13709 # variables and quote the copies for generation of the libtool script.
13710 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
13712 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13713 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13714 deplibs_check_method reload_flag reload_cmds need_locks \
13715 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13716 lt_cv_sys_global_symbol_to_c_name_address \
13717 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13718 old_postinstall_cmds old_postuninstall_cmds \
13722 lt_prog_compiler_wl_CXX \
13723 lt_prog_compiler_pic_CXX \
13724 lt_prog_compiler_static_CXX \
13725 lt_prog_compiler_no_builtin_flag_CXX \
13726 export_dynamic_flag_spec_CXX \
13727 thread_safe_flag_spec_CXX \
13728 whole_archive_flag_spec_CXX \
13729 enable_shared_with_static_runtimes_CXX \
13730 old_archive_cmds_CXX \
13731 old_archive_from_new_cmds_CXX \
13732 predep_objects_CXX \
13733 postdep_objects_CXX \
13736 compiler_lib_search_path_CXX \
13738 archive_expsym_cmds_CXX \
13739 postinstall_cmds_CXX \
13740 postuninstall_cmds_CXX \
13741 old_archive_from_expsyms_cmds_CXX \
13742 allow_undefined_flag_CXX \
13743 no_undefined_flag_CXX \
13744 export_symbols_cmds_CXX \
13745 hardcode_libdir_flag_spec_CXX \
13746 hardcode_libdir_flag_spec_ld_CXX \
13747 hardcode_libdir_separator_CXX \
13748 hardcode_automatic_CXX \
13750 module_expsym_cmds_CXX \
13751 lt_cv_prog_compiler_c_o_CXX \
13752 exclude_expsyms_CXX \
13753 include_expsyms_CXX; do
13756 old_archive_cmds_CXX | \
13757 old_archive_from_new_cmds_CXX | \
13758 archive_cmds_CXX | \
13759 archive_expsym_cmds_CXX | \
13760 module_cmds_CXX | \
13761 module_expsym_cmds_CXX | \
13762 old_archive_from_expsyms_cmds_CXX | \
13763 export_symbols_cmds_CXX | \
13764 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13765 postinstall_cmds | postuninstall_cmds | \
13766 old_postinstall_cmds | old_postuninstall_cmds | \
13767 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13768 # Double-quote double-evaled strings.
13769 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13772 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13778 *'\$0 --fallback-echo"')
13779 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13785 cat <<__EOF__ >> "$cfgfile"
13786 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13788 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13790 # Shell to use when invoking shell scripts.
13793 # Whether or not to build shared libraries.
13794 build_libtool_libs=$enable_shared
13796 # Whether or not to build static libraries.
13797 build_old_libs=$enable_static
13799 # Whether or not to add -lc for building shared libraries.
13800 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13802 # Whether or not to disallow shared libs when runtime libs are static
13803 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13805 # Whether or not to optimize for fast installation.
13806 fast_install=$enable_fast_install
13809 host_alias=$host_alias
13813 # The build system.
13814 build_alias=$build_alias
13818 # An echo program that does not interpret backslashes.
13823 AR_FLAGS=$lt_AR_FLAGS
13828 # A language-specific compiler.
13829 CC=$lt_compiler_CXX
13831 # Is the compiler the GNU C compiler?
13837 # The linker used to build libraries.
13840 # Whether we need hard or soft links.
13843 # A BSD-compatible nm program.
13846 # A symbol stripping program
13849 # Used to examine libraries when file_magic_cmd begins "file"
13850 MAGIC_CMD=$MAGIC_CMD
13852 # Used on cygwin: DLL creation program.
13855 # Used on cygwin: object dumper.
13858 # Used on cygwin: assembler.
13861 # The name of the directory that contains temporary libtool files.
13864 # How to create reloadable object files.
13865 reload_flag=$lt_reload_flag
13866 reload_cmds=$lt_reload_cmds
13868 # How to pass a linker flag through the compiler.
13869 wl=$lt_lt_prog_compiler_wl_CXX
13871 # Object file suffix (normally "o").
13872 objext="$ac_objext"
13874 # Old archive suffix (normally "a").
13877 # Shared library suffix (normally ".so").
13878 shrext_cmds='$shrext_cmds'
13880 # Executable file suffix (normally "").
13883 # Additional compiler flags for building library objects.
13884 pic_flag=$lt_lt_prog_compiler_pic_CXX
13887 # What is the maximum length of a command?
13888 max_cmd_len=$lt_cv_sys_max_cmd_len
13890 # Does compiler simultaneously support -c and -o options?
13891 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13893 # Must we lock files when doing compilation?
13894 need_locks=$lt_need_locks
13896 # Do we need the lib prefix for modules?
13897 need_lib_prefix=$need_lib_prefix
13899 # Do we need a version for libraries?
13900 need_version=$need_version
13902 # Whether dlopen is supported.
13903 dlopen_support=$enable_dlopen
13905 # Whether dlopen of programs is supported.
13906 dlopen_self=$enable_dlopen_self
13908 # Whether dlopen of statically linked programs is supported.
13909 dlopen_self_static=$enable_dlopen_self_static
13911 # Compiler flag to prevent dynamic linking.
13912 link_static_flag=$lt_lt_prog_compiler_static_CXX
13914 # Compiler flag to turn off builtin functions.
13915 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13917 # Compiler flag to allow reflexive dlopens.
13918 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13920 # Compiler flag to generate shared objects directly from archives.
13921 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13923 # Compiler flag to generate thread-safe objects.
13924 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13926 # Library versioning type.
13927 version_type=$version_type
13929 # Format of library name prefix.
13930 libname_spec=$lt_libname_spec
13932 # List of archive names. First name is the real one, the rest are links.
13933 # The last name is the one that the linker finds with -lNAME.
13934 library_names_spec=$lt_library_names_spec
13936 # The coded name of the library, if different from the real name.
13937 soname_spec=$lt_soname_spec
13939 # Commands used to build and install an old-style archive.
13941 old_archive_cmds=$lt_old_archive_cmds_CXX
13942 old_postinstall_cmds=$lt_old_postinstall_cmds
13943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13945 # Create an old-style archive from a shared archive.
13946 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13948 # Create a temporary old-style archive to link instead of a shared archive.
13949 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13951 # Commands used to build and install a shared archive.
13952 archive_cmds=$lt_archive_cmds_CXX
13953 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13954 postinstall_cmds=$lt_postinstall_cmds
13955 postuninstall_cmds=$lt_postuninstall_cmds
13957 # Commands used to build a loadable module (assumed same as above if empty)
13958 module_cmds=$lt_module_cmds_CXX
13959 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13961 # Commands to strip libraries.
13962 old_striplib=$lt_old_striplib
13963 striplib=$lt_striplib
13965 # Dependencies to place before the objects being linked to create a
13967 predep_objects=$lt_predep_objects_CXX
13969 # Dependencies to place after the objects being linked to create a
13971 postdep_objects=$lt_postdep_objects_CXX
13973 # Dependencies to place before the objects being linked to create a
13975 predeps=$lt_predeps_CXX
13977 # Dependencies to place after the objects being linked to create a
13979 postdeps=$lt_postdeps_CXX
13981 # The library search path used internally by the compiler when linking
13982 # a shared library.
13983 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13985 # Method to check whether dependent libraries are shared objects.
13986 deplibs_check_method=$lt_deplibs_check_method
13988 # Command to use when deplibs_check_method == file_magic.
13989 file_magic_cmd=$lt_file_magic_cmd
13991 # Flag that allows shared libraries with undefined symbols to be built.
13992 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13994 # Flag that forces no undefined symbols.
13995 no_undefined_flag=$lt_no_undefined_flag_CXX
13997 # Commands used to finish a libtool library installation in a directory.
13998 finish_cmds=$lt_finish_cmds
14000 # Same as above, but a single script fragment to be evaled but not shown.
14001 finish_eval=$lt_finish_eval
14003 # Take the output of nm and produce a listing of raw symbols and C names.
14004 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14006 # Transform the output of nm in a proper C declaration
14007 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14009 # Transform the output of nm in a C name address pair
14010 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14012 # This is the shared library runtime path variable.
14013 runpath_var=$runpath_var
14015 # This is the shared library path variable.
14016 shlibpath_var=$shlibpath_var
14018 # Is shlibpath searched before the hard-coded library search path?
14019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14021 # How to hardcode a shared library path into an executable.
14022 hardcode_action=$hardcode_action_CXX
14024 # Whether we should hardcode library paths into libraries.
14025 hardcode_into_libs=$hardcode_into_libs
14027 # Flag to hardcode \$libdir into a binary during linking.
14028 # This must work even if \$libdir does not exist.
14029 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14031 # If ld is used when linking, flag to hardcode \$libdir into
14032 # a binary during linking. This must work even if \$libdir does
14034 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14036 # Whether we need a single -rpath flag with a separated argument.
14037 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14039 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14040 # resulting binary.
14041 hardcode_direct=$hardcode_direct_CXX
14043 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14044 # resulting binary.
14045 hardcode_minus_L=$hardcode_minus_L_CXX
14047 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14048 # the resulting binary.
14049 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14051 # Set to yes if building a shared library automatically hardcodes DIR into the library
14052 # and all subsequent libraries and executables linked against it.
14053 hardcode_automatic=$hardcode_automatic_CXX
14055 # Variables whose values should be saved in libtool wrapper scripts and
14056 # restored at relink time.
14057 variables_saved_for_relink="$variables_saved_for_relink"
14059 # Whether libtool must link a program against all its dependency libraries.
14060 link_all_deplibs=$link_all_deplibs_CXX
14062 # Compile-time system search path for libraries
14063 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14065 # Run-time system search path for libraries
14066 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14068 # Fix the shell variable \$srcfile for the compiler.
14069 fix_srcfile_path="$fix_srcfile_path_CXX"
14071 # Set to yes if exported symbols are required.
14072 always_export_symbols=$always_export_symbols_CXX
14074 # The commands to list exported symbols.
14075 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14077 # The commands to extract the exported symbol list from a shared archive.
14078 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14080 # Symbols that should not be listed in the preloaded symbols.
14081 exclude_expsyms=$lt_exclude_expsyms_CXX
14083 # Symbols that must always be exported.
14084 include_expsyms=$lt_include_expsyms_CXX
14086 # ### END LIBTOOL TAG CONFIG: $tagname
14092 # If there is no Makefile yet, we rely on a make rule to execute
14093 # `config.status --recheck' to rerun these tests and create the
14094 # libtool script then.
14095 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14096 if test -f "$ltmain_in"; then
14097 test -f Makefile && make "$ltmain"
14103 ac_cpp='$CPP $CPPFLAGS'
14104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14112 with_gnu_ldcxx=$with_gnu_ld
14113 with_gnu_ld=$lt_save_with_gnu_ld
14114 lt_cv_path_LDCXX=$lt_cv_path_LD
14115 lt_cv_path_LD=$lt_save_path_LD
14116 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14117 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14125 if test -n "$F77" && test "X$F77" != "Xno"; then
14128 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14129 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14130 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14133 archive_cmds_need_lc_F77=no
14134 allow_undefined_flag_F77=
14135 always_export_symbols_F77=no
14136 archive_expsym_cmds_F77=
14137 export_dynamic_flag_spec_F77=
14138 hardcode_direct_F77=no
14139 hardcode_libdir_flag_spec_F77=
14140 hardcode_libdir_flag_spec_ld_F77=
14141 hardcode_libdir_separator_F77=
14142 hardcode_minus_L_F77=no
14143 hardcode_automatic_F77=no
14145 module_expsym_cmds_F77=
14146 link_all_deplibs_F77=unknown
14147 old_archive_cmds_F77=$old_archive_cmds
14148 no_undefined_flag_F77=
14149 whole_archive_flag_spec_F77=
14150 enable_shared_with_static_runtimes_F77=no
14152 # Source file extension for f77 test sources.
14155 # Object file extension for compiled f77 test sources.
14159 # Code to be used in simple compile tests
14160 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14162 # Code to be used in simple link tests
14163 lt_simple_link_test_code=" program t\n end\n"
14165 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14167 # If no C compiler was specified, use CC.
14170 # Allow CC to be a program name with arguments.
14174 # save warnings/boilerplate of simple test code
14175 ac_outfile=conftest.$ac_objext
14176 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14177 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14178 _lt_compiler_boilerplate=`cat conftest.err`
14181 ac_outfile=conftest.$ac_objext
14182 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14183 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
14184 _lt_linker_boilerplate=`cat conftest.err`
14188 # Allow CC to be a program name with arguments.
14193 for cc_temp in $compiler""; do
14195 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14196 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14201 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14204 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14205 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14206 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14207 echo "${ECHO_T}$can_build_shared" >&6; }
14209 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14210 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14211 test "$can_build_shared" = "no" && enable_shared=no
14213 # On AIX, shared libraries and static libraries use the same namespace, and
14214 # are all built from PIC.
14217 test "$enable_shared" = yes && enable_static=no
14218 if test -n "$RANLIB"; then
14219 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14220 postinstall_cmds='$RANLIB $lib'
14224 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14225 test "$enable_shared" = yes && enable_static=no
14229 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14230 echo "${ECHO_T}$enable_shared" >&6; }
14232 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14233 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14234 # Make sure either enable_shared or enable_static is yes.
14235 test "$enable_shared" = yes || enable_static=yes
14236 { echo "$as_me:$LINENO: result: $enable_static" >&5
14237 echo "${ECHO_T}$enable_static" >&6; }
14239 test "$ld_shlibs_F77" = no && can_build_shared=no
14244 lt_prog_compiler_wl_F77=
14245 lt_prog_compiler_pic_F77=
14246 lt_prog_compiler_static_F77=
14248 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14249 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14251 if test "$GCC" = yes; then
14252 lt_prog_compiler_wl_F77='-Wl,'
14253 lt_prog_compiler_static_F77='-static'
14257 # All AIX code is PIC.
14258 if test "$host_cpu" = ia64; then
14259 # AIX 5 now supports IA64 processor
14260 lt_prog_compiler_static_F77='-Bstatic'
14265 # FIXME: we need at least 68020 code to build shared libraries, but
14266 # adding the `-m68020' flag to GCC prevents building anything better,
14268 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14271 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14272 # PIC is the default for these OSes.
14275 mingw* | pw32* | os2*)
14276 # This hack is so that the source file can tell whether it is being
14277 # built for inclusion in a dll (and should export symbols for example).
14278 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14281 darwin* | rhapsody*)
14282 # PIC is the default on this platform
14283 # Common symbols not allowed in MH_DYLIB files
14284 lt_prog_compiler_pic_F77='-fno-common'
14288 # Just because we use GCC doesn't mean we suddenly get shared libraries
14289 # on systems that don't support them.
14290 lt_prog_compiler_can_build_shared_F77=no
14295 if test -d /usr/nec; then
14296 lt_prog_compiler_pic_F77=-Kconform_pic
14301 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14302 # not for PA HP-UX.
14303 case "$host_cpu" in
14308 lt_prog_compiler_pic_F77='-fPIC'
14314 lt_prog_compiler_pic_F77='-fPIC'
14318 # PORTME Check for flag to pass linker flags through the system compiler.
14321 lt_prog_compiler_wl_F77='-Wl,'
14322 if test "$host_cpu" = ia64; then
14323 # AIX 5 now supports IA64 processor
14324 lt_prog_compiler_static_F77='-Bstatic'
14326 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14330 # PIC is the default on this platform
14331 # Common symbols not allowed in MH_DYLIB files
14332 case $cc_basename in
14334 lt_prog_compiler_pic_F77='-qnocommon'
14335 lt_prog_compiler_wl_F77='-Wl,'
14340 mingw* | pw32* | os2*)
14341 # This hack is so that the source file can tell whether it is being
14342 # built for inclusion in a dll (and should export symbols for example).
14343 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14346 hpux9* | hpux10* | hpux11*)
14347 lt_prog_compiler_wl_F77='-Wl,'
14348 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14349 # not for PA HP-UX.
14350 case "$host_cpu" in
14355 lt_prog_compiler_pic_F77='+Z'
14358 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14359 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14362 irix5* | irix6* | nonstopux*)
14363 lt_prog_compiler_wl_F77='-Wl,'
14364 # PIC (with -KPIC) is the default.
14365 lt_prog_compiler_static_F77='-non_shared'
14369 lt_prog_compiler_pic_F77='-KPIC'
14370 lt_prog_compiler_static_F77='-Bstatic'
14374 case $cc_basename in
14376 lt_prog_compiler_wl_F77='-Wl,'
14377 lt_prog_compiler_pic_F77='-KPIC'
14378 lt_prog_compiler_static_F77='-static'
14380 pgcc* | pgf77* | pgf90*)
14381 # Portland Group compilers (*not* the Pentium gcc compiler,
14382 # which looks to be a dead project)
14383 lt_prog_compiler_wl_F77='-Wl,'
14384 lt_prog_compiler_pic_F77='-fpic'
14385 lt_prog_compiler_static_F77='-static'
14388 lt_prog_compiler_wl_F77='-Wl,'
14389 # All Alpha code is PIC.
14390 lt_prog_compiler_static_F77='-non_shared'
14395 osf3* | osf4* | osf5*)
14396 lt_prog_compiler_wl_F77='-Wl,'
14397 # All OSF/1 code is PIC.
14398 lt_prog_compiler_static_F77='-non_shared'
14402 lt_prog_compiler_pic_F77='-Kpic'
14403 lt_prog_compiler_static_F77='-dn'
14407 lt_prog_compiler_pic_F77='-KPIC'
14408 lt_prog_compiler_static_F77='-Bstatic'
14409 case $cc_basename in
14410 f77* | f90* | f95*)
14411 lt_prog_compiler_wl_F77='-Qoption ld ';;
14413 lt_prog_compiler_wl_F77='-Wl,';;
14418 lt_prog_compiler_wl_F77='-Qoption ld '
14419 lt_prog_compiler_pic_F77='-PIC'
14420 lt_prog_compiler_static_F77='-Bstatic'
14423 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14424 lt_prog_compiler_wl_F77='-Wl,'
14425 lt_prog_compiler_pic_F77='-KPIC'
14426 lt_prog_compiler_static_F77='-Bstatic'
14430 if test -d /usr/nec ;then
14431 lt_prog_compiler_pic_F77='-Kconform_pic'
14432 lt_prog_compiler_static_F77='-Bstatic'
14437 lt_prog_compiler_wl_F77='-Wl,'
14438 lt_prog_compiler_can_build_shared_F77=no
14442 lt_prog_compiler_pic_F77='-pic'
14443 lt_prog_compiler_static_F77='-Bstatic'
14447 lt_prog_compiler_can_build_shared_F77=no
14452 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14453 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14456 # Check to make sure the PIC flag actually works.
14458 if test -n "$lt_prog_compiler_pic_F77"; then
14460 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14461 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14462 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 lt_prog_compiler_pic_works_F77=no
14466 ac_outfile=conftest.$ac_objext
14467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14468 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14469 # Insert the option either (1) after the last *FLAGS variable, or
14470 # (2) before a word containing "conftest.", or (3) at the end.
14471 # Note that $ac_compile itself does not contain backslashes and begins
14472 # with a dollar sign (not a hyphen), so the echo should work correctly.
14473 # The option is referenced via a variable to avoid confusing sed.
14474 lt_compile=`echo "$ac_compile" | $SED \
14475 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14477 -e 's:$: $lt_compiler_flag:'`
14478 (eval echo "\"\$as_me:14478: $lt_compile\"" >&5)
14479 (eval "$lt_compile" 2>conftest.err)
14481 cat conftest.err >&5
14482 echo "$as_me:14482: \$? = $ac_status" >&5
14483 if (exit $ac_status) && test -s "$ac_outfile"; then
14484 # The compiler can only warn and ignore the option if not recognized
14485 # So say no if there are warnings other than the usual output.
14486 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
14487 $SED '/^$/d' conftest.err >conftest.er2
14488 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
14489 lt_prog_compiler_pic_works_F77=yes
14495 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14496 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14498 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14499 case $lt_prog_compiler_pic_F77 in
14501 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14504 lt_prog_compiler_pic_F77=
14505 lt_prog_compiler_can_build_shared_F77=no
14510 # For platforms which do not support PIC, -DPIC is meaningless:
14512 lt_prog_compiler_pic_F77=
14515 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14519 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14520 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14521 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 lt_cv_prog_compiler_c_o_F77=no
14525 $rm -r conftest 2>/dev/null
14529 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14531 lt_compiler_flag="-o out/conftest2.$ac_objext"
14532 # Insert the option either (1) after the last *FLAGS variable, or
14533 # (2) before a word containing "conftest.", or (3) at the end.
14534 # Note that $ac_compile itself does not contain backslashes and begins
14535 # with a dollar sign (not a hyphen), so the echo should work correctly.
14536 lt_compile=`echo "$ac_compile" | $SED \
14537 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14538 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14539 -e 's:$: $lt_compiler_flag:'`
14540 (eval echo "\"\$as_me:14540: $lt_compile\"" >&5)
14541 (eval "$lt_compile" 2>out/conftest.err)
14543 cat out/conftest.err >&5
14544 echo "$as_me:14544: \$? = $ac_status" >&5
14545 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14547 # The compiler can only warn and ignore the option if not recognized
14548 # So say no if there are warnings
14549 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
14550 $SED '/^$/d' out/conftest.err >out/conftest.er2
14551 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14552 lt_cv_prog_compiler_c_o_F77=yes
14557 # SGI C++ compiler will create directory out/ii_files/ for
14558 # template instantiation
14559 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14560 $rm out/* && rmdir out
14566 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14567 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14570 hard_links="nottested"
14571 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14572 # do not overwrite the value of need_locks provided by the user
14573 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14574 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14577 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14579 ln conftest.a conftest.b 2>&5 || hard_links=no
14580 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14581 { echo "$as_me:$LINENO: result: $hard_links" >&5
14582 echo "${ECHO_T}$hard_links" >&6; }
14583 if test "$hard_links" = no; then
14584 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14585 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14592 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14593 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14596 allow_undefined_flag_F77=
14597 enable_shared_with_static_runtimes_F77=no
14599 archive_expsym_cmds_F77=
14600 old_archive_From_new_cmds_F77=
14601 old_archive_from_expsyms_cmds_F77=
14602 export_dynamic_flag_spec_F77=
14603 whole_archive_flag_spec_F77=
14604 thread_safe_flag_spec_F77=
14605 hardcode_libdir_flag_spec_F77=
14606 hardcode_libdir_flag_spec_ld_F77=
14607 hardcode_libdir_separator_F77=
14608 hardcode_direct_F77=no
14609 hardcode_minus_L_F77=no
14610 hardcode_shlibpath_var_F77=unsupported
14611 link_all_deplibs_F77=unknown
14612 hardcode_automatic_F77=no
14614 module_expsym_cmds_F77=
14615 always_export_symbols_F77=no
14616 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14617 # include_expsyms should be a list of space-separated symbols to be *always*
14618 # included in the symbol list
14619 include_expsyms_F77=
14620 # exclude_expsyms can be an extended regexp of symbols to exclude
14621 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14622 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14623 # as well as any symbol that contains `d'.
14624 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14625 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14626 # platforms (ab)use it in PIC code, but their linkers get confused if
14627 # the symbol is explicitly referenced. Since portable code cannot
14628 # rely on this symbol name, it's probably fine to never include it in
14629 # preloaded symbol tables.
14630 extract_expsyms_cmds=
14631 # Just being paranoid about ensuring that cc_basename is set.
14632 for cc_temp in $compiler""; do
14634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14640 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14643 cygwin* | mingw* | pw32*)
14644 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14645 # When not using gcc, we currently assume that we are using
14646 # Microsoft Visual C++.
14647 if test "$GCC" != yes; then
14657 if test "$with_gnu_ld" = yes; then
14658 # If archive_cmds runs LD, not CC, wlarc should be empty
14661 # Set some defaults for GNU ld with shared library support. These
14662 # are reset later if shared libraries are not supported. Putting them
14663 # here allows them to be overridden if necessary.
14664 runpath_var=LD_RUN_PATH
14665 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14666 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14667 # ancient GNU ld didn't support --whole-archive et. al.
14668 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14669 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14671 whole_archive_flag_spec_F77=
14673 supports_anon_versioning=no
14674 case `$LD -v 2>/dev/null` in
14675 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14676 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14677 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14678 *\ 2.11.*) ;; # other 2.11 versions
14679 *) supports_anon_versioning=yes ;;
14682 # See if GNU ld supports shared libraries.
14684 aix3* | aix4* | aix5*)
14685 # On AIX/PPC, the GNU linker is very broken
14686 if test "$host_cpu" != ia64; then
14690 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14691 *** to be unable to reliably create shared libraries on AIX.
14692 *** Therefore, libtool is disabling shared libraries support. If you
14693 *** really care for shared libraries, you may want to modify your PATH
14694 *** so that a non-GNU linker is found, and then restart.
14701 archive_cmds_F77='$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)'
14702 hardcode_libdir_flag_spec_F77='-L$libdir'
14703 hardcode_minus_L_F77=yes
14705 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14706 # that the semantics of dynamic libraries on AmigaOS, at least up
14707 # to version 4, is to share data among multiple programs linked
14708 # with the same dynamic library. Since this doesn't match the
14709 # behavior of shared libraries on other platforms, we can't use
14715 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14716 allow_undefined_flag_F77=unsupported
14717 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14718 # support --undefined. This deserves some investigation. FIXME
14719 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14725 cygwin* | mingw* | pw32*)
14726 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14727 # as there is no search path for DLLs.
14728 hardcode_libdir_flag_spec_F77='-L$libdir'
14729 allow_undefined_flag_F77=unsupported
14730 always_export_symbols_F77=no
14731 enable_shared_with_static_runtimes_F77=yes
14732 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14734 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14735 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14736 # If the export-symbols file already is a .def file (1st line
14737 # is EXPORTS), use it as is; otherwise, prepend...
14738 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14739 cp $export_symbols $output_objdir/$soname.def;
14741 echo EXPORTS > $output_objdir/$soname.def;
14742 cat $export_symbols >> $output_objdir/$soname.def;
14744 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
14751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14753 case $cc_basename,$host_cpu in
14754 pgcc*) # Portland Group C compiler
14755 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14756 tmp_addflag=' $pic_flag'
14758 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
14759 whole_archive_flag_spec_F77='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14760 tmp_addflag=' $pic_flag -Mnomain' ;;
14761 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14762 tmp_addflag=' -i_dynamic' ;;
14763 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14764 tmp_addflag=' -i_dynamic -nofor_main' ;;
14765 ifc* | ifort*) # Intel Fortran compiler
14766 tmp_addflag=' -nofor_main' ;;
14768 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14770 if test $supports_anon_versioning = yes; then
14771 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14773 $echo "local: *; };" >> $output_objdir/$libname.ver~
14774 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14783 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14786 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14787 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14792 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14796 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14797 *** create shared libraries on Solaris systems. Therefore, libtool
14798 *** is disabling shared libraries support. We urge you to upgrade GNU
14799 *** binutils to release 2.9.1 or newer. Another option is to modify
14800 *** your PATH or compiler configuration so that the native linker is
14801 *** used, and then restart.
14804 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14805 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14806 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14813 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14815 hardcode_direct_F77=yes
14816 hardcode_shlibpath_var_F77=no
14820 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14821 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14822 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14829 if test "$ld_shlibs_F77" = no; then
14831 hardcode_libdir_flag_spec_F77=
14832 export_dynamic_flag_spec_F77=
14833 whole_archive_flag_spec_F77=
14836 # PORTME fill in a description of your system's linker (not GNU ld)
14839 allow_undefined_flag_F77=unsupported
14840 always_export_symbols_F77=yes
14841 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14842 # Note: this linker hardcodes the directories in LIBPATH if there
14843 # are no directories specified by -L.
14844 hardcode_minus_L_F77=yes
14845 if test "$GCC" = yes && test -z "$link_static_flag"; then
14846 # Neither direct hardcoding nor static linking is supported with a
14848 hardcode_direct_F77=unsupported
14853 if test "$host_cpu" = ia64; then
14854 # On IA64, the linker does run time linking by default, so we don't
14855 # have to do anything special.
14856 aix_use_runtimelinking=no
14857 exp_sym_flag='-Bexport'
14860 # If we're using GNU nm, then we don't want the "-C" option.
14861 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14862 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14863 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14865 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14867 aix_use_runtimelinking=no
14869 # Test if we are trying to use run time linking or normal
14870 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14871 # need to do runtime linking.
14872 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14873 for ld_flag in $LDFLAGS; do
14874 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14875 aix_use_runtimelinking=yes
14881 exp_sym_flag='-bexport'
14882 no_entry_flag='-bnoentry'
14885 # When large executables or shared objects are built, AIX ld can
14886 # have problems creating the table of contents. If linking a library
14887 # or program results in "error TOC overflow" add -mminimal-toc to
14888 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14889 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14891 archive_cmds_F77=''
14892 hardcode_direct_F77=yes
14893 hardcode_libdir_separator_F77=':'
14894 link_all_deplibs_F77=yes
14896 if test "$GCC" = yes; then
14897 case $host_os in aix4.[012]|aix4.[012].*)
14898 # We only want to do this on AIX 4.2 and lower, the check
14899 # below for broken collect2 doesn't work under 4.3+
14900 collect2name=`${CC} -print-prog-name=collect2`
14901 if test -f "$collect2name" && \
14902 strings "$collect2name" | grep resolve_lib_name >/dev/null
14904 # We have reworked collect2
14905 hardcode_direct_F77=yes
14907 # We have old collect2
14908 hardcode_direct_F77=unsupported
14909 # It fails to find uninstalled libraries when the uninstalled
14910 # path is not listed in the libpath. Setting hardcode_minus_L
14911 # to unsupported forces relinking
14912 hardcode_minus_L_F77=yes
14913 hardcode_libdir_flag_spec_F77='-L$libdir'
14914 hardcode_libdir_separator_F77=
14917 shared_flag='-shared'
14918 if test "$aix_use_runtimelinking" = yes; then
14919 shared_flag="$shared_flag "'${wl}-G'
14923 if test "$host_cpu" = ia64; then
14924 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14925 # chokes on -Wl,-G. The following line is correct:
14928 if test "$aix_use_runtimelinking" = yes; then
14929 shared_flag='${wl}-G'
14931 shared_flag='${wl}-bM:SRE'
14936 # It seems that -bexpall does not export symbols beginning with
14937 # underscore (_), so it is better to generate a list of symbols to export.
14938 always_export_symbols_F77=yes
14939 if test "$aix_use_runtimelinking" = yes; then
14940 # Warning - without using the other runtime loading flags (-brtl),
14941 # -berok will link without error, but may produce a broken library.
14942 allow_undefined_flag_F77='-berok'
14943 # Determine the default libpath from the value encoded in an empty executable.
14944 cat >conftest.$ac_ext <<_ACEOF
14949 rm -f conftest.$ac_objext conftest$ac_exeext
14950 if { (ac_try="$ac_link"
14951 case "(($ac_try" in
14952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14953 *) ac_try_echo=$ac_try;;
14955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14956 (eval "$ac_link") 2>conftest.er1
14958 grep -v '^ *+' conftest.er1 >conftest.err
14960 cat conftest.err >&5
14961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14962 (exit $ac_status); } && {
14963 test -z "$ac_f77_werror_flag" ||
14964 test ! -s conftest.err
14965 } && test -s conftest$ac_exeext &&
14966 $as_test_x conftest$ac_exeext; then
14968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14970 # Check for a 64-bit object if we didn't find anything.
14971 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14974 echo "$as_me: failed program was:" >&5
14975 sed 's/^/| /' conftest.$ac_ext >&5
14980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14981 conftest$ac_exeext conftest.$ac_ext
14982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14984 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14985 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14987 if test "$host_cpu" = ia64; then
14988 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14989 allow_undefined_flag_F77="-z nodefs"
14990 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
14992 # Determine the default libpath from the value encoded in an empty executable.
14993 cat >conftest.$ac_ext <<_ACEOF
14998 rm -f conftest.$ac_objext conftest$ac_exeext
14999 if { (ac_try="$ac_link"
15000 case "(($ac_try" in
15001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15002 *) ac_try_echo=$ac_try;;
15004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15005 (eval "$ac_link") 2>conftest.er1
15007 grep -v '^ *+' conftest.er1 >conftest.err
15009 cat conftest.err >&5
15010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15011 (exit $ac_status); } && {
15012 test -z "$ac_f77_werror_flag" ||
15013 test ! -s conftest.err
15014 } && test -s conftest$ac_exeext &&
15015 $as_test_x conftest$ac_exeext; then
15017 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15019 # Check for a 64-bit object if we didn't find anything.
15020 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15023 echo "$as_me: failed program was:" >&5
15024 sed 's/^/| /' conftest.$ac_ext >&5
15029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15030 conftest$ac_exeext conftest.$ac_ext
15031 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15033 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15034 # Warning - without using the other run time loading flags,
15035 # -berok will link without error, but may produce a broken library.
15036 no_undefined_flag_F77=' ${wl}-bernotok'
15037 allow_undefined_flag_F77=' ${wl}-berok'
15038 # -bexpall does not export symbols beginning with underscore (_)
15039 always_export_symbols_F77=yes
15040 # Exported symbols can be pulled into shared objects from archives
15041 whole_archive_flag_spec_F77=' '
15042 archive_cmds_need_lc_F77=yes
15043 # This is similar to how AIX traditionally builds it's shared libraries.
15044 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15050 archive_cmds_F77='$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)'
15051 hardcode_libdir_flag_spec_F77='-L$libdir'
15052 hardcode_minus_L_F77=yes
15053 # see comment about different semantics on the GNU ld section
15058 export_dynamic_flag_spec_F77=-rdynamic
15061 cygwin* | mingw* | pw32*)
15062 # When not using gcc, we currently assume that we are using
15063 # Microsoft Visual C++.
15064 # hardcode_libdir_flag_spec is actually meaningless, as there is
15065 # no search path for DLLs.
15066 hardcode_libdir_flag_spec_F77=' '
15067 allow_undefined_flag_F77=unsupported
15068 # Tell ltmain to make .lib files, not .a files.
15070 # Tell ltmain to make .dll files, not .so files.
15072 # FIXME: Setting linknames here is a bad hack.
15073 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15074 # The linker will automatically build a .lib file if we build a DLL.
15075 old_archive_From_new_cmds_F77='true'
15076 # FIXME: Should let the user specify the lib program.
15077 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15078 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15079 enable_shared_with_static_runtimes_F77=yes
15082 darwin* | rhapsody*)
15084 rhapsody* | darwin1.[012])
15085 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15088 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15089 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15091 case ${MACOSX_DEPLOYMENT_TARGET} in
15093 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15096 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15102 archive_cmds_need_lc_F77=no
15103 hardcode_direct_F77=no
15104 hardcode_automatic_F77=yes
15105 hardcode_shlibpath_var_F77=unsupported
15106 whole_archive_flag_spec_F77=''
15107 link_all_deplibs_F77=yes
15108 if test "$GCC" = yes ; then
15109 output_verbose_link_cmd='echo'
15110 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15111 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15112 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15113 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15114 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15116 case $cc_basename in
15118 output_verbose_link_cmd='echo'
15119 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15120 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15121 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15122 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15123 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15133 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15134 hardcode_libdir_flag_spec_F77='-L$libdir'
15135 hardcode_shlibpath_var_F77=no
15142 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15143 # support. Future versions do this automatically, but an explicit c++rt0.o
15144 # does not break anything, and helps significantly (at the cost of a little
15147 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15148 hardcode_libdir_flag_spec_F77='-R$libdir'
15149 hardcode_direct_F77=yes
15150 hardcode_shlibpath_var_F77=no
15153 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15155 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15156 hardcode_direct_F77=yes
15157 hardcode_minus_L_F77=yes
15158 hardcode_shlibpath_var_F77=no
15161 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15162 freebsd* | kfreebsd*-gnu | dragonfly*)
15163 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15164 hardcode_libdir_flag_spec_F77='-R$libdir'
15165 hardcode_direct_F77=yes
15166 hardcode_shlibpath_var_F77=no
15170 if test "$GCC" = yes; then
15171 archive_cmds_F77='$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'
15173 archive_cmds_F77='$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'
15175 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15176 hardcode_libdir_separator_F77=:
15177 hardcode_direct_F77=yes
15179 # hardcode_minus_L: Not really in the search PATH,
15180 # but as the default location of the library.
15181 hardcode_minus_L_F77=yes
15182 export_dynamic_flag_spec_F77='${wl}-E'
15186 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15187 case "$host_cpu" in
15189 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15192 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15196 case "$host_cpu" in
15198 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15201 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15205 if test "$with_gnu_ld" = no; then
15206 case "$host_cpu" in
15208 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15209 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15210 hardcode_libdir_separator_F77=:
15211 hardcode_direct_F77=no
15212 hardcode_shlibpath_var_F77=no
15215 hardcode_libdir_flag_spec_F77='-L$libdir'
15216 hardcode_direct_F77=no
15217 hardcode_shlibpath_var_F77=no
15219 # hardcode_minus_L: Not really in the search PATH,
15220 # but as the default location of the library.
15221 hardcode_minus_L_F77=yes
15224 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15225 hardcode_libdir_separator_F77=:
15226 hardcode_direct_F77=yes
15227 export_dynamic_flag_spec_F77='${wl}-E'
15229 # hardcode_minus_L: Not really in the search PATH,
15230 # but as the default location of the library.
15231 hardcode_minus_L_F77=yes
15237 irix5* | irix6* | nonstopux*)
15238 if test "$GCC" = yes; then
15239 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15241 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15242 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15244 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15245 hardcode_libdir_separator_F77=:
15246 link_all_deplibs_F77=yes
15250 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15251 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15253 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15255 hardcode_libdir_flag_spec_F77='-R$libdir'
15256 hardcode_direct_F77=yes
15257 hardcode_shlibpath_var_F77=no
15261 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15262 hardcode_direct_F77=yes
15263 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15264 hardcode_libdir_separator_F77=:
15265 hardcode_shlibpath_var_F77=no
15269 hardcode_direct_F77=yes
15270 hardcode_shlibpath_var_F77=no
15271 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15272 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15273 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15274 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15275 export_dynamic_flag_spec_F77='${wl}-E'
15278 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15279 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15280 hardcode_libdir_flag_spec_F77='-R$libdir'
15283 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15284 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15291 hardcode_libdir_flag_spec_F77='-L$libdir'
15292 hardcode_minus_L_F77=yes
15293 allow_undefined_flag_F77=unsupported
15294 archive_cmds_F77='$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'
15295 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15299 if test "$GCC" = yes; then
15300 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15301 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15303 allow_undefined_flag_F77=' -expect_unresolved \*'
15304 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15306 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15307 hardcode_libdir_separator_F77=:
15310 osf4* | osf5*) # as osf3* with the addition of -msym flag
15311 if test "$GCC" = yes; then
15312 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15313 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15314 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15316 allow_undefined_flag_F77=' -expect_unresolved \*'
15317 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15318 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15319 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15321 # Both c and cxx compiler support -rpath directly
15322 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15324 hardcode_libdir_separator_F77=:
15328 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15329 hardcode_shlibpath_var_F77=no
15330 export_dynamic_flag_spec_F77='${wl}-Bexport'
15331 runpath_var=LD_RUN_PATH
15332 hardcode_runpath_var=yes
15336 no_undefined_flag_F77=' -z text'
15337 if test "$GCC" = yes; then
15339 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15340 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15341 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15344 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15345 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15346 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15348 hardcode_libdir_flag_spec_F77='-R$libdir'
15349 hardcode_shlibpath_var_F77=no
15351 solaris2.[0-5] | solaris2.[0-5].*) ;;
15353 # The compiler driver will combine linker options so we
15354 # cannot just pass the convience library names through
15355 # without $wl, iff we do not link with $LD.
15356 # Luckily, gcc supports the same syntax we need for Sun Studio.
15357 # Supported since Solaris 2.6 (maybe 2.5.1?)
15360 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15362 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
15365 link_all_deplibs_F77=yes
15369 if test "x$host_vendor" = xsequent; then
15370 # Use $CC to link under sequent, because it throws in some extra .o
15371 # files that make .init and .fini sections work.
15372 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15374 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15376 hardcode_libdir_flag_spec_F77='-L$libdir'
15377 hardcode_direct_F77=yes
15378 hardcode_minus_L_F77=yes
15379 hardcode_shlibpath_var_F77=no
15383 case $host_vendor in
15385 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15386 hardcode_direct_F77=yes # is this really true???
15389 ## LD is ld it makes a PLAMLIB
15390 ## CC just makes a GrossModule.
15391 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15392 reload_cmds_F77='$CC -r -o $output$reload_objs'
15393 hardcode_direct_F77=no
15396 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15397 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15400 runpath_var='LD_RUN_PATH'
15401 hardcode_shlibpath_var_F77=no
15405 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15406 hardcode_shlibpath_var_F77=no
15407 export_dynamic_flag_spec_F77='-Bexport'
15411 if test -d /usr/nec; then
15412 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15413 hardcode_shlibpath_var_F77=no
15414 runpath_var=LD_RUN_PATH
15415 hardcode_runpath_var=yes
15421 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15422 hardcode_direct_F77=yes
15423 hardcode_minus_L_F77=no
15424 hardcode_shlibpath_var_F77=no
15425 hardcode_runpath_var=yes
15426 runpath_var=LD_RUN_PATH
15429 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15430 no_undefined_flag_F77='${wl}-z ${wl}text'
15431 if test "$GCC" = yes; then
15432 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15434 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15436 runpath_var='LD_RUN_PATH'
15437 hardcode_shlibpath_var_F77=no
15441 no_undefined_flag_F77=' -z text'
15442 # $CC -shared without GNU ld will not create a library from C++
15443 # object files and a static libstdc++, better avoid it by now
15444 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15445 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15446 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15447 hardcode_libdir_flag_spec_F77=
15448 hardcode_shlibpath_var_F77=no
15449 runpath_var='LD_RUN_PATH'
15453 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15454 hardcode_libdir_flag_spec_F77='-L$libdir'
15455 hardcode_shlibpath_var_F77=no
15464 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15465 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15466 test "$ld_shlibs_F77" = no && can_build_shared=no
15468 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15469 if test "$GCC" = yes; then
15470 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15474 # Do we need to explicitly link libc?
15476 case "x$archive_cmds_need_lc_F77" in
15478 # Assume -lc should be added
15479 archive_cmds_need_lc_F77=yes
15481 if test "$enable_shared" = yes && test "$GCC" = yes; then
15482 case $archive_cmds_F77 in
15484 # FIXME: we may have to deal with multi-command sequences.
15487 # Test whether the compiler implicitly links with -lc since on some
15488 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15489 # to ld, don't add -lc before -lgcc.
15490 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15491 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15493 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15496 (eval $ac_compile) 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } 2>conftest.err; then
15502 libobjs=conftest.$ac_objext
15504 wl=$lt_prog_compiler_wl_F77
15510 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15511 allow_undefined_flag_F77=
15512 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15513 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15516 (exit $ac_status); }
15518 archive_cmds_need_lc_F77=no
15520 archive_cmds_need_lc_F77=yes
15522 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15524 cat conftest.err 1>&5
15527 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15528 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15535 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15536 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15537 library_names_spec=
15538 libname_spec='lib$name'
15542 postuninstall_cmds=
15546 shlibpath_overrides_runpath=unknown
15548 dynamic_linker="$host_os ld.so"
15549 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15550 if test "$GCC" = yes; then
15551 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15552 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15553 # if the path contains ";" then we assume it to be the separator
15554 # otherwise default to the standard path separator (i.e. ":") - it is
15555 # assumed that no part of a normal pathname contains ";" but that should
15556 # okay in the real world where ";" in dirpaths is itself problematic.
15557 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15562 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15564 need_lib_prefix=unknown
15565 hardcode_into_libs=no
15567 # when you set need_version to no, make sure it does not cause -set_version
15568 # flags to be left without arguments
15569 need_version=unknown
15574 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15575 shlibpath_var=LIBPATH
15577 # AIX 3 has no versioning support, so we append a major version to the name.
15578 soname_spec='${libname}${release}${shared_ext}$major'
15585 hardcode_into_libs=yes
15586 if test "$host_cpu" = ia64; then
15587 # AIX 5 supports IA64
15588 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15589 shlibpath_var=LD_LIBRARY_PATH
15591 # With GCC up to 2.95.x, collect2 would create an import file
15592 # for dependence libraries. The import file would start with
15593 # the line `#! .'. This would cause the generated library to
15594 # depend on `.', always an invalid library. This was fixed in
15595 # development snapshots of GCC prior to 3.0.
15597 aix4 | aix4.[01] | aix4.[01].*)
15598 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15600 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15603 can_build_shared=no
15607 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15608 # soname into executable. Probably we can add versioning support to
15609 # collect2, so additional links can be useful in future.
15610 if test "$aix_use_runtimelinking" = yes; then
15611 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15612 # instead of lib<name>.a to let people know that these are not
15613 # typical AIX shared libraries.
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15616 # We preserve .a as extension for shared libraries through AIX4.2
15617 # and later when we are not doing run time linking.
15618 library_names_spec='${libname}${release}.a $libname.a'
15619 soname_spec='${libname}${release}${shared_ext}$major'
15621 shlibpath_var=LIBPATH
15626 library_names_spec='$libname.ixlibrary $libname.a'
15627 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15628 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'
15632 library_names_spec='${libname}${shared_ext}'
15633 dynamic_linker="$host_os ld.so"
15634 shlibpath_var=LIBRARY_PATH
15640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15641 soname_spec='${libname}${release}${shared_ext}$major'
15642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15643 shlibpath_var=LD_LIBRARY_PATH
15644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15646 # the default ld.so.conf also contains /usr/contrib/lib and
15647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15648 # libtool to hard-code these into programs
15651 cygwin* | mingw* | pw32*)
15652 version_type=windows
15657 case $GCC,$host_os in
15658 yes,cygwin* | yes,mingw* | yes,pw32*)
15659 library_names_spec='$libname.dll.a'
15660 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15661 postinstall_cmds='base_file=`basename \${file}`~
15662 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15663 dldir=$destdir/`dirname \$dlpath`~
15664 test -d \$dldir || mkdir -p \$dldir~
15665 $install_prog $dir/$dlname \$dldir/$dlname'
15666 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15667 dlpath=$dir/\$dldll~
15669 shlibpath_overrides_runpath=yes
15673 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15674 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15675 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15678 # MinGW DLLs use traditional 'lib' prefix
15679 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15680 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15681 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15682 # It is most probably a Windows format PATH printed by
15683 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15684 # path with ; separators, and with drive letters. We can handle the
15685 # drive letters (cygwin fileutils understands them), so leave them,
15686 # especially as we might pass files found there to a mingw objdump,
15687 # which wouldn't understand a cygwinified path. Ahh.
15688 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15690 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15694 # pw32 DLLs use 'pw' prefix rather than 'lib'
15695 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15701 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15704 dynamic_linker='Win32 ld.exe'
15705 # FIXME: first we should search . and the directory the executable is in
15709 darwin* | rhapsody*)
15710 dynamic_linker="$host_os dyld"
15711 version_type=darwin
15714 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15715 soname_spec='${libname}${release}${major}$shared_ext'
15716 shlibpath_overrides_runpath=yes
15717 shlibpath_var=DYLD_LIBRARY_PATH
15718 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
15719 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15720 if test "$GCC" = yes; then
15721 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15723 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15725 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15733 soname_spec='${libname}${release}${shared_ext}$major'
15734 shlibpath_var=LD_LIBRARY_PATH
15745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15746 soname_spec='${libname}${release}${shared_ext}$major'
15747 shlibpath_var=LD_LIBRARY_PATH
15748 shlibpath_overrides_runpath=no
15749 hardcode_into_libs=yes
15750 dynamic_linker='GNU ld.so'
15753 freebsd* | dragonfly*)
15754 # DragonFly does not have aout. When/if they implement a new
15755 # versioning mechanism, adjust this.
15756 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15757 version_type=freebsd-$objformat
15758 case $version_type in
15760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15765 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15769 shlibpath_var=LD_LIBRARY_PATH
15772 shlibpath_overrides_runpath=yes
15774 freebsd3.[01]* | freebsdelf3.[01]*)
15775 shlibpath_overrides_runpath=yes
15776 hardcode_into_libs=yes
15779 shlibpath_overrides_runpath=no
15780 hardcode_into_libs=yes
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15790 soname_spec='${libname}${release}${shared_ext}$major'
15791 shlibpath_var=LD_LIBRARY_PATH
15792 hardcode_into_libs=yes
15795 hpux9* | hpux10* | hpux11*)
15796 # Give a soname corresponding to the major version so that dld.sl refuses to
15797 # link against other versions.
15801 case "$host_cpu" in
15804 hardcode_into_libs=yes
15805 dynamic_linker="$host_os dld.so"
15806 shlibpath_var=LD_LIBRARY_PATH
15807 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15809 soname_spec='${libname}${release}${shared_ext}$major'
15810 if test "X$HPUX_IA64_MODE" = X32; then
15811 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15813 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15815 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15819 hardcode_into_libs=yes
15820 dynamic_linker="$host_os dld.sl"
15821 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15822 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15824 soname_spec='${libname}${release}${shared_ext}$major'
15825 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15826 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15830 dynamic_linker="$host_os dld.sl"
15831 shlibpath_var=SHLIB_PATH
15832 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15834 soname_spec='${libname}${release}${shared_ext}$major'
15837 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15838 postinstall_cmds='chmod 555 $lib'
15841 irix5* | irix6* | nonstopux*)
15843 nonstopux*) version_type=nonstopux ;;
15845 if test "$lt_cv_prog_gnu_ld" = yes; then
15853 soname_spec='${libname}${release}${shared_ext}$major'
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15856 irix5* | nonstopux*)
15857 libsuff= shlibsuff=
15860 case $LD in # libtool.m4 will add one of these switches to LD
15861 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15862 libsuff= shlibsuff= libmagic=32-bit;;
15863 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15864 libsuff=32 shlibsuff=N32 libmagic=N32;;
15865 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15866 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15867 *) libsuff= shlibsuff= libmagic=never-match;;
15871 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15872 shlibpath_overrides_runpath=no
15873 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15874 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15875 hardcode_into_libs=yes
15878 # No shared lib support for Linux oldld, aout, or coff.
15879 linux*oldld* | linux*aout* | linux*coff*)
15883 # This must be Linux ELF.
15888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15889 soname_spec='${libname}${release}${shared_ext}$major'
15890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15891 shlibpath_var=LD_LIBRARY_PATH
15892 shlibpath_overrides_runpath=no
15893 # This implies no fast_install, which is unacceptable.
15894 # Some rework will be needed to allow for fast_install
15895 # before this can be enabled.
15896 hardcode_into_libs=yes
15898 # Append ld.so.conf contents to the search path
15899 if test -f /etc/ld.so.conf; then
15900 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15901 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15904 # We used to test for /lib/ld.so.1 and disable shared libraries on
15905 # powerpc, because MkLinux only supported shared libraries with the
15906 # GNU dynamic linker. Since this was broken with cross compilers,
15907 # most powerpc-linux boxes support dynamic linking these days and
15908 # people can always --disable-shared, the test was removed, and we
15909 # assume the GNU/Linux dynamic linker is in use.
15910 dynamic_linker='GNU/Linux ld.so'
15917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15918 soname_spec='${libname}${release}${shared_ext}$major'
15919 shlibpath_var=LD_LIBRARY_PATH
15920 shlibpath_overrides_runpath=no
15921 hardcode_into_libs=yes
15922 dynamic_linker='GNU ld.so'
15929 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15932 dynamic_linker='NetBSD (a.out) ld.so'
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15935 soname_spec='${libname}${release}${shared_ext}$major'
15936 dynamic_linker='NetBSD ld.elf_so'
15938 shlibpath_var=LD_LIBRARY_PATH
15939 shlibpath_overrides_runpath=yes
15940 hardcode_into_libs=yes
15945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15946 shlibpath_var=LD_LIBRARY_PATH
15947 shlibpath_overrides_runpath=yes
15954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15955 soname_spec='${libname}${release}${shared_ext}$major'
15956 shlibpath_var=LD_LIBRARY_PATH
15957 shlibpath_overrides_runpath=yes
15963 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15965 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15966 *) need_version=no ;;
15968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15969 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15970 shlibpath_var=LD_LIBRARY_PATH
15971 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15973 openbsd2.[89] | openbsd2.[89].*)
15974 shlibpath_overrides_runpath=no
15977 shlibpath_overrides_runpath=yes
15981 shlibpath_overrides_runpath=yes
15986 libname_spec='$name'
15989 library_names_spec='$libname${shared_ext} $libname.a'
15990 dynamic_linker='OS/2 ld.exe'
15991 shlibpath_var=LIBPATH
15994 osf3* | osf4* | osf5*)
15998 soname_spec='${libname}${release}${shared_ext}$major'
15999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16000 shlibpath_var=LD_LIBRARY_PATH
16001 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16002 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16007 soname_spec='${libname}${release}${shared_ext}$major'
16008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16009 shlibpath_var=LD_LIBRARY_PATH
16016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16017 soname_spec='${libname}${release}${shared_ext}$major'
16018 shlibpath_var=LD_LIBRARY_PATH
16019 shlibpath_overrides_runpath=yes
16020 hardcode_into_libs=yes
16021 # ldd complains unless libraries are executable
16022 postinstall_cmds='chmod +x $lib'
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16028 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16029 shlibpath_var=LD_LIBRARY_PATH
16030 shlibpath_overrides_runpath=yes
16031 if test "$with_gnu_ld" = yes; then
16037 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040 soname_spec='${libname}${release}${shared_ext}$major'
16041 shlibpath_var=LD_LIBRARY_PATH
16042 case $host_vendor in
16044 shlibpath_overrides_runpath=no
16046 export_dynamic_flag_spec='${wl}-Blargedynsym'
16047 runpath_var=LD_RUN_PATH
16055 shlibpath_overrides_runpath=no
16056 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16062 if test -d /usr/nec ;then
16064 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16065 soname_spec='$libname${shared_ext}.$major'
16066 shlibpath_var=LD_LIBRARY_PATH
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 shlibpath_var=LD_LIBRARY_PATH
16081 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16082 echo "${ECHO_T}$dynamic_linker" >&6; }
16083 test "$dynamic_linker" = no && can_build_shared=no
16085 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16086 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16087 hardcode_action_F77=
16088 if test -n "$hardcode_libdir_flag_spec_F77" || \
16089 test -n "$runpath_var_F77" || \
16090 test "X$hardcode_automatic_F77" = "Xyes" ; then
16092 # We can hardcode non-existant directories.
16093 if test "$hardcode_direct_F77" != no &&
16094 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16095 # have to relink, otherwise we might link with an installed library
16096 # when we should be linking with a yet-to-be-installed one
16097 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16098 test "$hardcode_minus_L_F77" != no; then
16099 # Linking always hardcodes the temporary library directory.
16100 hardcode_action_F77=relink
16102 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16103 hardcode_action_F77=immediate
16106 # We cannot hardcode anything, or else we can only hardcode existing
16108 hardcode_action_F77=unsupported
16110 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16111 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16113 if test "$hardcode_action_F77" = relink; then
16114 # Fast installation is not supported
16115 enable_fast_install=no
16116 elif test "$shlibpath_overrides_runpath" = yes ||
16117 test "$enable_shared" = no; then
16118 # Fast installation is not necessary
16119 enable_fast_install=needless
16124 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16125 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
16126 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16127 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16128 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16129 { echo "$as_me:$LINENO: result: yes" >&5
16130 echo "${ECHO_T}yes" >&6; }
16132 # FIXME - insert some real tests, host_os isn't really good enough
16135 if test -n "$STRIP" ; then
16136 striplib="$STRIP -x"
16137 { echo "$as_me:$LINENO: result: yes" >&5
16138 echo "${ECHO_T}yes" >&6; }
16140 { echo "$as_me:$LINENO: result: no" >&5
16141 echo "${ECHO_T}no" >&6; }
16145 { echo "$as_me:$LINENO: result: no" >&5
16146 echo "${ECHO_T}no" >&6; }
16153 # The else clause should only fire when bootstrapping the
16154 # libtool distribution, otherwise you forgot to ship ltmain.sh
16155 # with your package, and you will get complaints that there are
16156 # no rules to generate ltmain.sh.
16157 if test -f "$ltmain"; then
16158 # See if we are running on zsh, and set the options which allow our commands through
16159 # without removal of \ escapes.
16160 if test -n "${ZSH_VERSION+set}" ; then
16161 setopt NO_GLOB_SUBST
16163 # Now quote all the things that may contain metacharacters while being
16164 # careful not to overquote the AC_SUBSTed values. We take copies of the
16165 # variables and quote the copies for generation of the libtool script.
16166 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
16168 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16169 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16170 deplibs_check_method reload_flag reload_cmds need_locks \
16171 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16172 lt_cv_sys_global_symbol_to_c_name_address \
16173 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16174 old_postinstall_cmds old_postuninstall_cmds \
16178 lt_prog_compiler_wl_F77 \
16179 lt_prog_compiler_pic_F77 \
16180 lt_prog_compiler_static_F77 \
16181 lt_prog_compiler_no_builtin_flag_F77 \
16182 export_dynamic_flag_spec_F77 \
16183 thread_safe_flag_spec_F77 \
16184 whole_archive_flag_spec_F77 \
16185 enable_shared_with_static_runtimes_F77 \
16186 old_archive_cmds_F77 \
16187 old_archive_from_new_cmds_F77 \
16188 predep_objects_F77 \
16189 postdep_objects_F77 \
16192 compiler_lib_search_path_F77 \
16194 archive_expsym_cmds_F77 \
16195 postinstall_cmds_F77 \
16196 postuninstall_cmds_F77 \
16197 old_archive_from_expsyms_cmds_F77 \
16198 allow_undefined_flag_F77 \
16199 no_undefined_flag_F77 \
16200 export_symbols_cmds_F77 \
16201 hardcode_libdir_flag_spec_F77 \
16202 hardcode_libdir_flag_spec_ld_F77 \
16203 hardcode_libdir_separator_F77 \
16204 hardcode_automatic_F77 \
16206 module_expsym_cmds_F77 \
16207 lt_cv_prog_compiler_c_o_F77 \
16208 exclude_expsyms_F77 \
16209 include_expsyms_F77; do
16212 old_archive_cmds_F77 | \
16213 old_archive_from_new_cmds_F77 | \
16214 archive_cmds_F77 | \
16215 archive_expsym_cmds_F77 | \
16216 module_cmds_F77 | \
16217 module_expsym_cmds_F77 | \
16218 old_archive_from_expsyms_cmds_F77 | \
16219 export_symbols_cmds_F77 | \
16220 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16221 postinstall_cmds | postuninstall_cmds | \
16222 old_postinstall_cmds | old_postuninstall_cmds | \
16223 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16224 # Double-quote double-evaled strings.
16225 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16228 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16234 *'\$0 --fallback-echo"')
16235 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16241 cat <<__EOF__ >> "$cfgfile"
16242 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16244 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16246 # Shell to use when invoking shell scripts.
16249 # Whether or not to build shared libraries.
16250 build_libtool_libs=$enable_shared
16252 # Whether or not to build static libraries.
16253 build_old_libs=$enable_static
16255 # Whether or not to add -lc for building shared libraries.
16256 build_libtool_need_lc=$archive_cmds_need_lc_F77
16258 # Whether or not to disallow shared libs when runtime libs are static
16259 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16261 # Whether or not to optimize for fast installation.
16262 fast_install=$enable_fast_install
16265 host_alias=$host_alias
16269 # The build system.
16270 build_alias=$build_alias
16274 # An echo program that does not interpret backslashes.
16279 AR_FLAGS=$lt_AR_FLAGS
16284 # A language-specific compiler.
16285 CC=$lt_compiler_F77
16287 # Is the compiler the GNU C compiler?
16293 # The linker used to build libraries.
16296 # Whether we need hard or soft links.
16299 # A BSD-compatible nm program.
16302 # A symbol stripping program
16305 # Used to examine libraries when file_magic_cmd begins "file"
16306 MAGIC_CMD=$MAGIC_CMD
16308 # Used on cygwin: DLL creation program.
16311 # Used on cygwin: object dumper.
16314 # Used on cygwin: assembler.
16317 # The name of the directory that contains temporary libtool files.
16320 # How to create reloadable object files.
16321 reload_flag=$lt_reload_flag
16322 reload_cmds=$lt_reload_cmds
16324 # How to pass a linker flag through the compiler.
16325 wl=$lt_lt_prog_compiler_wl_F77
16327 # Object file suffix (normally "o").
16328 objext="$ac_objext"
16330 # Old archive suffix (normally "a").
16333 # Shared library suffix (normally ".so").
16334 shrext_cmds='$shrext_cmds'
16336 # Executable file suffix (normally "").
16339 # Additional compiler flags for building library objects.
16340 pic_flag=$lt_lt_prog_compiler_pic_F77
16343 # What is the maximum length of a command?
16344 max_cmd_len=$lt_cv_sys_max_cmd_len
16346 # Does compiler simultaneously support -c and -o options?
16347 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16349 # Must we lock files when doing compilation?
16350 need_locks=$lt_need_locks
16352 # Do we need the lib prefix for modules?
16353 need_lib_prefix=$need_lib_prefix
16355 # Do we need a version for libraries?
16356 need_version=$need_version
16358 # Whether dlopen is supported.
16359 dlopen_support=$enable_dlopen
16361 # Whether dlopen of programs is supported.
16362 dlopen_self=$enable_dlopen_self
16364 # Whether dlopen of statically linked programs is supported.
16365 dlopen_self_static=$enable_dlopen_self_static
16367 # Compiler flag to prevent dynamic linking.
16368 link_static_flag=$lt_lt_prog_compiler_static_F77
16370 # Compiler flag to turn off builtin functions.
16371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16373 # Compiler flag to allow reflexive dlopens.
16374 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16376 # Compiler flag to generate shared objects directly from archives.
16377 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16379 # Compiler flag to generate thread-safe objects.
16380 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16382 # Library versioning type.
16383 version_type=$version_type
16385 # Format of library name prefix.
16386 libname_spec=$lt_libname_spec
16388 # List of archive names. First name is the real one, the rest are links.
16389 # The last name is the one that the linker finds with -lNAME.
16390 library_names_spec=$lt_library_names_spec
16392 # The coded name of the library, if different from the real name.
16393 soname_spec=$lt_soname_spec
16395 # Commands used to build and install an old-style archive.
16397 old_archive_cmds=$lt_old_archive_cmds_F77
16398 old_postinstall_cmds=$lt_old_postinstall_cmds
16399 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16401 # Create an old-style archive from a shared archive.
16402 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16404 # Create a temporary old-style archive to link instead of a shared archive.
16405 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16407 # Commands used to build and install a shared archive.
16408 archive_cmds=$lt_archive_cmds_F77
16409 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16410 postinstall_cmds=$lt_postinstall_cmds
16411 postuninstall_cmds=$lt_postuninstall_cmds
16413 # Commands used to build a loadable module (assumed same as above if empty)
16414 module_cmds=$lt_module_cmds_F77
16415 module_expsym_cmds=$lt_module_expsym_cmds_F77
16417 # Commands to strip libraries.
16418 old_striplib=$lt_old_striplib
16419 striplib=$lt_striplib
16421 # Dependencies to place before the objects being linked to create a
16423 predep_objects=$lt_predep_objects_F77
16425 # Dependencies to place after the objects being linked to create a
16427 postdep_objects=$lt_postdep_objects_F77
16429 # Dependencies to place before the objects being linked to create a
16431 predeps=$lt_predeps_F77
16433 # Dependencies to place after the objects being linked to create a
16435 postdeps=$lt_postdeps_F77
16437 # The library search path used internally by the compiler when linking
16438 # a shared library.
16439 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16441 # Method to check whether dependent libraries are shared objects.
16442 deplibs_check_method=$lt_deplibs_check_method
16444 # Command to use when deplibs_check_method == file_magic.
16445 file_magic_cmd=$lt_file_magic_cmd
16447 # Flag that allows shared libraries with undefined symbols to be built.
16448 allow_undefined_flag=$lt_allow_undefined_flag_F77
16450 # Flag that forces no undefined symbols.
16451 no_undefined_flag=$lt_no_undefined_flag_F77
16453 # Commands used to finish a libtool library installation in a directory.
16454 finish_cmds=$lt_finish_cmds
16456 # Same as above, but a single script fragment to be evaled but not shown.
16457 finish_eval=$lt_finish_eval
16459 # Take the output of nm and produce a listing of raw symbols and C names.
16460 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16462 # Transform the output of nm in a proper C declaration
16463 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16465 # Transform the output of nm in a C name address pair
16466 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16468 # This is the shared library runtime path variable.
16469 runpath_var=$runpath_var
16471 # This is the shared library path variable.
16472 shlibpath_var=$shlibpath_var
16474 # Is shlibpath searched before the hard-coded library search path?
16475 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16477 # How to hardcode a shared library path into an executable.
16478 hardcode_action=$hardcode_action_F77
16480 # Whether we should hardcode library paths into libraries.
16481 hardcode_into_libs=$hardcode_into_libs
16483 # Flag to hardcode \$libdir into a binary during linking.
16484 # This must work even if \$libdir does not exist.
16485 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16487 # If ld is used when linking, flag to hardcode \$libdir into
16488 # a binary during linking. This must work even if \$libdir does
16490 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16492 # Whether we need a single -rpath flag with a separated argument.
16493 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16495 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16496 # resulting binary.
16497 hardcode_direct=$hardcode_direct_F77
16499 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16500 # resulting binary.
16501 hardcode_minus_L=$hardcode_minus_L_F77
16503 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16504 # the resulting binary.
16505 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16507 # Set to yes if building a shared library automatically hardcodes DIR into the library
16508 # and all subsequent libraries and executables linked against it.
16509 hardcode_automatic=$hardcode_automatic_F77
16511 # Variables whose values should be saved in libtool wrapper scripts and
16512 # restored at relink time.
16513 variables_saved_for_relink="$variables_saved_for_relink"
16515 # Whether libtool must link a program against all its dependency libraries.
16516 link_all_deplibs=$link_all_deplibs_F77
16518 # Compile-time system search path for libraries
16519 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16521 # Run-time system search path for libraries
16522 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16524 # Fix the shell variable \$srcfile for the compiler.
16525 fix_srcfile_path="$fix_srcfile_path_F77"
16527 # Set to yes if exported symbols are required.
16528 always_export_symbols=$always_export_symbols_F77
16530 # The commands to list exported symbols.
16531 export_symbols_cmds=$lt_export_symbols_cmds_F77
16533 # The commands to extract the exported symbol list from a shared archive.
16534 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16536 # Symbols that should not be listed in the preloaded symbols.
16537 exclude_expsyms=$lt_exclude_expsyms_F77
16539 # Symbols that must always be exported.
16540 include_expsyms=$lt_include_expsyms_F77
16542 # ### END LIBTOOL TAG CONFIG: $tagname
16548 # If there is no Makefile yet, we rely on a make rule to execute
16549 # `config.status --recheck' to rerun these tests and create the
16550 # libtool script then.
16551 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16552 if test -f "$ltmain_in"; then
16553 test -f Makefile && make "$ltmain"
16559 ac_cpp='$CPP $CPPFLAGS'
16560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16572 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16575 # Source file extension for Java test sources.
16578 # Object file extension for compiled Java test sources.
16582 # Code to be used in simple compile tests
16583 lt_simple_compile_test_code="class foo {}\n"
16585 # Code to be used in simple link tests
16586 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16588 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16590 # If no C compiler was specified, use CC.
16593 # Allow CC to be a program name with arguments.
16597 # save warnings/boilerplate of simple test code
16598 ac_outfile=conftest.$ac_objext
16599 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16600 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16601 _lt_compiler_boilerplate=`cat conftest.err`
16604 ac_outfile=conftest.$ac_objext
16605 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16606 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
16607 _lt_linker_boilerplate=`cat conftest.err`
16611 # Allow CC to be a program name with arguments.
16616 for cc_temp in $compiler""; do
16618 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16619 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16624 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16627 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16628 archive_cmds_need_lc_GCJ=no
16630 old_archive_cmds_GCJ=$old_archive_cmds
16633 lt_prog_compiler_no_builtin_flag_GCJ=
16635 if test "$GCC" = yes; then
16636 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16639 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16640 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16641 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16642 echo $ECHO_N "(cached) $ECHO_C" >&6
16644 lt_cv_prog_compiler_rtti_exceptions=no
16645 ac_outfile=conftest.$ac_objext
16646 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16647 lt_compiler_flag="-fno-rtti -fno-exceptions"
16648 # Insert the option either (1) after the last *FLAGS variable, or
16649 # (2) before a word containing "conftest.", or (3) at the end.
16650 # Note that $ac_compile itself does not contain backslashes and begins
16651 # with a dollar sign (not a hyphen), so the echo should work correctly.
16652 # The option is referenced via a variable to avoid confusing sed.
16653 lt_compile=`echo "$ac_compile" | $SED \
16654 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16656 -e 's:$: $lt_compiler_flag:'`
16657 (eval echo "\"\$as_me:16657: $lt_compile\"" >&5)
16658 (eval "$lt_compile" 2>conftest.err)
16660 cat conftest.err >&5
16661 echo "$as_me:16661: \$? = $ac_status" >&5
16662 if (exit $ac_status) && test -s "$ac_outfile"; then
16663 # The compiler can only warn and ignore the option if not recognized
16664 # So say no if there are warnings other than the usual output.
16665 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16666 $SED '/^$/d' conftest.err >conftest.er2
16667 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16668 lt_cv_prog_compiler_rtti_exceptions=yes
16674 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16675 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16677 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16678 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16685 lt_prog_compiler_wl_GCJ=
16686 lt_prog_compiler_pic_GCJ=
16687 lt_prog_compiler_static_GCJ=
16689 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16690 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16692 if test "$GCC" = yes; then
16693 lt_prog_compiler_wl_GCJ='-Wl,'
16694 lt_prog_compiler_static_GCJ='-static'
16698 # All AIX code is PIC.
16699 if test "$host_cpu" = ia64; then
16700 # AIX 5 now supports IA64 processor
16701 lt_prog_compiler_static_GCJ='-Bstatic'
16706 # FIXME: we need at least 68020 code to build shared libraries, but
16707 # adding the `-m68020' flag to GCC prevents building anything better,
16709 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16712 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16713 # PIC is the default for these OSes.
16716 mingw* | pw32* | os2*)
16717 # This hack is so that the source file can tell whether it is being
16718 # built for inclusion in a dll (and should export symbols for example).
16719 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16722 darwin* | rhapsody*)
16723 # PIC is the default on this platform
16724 # Common symbols not allowed in MH_DYLIB files
16725 lt_prog_compiler_pic_GCJ='-fno-common'
16729 # Just because we use GCC doesn't mean we suddenly get shared libraries
16730 # on systems that don't support them.
16731 lt_prog_compiler_can_build_shared_GCJ=no
16736 if test -d /usr/nec; then
16737 lt_prog_compiler_pic_GCJ=-Kconform_pic
16742 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16743 # not for PA HP-UX.
16744 case "$host_cpu" in
16749 lt_prog_compiler_pic_GCJ='-fPIC'
16755 lt_prog_compiler_pic_GCJ='-fPIC'
16759 # PORTME Check for flag to pass linker flags through the system compiler.
16762 lt_prog_compiler_wl_GCJ='-Wl,'
16763 if test "$host_cpu" = ia64; then
16764 # AIX 5 now supports IA64 processor
16765 lt_prog_compiler_static_GCJ='-Bstatic'
16767 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16771 # PIC is the default on this platform
16772 # Common symbols not allowed in MH_DYLIB files
16773 case $cc_basename in
16775 lt_prog_compiler_pic_GCJ='-qnocommon'
16776 lt_prog_compiler_wl_GCJ='-Wl,'
16781 mingw* | pw32* | os2*)
16782 # This hack is so that the source file can tell whether it is being
16783 # built for inclusion in a dll (and should export symbols for example).
16784 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16787 hpux9* | hpux10* | hpux11*)
16788 lt_prog_compiler_wl_GCJ='-Wl,'
16789 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16790 # not for PA HP-UX.
16791 case "$host_cpu" in
16796 lt_prog_compiler_pic_GCJ='+Z'
16799 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16800 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16803 irix5* | irix6* | nonstopux*)
16804 lt_prog_compiler_wl_GCJ='-Wl,'
16805 # PIC (with -KPIC) is the default.
16806 lt_prog_compiler_static_GCJ='-non_shared'
16810 lt_prog_compiler_pic_GCJ='-KPIC'
16811 lt_prog_compiler_static_GCJ='-Bstatic'
16815 case $cc_basename in
16817 lt_prog_compiler_wl_GCJ='-Wl,'
16818 lt_prog_compiler_pic_GCJ='-KPIC'
16819 lt_prog_compiler_static_GCJ='-static'
16821 pgcc* | pgf77* | pgf90*)
16822 # Portland Group compilers (*not* the Pentium gcc compiler,
16823 # which looks to be a dead project)
16824 lt_prog_compiler_wl_GCJ='-Wl,'
16825 lt_prog_compiler_pic_GCJ='-fpic'
16826 lt_prog_compiler_static_GCJ='-static'
16829 lt_prog_compiler_wl_GCJ='-Wl,'
16830 # All Alpha code is PIC.
16831 lt_prog_compiler_static_GCJ='-non_shared'
16836 osf3* | osf4* | osf5*)
16837 lt_prog_compiler_wl_GCJ='-Wl,'
16838 # All OSF/1 code is PIC.
16839 lt_prog_compiler_static_GCJ='-non_shared'
16843 lt_prog_compiler_pic_GCJ='-Kpic'
16844 lt_prog_compiler_static_GCJ='-dn'
16848 lt_prog_compiler_pic_GCJ='-KPIC'
16849 lt_prog_compiler_static_GCJ='-Bstatic'
16850 case $cc_basename in
16851 f77* | f90* | f95*)
16852 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16854 lt_prog_compiler_wl_GCJ='-Wl,';;
16859 lt_prog_compiler_wl_GCJ='-Qoption ld '
16860 lt_prog_compiler_pic_GCJ='-PIC'
16861 lt_prog_compiler_static_GCJ='-Bstatic'
16864 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16865 lt_prog_compiler_wl_GCJ='-Wl,'
16866 lt_prog_compiler_pic_GCJ='-KPIC'
16867 lt_prog_compiler_static_GCJ='-Bstatic'
16871 if test -d /usr/nec ;then
16872 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16873 lt_prog_compiler_static_GCJ='-Bstatic'
16878 lt_prog_compiler_wl_GCJ='-Wl,'
16879 lt_prog_compiler_can_build_shared_GCJ=no
16883 lt_prog_compiler_pic_GCJ='-pic'
16884 lt_prog_compiler_static_GCJ='-Bstatic'
16888 lt_prog_compiler_can_build_shared_GCJ=no
16893 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16894 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16897 # Check to make sure the PIC flag actually works.
16899 if test -n "$lt_prog_compiler_pic_GCJ"; then
16901 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16902 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16903 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16904 echo $ECHO_N "(cached) $ECHO_C" >&6
16906 lt_prog_compiler_pic_works_GCJ=no
16907 ac_outfile=conftest.$ac_objext
16908 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16909 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16910 # Insert the option either (1) after the last *FLAGS variable, or
16911 # (2) before a word containing "conftest.", or (3) at the end.
16912 # Note that $ac_compile itself does not contain backslashes and begins
16913 # with a dollar sign (not a hyphen), so the echo should work correctly.
16914 # The option is referenced via a variable to avoid confusing sed.
16915 lt_compile=`echo "$ac_compile" | $SED \
16916 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16918 -e 's:$: $lt_compiler_flag:'`
16919 (eval echo "\"\$as_me:16919: $lt_compile\"" >&5)
16920 (eval "$lt_compile" 2>conftest.err)
16922 cat conftest.err >&5
16923 echo "$as_me:16923: \$? = $ac_status" >&5
16924 if (exit $ac_status) && test -s "$ac_outfile"; then
16925 # The compiler can only warn and ignore the option if not recognized
16926 # So say no if there are warnings other than the usual output.
16927 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
16928 $SED '/^$/d' conftest.err >conftest.er2
16929 if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
16930 lt_prog_compiler_pic_works_GCJ=yes
16936 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16937 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16939 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16940 case $lt_prog_compiler_pic_GCJ in
16942 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16945 lt_prog_compiler_pic_GCJ=
16946 lt_prog_compiler_can_build_shared_GCJ=no
16951 # For platforms which do not support PIC, -DPIC is meaningless:
16953 lt_prog_compiler_pic_GCJ=
16956 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16960 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16961 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16962 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16963 echo $ECHO_N "(cached) $ECHO_C" >&6
16965 lt_cv_prog_compiler_c_o_GCJ=no
16966 $rm -r conftest 2>/dev/null
16970 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16972 lt_compiler_flag="-o out/conftest2.$ac_objext"
16973 # Insert the option either (1) after the last *FLAGS variable, or
16974 # (2) before a word containing "conftest.", or (3) at the end.
16975 # Note that $ac_compile itself does not contain backslashes and begins
16976 # with a dollar sign (not a hyphen), so the echo should work correctly.
16977 lt_compile=`echo "$ac_compile" | $SED \
16978 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16980 -e 's:$: $lt_compiler_flag:'`
16981 (eval echo "\"\$as_me:16981: $lt_compile\"" >&5)
16982 (eval "$lt_compile" 2>out/conftest.err)
16984 cat out/conftest.err >&5
16985 echo "$as_me:16985: \$? = $ac_status" >&5
16986 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16988 # The compiler can only warn and ignore the option if not recognized
16989 # So say no if there are warnings
16990 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
16991 $SED '/^$/d' out/conftest.err >out/conftest.er2
16992 if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16993 lt_cv_prog_compiler_c_o_GCJ=yes
16998 # SGI C++ compiler will create directory out/ii_files/ for
16999 # template instantiation
17000 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17001 $rm out/* && rmdir out
17007 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17008 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17011 hard_links="nottested"
17012 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17013 # do not overwrite the value of need_locks provided by the user
17014 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17015 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17020 ln conftest.a conftest.b 2>&5 || hard_links=no
17021 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17022 { echo "$as_me:$LINENO: result: $hard_links" >&5
17023 echo "${ECHO_T}$hard_links" >&6; }
17024 if test "$hard_links" = no; then
17025 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17026 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17033 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17034 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17037 allow_undefined_flag_GCJ=
17038 enable_shared_with_static_runtimes_GCJ=no
17040 archive_expsym_cmds_GCJ=
17041 old_archive_From_new_cmds_GCJ=
17042 old_archive_from_expsyms_cmds_GCJ=
17043 export_dynamic_flag_spec_GCJ=
17044 whole_archive_flag_spec_GCJ=
17045 thread_safe_flag_spec_GCJ=
17046 hardcode_libdir_flag_spec_GCJ=
17047 hardcode_libdir_flag_spec_ld_GCJ=
17048 hardcode_libdir_separator_GCJ=
17049 hardcode_direct_GCJ=no
17050 hardcode_minus_L_GCJ=no
17051 hardcode_shlibpath_var_GCJ=unsupported
17052 link_all_deplibs_GCJ=unknown
17053 hardcode_automatic_GCJ=no
17055 module_expsym_cmds_GCJ=
17056 always_export_symbols_GCJ=no
17057 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17058 # include_expsyms should be a list of space-separated symbols to be *always*
17059 # included in the symbol list
17060 include_expsyms_GCJ=
17061 # exclude_expsyms can be an extended regexp of symbols to exclude
17062 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17063 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17064 # as well as any symbol that contains `d'.
17065 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17067 # platforms (ab)use it in PIC code, but their linkers get confused if
17068 # the symbol is explicitly referenced. Since portable code cannot
17069 # rely on this symbol name, it's probably fine to never include it in
17070 # preloaded symbol tables.
17071 extract_expsyms_cmds=
17072 # Just being paranoid about ensuring that cc_basename is set.
17073 for cc_temp in $compiler""; do
17075 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17076 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17081 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17084 cygwin* | mingw* | pw32*)
17085 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17086 # When not using gcc, we currently assume that we are using
17087 # Microsoft Visual C++.
17088 if test "$GCC" != yes; then
17098 if test "$with_gnu_ld" = yes; then
17099 # If archive_cmds runs LD, not CC, wlarc should be empty
17102 # Set some defaults for GNU ld with shared library support. These
17103 # are reset later if shared libraries are not supported. Putting them
17104 # here allows them to be overridden if necessary.
17105 runpath_var=LD_RUN_PATH
17106 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17107 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17108 # ancient GNU ld didn't support --whole-archive et. al.
17109 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17110 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17112 whole_archive_flag_spec_GCJ=
17114 supports_anon_versioning=no
17115 case `$LD -v 2>/dev/null` in
17116 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17117 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17118 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17119 *\ 2.11.*) ;; # other 2.11 versions
17120 *) supports_anon_versioning=yes ;;
17123 # See if GNU ld supports shared libraries.
17125 aix3* | aix4* | aix5*)
17126 # On AIX/PPC, the GNU linker is very broken
17127 if test "$host_cpu" != ia64; then
17131 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17132 *** to be unable to reliably create shared libraries on AIX.
17133 *** Therefore, libtool is disabling shared libraries support. If you
17134 *** really care for shared libraries, you may want to modify your PATH
17135 *** so that a non-GNU linker is found, and then restart.
17142 archive_cmds_GCJ='$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)'
17143 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17144 hardcode_minus_L_GCJ=yes
17146 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17147 # that the semantics of dynamic libraries on AmigaOS, at least up
17148 # to version 4, is to share data among multiple programs linked
17149 # with the same dynamic library. Since this doesn't match the
17150 # behavior of shared libraries on other platforms, we can't use
17156 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17157 allow_undefined_flag_GCJ=unsupported
17158 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17159 # support --undefined. This deserves some investigation. FIXME
17160 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17166 cygwin* | mingw* | pw32*)
17167 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17168 # as there is no search path for DLLs.
17169 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17170 allow_undefined_flag_GCJ=unsupported
17171 always_export_symbols_GCJ=no
17172 enable_shared_with_static_runtimes_GCJ=yes
17173 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17175 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17176 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17177 # If the export-symbols file already is a .def file (1st line
17178 # is EXPORTS), use it as is; otherwise, prepend...
17179 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17180 cp $export_symbols $output_objdir/$soname.def;
17182 echo EXPORTS > $output_objdir/$soname.def;
17183 cat $export_symbols >> $output_objdir/$soname.def;
17185 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17194 case $cc_basename,$host_cpu in
17195 pgcc*) # Portland Group C compiler
17196 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17197 tmp_addflag=' $pic_flag'
17199 pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
17200 whole_archive_flag_spec_GCJ='${wl}--whole-archive,`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17201 tmp_addflag=' $pic_flag -Mnomain' ;;
17202 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17203 tmp_addflag=' -i_dynamic' ;;
17204 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17205 tmp_addflag=' -i_dynamic -nofor_main' ;;
17206 ifc* | ifort*) # Intel Fortran compiler
17207 tmp_addflag=' -nofor_main' ;;
17209 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17211 if test $supports_anon_versioning = yes; then
17212 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17213 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17214 $echo "local: *; };" >> $output_objdir/$libname.ver~
17215 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17224 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17227 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17228 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17233 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17237 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17238 *** create shared libraries on Solaris systems. Therefore, libtool
17239 *** is disabling shared libraries support. We urge you to upgrade GNU
17240 *** binutils to release 2.9.1 or newer. Another option is to modify
17241 *** your PATH or compiler configuration so that the native linker is
17242 *** used, and then restart.
17245 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17246 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17247 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17254 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17256 hardcode_direct_GCJ=yes
17257 hardcode_shlibpath_var_GCJ=no
17261 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17262 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17263 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17270 if test "$ld_shlibs_GCJ" = no; then
17272 hardcode_libdir_flag_spec_GCJ=
17273 export_dynamic_flag_spec_GCJ=
17274 whole_archive_flag_spec_GCJ=
17277 # PORTME fill in a description of your system's linker (not GNU ld)
17280 allow_undefined_flag_GCJ=unsupported
17281 always_export_symbols_GCJ=yes
17282 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17283 # Note: this linker hardcodes the directories in LIBPATH if there
17284 # are no directories specified by -L.
17285 hardcode_minus_L_GCJ=yes
17286 if test "$GCC" = yes && test -z "$link_static_flag"; then
17287 # Neither direct hardcoding nor static linking is supported with a
17289 hardcode_direct_GCJ=unsupported
17294 if test "$host_cpu" = ia64; then
17295 # On IA64, the linker does run time linking by default, so we don't
17296 # have to do anything special.
17297 aix_use_runtimelinking=no
17298 exp_sym_flag='-Bexport'
17301 # If we're using GNU nm, then we don't want the "-C" option.
17302 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17303 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17304 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17306 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17308 aix_use_runtimelinking=no
17310 # Test if we are trying to use run time linking or normal
17311 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17312 # need to do runtime linking.
17313 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17314 for ld_flag in $LDFLAGS; do
17315 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17316 aix_use_runtimelinking=yes
17322 exp_sym_flag='-bexport'
17323 no_entry_flag='-bnoentry'
17326 # When large executables or shared objects are built, AIX ld can
17327 # have problems creating the table of contents. If linking a library
17328 # or program results in "error TOC overflow" add -mminimal-toc to
17329 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17330 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17332 archive_cmds_GCJ=''
17333 hardcode_direct_GCJ=yes
17334 hardcode_libdir_separator_GCJ=':'
17335 link_all_deplibs_GCJ=yes
17337 if test "$GCC" = yes; then
17338 case $host_os in aix4.[012]|aix4.[012].*)
17339 # We only want to do this on AIX 4.2 and lower, the check
17340 # below for broken collect2 doesn't work under 4.3+
17341 collect2name=`${CC} -print-prog-name=collect2`
17342 if test -f "$collect2name" && \
17343 strings "$collect2name" | grep resolve_lib_name >/dev/null
17345 # We have reworked collect2
17346 hardcode_direct_GCJ=yes
17348 # We have old collect2
17349 hardcode_direct_GCJ=unsupported
17350 # It fails to find uninstalled libraries when the uninstalled
17351 # path is not listed in the libpath. Setting hardcode_minus_L
17352 # to unsupported forces relinking
17353 hardcode_minus_L_GCJ=yes
17354 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17355 hardcode_libdir_separator_GCJ=
17358 shared_flag='-shared'
17359 if test "$aix_use_runtimelinking" = yes; then
17360 shared_flag="$shared_flag "'${wl}-G'
17364 if test "$host_cpu" = ia64; then
17365 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17366 # chokes on -Wl,-G. The following line is correct:
17369 if test "$aix_use_runtimelinking" = yes; then
17370 shared_flag='${wl}-G'
17372 shared_flag='${wl}-bM:SRE'
17377 # It seems that -bexpall does not export symbols beginning with
17378 # underscore (_), so it is better to generate a list of symbols to export.
17379 always_export_symbols_GCJ=yes
17380 if test "$aix_use_runtimelinking" = yes; then
17381 # Warning - without using the other runtime loading flags (-brtl),
17382 # -berok will link without error, but may produce a broken library.
17383 allow_undefined_flag_GCJ='-berok'
17384 # Determine the default libpath from the value encoded in an empty executable.
17385 cat >conftest.$ac_ext <<_ACEOF
17388 cat confdefs.h >>conftest.$ac_ext
17389 cat >>conftest.$ac_ext <<_ACEOF
17390 /* end confdefs.h. */
17400 rm -f conftest.$ac_objext conftest$ac_exeext
17401 if { (ac_try="$ac_link"
17402 case "(($ac_try" in
17403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404 *) ac_try_echo=$ac_try;;
17406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17407 (eval "$ac_link") 2>conftest.er1
17409 grep -v '^ *+' conftest.er1 >conftest.err
17411 cat conftest.err >&5
17412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17413 (exit $ac_status); } && {
17414 test -z "$ac_c_werror_flag" ||
17415 test ! -s conftest.err
17416 } && test -s conftest$ac_exeext &&
17417 $as_test_x conftest$ac_exeext; then
17419 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17421 # Check for a 64-bit object if we didn't find anything.
17422 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17425 echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17432 conftest$ac_exeext conftest.$ac_ext
17433 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17435 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17436 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17438 if test "$host_cpu" = ia64; then
17439 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17440 allow_undefined_flag_GCJ="-z nodefs"
17441 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17443 # Determine the default libpath from the value encoded in an empty executable.
17444 cat >conftest.$ac_ext <<_ACEOF
17447 cat confdefs.h >>conftest.$ac_ext
17448 cat >>conftest.$ac_ext <<_ACEOF
17449 /* end confdefs.h. */
17459 rm -f conftest.$ac_objext conftest$ac_exeext
17460 if { (ac_try="$ac_link"
17461 case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_link") 2>conftest.er1
17468 grep -v '^ *+' conftest.er1 >conftest.err
17470 cat conftest.err >&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); } && {
17473 test -z "$ac_c_werror_flag" ||
17474 test ! -s conftest.err
17475 } && test -s conftest$ac_exeext &&
17476 $as_test_x conftest$ac_exeext; then
17478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17480 # Check for a 64-bit object if we didn't find anything.
17481 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17484 echo "$as_me: failed program was:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17491 conftest$ac_exeext conftest.$ac_ext
17492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17494 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17495 # Warning - without using the other run time loading flags,
17496 # -berok will link without error, but may produce a broken library.
17497 no_undefined_flag_GCJ=' ${wl}-bernotok'
17498 allow_undefined_flag_GCJ=' ${wl}-berok'
17499 # -bexpall does not export symbols beginning with underscore (_)
17500 always_export_symbols_GCJ=yes
17501 # Exported symbols can be pulled into shared objects from archives
17502 whole_archive_flag_spec_GCJ=' '
17503 archive_cmds_need_lc_GCJ=yes
17504 # This is similar to how AIX traditionally builds it's shared libraries.
17505 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17511 archive_cmds_GCJ='$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)'
17512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17513 hardcode_minus_L_GCJ=yes
17514 # see comment about different semantics on the GNU ld section
17519 export_dynamic_flag_spec_GCJ=-rdynamic
17522 cygwin* | mingw* | pw32*)
17523 # When not using gcc, we currently assume that we are using
17524 # Microsoft Visual C++.
17525 # hardcode_libdir_flag_spec is actually meaningless, as there is
17526 # no search path for DLLs.
17527 hardcode_libdir_flag_spec_GCJ=' '
17528 allow_undefined_flag_GCJ=unsupported
17529 # Tell ltmain to make .lib files, not .a files.
17531 # Tell ltmain to make .dll files, not .so files.
17533 # FIXME: Setting linknames here is a bad hack.
17534 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17535 # The linker will automatically build a .lib file if we build a DLL.
17536 old_archive_From_new_cmds_GCJ='true'
17537 # FIXME: Should let the user specify the lib program.
17538 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17539 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17540 enable_shared_with_static_runtimes_GCJ=yes
17543 darwin* | rhapsody*)
17545 rhapsody* | darwin1.[012])
17546 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17549 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17550 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17552 case ${MACOSX_DEPLOYMENT_TARGET} in
17554 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17557 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17563 archive_cmds_need_lc_GCJ=no
17564 hardcode_direct_GCJ=no
17565 hardcode_automatic_GCJ=yes
17566 hardcode_shlibpath_var_GCJ=unsupported
17567 whole_archive_flag_spec_GCJ=''
17568 link_all_deplibs_GCJ=yes
17569 if test "$GCC" = yes ; then
17570 output_verbose_link_cmd='echo'
17571 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17572 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17573 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17574 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17575 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17577 case $cc_basename in
17579 output_verbose_link_cmd='echo'
17580 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17581 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17582 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17583 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17584 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17594 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17595 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17596 hardcode_shlibpath_var_GCJ=no
17603 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17604 # support. Future versions do this automatically, but an explicit c++rt0.o
17605 # does not break anything, and helps significantly (at the cost of a little
17608 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17609 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17610 hardcode_direct_GCJ=yes
17611 hardcode_shlibpath_var_GCJ=no
17614 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17616 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17617 hardcode_direct_GCJ=yes
17618 hardcode_minus_L_GCJ=yes
17619 hardcode_shlibpath_var_GCJ=no
17622 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17623 freebsd* | kfreebsd*-gnu | dragonfly*)
17624 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17625 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17626 hardcode_direct_GCJ=yes
17627 hardcode_shlibpath_var_GCJ=no
17631 if test "$GCC" = yes; then
17632 archive_cmds_GCJ='$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'
17634 archive_cmds_GCJ='$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'
17636 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17637 hardcode_libdir_separator_GCJ=:
17638 hardcode_direct_GCJ=yes
17640 # hardcode_minus_L: Not really in the search PATH,
17641 # but as the default location of the library.
17642 hardcode_minus_L_GCJ=yes
17643 export_dynamic_flag_spec_GCJ='${wl}-E'
17647 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17648 case "$host_cpu" in
17650 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17653 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17657 case "$host_cpu" in
17659 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17662 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17666 if test "$with_gnu_ld" = no; then
17667 case "$host_cpu" in
17669 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17670 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17671 hardcode_libdir_separator_GCJ=:
17672 hardcode_direct_GCJ=no
17673 hardcode_shlibpath_var_GCJ=no
17676 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17677 hardcode_direct_GCJ=no
17678 hardcode_shlibpath_var_GCJ=no
17680 # hardcode_minus_L: Not really in the search PATH,
17681 # but as the default location of the library.
17682 hardcode_minus_L_GCJ=yes
17685 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17686 hardcode_libdir_separator_GCJ=:
17687 hardcode_direct_GCJ=yes
17688 export_dynamic_flag_spec_GCJ='${wl}-E'
17690 # hardcode_minus_L: Not really in the search PATH,
17691 # but as the default location of the library.
17692 hardcode_minus_L_GCJ=yes
17698 irix5* | irix6* | nonstopux*)
17699 if test "$GCC" = yes; then
17700 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17702 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17703 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17705 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17706 hardcode_libdir_separator_GCJ=:
17707 link_all_deplibs_GCJ=yes
17711 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17712 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17714 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17716 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17717 hardcode_direct_GCJ=yes
17718 hardcode_shlibpath_var_GCJ=no
17722 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17723 hardcode_direct_GCJ=yes
17724 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17725 hardcode_libdir_separator_GCJ=:
17726 hardcode_shlibpath_var_GCJ=no
17730 hardcode_direct_GCJ=yes
17731 hardcode_shlibpath_var_GCJ=no
17732 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17733 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17734 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17735 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17736 export_dynamic_flag_spec_GCJ='${wl}-E'
17739 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17740 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17741 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17744 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17745 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17752 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17753 hardcode_minus_L_GCJ=yes
17754 allow_undefined_flag_GCJ=unsupported
17755 archive_cmds_GCJ='$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'
17756 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17760 if test "$GCC" = yes; then
17761 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17762 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17764 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17765 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17767 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17768 hardcode_libdir_separator_GCJ=:
17771 osf4* | osf5*) # as osf3* with the addition of -msym flag
17772 if test "$GCC" = yes; then
17773 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17774 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17775 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17777 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17778 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17779 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17780 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17782 # Both c and cxx compiler support -rpath directly
17783 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17785 hardcode_libdir_separator_GCJ=:
17789 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17790 hardcode_shlibpath_var_GCJ=no
17791 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17792 runpath_var=LD_RUN_PATH
17793 hardcode_runpath_var=yes
17797 no_undefined_flag_GCJ=' -z text'
17798 if test "$GCC" = yes; then
17800 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17801 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17802 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17805 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17806 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17807 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17809 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17810 hardcode_shlibpath_var_GCJ=no
17812 solaris2.[0-5] | solaris2.[0-5].*) ;;
17814 # The compiler driver will combine linker options so we
17815 # cannot just pass the convience library names through
17816 # without $wl, iff we do not link with $LD.
17817 # Luckily, gcc supports the same syntax we need for Sun Studio.
17818 # Supported since Solaris 2.6 (maybe 2.5.1?)
17821 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17823 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
17826 link_all_deplibs_GCJ=yes
17830 if test "x$host_vendor" = xsequent; then
17831 # Use $CC to link under sequent, because it throws in some extra .o
17832 # files that make .init and .fini sections work.
17833 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17835 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17837 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17838 hardcode_direct_GCJ=yes
17839 hardcode_minus_L_GCJ=yes
17840 hardcode_shlibpath_var_GCJ=no
17844 case $host_vendor in
17846 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17847 hardcode_direct_GCJ=yes # is this really true???
17850 ## LD is ld it makes a PLAMLIB
17851 ## CC just makes a GrossModule.
17852 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17853 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17854 hardcode_direct_GCJ=no
17857 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17858 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17861 runpath_var='LD_RUN_PATH'
17862 hardcode_shlibpath_var_GCJ=no
17866 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17867 hardcode_shlibpath_var_GCJ=no
17868 export_dynamic_flag_spec_GCJ='-Bexport'
17872 if test -d /usr/nec; then
17873 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17874 hardcode_shlibpath_var_GCJ=no
17875 runpath_var=LD_RUN_PATH
17876 hardcode_runpath_var=yes
17882 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17883 hardcode_direct_GCJ=yes
17884 hardcode_minus_L_GCJ=no
17885 hardcode_shlibpath_var_GCJ=no
17886 hardcode_runpath_var=yes
17887 runpath_var=LD_RUN_PATH
17890 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17891 no_undefined_flag_GCJ='${wl}-z ${wl}text'
17892 if test "$GCC" = yes; then
17893 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17895 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17897 runpath_var='LD_RUN_PATH'
17898 hardcode_shlibpath_var_GCJ=no
17902 no_undefined_flag_GCJ=' -z text'
17903 # $CC -shared without GNU ld will not create a library from C++
17904 # object files and a static libstdc++, better avoid it by now
17905 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17906 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17907 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17908 hardcode_libdir_flag_spec_GCJ=
17909 hardcode_shlibpath_var_GCJ=no
17910 runpath_var='LD_RUN_PATH'
17914 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17915 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17916 hardcode_shlibpath_var_GCJ=no
17925 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17926 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17927 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17929 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17930 if test "$GCC" = yes; then
17931 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17935 # Do we need to explicitly link libc?
17937 case "x$archive_cmds_need_lc_GCJ" in
17939 # Assume -lc should be added
17940 archive_cmds_need_lc_GCJ=yes
17942 if test "$enable_shared" = yes && test "$GCC" = yes; then
17943 case $archive_cmds_GCJ in
17945 # FIXME: we may have to deal with multi-command sequences.
17948 # Test whether the compiler implicitly links with -lc since on some
17949 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17950 # to ld, don't add -lc before -lgcc.
17951 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17952 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17954 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17957 (eval $ac_compile) 2>&5
17959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17960 (exit $ac_status); } 2>conftest.err; then
17963 libobjs=conftest.$ac_objext
17965 wl=$lt_prog_compiler_wl_GCJ
17971 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17972 allow_undefined_flag_GCJ=
17973 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17974 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17977 (exit $ac_status); }
17979 archive_cmds_need_lc_GCJ=no
17981 archive_cmds_need_lc_GCJ=yes
17983 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17985 cat conftest.err 1>&5
17988 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17989 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17996 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17997 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17998 library_names_spec=
17999 libname_spec='lib$name'
18003 postuninstall_cmds=
18007 shlibpath_overrides_runpath=unknown
18009 dynamic_linker="$host_os ld.so"
18010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18011 if test "$GCC" = yes; then
18012 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18013 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18014 # if the path contains ";" then we assume it to be the separator
18015 # otherwise default to the standard path separator (i.e. ":") - it is
18016 # assumed that no part of a normal pathname contains ";" but that should
18017 # okay in the real world where ";" in dirpaths is itself problematic.
18018 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18020 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18023 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18025 need_lib_prefix=unknown
18026 hardcode_into_libs=no
18028 # when you set need_version to no, make sure it does not cause -set_version
18029 # flags to be left without arguments
18030 need_version=unknown
18035 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18036 shlibpath_var=LIBPATH
18038 # AIX 3 has no versioning support, so we append a major version to the name.
18039 soname_spec='${libname}${release}${shared_ext}$major'
18046 hardcode_into_libs=yes
18047 if test "$host_cpu" = ia64; then
18048 # AIX 5 supports IA64
18049 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18050 shlibpath_var=LD_LIBRARY_PATH
18052 # With GCC up to 2.95.x, collect2 would create an import file
18053 # for dependence libraries. The import file would start with
18054 # the line `#! .'. This would cause the generated library to
18055 # depend on `.', always an invalid library. This was fixed in
18056 # development snapshots of GCC prior to 3.0.
18058 aix4 | aix4.[01] | aix4.[01].*)
18059 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18061 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18064 can_build_shared=no
18068 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18069 # soname into executable. Probably we can add versioning support to
18070 # collect2, so additional links can be useful in future.
18071 if test "$aix_use_runtimelinking" = yes; then
18072 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18073 # instead of lib<name>.a to let people know that these are not
18074 # typical AIX shared libraries.
18075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18077 # We preserve .a as extension for shared libraries through AIX4.2
18078 # and later when we are not doing run time linking.
18079 library_names_spec='${libname}${release}.a $libname.a'
18080 soname_spec='${libname}${release}${shared_ext}$major'
18082 shlibpath_var=LIBPATH
18087 library_names_spec='$libname.ixlibrary $libname.a'
18088 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18089 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'
18093 library_names_spec='${libname}${shared_ext}'
18094 dynamic_linker="$host_os ld.so"
18095 shlibpath_var=LIBRARY_PATH
18101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18102 soname_spec='${libname}${release}${shared_ext}$major'
18103 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18104 shlibpath_var=LD_LIBRARY_PATH
18105 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18106 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18107 # the default ld.so.conf also contains /usr/contrib/lib and
18108 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18109 # libtool to hard-code these into programs
18112 cygwin* | mingw* | pw32*)
18113 version_type=windows
18118 case $GCC,$host_os in
18119 yes,cygwin* | yes,mingw* | yes,pw32*)
18120 library_names_spec='$libname.dll.a'
18121 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18122 postinstall_cmds='base_file=`basename \${file}`~
18123 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18124 dldir=$destdir/`dirname \$dlpath`~
18125 test -d \$dldir || mkdir -p \$dldir~
18126 $install_prog $dir/$dlname \$dldir/$dlname'
18127 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18128 dlpath=$dir/\$dldll~
18130 shlibpath_overrides_runpath=yes
18134 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18135 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18136 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18139 # MinGW DLLs use traditional 'lib' prefix
18140 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18141 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18142 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18143 # It is most probably a Windows format PATH printed by
18144 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18145 # path with ; separators, and with drive letters. We can handle the
18146 # drive letters (cygwin fileutils understands them), so leave them,
18147 # especially as we might pass files found there to a mingw objdump,
18148 # which wouldn't understand a cygwinified path. Ahh.
18149 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18155 # pw32 DLLs use 'pw' prefix rather than 'lib'
18156 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18162 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18165 dynamic_linker='Win32 ld.exe'
18166 # FIXME: first we should search . and the directory the executable is in
18170 darwin* | rhapsody*)
18171 dynamic_linker="$host_os dyld"
18172 version_type=darwin
18175 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18176 soname_spec='${libname}${release}${major}$shared_ext'
18177 shlibpath_overrides_runpath=yes
18178 shlibpath_var=DYLD_LIBRARY_PATH
18179 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18180 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18181 if test "$GCC" = yes; then
18182 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18184 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18186 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18194 soname_spec='${libname}${release}${shared_ext}$major'
18195 shlibpath_var=LD_LIBRARY_PATH
18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18207 soname_spec='${libname}${release}${shared_ext}$major'
18208 shlibpath_var=LD_LIBRARY_PATH
18209 shlibpath_overrides_runpath=no
18210 hardcode_into_libs=yes
18211 dynamic_linker='GNU ld.so'
18214 freebsd* | dragonfly*)
18215 # DragonFly does not have aout. When/if they implement a new
18216 # versioning mechanism, adjust this.
18217 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18218 version_type=freebsd-$objformat
18219 case $version_type in
18221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18230 shlibpath_var=LD_LIBRARY_PATH
18233 shlibpath_overrides_runpath=yes
18235 freebsd3.[01]* | freebsdelf3.[01]*)
18236 shlibpath_overrides_runpath=yes
18237 hardcode_into_libs=yes
18240 shlibpath_overrides_runpath=no
18241 hardcode_into_libs=yes
18250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18251 soname_spec='${libname}${release}${shared_ext}$major'
18252 shlibpath_var=LD_LIBRARY_PATH
18253 hardcode_into_libs=yes
18256 hpux9* | hpux10* | hpux11*)
18257 # Give a soname corresponding to the major version so that dld.sl refuses to
18258 # link against other versions.
18262 case "$host_cpu" in
18265 hardcode_into_libs=yes
18266 dynamic_linker="$host_os dld.so"
18267 shlibpath_var=LD_LIBRARY_PATH
18268 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18270 soname_spec='${libname}${release}${shared_ext}$major'
18271 if test "X$HPUX_IA64_MODE" = X32; then
18272 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18276 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18280 hardcode_into_libs=yes
18281 dynamic_linker="$host_os dld.sl"
18282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18285 soname_spec='${libname}${release}${shared_ext}$major'
18286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18291 dynamic_linker="$host_os dld.sl"
18292 shlibpath_var=SHLIB_PATH
18293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18295 soname_spec='${libname}${release}${shared_ext}$major'
18298 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18299 postinstall_cmds='chmod 555 $lib'
18302 irix5* | irix6* | nonstopux*)
18304 nonstopux*) version_type=nonstopux ;;
18306 if test "$lt_cv_prog_gnu_ld" = yes; then
18314 soname_spec='${libname}${release}${shared_ext}$major'
18315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18317 irix5* | nonstopux*)
18318 libsuff= shlibsuff=
18321 case $LD in # libtool.m4 will add one of these switches to LD
18322 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18323 libsuff= shlibsuff= libmagic=32-bit;;
18324 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18325 libsuff=32 shlibsuff=N32 libmagic=N32;;
18326 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18327 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18328 *) libsuff= shlibsuff= libmagic=never-match;;
18332 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18333 shlibpath_overrides_runpath=no
18334 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18335 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18336 hardcode_into_libs=yes
18339 # No shared lib support for Linux oldld, aout, or coff.
18340 linux*oldld* | linux*aout* | linux*coff*)
18344 # This must be Linux ELF.
18349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18350 soname_spec='${libname}${release}${shared_ext}$major'
18351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18352 shlibpath_var=LD_LIBRARY_PATH
18353 shlibpath_overrides_runpath=no
18354 # This implies no fast_install, which is unacceptable.
18355 # Some rework will be needed to allow for fast_install
18356 # before this can be enabled.
18357 hardcode_into_libs=yes
18359 # Append ld.so.conf contents to the search path
18360 if test -f /etc/ld.so.conf; then
18361 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18362 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18365 # We used to test for /lib/ld.so.1 and disable shared libraries on
18366 # powerpc, because MkLinux only supported shared libraries with the
18367 # GNU dynamic linker. Since this was broken with cross compilers,
18368 # most powerpc-linux boxes support dynamic linking these days and
18369 # people can always --disable-shared, the test was removed, and we
18370 # assume the GNU/Linux dynamic linker is in use.
18371 dynamic_linker='GNU/Linux ld.so'
18378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18379 soname_spec='${libname}${release}${shared_ext}$major'
18380 shlibpath_var=LD_LIBRARY_PATH
18381 shlibpath_overrides_runpath=no
18382 hardcode_into_libs=yes
18383 dynamic_linker='GNU ld.so'
18390 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18392 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18393 dynamic_linker='NetBSD (a.out) ld.so'
18395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18396 soname_spec='${libname}${release}${shared_ext}$major'
18397 dynamic_linker='NetBSD ld.elf_so'
18399 shlibpath_var=LD_LIBRARY_PATH
18400 shlibpath_overrides_runpath=yes
18401 hardcode_into_libs=yes
18406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18407 shlibpath_var=LD_LIBRARY_PATH
18408 shlibpath_overrides_runpath=yes
18415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18416 soname_spec='${libname}${release}${shared_ext}$major'
18417 shlibpath_var=LD_LIBRARY_PATH
18418 shlibpath_overrides_runpath=yes
18424 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18426 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18427 *) need_version=no ;;
18429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18430 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18431 shlibpath_var=LD_LIBRARY_PATH
18432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18434 openbsd2.[89] | openbsd2.[89].*)
18435 shlibpath_overrides_runpath=no
18438 shlibpath_overrides_runpath=yes
18442 shlibpath_overrides_runpath=yes
18447 libname_spec='$name'
18450 library_names_spec='$libname${shared_ext} $libname.a'
18451 dynamic_linker='OS/2 ld.exe'
18452 shlibpath_var=LIBPATH
18455 osf3* | osf4* | osf5*)
18459 soname_spec='${libname}${release}${shared_ext}$major'
18460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18461 shlibpath_var=LD_LIBRARY_PATH
18462 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18463 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18468 soname_spec='${libname}${release}${shared_ext}$major'
18469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18470 shlibpath_var=LD_LIBRARY_PATH
18477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18478 soname_spec='${libname}${release}${shared_ext}$major'
18479 shlibpath_var=LD_LIBRARY_PATH
18480 shlibpath_overrides_runpath=yes
18481 hardcode_into_libs=yes
18482 # ldd complains unless libraries are executable
18483 postinstall_cmds='chmod +x $lib'
18488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18489 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18490 shlibpath_var=LD_LIBRARY_PATH
18491 shlibpath_overrides_runpath=yes
18492 if test "$with_gnu_ld" = yes; then
18498 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18501 soname_spec='${libname}${release}${shared_ext}$major'
18502 shlibpath_var=LD_LIBRARY_PATH
18503 case $host_vendor in
18505 shlibpath_overrides_runpath=no
18507 export_dynamic_flag_spec='${wl}-Blargedynsym'
18508 runpath_var=LD_RUN_PATH
18516 shlibpath_overrides_runpath=no
18517 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18523 if test -d /usr/nec ;then
18525 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18526 soname_spec='$libname${shared_ext}.$major'
18527 shlibpath_var=LD_LIBRARY_PATH
18533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18534 soname_spec='${libname}${release}${shared_ext}$major'
18535 shlibpath_var=LD_LIBRARY_PATH
18542 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18543 echo "${ECHO_T}$dynamic_linker" >&6; }
18544 test "$dynamic_linker" = no && can_build_shared=no
18546 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18547 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18548 hardcode_action_GCJ=
18549 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18550 test -n "$runpath_var_GCJ" || \
18551 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18553 # We can hardcode non-existant directories.
18554 if test "$hardcode_direct_GCJ" != no &&
18555 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18556 # have to relink, otherwise we might link with an installed library
18557 # when we should be linking with a yet-to-be-installed one
18558 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18559 test "$hardcode_minus_L_GCJ" != no; then
18560 # Linking always hardcodes the temporary library directory.
18561 hardcode_action_GCJ=relink
18563 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18564 hardcode_action_GCJ=immediate
18567 # We cannot hardcode anything, or else we can only hardcode existing
18569 hardcode_action_GCJ=unsupported
18571 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18572 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18574 if test "$hardcode_action_GCJ" = relink; then
18575 # Fast installation is not supported
18576 enable_fast_install=no
18577 elif test "$shlibpath_overrides_runpath" = yes ||
18578 test "$enable_shared" = no; then
18579 # Fast installation is not necessary
18580 enable_fast_install=needless
18585 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18586 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18587 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18588 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18589 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18590 { echo "$as_me:$LINENO: result: yes" >&5
18591 echo "${ECHO_T}yes" >&6; }
18593 # FIXME - insert some real tests, host_os isn't really good enough
18596 if test -n "$STRIP" ; then
18597 striplib="$STRIP -x"
18598 { echo "$as_me:$LINENO: result: yes" >&5
18599 echo "${ECHO_T}yes" >&6; }
18601 { echo "$as_me:$LINENO: result: no" >&5
18602 echo "${ECHO_T}no" >&6; }
18606 { echo "$as_me:$LINENO: result: no" >&5
18607 echo "${ECHO_T}no" >&6; }
18612 if test "x$enable_dlopen" != xyes; then
18613 enable_dlopen=unknown
18614 enable_dlopen_self=unknown
18615 enable_dlopen_self_static=unknown
18622 lt_cv_dlopen="load_add_on"
18624 lt_cv_dlopen_self=yes
18628 lt_cv_dlopen="LoadLibrary"
18633 lt_cv_dlopen="dlopen"
18638 # if libdl is installed we need to link against it
18639 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18640 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18641 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 ac_check_lib_save_LIBS=$LIBS
18646 cat >conftest.$ac_ext <<_ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
18651 /* end confdefs.h. */
18653 /* Override any GCC internal prototype to avoid an error.
18654 Use char because int might match the return type of a GCC
18655 builtin and then its argument prototype would still apply. */
18668 rm -f conftest.$ac_objext conftest$ac_exeext
18669 if { (ac_try="$ac_link"
18670 case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_link") 2>conftest.er1
18677 grep -v '^ *+' conftest.er1 >conftest.err
18679 cat conftest.err >&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } && {
18682 test -z "$ac_c_werror_flag" ||
18683 test ! -s conftest.err
18684 } && test -s conftest$ac_exeext &&
18685 $as_test_x conftest$ac_exeext; then
18686 ac_cv_lib_dl_dlopen=yes
18688 echo "$as_me: failed program was:" >&5
18689 sed 's/^/| /' conftest.$ac_ext >&5
18691 ac_cv_lib_dl_dlopen=no
18694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18695 conftest$ac_exeext conftest.$ac_ext
18696 LIBS=$ac_check_lib_save_LIBS
18698 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18699 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
18700 if test $ac_cv_lib_dl_dlopen = yes; then
18701 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18704 lt_cv_dlopen="dyld"
18706 lt_cv_dlopen_self=yes
18713 { echo "$as_me:$LINENO: checking for shl_load" >&5
18714 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
18715 if test "${ac_cv_func_shl_load+set}" = set; then
18716 echo $ECHO_N "(cached) $ECHO_C" >&6
18718 cat >conftest.$ac_ext <<_ACEOF
18721 cat confdefs.h >>conftest.$ac_ext
18722 cat >>conftest.$ac_ext <<_ACEOF
18723 /* end confdefs.h. */
18724 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
18725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18726 #define shl_load innocuous_shl_load
18728 /* System header to define __stub macros and hopefully few prototypes,
18729 which can conflict with char shl_load (); below.
18730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18731 <limits.h> exists even on freestanding compilers. */
18734 # include <limits.h>
18736 # include <assert.h>
18741 /* Override any GCC internal prototype to avoid an error.
18742 Use char because int might match the return type of a GCC
18743 builtin and then its argument prototype would still apply. */
18748 /* The GNU C library defines this for functions which it implements
18749 to always fail with ENOSYS. Some functions are actually named
18750 something starting with __ and the normal name is an alias. */
18751 #if defined __stub_shl_load || defined __stub___shl_load
18758 return shl_load ();
18763 rm -f conftest.$ac_objext conftest$ac_exeext
18764 if { (ac_try="$ac_link"
18765 case "(($ac_try" in
18766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18767 *) ac_try_echo=$ac_try;;
18769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18770 (eval "$ac_link") 2>conftest.er1
18772 grep -v '^ *+' conftest.er1 >conftest.err
18774 cat conftest.err >&5
18775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18776 (exit $ac_status); } && {
18777 test -z "$ac_c_werror_flag" ||
18778 test ! -s conftest.err
18779 } && test -s conftest$ac_exeext &&
18780 $as_test_x conftest$ac_exeext; then
18781 ac_cv_func_shl_load=yes
18783 echo "$as_me: failed program was:" >&5
18784 sed 's/^/| /' conftest.$ac_ext >&5
18786 ac_cv_func_shl_load=no
18789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18790 conftest$ac_exeext conftest.$ac_ext
18792 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
18793 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
18794 if test $ac_cv_func_shl_load = yes; then
18795 lt_cv_dlopen="shl_load"
18797 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
18798 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
18799 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
18800 echo $ECHO_N "(cached) $ECHO_C" >&6
18802 ac_check_lib_save_LIBS=$LIBS
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18811 /* Override any GCC internal prototype to avoid an error.
18812 Use char because int might match the return type of a GCC
18813 builtin and then its argument prototype would still apply. */
18821 return shl_load ();
18826 rm -f conftest.$ac_objext conftest$ac_exeext
18827 if { (ac_try="$ac_link"
18828 case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_link") 2>conftest.er1
18835 grep -v '^ *+' conftest.er1 >conftest.err
18837 cat conftest.err >&5
18838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18839 (exit $ac_status); } && {
18840 test -z "$ac_c_werror_flag" ||
18841 test ! -s conftest.err
18842 } && test -s conftest$ac_exeext &&
18843 $as_test_x conftest$ac_exeext; then
18844 ac_cv_lib_dld_shl_load=yes
18846 echo "$as_me: failed program was:" >&5
18847 sed 's/^/| /' conftest.$ac_ext >&5
18849 ac_cv_lib_dld_shl_load=no
18852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18853 conftest$ac_exeext conftest.$ac_ext
18854 LIBS=$ac_check_lib_save_LIBS
18856 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
18857 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
18858 if test $ac_cv_lib_dld_shl_load = yes; then
18859 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
18861 { echo "$as_me:$LINENO: checking for dlopen" >&5
18862 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
18863 if test "${ac_cv_func_dlopen+set}" = set; then
18864 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 cat >conftest.$ac_ext <<_ACEOF
18869 cat confdefs.h >>conftest.$ac_ext
18870 cat >>conftest.$ac_ext <<_ACEOF
18871 /* end confdefs.h. */
18872 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
18873 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18874 #define dlopen innocuous_dlopen
18876 /* System header to define __stub macros and hopefully few prototypes,
18877 which can conflict with char dlopen (); below.
18878 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18879 <limits.h> exists even on freestanding compilers. */
18882 # include <limits.h>
18884 # include <assert.h>
18889 /* Override any GCC internal prototype to avoid an error.
18890 Use char because int might match the return type of a GCC
18891 builtin and then its argument prototype would still apply. */
18896 /* The GNU C library defines this for functions which it implements
18897 to always fail with ENOSYS. Some functions are actually named
18898 something starting with __ and the normal name is an alias. */
18899 #if defined __stub_dlopen || defined __stub___dlopen
18911 rm -f conftest.$ac_objext conftest$ac_exeext
18912 if { (ac_try="$ac_link"
18913 case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_link") 2>conftest.er1
18920 grep -v '^ *+' conftest.er1 >conftest.err
18922 cat conftest.err >&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); } && {
18925 test -z "$ac_c_werror_flag" ||
18926 test ! -s conftest.err
18927 } && test -s conftest$ac_exeext &&
18928 $as_test_x conftest$ac_exeext; then
18929 ac_cv_func_dlopen=yes
18931 echo "$as_me: failed program was:" >&5
18932 sed 's/^/| /' conftest.$ac_ext >&5
18934 ac_cv_func_dlopen=no
18937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18938 conftest$ac_exeext conftest.$ac_ext
18940 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18941 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
18942 if test $ac_cv_func_dlopen = yes; then
18943 lt_cv_dlopen="dlopen"
18945 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18946 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
18947 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18948 echo $ECHO_N "(cached) $ECHO_C" >&6
18950 ac_check_lib_save_LIBS=$LIBS
18952 cat >conftest.$ac_ext <<_ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h. */
18959 /* Override any GCC internal prototype to avoid an error.
18960 Use char because int might match the return type of a GCC
18961 builtin and then its argument prototype would still apply. */
18974 rm -f conftest.$ac_objext conftest$ac_exeext
18975 if { (ac_try="$ac_link"
18976 case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_link") 2>conftest.er1
18983 grep -v '^ *+' conftest.er1 >conftest.err
18985 cat conftest.err >&5
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } && {
18988 test -z "$ac_c_werror_flag" ||
18989 test ! -s conftest.err
18990 } && test -s conftest$ac_exeext &&
18991 $as_test_x conftest$ac_exeext; then
18992 ac_cv_lib_dl_dlopen=yes
18994 echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18997 ac_cv_lib_dl_dlopen=no
19000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19001 conftest$ac_exeext conftest.$ac_ext
19002 LIBS=$ac_check_lib_save_LIBS
19004 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19005 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
19006 if test $ac_cv_lib_dl_dlopen = yes; then
19007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19009 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19010 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
19011 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19012 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 ac_check_lib_save_LIBS=$LIBS
19015 LIBS="-lsvld $LIBS"
19016 cat >conftest.$ac_ext <<_ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19023 /* Override any GCC internal prototype to avoid an error.
19024 Use char because int might match the return type of a GCC
19025 builtin and then its argument prototype would still apply. */
19038 rm -f conftest.$ac_objext conftest$ac_exeext
19039 if { (ac_try="$ac_link"
19040 case "(($ac_try" in
19041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19042 *) ac_try_echo=$ac_try;;
19044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19045 (eval "$ac_link") 2>conftest.er1
19047 grep -v '^ *+' conftest.er1 >conftest.err
19049 cat conftest.err >&5
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } && {
19052 test -z "$ac_c_werror_flag" ||
19053 test ! -s conftest.err
19054 } && test -s conftest$ac_exeext &&
19055 $as_test_x conftest$ac_exeext; then
19056 ac_cv_lib_svld_dlopen=yes
19058 echo "$as_me: failed program was:" >&5
19059 sed 's/^/| /' conftest.$ac_ext >&5
19061 ac_cv_lib_svld_dlopen=no
19064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19065 conftest$ac_exeext conftest.$ac_ext
19066 LIBS=$ac_check_lib_save_LIBS
19068 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19069 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
19070 if test $ac_cv_lib_svld_dlopen = yes; then
19071 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19073 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19074 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
19075 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19076 echo $ECHO_N "(cached) $ECHO_C" >&6
19078 ac_check_lib_save_LIBS=$LIBS
19080 cat >conftest.$ac_ext <<_ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19087 /* Override any GCC internal prototype to avoid an error.
19088 Use char because int might match the return type of a GCC
19089 builtin and then its argument prototype would still apply. */
19097 return dld_link ();
19102 rm -f conftest.$ac_objext conftest$ac_exeext
19103 if { (ac_try="$ac_link"
19104 case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109 (eval "$ac_link") 2>conftest.er1
19111 grep -v '^ *+' conftest.er1 >conftest.err
19113 cat conftest.err >&5
19114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19115 (exit $ac_status); } && {
19116 test -z "$ac_c_werror_flag" ||
19117 test ! -s conftest.err
19118 } && test -s conftest$ac_exeext &&
19119 $as_test_x conftest$ac_exeext; then
19120 ac_cv_lib_dld_dld_link=yes
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19125 ac_cv_lib_dld_dld_link=no
19128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19129 conftest$ac_exeext conftest.$ac_ext
19130 LIBS=$ac_check_lib_save_LIBS
19132 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19133 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
19134 if test $ac_cv_lib_dld_dld_link = yes; then
19135 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19156 if test "x$lt_cv_dlopen" != xno; then
19162 case $lt_cv_dlopen in
19164 save_CPPFLAGS="$CPPFLAGS"
19165 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19167 save_LDFLAGS="$LDFLAGS"
19168 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19171 LIBS="$lt_cv_dlopen_libs $LIBS"
19173 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19174 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
19175 if test "${lt_cv_dlopen_self+set}" = set; then
19176 echo $ECHO_N "(cached) $ECHO_C" >&6
19178 if test "$cross_compiling" = yes; then :
19179 lt_cv_dlopen_self=cross
19181 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19182 lt_status=$lt_dlunknown
19183 cat > conftest.$ac_ext <<EOF
19184 #line 19184 "configure"
19185 #include "confdefs.h"
19194 # define LT_DLGLOBAL RTLD_GLOBAL
19197 # define LT_DLGLOBAL DL_GLOBAL
19199 # define LT_DLGLOBAL 0
19203 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19204 find out it does not work in some platform. */
19205 #ifndef LT_DLLAZY_OR_NOW
19207 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19210 # define LT_DLLAZY_OR_NOW DL_LAZY
19213 # define LT_DLLAZY_OR_NOW RTLD_NOW
19216 # define LT_DLLAZY_OR_NOW DL_NOW
19218 # define LT_DLLAZY_OR_NOW 0
19226 extern "C" void exit (int);
19229 void fnord() { int i=42;}
19232 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19233 int status = $lt_dlunknown;
19237 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19238 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19239 /* dlclose (self); */
19245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19246 (eval $ac_link) 2>&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19250 (./conftest; exit; ) 2>/dev/null
19252 case x$lt_status in
19253 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
19254 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
19255 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
19258 # compilation failed
19259 lt_cv_dlopen_self=no
19266 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
19267 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
19269 if test "x$lt_cv_dlopen_self" = xyes; then
19270 LDFLAGS="$LDFLAGS $link_static_flag"
19271 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
19272 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
19273 if test "${lt_cv_dlopen_self_static+set}" = set; then
19274 echo $ECHO_N "(cached) $ECHO_C" >&6
19276 if test "$cross_compiling" = yes; then :
19277 lt_cv_dlopen_self_static=cross
19279 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19280 lt_status=$lt_dlunknown
19281 cat > conftest.$ac_ext <<EOF
19282 #line 19282 "configure"
19283 #include "confdefs.h"
19292 # define LT_DLGLOBAL RTLD_GLOBAL
19295 # define LT_DLGLOBAL DL_GLOBAL
19297 # define LT_DLGLOBAL 0
19301 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19302 find out it does not work in some platform. */
19303 #ifndef LT_DLLAZY_OR_NOW
19305 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19308 # define LT_DLLAZY_OR_NOW DL_LAZY
19311 # define LT_DLLAZY_OR_NOW RTLD_NOW
19314 # define LT_DLLAZY_OR_NOW DL_NOW
19316 # define LT_DLLAZY_OR_NOW 0
19324 extern "C" void exit (int);
19327 void fnord() { int i=42;}
19330 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19331 int status = $lt_dlunknown;
19335 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19336 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19337 /* dlclose (self); */
19343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19344 (eval $ac_link) 2>&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19348 (./conftest; exit; ) 2>/dev/null
19350 case x$lt_status in
19351 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
19352 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
19353 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
19356 # compilation failed
19357 lt_cv_dlopen_self_static=no
19364 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
19365 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
19368 CPPFLAGS="$save_CPPFLAGS"
19369 LDFLAGS="$save_LDFLAGS"
19374 case $lt_cv_dlopen_self in
19375 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
19376 *) enable_dlopen_self=unknown ;;
19379 case $lt_cv_dlopen_self_static in
19380 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
19381 *) enable_dlopen_self_static=unknown ;;
19386 # The else clause should only fire when bootstrapping the
19387 # libtool distribution, otherwise you forgot to ship ltmain.sh
19388 # with your package, and you will get complaints that there are
19389 # no rules to generate ltmain.sh.
19390 if test -f "$ltmain"; then
19391 # See if we are running on zsh, and set the options which allow our commands through
19392 # without removal of \ escapes.
19393 if test -n "${ZSH_VERSION+set}" ; then
19394 setopt NO_GLOB_SUBST
19396 # Now quote all the things that may contain metacharacters while being
19397 # careful not to overquote the AC_SUBSTed values. We take copies of the
19398 # variables and quote the copies for generation of the libtool script.
19399 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19401 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19402 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19403 deplibs_check_method reload_flag reload_cmds need_locks \
19404 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19405 lt_cv_sys_global_symbol_to_c_name_address \
19406 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19407 old_postinstall_cmds old_postuninstall_cmds \
19411 lt_prog_compiler_wl_GCJ \
19412 lt_prog_compiler_pic_GCJ \
19413 lt_prog_compiler_static_GCJ \
19414 lt_prog_compiler_no_builtin_flag_GCJ \
19415 export_dynamic_flag_spec_GCJ \
19416 thread_safe_flag_spec_GCJ \
19417 whole_archive_flag_spec_GCJ \
19418 enable_shared_with_static_runtimes_GCJ \
19419 old_archive_cmds_GCJ \
19420 old_archive_from_new_cmds_GCJ \
19421 predep_objects_GCJ \
19422 postdep_objects_GCJ \
19425 compiler_lib_search_path_GCJ \
19427 archive_expsym_cmds_GCJ \
19428 postinstall_cmds_GCJ \
19429 postuninstall_cmds_GCJ \
19430 old_archive_from_expsyms_cmds_GCJ \
19431 allow_undefined_flag_GCJ \
19432 no_undefined_flag_GCJ \
19433 export_symbols_cmds_GCJ \
19434 hardcode_libdir_flag_spec_GCJ \
19435 hardcode_libdir_flag_spec_ld_GCJ \
19436 hardcode_libdir_separator_GCJ \
19437 hardcode_automatic_GCJ \
19439 module_expsym_cmds_GCJ \
19440 lt_cv_prog_compiler_c_o_GCJ \
19441 exclude_expsyms_GCJ \
19442 include_expsyms_GCJ; do
19445 old_archive_cmds_GCJ | \
19446 old_archive_from_new_cmds_GCJ | \
19447 archive_cmds_GCJ | \
19448 archive_expsym_cmds_GCJ | \
19449 module_cmds_GCJ | \
19450 module_expsym_cmds_GCJ | \
19451 old_archive_from_expsyms_cmds_GCJ | \
19452 export_symbols_cmds_GCJ | \
19453 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19454 postinstall_cmds | postuninstall_cmds | \
19455 old_postinstall_cmds | old_postuninstall_cmds | \
19456 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19457 # Double-quote double-evaled strings.
19458 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19461 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19467 *'\$0 --fallback-echo"')
19468 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19474 cat <<__EOF__ >> "$cfgfile"
19475 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19477 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19479 # Shell to use when invoking shell scripts.
19482 # Whether or not to build shared libraries.
19483 build_libtool_libs=$enable_shared
19485 # Whether or not to build static libraries.
19486 build_old_libs=$enable_static
19488 # Whether or not to add -lc for building shared libraries.
19489 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19491 # Whether or not to disallow shared libs when runtime libs are static
19492 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19494 # Whether or not to optimize for fast installation.
19495 fast_install=$enable_fast_install
19498 host_alias=$host_alias
19502 # The build system.
19503 build_alias=$build_alias
19507 # An echo program that does not interpret backslashes.
19512 AR_FLAGS=$lt_AR_FLAGS
19517 # A language-specific compiler.
19518 CC=$lt_compiler_GCJ
19520 # Is the compiler the GNU C compiler?
19526 # The linker used to build libraries.
19529 # Whether we need hard or soft links.
19532 # A BSD-compatible nm program.
19535 # A symbol stripping program
19538 # Used to examine libraries when file_magic_cmd begins "file"
19539 MAGIC_CMD=$MAGIC_CMD
19541 # Used on cygwin: DLL creation program.
19544 # Used on cygwin: object dumper.
19547 # Used on cygwin: assembler.
19550 # The name of the directory that contains temporary libtool files.
19553 # How to create reloadable object files.
19554 reload_flag=$lt_reload_flag
19555 reload_cmds=$lt_reload_cmds
19557 # How to pass a linker flag through the compiler.
19558 wl=$lt_lt_prog_compiler_wl_GCJ
19560 # Object file suffix (normally "o").
19561 objext="$ac_objext"
19563 # Old archive suffix (normally "a").
19566 # Shared library suffix (normally ".so").
19567 shrext_cmds='$shrext_cmds'
19569 # Executable file suffix (normally "").
19572 # Additional compiler flags for building library objects.
19573 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19576 # What is the maximum length of a command?
19577 max_cmd_len=$lt_cv_sys_max_cmd_len
19579 # Does compiler simultaneously support -c and -o options?
19580 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19582 # Must we lock files when doing compilation?
19583 need_locks=$lt_need_locks
19585 # Do we need the lib prefix for modules?
19586 need_lib_prefix=$need_lib_prefix
19588 # Do we need a version for libraries?
19589 need_version=$need_version
19591 # Whether dlopen is supported.
19592 dlopen_support=$enable_dlopen
19594 # Whether dlopen of programs is supported.
19595 dlopen_self=$enable_dlopen_self
19597 # Whether dlopen of statically linked programs is supported.
19598 dlopen_self_static=$enable_dlopen_self_static
19600 # Compiler flag to prevent dynamic linking.
19601 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19603 # Compiler flag to turn off builtin functions.
19604 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19606 # Compiler flag to allow reflexive dlopens.
19607 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19609 # Compiler flag to generate shared objects directly from archives.
19610 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19612 # Compiler flag to generate thread-safe objects.
19613 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19615 # Library versioning type.
19616 version_type=$version_type
19618 # Format of library name prefix.
19619 libname_spec=$lt_libname_spec
19621 # List of archive names. First name is the real one, the rest are links.
19622 # The last name is the one that the linker finds with -lNAME.
19623 library_names_spec=$lt_library_names_spec
19625 # The coded name of the library, if different from the real name.
19626 soname_spec=$lt_soname_spec
19628 # Commands used to build and install an old-style archive.
19630 old_archive_cmds=$lt_old_archive_cmds_GCJ
19631 old_postinstall_cmds=$lt_old_postinstall_cmds
19632 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19634 # Create an old-style archive from a shared archive.
19635 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19637 # Create a temporary old-style archive to link instead of a shared archive.
19638 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19640 # Commands used to build and install a shared archive.
19641 archive_cmds=$lt_archive_cmds_GCJ
19642 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19643 postinstall_cmds=$lt_postinstall_cmds
19644 postuninstall_cmds=$lt_postuninstall_cmds
19646 # Commands used to build a loadable module (assumed same as above if empty)
19647 module_cmds=$lt_module_cmds_GCJ
19648 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19650 # Commands to strip libraries.
19651 old_striplib=$lt_old_striplib
19652 striplib=$lt_striplib
19654 # Dependencies to place before the objects being linked to create a
19656 predep_objects=$lt_predep_objects_GCJ
19658 # Dependencies to place after the objects being linked to create a
19660 postdep_objects=$lt_postdep_objects_GCJ
19662 # Dependencies to place before the objects being linked to create a
19664 predeps=$lt_predeps_GCJ
19666 # Dependencies to place after the objects being linked to create a
19668 postdeps=$lt_postdeps_GCJ
19670 # The library search path used internally by the compiler when linking
19671 # a shared library.
19672 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19674 # Method to check whether dependent libraries are shared objects.
19675 deplibs_check_method=$lt_deplibs_check_method
19677 # Command to use when deplibs_check_method == file_magic.
19678 file_magic_cmd=$lt_file_magic_cmd
19680 # Flag that allows shared libraries with undefined symbols to be built.
19681 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19683 # Flag that forces no undefined symbols.
19684 no_undefined_flag=$lt_no_undefined_flag_GCJ
19686 # Commands used to finish a libtool library installation in a directory.
19687 finish_cmds=$lt_finish_cmds
19689 # Same as above, but a single script fragment to be evaled but not shown.
19690 finish_eval=$lt_finish_eval
19692 # Take the output of nm and produce a listing of raw symbols and C names.
19693 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19695 # Transform the output of nm in a proper C declaration
19696 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19698 # Transform the output of nm in a C name address pair
19699 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19701 # This is the shared library runtime path variable.
19702 runpath_var=$runpath_var
19704 # This is the shared library path variable.
19705 shlibpath_var=$shlibpath_var
19707 # Is shlibpath searched before the hard-coded library search path?
19708 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19710 # How to hardcode a shared library path into an executable.
19711 hardcode_action=$hardcode_action_GCJ
19713 # Whether we should hardcode library paths into libraries.
19714 hardcode_into_libs=$hardcode_into_libs
19716 # Flag to hardcode \$libdir into a binary during linking.
19717 # This must work even if \$libdir does not exist.
19718 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19720 # If ld is used when linking, flag to hardcode \$libdir into
19721 # a binary during linking. This must work even if \$libdir does
19723 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19725 # Whether we need a single -rpath flag with a separated argument.
19726 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19728 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19729 # resulting binary.
19730 hardcode_direct=$hardcode_direct_GCJ
19732 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19733 # resulting binary.
19734 hardcode_minus_L=$hardcode_minus_L_GCJ
19736 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19737 # the resulting binary.
19738 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19740 # Set to yes if building a shared library automatically hardcodes DIR into the library
19741 # and all subsequent libraries and executables linked against it.
19742 hardcode_automatic=$hardcode_automatic_GCJ
19744 # Variables whose values should be saved in libtool wrapper scripts and
19745 # restored at relink time.
19746 variables_saved_for_relink="$variables_saved_for_relink"
19748 # Whether libtool must link a program against all its dependency libraries.
19749 link_all_deplibs=$link_all_deplibs_GCJ
19751 # Compile-time system search path for libraries
19752 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19754 # Run-time system search path for libraries
19755 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19757 # Fix the shell variable \$srcfile for the compiler.
19758 fix_srcfile_path="$fix_srcfile_path_GCJ"
19760 # Set to yes if exported symbols are required.
19761 always_export_symbols=$always_export_symbols_GCJ
19763 # The commands to list exported symbols.
19764 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19766 # The commands to extract the exported symbol list from a shared archive.
19767 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19769 # Symbols that should not be listed in the preloaded symbols.
19770 exclude_expsyms=$lt_exclude_expsyms_GCJ
19772 # Symbols that must always be exported.
19773 include_expsyms=$lt_include_expsyms_GCJ
19775 # ### END LIBTOOL TAG CONFIG: $tagname
19781 # If there is no Makefile yet, we rely on a make rule to execute
19782 # `config.status --recheck' to rerun these tests and create the
19783 # libtool script then.
19784 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19785 if test -f "$ltmain_in"; then
19786 test -f Makefile && make "$ltmain"
19792 ac_cpp='$CPP $CPPFLAGS'
19793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19807 # Source file extension for RC test sources.
19810 # Object file extension for compiled RC test sources.
19814 # Code to be used in simple compile tests
19815 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19817 # Code to be used in simple link tests
19818 lt_simple_link_test_code="$lt_simple_compile_test_code"
19820 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19822 # If no C compiler was specified, use CC.
19825 # Allow CC to be a program name with arguments.
19829 # save warnings/boilerplate of simple test code
19830 ac_outfile=conftest.$ac_objext
19831 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19832 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19833 _lt_compiler_boilerplate=`cat conftest.err`
19836 ac_outfile=conftest.$ac_objext
19837 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19838 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
19839 _lt_linker_boilerplate=`cat conftest.err`
19843 # Allow CC to be a program name with arguments.
19848 for cc_temp in $compiler""; do
19850 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19851 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19856 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19858 lt_cv_prog_compiler_c_o_RC=yes
19860 # The else clause should only fire when bootstrapping the
19861 # libtool distribution, otherwise you forgot to ship ltmain.sh
19862 # with your package, and you will get complaints that there are
19863 # no rules to generate ltmain.sh.
19864 if test -f "$ltmain"; then
19865 # See if we are running on zsh, and set the options which allow our commands through
19866 # without removal of \ escapes.
19867 if test -n "${ZSH_VERSION+set}" ; then
19868 setopt NO_GLOB_SUBST
19870 # Now quote all the things that may contain metacharacters while being
19871 # careful not to overquote the AC_SUBSTed values. We take copies of the
19872 # variables and quote the copies for generation of the libtool script.
19873 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
19875 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19876 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19877 deplibs_check_method reload_flag reload_cmds need_locks \
19878 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19879 lt_cv_sys_global_symbol_to_c_name_address \
19880 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19881 old_postinstall_cmds old_postuninstall_cmds \
19885 lt_prog_compiler_wl_RC \
19886 lt_prog_compiler_pic_RC \
19887 lt_prog_compiler_static_RC \
19888 lt_prog_compiler_no_builtin_flag_RC \
19889 export_dynamic_flag_spec_RC \
19890 thread_safe_flag_spec_RC \
19891 whole_archive_flag_spec_RC \
19892 enable_shared_with_static_runtimes_RC \
19893 old_archive_cmds_RC \
19894 old_archive_from_new_cmds_RC \
19895 predep_objects_RC \
19896 postdep_objects_RC \
19899 compiler_lib_search_path_RC \
19901 archive_expsym_cmds_RC \
19902 postinstall_cmds_RC \
19903 postuninstall_cmds_RC \
19904 old_archive_from_expsyms_cmds_RC \
19905 allow_undefined_flag_RC \
19906 no_undefined_flag_RC \
19907 export_symbols_cmds_RC \
19908 hardcode_libdir_flag_spec_RC \
19909 hardcode_libdir_flag_spec_ld_RC \
19910 hardcode_libdir_separator_RC \
19911 hardcode_automatic_RC \
19913 module_expsym_cmds_RC \
19914 lt_cv_prog_compiler_c_o_RC \
19915 exclude_expsyms_RC \
19916 include_expsyms_RC; do
19919 old_archive_cmds_RC | \
19920 old_archive_from_new_cmds_RC | \
19921 archive_cmds_RC | \
19922 archive_expsym_cmds_RC | \
19924 module_expsym_cmds_RC | \
19925 old_archive_from_expsyms_cmds_RC | \
19926 export_symbols_cmds_RC | \
19927 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19928 postinstall_cmds | postuninstall_cmds | \
19929 old_postinstall_cmds | old_postuninstall_cmds | \
19930 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19931 # Double-quote double-evaled strings.
19932 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19935 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19941 *'\$0 --fallback-echo"')
19942 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19948 cat <<__EOF__ >> "$cfgfile"
19949 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19951 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19953 # Shell to use when invoking shell scripts.
19956 # Whether or not to build shared libraries.
19957 build_libtool_libs=$enable_shared
19959 # Whether or not to build static libraries.
19960 build_old_libs=$enable_static
19962 # Whether or not to add -lc for building shared libraries.
19963 build_libtool_need_lc=$archive_cmds_need_lc_RC
19965 # Whether or not to disallow shared libs when runtime libs are static
19966 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19968 # Whether or not to optimize for fast installation.
19969 fast_install=$enable_fast_install
19972 host_alias=$host_alias
19976 # The build system.
19977 build_alias=$build_alias
19981 # An echo program that does not interpret backslashes.
19986 AR_FLAGS=$lt_AR_FLAGS
19991 # A language-specific compiler.
19994 # Is the compiler the GNU C compiler?
20000 # The linker used to build libraries.
20003 # Whether we need hard or soft links.
20006 # A BSD-compatible nm program.
20009 # A symbol stripping program
20012 # Used to examine libraries when file_magic_cmd begins "file"
20013 MAGIC_CMD=$MAGIC_CMD
20015 # Used on cygwin: DLL creation program.
20018 # Used on cygwin: object dumper.
20021 # Used on cygwin: assembler.
20024 # The name of the directory that contains temporary libtool files.
20027 # How to create reloadable object files.
20028 reload_flag=$lt_reload_flag
20029 reload_cmds=$lt_reload_cmds
20031 # How to pass a linker flag through the compiler.
20032 wl=$lt_lt_prog_compiler_wl_RC
20034 # Object file suffix (normally "o").
20035 objext="$ac_objext"
20037 # Old archive suffix (normally "a").
20040 # Shared library suffix (normally ".so").
20041 shrext_cmds='$shrext_cmds'
20043 # Executable file suffix (normally "").
20046 # Additional compiler flags for building library objects.
20047 pic_flag=$lt_lt_prog_compiler_pic_RC
20050 # What is the maximum length of a command?
20051 max_cmd_len=$lt_cv_sys_max_cmd_len
20053 # Does compiler simultaneously support -c and -o options?
20054 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20056 # Must we lock files when doing compilation?
20057 need_locks=$lt_need_locks
20059 # Do we need the lib prefix for modules?
20060 need_lib_prefix=$need_lib_prefix
20062 # Do we need a version for libraries?
20063 need_version=$need_version
20065 # Whether dlopen is supported.
20066 dlopen_support=$enable_dlopen
20068 # Whether dlopen of programs is supported.
20069 dlopen_self=$enable_dlopen_self
20071 # Whether dlopen of statically linked programs is supported.
20072 dlopen_self_static=$enable_dlopen_self_static
20074 # Compiler flag to prevent dynamic linking.
20075 link_static_flag=$lt_lt_prog_compiler_static_RC
20077 # Compiler flag to turn off builtin functions.
20078 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20080 # Compiler flag to allow reflexive dlopens.
20081 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20083 # Compiler flag to generate shared objects directly from archives.
20084 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20086 # Compiler flag to generate thread-safe objects.
20087 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20089 # Library versioning type.
20090 version_type=$version_type
20092 # Format of library name prefix.
20093 libname_spec=$lt_libname_spec
20095 # List of archive names. First name is the real one, the rest are links.
20096 # The last name is the one that the linker finds with -lNAME.
20097 library_names_spec=$lt_library_names_spec
20099 # The coded name of the library, if different from the real name.
20100 soname_spec=$lt_soname_spec
20102 # Commands used to build and install an old-style archive.
20104 old_archive_cmds=$lt_old_archive_cmds_RC
20105 old_postinstall_cmds=$lt_old_postinstall_cmds
20106 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20108 # Create an old-style archive from a shared archive.
20109 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20111 # Create a temporary old-style archive to link instead of a shared archive.
20112 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20114 # Commands used to build and install a shared archive.
20115 archive_cmds=$lt_archive_cmds_RC
20116 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20117 postinstall_cmds=$lt_postinstall_cmds
20118 postuninstall_cmds=$lt_postuninstall_cmds
20120 # Commands used to build a loadable module (assumed same as above if empty)
20121 module_cmds=$lt_module_cmds_RC
20122 module_expsym_cmds=$lt_module_expsym_cmds_RC
20124 # Commands to strip libraries.
20125 old_striplib=$lt_old_striplib
20126 striplib=$lt_striplib
20128 # Dependencies to place before the objects being linked to create a
20130 predep_objects=$lt_predep_objects_RC
20132 # Dependencies to place after the objects being linked to create a
20134 postdep_objects=$lt_postdep_objects_RC
20136 # Dependencies to place before the objects being linked to create a
20138 predeps=$lt_predeps_RC
20140 # Dependencies to place after the objects being linked to create a
20142 postdeps=$lt_postdeps_RC
20144 # The library search path used internally by the compiler when linking
20145 # a shared library.
20146 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20148 # Method to check whether dependent libraries are shared objects.
20149 deplibs_check_method=$lt_deplibs_check_method
20151 # Command to use when deplibs_check_method == file_magic.
20152 file_magic_cmd=$lt_file_magic_cmd
20154 # Flag that allows shared libraries with undefined symbols to be built.
20155 allow_undefined_flag=$lt_allow_undefined_flag_RC
20157 # Flag that forces no undefined symbols.
20158 no_undefined_flag=$lt_no_undefined_flag_RC
20160 # Commands used to finish a libtool library installation in a directory.
20161 finish_cmds=$lt_finish_cmds
20163 # Same as above, but a single script fragment to be evaled but not shown.
20164 finish_eval=$lt_finish_eval
20166 # Take the output of nm and produce a listing of raw symbols and C names.
20167 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20169 # Transform the output of nm in a proper C declaration
20170 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20172 # Transform the output of nm in a C name address pair
20173 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20175 # This is the shared library runtime path variable.
20176 runpath_var=$runpath_var
20178 # This is the shared library path variable.
20179 shlibpath_var=$shlibpath_var
20181 # Is shlibpath searched before the hard-coded library search path?
20182 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20184 # How to hardcode a shared library path into an executable.
20185 hardcode_action=$hardcode_action_RC
20187 # Whether we should hardcode library paths into libraries.
20188 hardcode_into_libs=$hardcode_into_libs
20190 # Flag to hardcode \$libdir into a binary during linking.
20191 # This must work even if \$libdir does not exist.
20192 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20194 # If ld is used when linking, flag to hardcode \$libdir into
20195 # a binary during linking. This must work even if \$libdir does
20197 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20199 # Whether we need a single -rpath flag with a separated argument.
20200 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20202 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20203 # resulting binary.
20204 hardcode_direct=$hardcode_direct_RC
20206 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20207 # resulting binary.
20208 hardcode_minus_L=$hardcode_minus_L_RC
20210 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20211 # the resulting binary.
20212 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20214 # Set to yes if building a shared library automatically hardcodes DIR into the library
20215 # and all subsequent libraries and executables linked against it.
20216 hardcode_automatic=$hardcode_automatic_RC
20218 # Variables whose values should be saved in libtool wrapper scripts and
20219 # restored at relink time.
20220 variables_saved_for_relink="$variables_saved_for_relink"
20222 # Whether libtool must link a program against all its dependency libraries.
20223 link_all_deplibs=$link_all_deplibs_RC
20225 # Compile-time system search path for libraries
20226 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20228 # Run-time system search path for libraries
20229 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20231 # Fix the shell variable \$srcfile for the compiler.
20232 fix_srcfile_path="$fix_srcfile_path_RC"
20234 # Set to yes if exported symbols are required.
20235 always_export_symbols=$always_export_symbols_RC
20237 # The commands to list exported symbols.
20238 export_symbols_cmds=$lt_export_symbols_cmds_RC
20240 # The commands to extract the exported symbol list from a shared archive.
20241 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20243 # Symbols that should not be listed in the preloaded symbols.
20244 exclude_expsyms=$lt_exclude_expsyms_RC
20246 # Symbols that must always be exported.
20247 include_expsyms=$lt_include_expsyms_RC
20249 # ### END LIBTOOL TAG CONFIG: $tagname
20255 # If there is no Makefile yet, we rely on a make rule to execute
20256 # `config.status --recheck' to rerun these tests and create the
20257 # libtool script then.
20258 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20259 if test -f "$ltmain_in"; then
20260 test -f Makefile && make "$ltmain"
20266 ac_cpp='$CPP $CPPFLAGS'
20267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20276 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20277 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20278 { (exit 1); exit 1; }; }
20282 # Append the new tag name to the list of available tags.
20283 if test -n "$tagname" ; then
20284 available_tags="$available_tags $tagname"
20290 # Now substitute the updated list of available tags.
20291 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20292 mv "${ofile}T" "$ofile"
20296 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20297 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20298 { (exit 1); exit 1; }; }
20304 # This can be used to rebuild libtool when needed
20305 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20307 # Always use our own libtool.
20308 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20310 # Prevent multiple expansion
20365 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20366 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20367 if test "${ac_cv_header_stdc+set}" = set; then
20368 echo $ECHO_N "(cached) $ECHO_C" >&6
20370 cat >conftest.$ac_ext <<_ACEOF
20373 cat confdefs.h >>conftest.$ac_ext
20374 cat >>conftest.$ac_ext <<_ACEOF
20375 /* end confdefs.h. */
20376 #include <stdlib.h>
20377 #include <stdarg.h>
20378 #include <string.h>
20389 rm -f conftest.$ac_objext
20390 if { (ac_try="$ac_compile"
20391 case "(($ac_try" in
20392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20393 *) ac_try_echo=$ac_try;;
20395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20396 (eval "$ac_compile") 2>conftest.er1
20398 grep -v '^ *+' conftest.er1 >conftest.err
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20402 (exit $ac_status); } && {
20403 test -z "$ac_c_werror_flag" ||
20404 test ! -s conftest.err
20405 } && test -s conftest.$ac_objext; then
20406 ac_cv_header_stdc=yes
20408 echo "$as_me: failed program was:" >&5
20409 sed 's/^/| /' conftest.$ac_ext >&5
20411 ac_cv_header_stdc=no
20414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20416 if test $ac_cv_header_stdc = yes; then
20417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20418 cat >conftest.$ac_ext <<_ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h. */
20424 #include <string.h>
20427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20428 $EGREP "memchr" >/dev/null 2>&1; then
20431 ac_cv_header_stdc=no
20437 if test $ac_cv_header_stdc = yes; then
20438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20439 cat >conftest.$ac_ext <<_ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h. */
20445 #include <stdlib.h>
20448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20449 $EGREP "free" >/dev/null 2>&1; then
20452 ac_cv_header_stdc=no
20458 if test $ac_cv_header_stdc = yes; then
20459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20460 if test "$cross_compiling" = yes; then
20463 cat >conftest.$ac_ext <<_ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20470 #include <stdlib.h>
20471 #if ((' ' & 0x0FF) == 0x020)
20472 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20473 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20475 # define ISLOWER(c) \
20476 (('a' <= (c) && (c) <= 'i') \
20477 || ('j' <= (c) && (c) <= 'r') \
20478 || ('s' <= (c) && (c) <= 'z'))
20479 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20482 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20487 for (i = 0; i < 256; i++)
20488 if (XOR (islower (i), ISLOWER (i))
20489 || toupper (i) != TOUPPER (i))
20494 rm -f conftest$ac_exeext
20495 if { (ac_try="$ac_link"
20496 case "(($ac_try" in
20497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20498 *) ac_try_echo=$ac_try;;
20500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20501 (eval "$ac_link") 2>&5
20503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20505 { (case "(($ac_try" in
20506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507 *) ac_try_echo=$ac_try;;
20509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20510 (eval "$ac_try") 2>&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; }; then
20516 echo "$as_me: program exited with status $ac_status" >&5
20517 echo "$as_me: failed program was:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20520 ( exit $ac_status )
20521 ac_cv_header_stdc=no
20523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20529 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20530 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20531 if test $ac_cv_header_stdc = yes; then
20533 cat >>confdefs.h <<\_ACEOF
20534 #define STDC_HEADERS 1
20539 { echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
20540 echo $ECHO_N "checking whether sys/types.h defines makedev... $ECHO_C" >&6; }
20541 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
20542 echo $ECHO_N "(cached) $ECHO_C" >&6
20544 cat >conftest.$ac_ext <<_ACEOF
20547 cat confdefs.h >>conftest.$ac_ext
20548 cat >>conftest.$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20550 #include <sys/types.h>
20554 return makedev(0, 0);
20559 rm -f conftest.$ac_objext conftest$ac_exeext
20560 if { (ac_try="$ac_link"
20561 case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_link") 2>conftest.er1
20568 grep -v '^ *+' conftest.er1 >conftest.err
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } && {
20573 test -z "$ac_c_werror_flag" ||
20574 test ! -s conftest.err
20575 } && test -s conftest$ac_exeext &&
20576 $as_test_x conftest$ac_exeext; then
20577 ac_cv_header_sys_types_h_makedev=yes
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 ac_cv_header_sys_types_h_makedev=no
20585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20586 conftest$ac_exeext conftest.$ac_ext
20589 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
20590 echo "${ECHO_T}$ac_cv_header_sys_types_h_makedev" >&6; }
20592 if test $ac_cv_header_sys_types_h_makedev = no; then
20593 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20594 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20595 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20596 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20597 echo $ECHO_N "(cached) $ECHO_C" >&6
20599 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20600 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20602 # Is the header compilable?
20603 { echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
20604 echo $ECHO_N "checking sys/mkdev.h usability... $ECHO_C" >&6; }
20605 cat >conftest.$ac_ext <<_ACEOF
20608 cat confdefs.h >>conftest.$ac_ext
20609 cat >>conftest.$ac_ext <<_ACEOF
20610 /* end confdefs.h. */
20611 $ac_includes_default
20612 #include <sys/mkdev.h>
20614 rm -f conftest.$ac_objext
20615 if { (ac_try="$ac_compile"
20616 case "(($ac_try" in
20617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20618 *) ac_try_echo=$ac_try;;
20620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20621 (eval "$ac_compile") 2>conftest.er1
20623 grep -v '^ *+' conftest.er1 >conftest.err
20625 cat conftest.err >&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } && {
20628 test -z "$ac_c_werror_flag" ||
20629 test ! -s conftest.err
20630 } && test -s conftest.$ac_objext; then
20631 ac_header_compiler=yes
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 ac_header_compiler=no
20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20641 echo "${ECHO_T}$ac_header_compiler" >&6; }
20643 # Is the header present?
20644 { echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
20645 echo $ECHO_N "checking sys/mkdev.h presence... $ECHO_C" >&6; }
20646 cat >conftest.$ac_ext <<_ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 #include <sys/mkdev.h>
20654 if { (ac_try="$ac_cpp conftest.$ac_ext"
20655 case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20662 grep -v '^ *+' conftest.er1 >conftest.err
20664 cat conftest.err >&5
20665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20666 (exit $ac_status); } >/dev/null && {
20667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20668 test ! -s conftest.err
20670 ac_header_preproc=yes
20672 echo "$as_me: failed program was:" >&5
20673 sed 's/^/| /' conftest.$ac_ext >&5
20675 ac_header_preproc=no
20678 rm -f conftest.err conftest.$ac_ext
20679 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20680 echo "${ECHO_T}$ac_header_preproc" >&6; }
20682 # So? What about this header?
20683 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20685 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
20686 echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20687 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
20688 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
20689 ac_header_preproc=yes
20692 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
20693 echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
20694 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&5
20695 echo "$as_me: WARNING: sys/mkdev.h: check for missing prerequisite headers?" >&2;}
20696 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
20697 echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
20698 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&5
20699 echo "$as_me: WARNING: sys/mkdev.h: section \"Present But Cannot Be Compiled\"" >&2;}
20700 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
20701 echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
20702 { echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
20703 echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
20707 { echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
20708 echo $ECHO_N "checking for sys/mkdev.h... $ECHO_C" >&6; }
20709 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20712 ac_cv_header_sys_mkdev_h=$ac_header_preproc
20714 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
20715 echo "${ECHO_T}$ac_cv_header_sys_mkdev_h" >&6; }
20718 if test $ac_cv_header_sys_mkdev_h = yes; then
20720 cat >>confdefs.h <<\_ACEOF
20721 #define MAJOR_IN_MKDEV 1
20728 if test $ac_cv_header_sys_mkdev_h = no; then
20729 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20730 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20731 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20732 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20733 echo $ECHO_N "(cached) $ECHO_C" >&6
20735 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20736 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20738 # Is the header compilable?
20739 { echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
20740 echo $ECHO_N "checking sys/sysmacros.h usability... $ECHO_C" >&6; }
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 $ac_includes_default
20748 #include <sys/sysmacros.h>
20750 rm -f conftest.$ac_objext
20751 if { (ac_try="$ac_compile"
20752 case "(($ac_try" in
20753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20754 *) ac_try_echo=$ac_try;;
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_compile") 2>conftest.er1
20759 grep -v '^ *+' conftest.er1 >conftest.err
20761 cat conftest.err >&5
20762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20763 (exit $ac_status); } && {
20764 test -z "$ac_c_werror_flag" ||
20765 test ! -s conftest.err
20766 } && test -s conftest.$ac_objext; then
20767 ac_header_compiler=yes
20769 echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20772 ac_header_compiler=no
20775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20776 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20777 echo "${ECHO_T}$ac_header_compiler" >&6; }
20779 # Is the header present?
20780 { echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
20781 echo $ECHO_N "checking sys/sysmacros.h presence... $ECHO_C" >&6; }
20782 cat >conftest.$ac_ext <<_ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 #include <sys/sysmacros.h>
20790 if { (ac_try="$ac_cpp conftest.$ac_ext"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20798 grep -v '^ *+' conftest.er1 >conftest.err
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } >/dev/null && {
20803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20804 test ! -s conftest.err
20806 ac_header_preproc=yes
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 ac_header_preproc=no
20814 rm -f conftest.err conftest.$ac_ext
20815 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20816 echo "${ECHO_T}$ac_header_preproc" >&6; }
20818 # So? What about this header?
20819 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20821 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
20822 echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20823 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
20824 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
20825 ac_header_preproc=yes
20828 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
20829 echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
20830 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&5
20831 echo "$as_me: WARNING: sys/sysmacros.h: check for missing prerequisite headers?" >&2;}
20832 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
20833 echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
20834 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&5
20835 echo "$as_me: WARNING: sys/sysmacros.h: section \"Present But Cannot Be Compiled\"" >&2;}
20836 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
20837 echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
20838 { echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
20839 echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
20843 { echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
20844 echo $ECHO_N "checking for sys/sysmacros.h... $ECHO_C" >&6; }
20845 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
20846 echo $ECHO_N "(cached) $ECHO_C" >&6
20848 ac_cv_header_sys_sysmacros_h=$ac_header_preproc
20850 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
20851 echo "${ECHO_T}$ac_cv_header_sys_sysmacros_h" >&6; }
20854 if test $ac_cv_header_sys_sysmacros_h = yes; then
20856 cat >>confdefs.h <<\_ACEOF
20857 #define MAJOR_IN_SYSMACROS 1
20866 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20867 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
20868 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20869 echo $ECHO_N "(cached) $ECHO_C" >&6
20871 cat >conftest.$ac_ext <<_ACEOF
20874 cat confdefs.h >>conftest.$ac_ext
20875 cat >>conftest.$ac_ext <<_ACEOF
20876 /* end confdefs.h. */
20877 #include <sys/types.h>
20878 #include <sys/wait.h>
20879 #ifndef WEXITSTATUS
20880 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
20883 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20891 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20896 rm -f conftest.$ac_objext
20897 if { (ac_try="$ac_compile"
20898 case "(($ac_try" in
20899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20900 *) ac_try_echo=$ac_try;;
20902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20903 (eval "$ac_compile") 2>conftest.er1
20905 grep -v '^ *+' conftest.er1 >conftest.err
20907 cat conftest.err >&5
20908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20909 (exit $ac_status); } && {
20910 test -z "$ac_c_werror_flag" ||
20911 test ! -s conftest.err
20912 } && test -s conftest.$ac_objext; then
20913 ac_cv_header_sys_wait_h=yes
20915 echo "$as_me: failed program was:" >&5
20916 sed 's/^/| /' conftest.$ac_ext >&5
20918 ac_cv_header_sys_wait_h=no
20921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20923 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20924 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
20925 if test $ac_cv_header_sys_wait_h = yes; then
20927 cat >>confdefs.h <<\_ACEOF
20928 #define HAVE_SYS_WAIT_H 1
20934 for ac_header in stdint.h
20936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20943 ac_res=`eval echo '${'$as_ac_Header'}'`
20944 { echo "$as_me:$LINENO: result: $ac_res" >&5
20945 echo "${ECHO_T}$ac_res" >&6; }
20947 # Is the header compilable?
20948 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20950 cat >conftest.$ac_ext <<_ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 $ac_includes_default
20957 #include <$ac_header>
20959 rm -f conftest.$ac_objext
20960 if { (ac_try="$ac_compile"
20961 case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_compile") 2>conftest.er1
20968 grep -v '^ *+' conftest.er1 >conftest.err
20970 cat conftest.err >&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } && {
20973 test -z "$ac_c_werror_flag" ||
20974 test ! -s conftest.err
20975 } && test -s conftest.$ac_objext; then
20976 ac_header_compiler=yes
20978 echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20981 ac_header_compiler=no
20984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20986 echo "${ECHO_T}$ac_header_compiler" >&6; }
20988 # Is the header present?
20989 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20991 cat >conftest.$ac_ext <<_ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20997 #include <$ac_header>
20999 if { (ac_try="$ac_cpp conftest.$ac_ext"
21000 case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21007 grep -v '^ *+' conftest.er1 >conftest.err
21009 cat conftest.err >&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } >/dev/null && {
21012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21013 test ! -s conftest.err
21015 ac_header_preproc=yes
21017 echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21020 ac_header_preproc=no
21023 rm -f conftest.err conftest.$ac_ext
21024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21025 echo "${ECHO_T}$ac_header_preproc" >&6; }
21027 # So? What about this header?
21028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21034 ac_header_preproc=yes
21037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21055 echo $ECHO_N "(cached) $ECHO_C" >&6
21057 eval "$as_ac_Header=\$ac_header_preproc"
21059 ac_res=`eval echo '${'$as_ac_Header'}'`
21060 { echo "$as_me:$LINENO: result: $ac_res" >&5
21061 echo "${ECHO_T}$ac_res" >&6; }
21064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21065 cat >>confdefs.h <<_ACEOF
21066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21079 for ac_header in fcntl.h locale.h stdint.h inttypes.h unistd.h getopt.h
21081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21088 ac_res=`eval echo '${'$as_ac_Header'}'`
21089 { echo "$as_me:$LINENO: result: $ac_res" >&5
21090 echo "${ECHO_T}$ac_res" >&6; }
21092 # Is the header compilable?
21093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21095 cat >conftest.$ac_ext <<_ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21101 $ac_includes_default
21102 #include <$ac_header>
21104 rm -f conftest.$ac_objext
21105 if { (ac_try="$ac_compile"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_compile") 2>conftest.er1
21113 grep -v '^ *+' conftest.er1 >conftest.err
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } && {
21118 test -z "$ac_c_werror_flag" ||
21119 test ! -s conftest.err
21120 } && test -s conftest.$ac_objext; then
21121 ac_header_compiler=yes
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21126 ac_header_compiler=no
21129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21131 echo "${ECHO_T}$ac_header_compiler" >&6; }
21133 # Is the header present?
21134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21136 cat >conftest.$ac_ext <<_ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h. */
21142 #include <$ac_header>
21144 if { (ac_try="$ac_cpp conftest.$ac_ext"
21145 case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21152 grep -v '^ *+' conftest.er1 >conftest.err
21154 cat conftest.err >&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } >/dev/null && {
21157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21158 test ! -s conftest.err
21160 ac_header_preproc=yes
21162 echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21165 ac_header_preproc=no
21168 rm -f conftest.err conftest.$ac_ext
21169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21170 echo "${ECHO_T}$ac_header_preproc" >&6; }
21172 # So? What about this header?
21173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21179 ac_header_preproc=yes
21182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21200 echo $ECHO_N "(cached) $ECHO_C" >&6
21202 eval "$as_ac_Header=\$ac_header_preproc"
21204 ac_res=`eval echo '${'$as_ac_Header'}'`
21205 { echo "$as_me:$LINENO: result: $ac_res" >&5
21206 echo "${ECHO_T}$ac_res" >&6; }
21209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21210 cat >>confdefs.h <<_ACEOF
21211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21222 for ac_header in utime.h wchar.h wctype.h limits.h
21224 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21229 echo $ECHO_N "(cached) $ECHO_C" >&6
21231 ac_res=`eval echo '${'$as_ac_Header'}'`
21232 { echo "$as_me:$LINENO: result: $ac_res" >&5
21233 echo "${ECHO_T}$ac_res" >&6; }
21235 # Is the header compilable?
21236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21238 cat >conftest.$ac_ext <<_ACEOF
21241 cat confdefs.h >>conftest.$ac_ext
21242 cat >>conftest.$ac_ext <<_ACEOF
21243 /* end confdefs.h. */
21244 $ac_includes_default
21245 #include <$ac_header>
21247 rm -f conftest.$ac_objext
21248 if { (ac_try="$ac_compile"
21249 case "(($ac_try" in
21250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251 *) ac_try_echo=$ac_try;;
21253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21254 (eval "$ac_compile") 2>conftest.er1
21256 grep -v '^ *+' conftest.er1 >conftest.err
21258 cat conftest.err >&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } && {
21261 test -z "$ac_c_werror_flag" ||
21262 test ! -s conftest.err
21263 } && test -s conftest.$ac_objext; then
21264 ac_header_compiler=yes
21266 echo "$as_me: failed program was:" >&5
21267 sed 's/^/| /' conftest.$ac_ext >&5
21269 ac_header_compiler=no
21272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21274 echo "${ECHO_T}$ac_header_compiler" >&6; }
21276 # Is the header present?
21277 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21278 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21279 cat >conftest.$ac_ext <<_ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 #include <$ac_header>
21287 if { (ac_try="$ac_cpp conftest.$ac_ext"
21288 case "(($ac_try" in
21289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21290 *) ac_try_echo=$ac_try;;
21292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21295 grep -v '^ *+' conftest.er1 >conftest.err
21297 cat conftest.err >&5
21298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21299 (exit $ac_status); } >/dev/null && {
21300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21301 test ! -s conftest.err
21303 ac_header_preproc=yes
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21308 ac_header_preproc=no
21311 rm -f conftest.err conftest.$ac_ext
21312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21313 echo "${ECHO_T}$ac_header_preproc" >&6; }
21315 # So? What about this header?
21316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21322 ac_header_preproc=yes
21325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21340 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21343 echo $ECHO_N "(cached) $ECHO_C" >&6
21345 eval "$as_ac_Header=\$ac_header_preproc"
21347 ac_res=`eval echo '${'$as_ac_Header'}'`
21348 { echo "$as_me:$LINENO: result: $ac_res" >&5
21349 echo "${ECHO_T}$ac_res" >&6; }
21352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21353 cat >>confdefs.h <<_ACEOF
21354 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21366 for ac_header in sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h
21368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21375 ac_res=`eval echo '${'$as_ac_Header'}'`
21376 { echo "$as_me:$LINENO: result: $ac_res" >&5
21377 echo "${ECHO_T}$ac_res" >&6; }
21379 # Is the header compilable?
21380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21382 cat >conftest.$ac_ext <<_ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 $ac_includes_default
21389 #include <$ac_header>
21391 rm -f conftest.$ac_objext
21392 if { (ac_try="$ac_compile"
21393 case "(($ac_try" in
21394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21395 *) ac_try_echo=$ac_try;;
21397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21398 (eval "$ac_compile") 2>conftest.er1
21400 grep -v '^ *+' conftest.er1 >conftest.err
21402 cat conftest.err >&5
21403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21404 (exit $ac_status); } && {
21405 test -z "$ac_c_werror_flag" ||
21406 test ! -s conftest.err
21407 } && test -s conftest.$ac_objext; then
21408 ac_header_compiler=yes
21410 echo "$as_me: failed program was:" >&5
21411 sed 's/^/| /' conftest.$ac_ext >&5
21413 ac_header_compiler=no
21416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21417 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21418 echo "${ECHO_T}$ac_header_compiler" >&6; }
21420 # Is the header present?
21421 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21422 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21423 cat >conftest.$ac_ext <<_ACEOF
21426 cat confdefs.h >>conftest.$ac_ext
21427 cat >>conftest.$ac_ext <<_ACEOF
21428 /* end confdefs.h. */
21429 #include <$ac_header>
21431 if { (ac_try="$ac_cpp conftest.$ac_ext"
21432 case "(($ac_try" in
21433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21434 *) ac_try_echo=$ac_try;;
21436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21439 grep -v '^ *+' conftest.er1 >conftest.err
21441 cat conftest.err >&5
21442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21443 (exit $ac_status); } >/dev/null && {
21444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21445 test ! -s conftest.err
21447 ac_header_preproc=yes
21449 echo "$as_me: failed program was:" >&5
21450 sed 's/^/| /' conftest.$ac_ext >&5
21452 ac_header_preproc=no
21455 rm -f conftest.err conftest.$ac_ext
21456 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21457 echo "${ECHO_T}$ac_header_preproc" >&6; }
21459 # So? What about this header?
21460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21462 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21463 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21464 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21465 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21466 ac_header_preproc=yes
21469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21470 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21472 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21473 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21474 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21475 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21476 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21478 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21479 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21480 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21484 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21485 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21487 echo $ECHO_N "(cached) $ECHO_C" >&6
21489 eval "$as_ac_Header=\$ac_header_preproc"
21491 ac_res=`eval echo '${'$as_ac_Header'}'`
21492 { echo "$as_me:$LINENO: result: $ac_res" >&5
21493 echo "${ECHO_T}$ac_res" >&6; }
21496 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21497 cat >>confdefs.h <<_ACEOF
21498 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21506 for ac_header in zlib.h
21508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21513 echo $ECHO_N "(cached) $ECHO_C" >&6
21515 ac_res=`eval echo '${'$as_ac_Header'}'`
21516 { echo "$as_me:$LINENO: result: $ac_res" >&5
21517 echo "${ECHO_T}$ac_res" >&6; }
21519 # Is the header compilable?
21520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 $ac_includes_default
21529 #include <$ac_header>
21531 rm -f conftest.$ac_objext
21532 if { (ac_try="$ac_compile"
21533 case "(($ac_try" in
21534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21535 *) ac_try_echo=$ac_try;;
21537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21538 (eval "$ac_compile") 2>conftest.er1
21540 grep -v '^ *+' conftest.er1 >conftest.err
21542 cat conftest.err >&5
21543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544 (exit $ac_status); } && {
21545 test -z "$ac_c_werror_flag" ||
21546 test ! -s conftest.err
21547 } && test -s conftest.$ac_objext; then
21548 ac_header_compiler=yes
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21553 ac_header_compiler=no
21556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21558 echo "${ECHO_T}$ac_header_compiler" >&6; }
21560 # Is the header present?
21561 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21562 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21563 cat >conftest.$ac_ext <<_ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21569 #include <$ac_header>
21571 if { (ac_try="$ac_cpp conftest.$ac_ext"
21572 case "(($ac_try" in
21573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21574 *) ac_try_echo=$ac_try;;
21576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21579 grep -v '^ *+' conftest.er1 >conftest.err
21581 cat conftest.err >&5
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } >/dev/null && {
21584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21585 test ! -s conftest.err
21587 ac_header_preproc=yes
21589 echo "$as_me: failed program was:" >&5
21590 sed 's/^/| /' conftest.$ac_ext >&5
21592 ac_header_preproc=no
21595 rm -f conftest.err conftest.$ac_ext
21596 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21597 echo "${ECHO_T}$ac_header_preproc" >&6; }
21599 # So? What about this header?
21600 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21602 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21603 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21605 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21606 ac_header_preproc=yes
21609 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21610 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21611 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21612 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21613 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21614 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21615 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21616 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21618 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21619 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21620 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 eval "$as_ac_Header=\$ac_header_preproc"
21631 ac_res=`eval echo '${'$as_ac_Header'}'`
21632 { echo "$as_me:$LINENO: result: $ac_res" >&5
21633 echo "${ECHO_T}$ac_res" >&6; }
21636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21637 cat >>confdefs.h <<_ACEOF
21638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21646 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21647 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21648 if test "${ac_cv_c_const+set}" = set; then
21649 echo $ECHO_N "(cached) $ECHO_C" >&6
21651 cat >conftest.$ac_ext <<_ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21661 /* FIXME: Include the comments suggested by Paul. */
21662 #ifndef __cplusplus
21663 /* Ultrix mips cc rejects this. */
21664 typedef int charset[2];
21666 /* SunOS 4.1.1 cc rejects this. */
21667 char const *const *pcpcc;
21669 /* NEC SVR4.0.2 mips cc rejects this. */
21670 struct point {int x, y;};
21671 static struct point const zero = {0,0};
21672 /* AIX XL C 1.02.0.0 rejects this.
21673 It does not let you subtract one const X* pointer from another in
21674 an arm of an if-expression whose if-part is not a constant
21676 const char *g = "string";
21677 pcpcc = &g + (g ? g-g : 0);
21678 /* HPUX 7.0 cc rejects these. */
21680 ppc = (char**) pcpcc;
21681 pcpcc = (char const *const *) ppc;
21682 { /* SCO 3.2v4 cc rejects this. */
21684 char const *s = 0 ? (char *) 0 : (char const *) 0;
21689 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21690 int x[] = {25, 17};
21691 const int *foo = &x[0];
21694 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21695 typedef const int *iptr;
21699 { /* AIX XL C 1.02.0.0 rejects this saying
21700 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21701 struct s { int j; const int *ap[3]; };
21702 struct s *b; b->j = 5;
21704 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21705 const int foo = 10;
21706 if (!foo) return 0;
21708 return !cs[0] && !zero.x;
21715 rm -f conftest.$ac_objext
21716 if { (ac_try="$ac_compile"
21717 case "(($ac_try" in
21718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21719 *) ac_try_echo=$ac_try;;
21721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21722 (eval "$ac_compile") 2>conftest.er1
21724 grep -v '^ *+' conftest.er1 >conftest.err
21726 cat conftest.err >&5
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); } && {
21729 test -z "$ac_c_werror_flag" ||
21730 test ! -s conftest.err
21731 } && test -s conftest.$ac_objext; then
21734 echo "$as_me: failed program was:" >&5
21735 sed 's/^/| /' conftest.$ac_ext >&5
21740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21742 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21743 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21744 if test $ac_cv_c_const = no; then
21746 cat >>confdefs.h <<\_ACEOF
21752 { echo "$as_me:$LINENO: checking for off_t" >&5
21753 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
21754 if test "${ac_cv_type_off_t+set}" = set; then
21755 echo $ECHO_N "(cached) $ECHO_C" >&6
21757 cat >conftest.$ac_ext <<_ACEOF
21760 cat confdefs.h >>conftest.$ac_ext
21761 cat >>conftest.$ac_ext <<_ACEOF
21762 /* end confdefs.h. */
21763 $ac_includes_default
21764 typedef off_t ac__type_new_;
21768 if ((ac__type_new_ *) 0)
21770 if (sizeof (ac__type_new_))
21776 rm -f conftest.$ac_objext
21777 if { (ac_try="$ac_compile"
21778 case "(($ac_try" in
21779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21780 *) ac_try_echo=$ac_try;;
21782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21783 (eval "$ac_compile") 2>conftest.er1
21785 grep -v '^ *+' conftest.er1 >conftest.err
21787 cat conftest.err >&5
21788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } && {
21790 test -z "$ac_c_werror_flag" ||
21791 test ! -s conftest.err
21792 } && test -s conftest.$ac_objext; then
21793 ac_cv_type_off_t=yes
21795 echo "$as_me: failed program was:" >&5
21796 sed 's/^/| /' conftest.$ac_ext >&5
21798 ac_cv_type_off_t=no
21801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21803 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21804 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
21805 if test $ac_cv_type_off_t = yes; then
21809 cat >>confdefs.h <<_ACEOF
21810 #define off_t long int
21815 { echo "$as_me:$LINENO: checking for size_t" >&5
21816 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
21817 if test "${ac_cv_type_size_t+set}" = set; then
21818 echo $ECHO_N "(cached) $ECHO_C" >&6
21820 cat >conftest.$ac_ext <<_ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h. */
21826 $ac_includes_default
21827 typedef size_t ac__type_new_;
21831 if ((ac__type_new_ *) 0)
21833 if (sizeof (ac__type_new_))
21839 rm -f conftest.$ac_objext
21840 if { (ac_try="$ac_compile"
21841 case "(($ac_try" in
21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843 *) ac_try_echo=$ac_try;;
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846 (eval "$ac_compile") 2>conftest.er1
21848 grep -v '^ *+' conftest.er1 >conftest.err
21850 cat conftest.err >&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } && {
21853 test -z "$ac_c_werror_flag" ||
21854 test ! -s conftest.err
21855 } && test -s conftest.$ac_objext; then
21856 ac_cv_type_size_t=yes
21858 echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21861 ac_cv_type_size_t=no
21864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21866 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21867 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
21868 if test $ac_cv_type_size_t = yes; then
21872 cat >>confdefs.h <<_ACEOF
21873 #define size_t unsigned int
21879 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
21880 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
21881 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21884 cat >conftest.$ac_ext <<_ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h. */
21890 $ac_includes_default
21894 static struct stat ac_aggr;
21895 if (ac_aggr.st_rdev)
21901 rm -f conftest.$ac_objext
21902 if { (ac_try="$ac_compile"
21903 case "(($ac_try" in
21904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21905 *) ac_try_echo=$ac_try;;
21907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21908 (eval "$ac_compile") 2>conftest.er1
21910 grep -v '^ *+' conftest.er1 >conftest.err
21912 cat conftest.err >&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } && {
21915 test -z "$ac_c_werror_flag" ||
21916 test ! -s conftest.err
21917 } && test -s conftest.$ac_objext; then
21918 ac_cv_member_struct_stat_st_rdev=yes
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 cat >conftest.$ac_ext <<_ACEOF
21926 cat confdefs.h >>conftest.$ac_ext
21927 cat >>conftest.$ac_ext <<_ACEOF
21928 /* end confdefs.h. */
21929 $ac_includes_default
21933 static struct stat ac_aggr;
21934 if (sizeof ac_aggr.st_rdev)
21940 rm -f conftest.$ac_objext
21941 if { (ac_try="$ac_compile"
21942 case "(($ac_try" in
21943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944 *) ac_try_echo=$ac_try;;
21946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21947 (eval "$ac_compile") 2>conftest.er1
21949 grep -v '^ *+' conftest.er1 >conftest.err
21951 cat conftest.err >&5
21952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); } && {
21954 test -z "$ac_c_werror_flag" ||
21955 test ! -s conftest.err
21956 } && test -s conftest.$ac_objext; then
21957 ac_cv_member_struct_stat_st_rdev=yes
21959 echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21962 ac_cv_member_struct_stat_st_rdev=no
21965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21970 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
21971 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
21972 if test $ac_cv_member_struct_stat_st_rdev = yes; then
21974 cat >>confdefs.h <<_ACEOF
21975 #define HAVE_STRUCT_STAT_ST_RDEV 1
21979 cat >>confdefs.h <<\_ACEOF
21980 #define HAVE_ST_RDEV 1
21986 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21987 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
21988 if test "${ac_cv_struct_tm+set}" = set; then
21989 echo $ECHO_N "(cached) $ECHO_C" >&6
21991 cat >conftest.$ac_ext <<_ACEOF
21994 cat confdefs.h >>conftest.$ac_ext
21995 cat >>conftest.$ac_ext <<_ACEOF
21996 /* end confdefs.h. */
21997 #include <sys/types.h>
22004 int *p = &tm.tm_sec;
22010 rm -f conftest.$ac_objext
22011 if { (ac_try="$ac_compile"
22012 case "(($ac_try" in
22013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22014 *) ac_try_echo=$ac_try;;
22016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22017 (eval "$ac_compile") 2>conftest.er1
22019 grep -v '^ *+' conftest.er1 >conftest.err
22021 cat conftest.err >&5
22022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); } && {
22024 test -z "$ac_c_werror_flag" ||
22025 test ! -s conftest.err
22026 } && test -s conftest.$ac_objext; then
22027 ac_cv_struct_tm=time.h
22029 echo "$as_me: failed program was:" >&5
22030 sed 's/^/| /' conftest.$ac_ext >&5
22032 ac_cv_struct_tm=sys/time.h
22035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22037 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22038 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
22039 if test $ac_cv_struct_tm = sys/time.h; then
22041 cat >>confdefs.h <<\_ACEOF
22042 #define TM_IN_SYS_TIME 1
22047 { echo "$as_me:$LINENO: checking for tm_zone in struct tm" >&5
22048 echo $ECHO_N "checking for tm_zone in struct tm... $ECHO_C" >&6; }
22049 if test "${ac_cv_struct_tm_zone+set}" = set; then
22050 echo $ECHO_N "(cached) $ECHO_C" >&6
22052 cat >conftest.$ac_ext <<_ACEOF
22055 cat confdefs.h >>conftest.$ac_ext
22056 cat >>conftest.$ac_ext <<_ACEOF
22057 /* end confdefs.h. */
22058 #include <sys/types.h>
22059 #include <$ac_cv_struct_tm>
22063 struct tm tm; tm.tm_zone;
22068 rm -f conftest.$ac_objext
22069 if { (ac_try="$ac_compile"
22070 case "(($ac_try" in
22071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22072 *) ac_try_echo=$ac_try;;
22074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22075 (eval "$ac_compile") 2>conftest.er1
22077 grep -v '^ *+' conftest.er1 >conftest.err
22079 cat conftest.err >&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } && {
22082 test -z "$ac_c_werror_flag" ||
22083 test ! -s conftest.err
22084 } && test -s conftest.$ac_objext; then
22085 ac_cv_struct_tm_zone=yes
22087 echo "$as_me: failed program was:" >&5
22088 sed 's/^/| /' conftest.$ac_ext >&5
22090 ac_cv_struct_tm_zone=no
22093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22095 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_zone" >&5
22096 echo "${ECHO_T}$ac_cv_struct_tm_zone" >&6; }
22097 if test "$ac_cv_struct_tm_zone" = yes; then
22099 cat >>confdefs.h <<\_ACEOF
22100 #define HAVE_TM_ZONE 1
22104 { echo "$as_me:$LINENO: checking for tzname" >&5
22105 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
22106 if test "${ac_cv_var_tzname+set}" = set; then
22107 echo $ECHO_N "(cached) $ECHO_C" >&6
22109 cat >conftest.$ac_ext <<_ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22116 #ifndef tzname /* For SGI. */
22117 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
22127 rm -f conftest.$ac_objext conftest$ac_exeext
22128 if { (ac_try="$ac_link"
22129 case "(($ac_try" in
22130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22131 *) ac_try_echo=$ac_try;;
22133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22134 (eval "$ac_link") 2>conftest.er1
22136 grep -v '^ *+' conftest.er1 >conftest.err
22138 cat conftest.err >&5
22139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22140 (exit $ac_status); } && {
22141 test -z "$ac_c_werror_flag" ||
22142 test ! -s conftest.err
22143 } && test -s conftest$ac_exeext &&
22144 $as_test_x conftest$ac_exeext; then
22145 ac_cv_var_tzname=yes
22147 echo "$as_me: failed program was:" >&5
22148 sed 's/^/| /' conftest.$ac_ext >&5
22150 ac_cv_var_tzname=no
22153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22154 conftest$ac_exeext conftest.$ac_ext
22156 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
22157 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
22158 if test $ac_cv_var_tzname = yes; then
22160 cat >>confdefs.h <<\_ACEOF
22161 #define HAVE_TZNAME 1
22166 { echo "$as_me:$LINENO: checking for tm_isdst in struct tm" >&5
22167 echo $ECHO_N "checking for tm_isdst in struct tm... $ECHO_C" >&6; }
22168 if test "${ac_cv_struct_tm_isdst+set}" = set; then
22169 echo $ECHO_N "(cached) $ECHO_C" >&6
22171 cat >conftest.$ac_ext <<_ACEOF
22174 cat confdefs.h >>conftest.$ac_ext
22175 cat >>conftest.$ac_ext <<_ACEOF
22176 /* end confdefs.h. */
22177 #include <sys/types.h>
22178 #include <$ac_cv_struct_tm>
22182 struct tm tm; tm.tm_isdst;
22187 rm -f conftest.$ac_objext
22188 if { (ac_try="$ac_compile"
22189 case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_compile") 2>conftest.er1
22196 grep -v '^ *+' conftest.er1 >conftest.err
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22200 (exit $ac_status); } && {
22201 test -z "$ac_c_werror_flag" ||
22202 test ! -s conftest.err
22203 } && test -s conftest.$ac_objext; then
22204 ac_cv_struct_tm_isdst=yes
22206 echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22209 ac_cv_struct_tm_isdst=no
22212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22214 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm_isdst" >&5
22215 echo "${ECHO_T}$ac_cv_struct_tm_isdst" >&6; }
22216 if test "$ac_cv_struct_tm_isdst" = yes; then
22217 cat >>confdefs.h <<\_ACEOF
22218 #define HAVE_TM_ISDST 1
22222 { echo "$as_me:$LINENO: checking for daylight" >&5
22223 echo $ECHO_N "checking for daylight... $ECHO_C" >&6; }
22224 if test "${ac_cv_var_daylight+set}" = set; then
22225 echo $ECHO_N "(cached) $ECHO_C" >&6
22227 cat >conftest.$ac_ext <<_ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h. */
22234 #ifndef daylight /* In case IRIX #defines this, too */
22235 extern int daylight;
22245 rm -f conftest.$ac_objext conftest$ac_exeext
22246 if { (ac_try="$ac_link"
22247 case "(($ac_try" in
22248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22249 *) ac_try_echo=$ac_try;;
22251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22252 (eval "$ac_link") 2>conftest.er1
22254 grep -v '^ *+' conftest.er1 >conftest.err
22256 cat conftest.err >&5
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); } && {
22259 test -z "$ac_c_werror_flag" ||
22260 test ! -s conftest.err
22261 } && test -s conftest$ac_exeext &&
22262 $as_test_x conftest$ac_exeext; then
22263 ac_cv_var_daylight=yes
22265 echo "$as_me: failed program was:" >&5
22266 sed 's/^/| /' conftest.$ac_ext >&5
22268 ac_cv_var_daylight=no
22271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22272 conftest$ac_exeext conftest.$ac_ext
22274 { echo "$as_me:$LINENO: result: $ac_cv_var_daylight" >&5
22275 echo "${ECHO_T}$ac_cv_var_daylight" >&6; }
22276 if test $ac_cv_var_daylight = yes; then
22277 cat >>confdefs.h <<\_ACEOF
22278 #define HAVE_DAYLIGHT 1
22284 # Check whether --enable-largefile was given.
22285 if test "${enable_largefile+set}" = set; then
22286 enableval=$enable_largefile;
22289 if test "$enable_largefile" != no; then
22291 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files=
22293 echo $ECHO_N "checking for special C compiler options needed for large files=
22294 ... $ECHO_C" >&6; }
22295 if test "${ac_cv_sys_largefile_CC+set}" = set; then
22296 echo $ECHO_N "(cached) $ECHO_C" >&6
22298 ac_cv_sys_largefile_CC=no
22299 if test "$GCC" != yes; then
22300 # IRIX 6.2 and later do not support large files by default,
22301 # so use the C compiler's -n32 option if that helps.
22302 cat >conftest.$ac_ext <<_ACEOF
22305 cat confdefs.h >>conftest.$ac_ext
22306 cat >>conftest.$ac_ext <<_ACEOF
22307 /* end confdefs.h. */
22308 #include <sys/types.h>
22309 /* Check that off_t can represent 2**63 - 1 correctly.
22310 We can't simply "#define LARGE_OFF_T 9223372036854775807",
22311 since some C++ compilers masquerading as C compilers
22312 incorrectly reject 9223372036854775807. */
22313 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22314 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22315 && LARGE_OFF_T % 2147483647 == 1)
22326 rm -f conftest.$ac_objext
22327 if { (ac_try="$ac_compile"
22328 case "(($ac_try" in
22329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22330 *) ac_try_echo=$ac_try;;
22332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22333 (eval "$ac_compile") 2>conftest.er1
22335 grep -v '^ *+' conftest.er1 >conftest.err
22337 cat conftest.err >&5
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); } && {
22340 test -z "$ac_c_werror_flag" ||
22341 test ! -s conftest.err
22342 } && test -s conftest.$ac_objext; then
22345 echo "$as_me: failed program was:" >&5
22346 sed 's/^/| /' conftest.$ac_ext >&5
22350 cat >conftest.$ac_ext <<_ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22356 #include <sys/types.h>
22357 /* Check that off_t can represent 2**63 - 1 correctly.
22358 We can't simply "#define LARGE_OFF_T 9223372036854775807",
22359 since some C++ compilers masquerading as C compilers
22360 incorrectly reject 9223372036854775807. */
22361 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22362 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22363 && LARGE_OFF_T % 2147483647 == 1)
22374 rm -f conftest.$ac_objext
22375 if { (ac_try="$ac_compile"
22376 case "(($ac_try" in
22377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22378 *) ac_try_echo=$ac_try;;
22380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22381 (eval "$ac_compile") 2>conftest.er1
22383 grep -v '^ *+' conftest.er1 >conftest.err
22385 cat conftest.err >&5
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); } && {
22388 test -z "$ac_c_werror_flag" ||
22389 test ! -s conftest.err
22390 } && test -s conftest.$ac_objext; then
22391 ac_cv_sys_largefile_CC=' -n32'
22393 echo "$as_me: failed program was:" >&5
22394 sed 's/^/| /' conftest.$ac_ext >&5
22399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22406 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
22407 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
22408 if test "$ac_cv_sys_largefile_CC" != no; then
22409 CC="$CC$ac_cv_sys_largefile_CC"
22412 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
22413 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
22414 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
22417 ac_cv_sys_file_offset_bits=no
22418 cat >conftest.$ac_ext <<_ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22424 #include <sys/types.h>
22425 /* Check that off_t can represent 2**63 - 1 correctly.
22426 We can't simply "#define LARGE_OFF_T 9223372036854775807",
22427 since some C++ compilers masquerading as C compilers
22428 incorrectly reject 9223372036854775807. */
22429 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22430 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22431 && LARGE_OFF_T % 2147483647 == 1)
22442 rm -f conftest.$ac_objext
22443 if { (ac_try="$ac_compile"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_compile") 2>conftest.er1
22451 grep -v '^ *+' conftest.er1 >conftest.err
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455 (exit $ac_status); } && {
22456 test -z "$ac_c_werror_flag" ||
22457 test ! -s conftest.err
22458 } && test -s conftest.$ac_objext; then
22461 echo "$as_me: failed program was:" >&5
22462 sed 's/^/| /' conftest.$ac_ext >&5
22464 cat >conftest.$ac_ext <<_ACEOF
22467 cat confdefs.h >>conftest.$ac_ext
22468 cat >>conftest.$ac_ext <<_ACEOF
22469 /* end confdefs.h. */
22470 #define _FILE_OFFSET_BITS 64
22471 #include <sys/types.h>
22472 /* Check that off_t can represent 2**63 - 1 correctly.
22473 We can't simply "#define LARGE_OFF_T 9223372036854775807",
22474 since some C++ compilers masquerading as C compilers
22475 incorrectly reject 9223372036854775807. */
22476 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22477 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22478 && LARGE_OFF_T % 2147483647 == 1)
22490 rm -f conftest.$ac_objext
22491 if { (ac_try="$ac_compile"
22492 case "(($ac_try" in
22493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22494 *) ac_try_echo=$ac_try;;
22496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22497 (eval "$ac_compile") 2>conftest.er1
22499 grep -v '^ *+' conftest.er1 >conftest.err
22501 cat conftest.err >&5
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); } && {
22504 test -z "$ac_c_werror_flag" ||
22505 test ! -s conftest.err
22506 } && test -s conftest.$ac_objext; then
22507 ac_cv_sys_file_offset_bits=64
22509 echo "$as_me: failed program was:" >&5
22510 sed 's/^/| /' conftest.$ac_ext >&5
22515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22520 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
22521 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
22522 if test "$ac_cv_sys_file_offset_bits" != no; then
22524 cat >>confdefs.h <<_ACEOF
22525 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
22529 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
22530 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
22531 if test "${ac_cv_sys_large_files+set}" = set; then
22532 echo $ECHO_N "(cached) $ECHO_C" >&6
22534 ac_cv_sys_large_files=no
22535 cat >conftest.$ac_ext <<_ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h. */
22541 #include <sys/types.h>
22542 /* Check that off_t can represent 2**63 - 1 correctly.
22543 We can't simply "#define LARGE_OFF_T 9223372036854775807",
22544 since some C++ compilers masquerading as C compilers
22545 incorrectly reject 9223372036854775807. */
22546 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22547 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22548 && LARGE_OFF_T % 2147483647 == 1)
22559 rm -f conftest.$ac_objext
22560 if { (ac_try="$ac_compile"
22561 case "(($ac_try" in
22562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563 *) ac_try_echo=$ac_try;;
22565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566 (eval "$ac_compile") 2>conftest.er1
22568 grep -v '^ *+' conftest.er1 >conftest.err
22570 cat conftest.err >&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } && {
22573 test -z "$ac_c_werror_flag" ||
22574 test ! -s conftest.err
22575 } && test -s conftest.$ac_objext; then
22578 echo "$as_me: failed program was:" >&5
22579 sed 's/^/| /' conftest.$ac_ext >&5
22581 cat >conftest.$ac_ext <<_ACEOF
22584 cat confdefs.h >>conftest.$ac_ext
22585 cat >>conftest.$ac_ext <<_ACEOF
22586 /* end confdefs.h. */
22587 #define _LARGE_FILES 1
22588 #include <sys/types.h>
22589 /* Check that off_t can represent 2**63 - 1 correctly.
22590 We can't simply "#define LARGE_OFF_T 9223372036854775807",
22591 since some C++ compilers masquerading as C compilers
22592 incorrectly reject 9223372036854775807. */
22593 # define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
22594 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
22595 && LARGE_OFF_T % 2147483647 == 1)
22607 rm -f conftest.$ac_objext
22608 if { (ac_try="$ac_compile"
22609 case "(($ac_try" in
22610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22611 *) ac_try_echo=$ac_try;;
22613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22614 (eval "$ac_compile") 2>conftest.er1
22616 grep -v '^ *+' conftest.er1 >conftest.err
22618 cat conftest.err >&5
22619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22620 (exit $ac_status); } && {
22621 test -z "$ac_c_werror_flag" ||
22622 test ! -s conftest.err
22623 } && test -s conftest.$ac_objext; then
22624 ac_cv_sys_large_files=1
22626 echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22637 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
22638 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
22639 if test "$ac_cv_sys_large_files" != no; then
22641 cat >>confdefs.h <<_ACEOF
22642 #define _LARGE_FILES $ac_cv_sys_large_files
22648 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22649 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22650 if test "${ac_cv_type_mbstate_t+set}" = set; then
22651 echo $ECHO_N "(cached) $ECHO_C" >&6
22653 cat >conftest.$ac_ext <<_ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h. */
22659 $ac_includes_default
22660 # include <wchar.h>
22664 mbstate_t x; return sizeof x;
22669 rm -f conftest.$ac_objext
22670 if { (ac_try="$ac_compile"
22671 case "(($ac_try" in
22672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22673 *) ac_try_echo=$ac_try;;
22675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22676 (eval "$ac_compile") 2>conftest.er1
22678 grep -v '^ *+' conftest.er1 >conftest.err
22680 cat conftest.err >&5
22681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22682 (exit $ac_status); } && {
22683 test -z "$ac_c_werror_flag" ||
22684 test ! -s conftest.err
22685 } && test -s conftest.$ac_objext; then
22686 ac_cv_type_mbstate_t=yes
22688 echo "$as_me: failed program was:" >&5
22689 sed 's/^/| /' conftest.$ac_ext >&5
22691 ac_cv_type_mbstate_t=no
22694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22696 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22697 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22698 if test $ac_cv_type_mbstate_t = yes; then
22700 cat >>confdefs.h <<\_ACEOF
22701 #define HAVE_MBSTATE_T 1
22706 cat >>confdefs.h <<\_ACEOF
22707 #define mbstate_t int
22712 { echo "$as_me:$LINENO: checking for uint8_t" >&5
22713 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
22714 if test "${ac_cv_type_uint8_t+set}" = set; then
22715 echo $ECHO_N "(cached) $ECHO_C" >&6
22717 cat >conftest.$ac_ext <<_ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h. */
22724 #include <stdint.h>
22726 #include <sys/types.h>
22728 #include <stdlib.h>
22729 #include <stddef.h>
22732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22733 $EGREP "(^|[^a-zA-Z_0-9])uint8_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22734 ac_cv_type_uint8_t=yes
22736 ac_cv_type_uint8_t=no
22741 { echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22742 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6; }
22743 if test $ac_cv_type_uint8_t = no; then
22744 cat >>confdefs.h <<\_ACEOF
22745 #define uint8_t unsigned char
22750 { echo "$as_me:$LINENO: checking for uint16_t" >&5
22751 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
22752 if test "${ac_cv_type_uint16_t+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22755 cat >conftest.$ac_ext <<_ACEOF
22758 cat confdefs.h >>conftest.$ac_ext
22759 cat >>conftest.$ac_ext <<_ACEOF
22760 /* end confdefs.h. */
22762 #include <stdint.h>
22764 #include <sys/types.h>
22766 #include <stdlib.h>
22767 #include <stddef.h>
22770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22771 $EGREP "(^|[^a-zA-Z_0-9])uint16_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22772 ac_cv_type_uint16_t=yes
22774 ac_cv_type_uint16_t=no
22779 { echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22780 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6; }
22781 if test $ac_cv_type_uint16_t = no; then
22782 cat >>confdefs.h <<\_ACEOF
22783 #define uint16_t unsigned short
22788 { echo "$as_me:$LINENO: checking for uint32_t" >&5
22789 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
22790 if test "${ac_cv_type_uint32_t+set}" = set; then
22791 echo $ECHO_N "(cached) $ECHO_C" >&6
22793 cat >conftest.$ac_ext <<_ACEOF
22796 cat confdefs.h >>conftest.$ac_ext
22797 cat >>conftest.$ac_ext <<_ACEOF
22798 /* end confdefs.h. */
22800 #include <stdint.h>
22802 #include <sys/types.h>
22804 #include <stdlib.h>
22805 #include <stddef.h>
22808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22809 $EGREP "(^|[^a-zA-Z_0-9])uint32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22810 ac_cv_type_uint32_t=yes
22812 ac_cv_type_uint32_t=no
22817 { echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22818 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6; }
22819 if test $ac_cv_type_uint32_t = no; then
22820 cat >>confdefs.h <<\_ACEOF
22821 #define uint32_t unsigned int
22826 { echo "$as_me:$LINENO: checking for int32_t" >&5
22827 echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
22828 if test "${ac_cv_type_int32_t+set}" = set; then
22829 echo $ECHO_N "(cached) $ECHO_C" >&6
22831 cat >conftest.$ac_ext <<_ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22838 #include <stdint.h>
22840 #include <sys/types.h>
22842 #include <stdlib.h>
22843 #include <stddef.h>
22846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22847 $EGREP "(^|[^a-zA-Z_0-9])int32_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22848 ac_cv_type_int32_t=yes
22850 ac_cv_type_int32_t=no
22855 { echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
22856 echo "${ECHO_T}$ac_cv_type_int32_t" >&6; }
22857 if test $ac_cv_type_int32_t = no; then
22858 cat >>confdefs.h <<\_ACEOF
22859 #define int32_t int
22864 { echo "$as_me:$LINENO: checking for long long" >&5
22865 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
22866 if test "${ac_cv_c_long_long+set}" = set; then
22867 echo $ECHO_N "(cached) $ECHO_C" >&6
22869 if test "$GCC" = yes; then
22870 ac_cv_c_long_long=yes
22872 if test "$cross_compiling" = yes; then
22873 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22874 See \`config.log' for more details." >&5
22875 echo "$as_me: error: cannot run test program while cross compiling
22876 See \`config.log' for more details." >&2;}
22877 { (exit 1); exit 1; }; }
22879 cat >conftest.$ac_ext <<_ACEOF
22882 cat confdefs.h >>conftest.$ac_ext
22883 cat >>conftest.$ac_ext <<_ACEOF
22884 /* end confdefs.h. */
22887 exit(sizeof(long long) < sizeof(long)); }
22889 rm -f conftest$ac_exeext
22890 if { (ac_try="$ac_link"
22891 case "(($ac_try" in
22892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22893 *) ac_try_echo=$ac_try;;
22895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22896 (eval "$ac_link") 2>&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22900 { (case "(($ac_try" in
22901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902 *) ac_try_echo=$ac_try;;
22904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22905 (eval "$ac_try") 2>&5
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); }; }; then
22909 ac_cv_c_long_long=yes
22911 echo "$as_me: program exited with status $ac_status" >&5
22912 echo "$as_me: failed program was:" >&5
22913 sed 's/^/| /' conftest.$ac_ext >&5
22915 ( exit $ac_status )
22916 ac_cv_c_long_long=no
22918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22924 { echo "$as_me:$LINENO: result: $ac_cv_c_long_long" >&5
22925 echo "${ECHO_T}$ac_cv_c_long_long" >&6; }
22926 if test $ac_cv_c_long_long = yes; then
22927 cat >>confdefs.h <<\_ACEOF
22928 #define HAVE_LONG_LONG 1
22933 if test $ac_cv_c_long_long = yes; then
22934 ulong64='unsigned long long';
22935 long64='long long';
22937 ulong64='unsigned long';
22940 { echo "$as_me:$LINENO: checking for uint64_t" >&5
22941 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
22942 if test "${ac_cv_type_uint64_t+set}" = set; then
22943 echo $ECHO_N "(cached) $ECHO_C" >&6
22945 cat >conftest.$ac_ext <<_ACEOF
22948 cat confdefs.h >>conftest.$ac_ext
22949 cat >>conftest.$ac_ext <<_ACEOF
22950 /* end confdefs.h. */
22952 #include <stdint.h>
22954 #include <sys/types.h>
22956 #include <stdlib.h>
22957 #include <stddef.h>
22960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22961 $EGREP "(^|[^a-zA-Z_0-9])uint64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
22962 eval "ac_cv_type_uint64_t=yes"
22964 eval "ac_cv_type_uint64_t=no"
22969 if eval "test \"`echo '$ac_cv_type_'uint64_t`\" = yes"; then
22970 { echo "$as_me:$LINENO: result: yes" >&5
22971 echo "${ECHO_T}yes" >&6; }
22973 { echo "$as_me:$LINENO: result: no" >&5
22974 echo "${ECHO_T}no" >&6; }
22975 cat >>confdefs.h <<_ACEOF
22976 #define uint64_t $ulong64
22981 { echo "$as_me:$LINENO: checking for int64_t" >&5
22982 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
22983 if test "${ac_cv_type_int64_t+set}" = set; then
22984 echo $ECHO_N "(cached) $ECHO_C" >&6
22986 cat >conftest.$ac_ext <<_ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h. */
22993 #include <stdint.h>
22995 #include <sys/types.h>
22997 #include <stdlib.h>
22998 #include <stddef.h>
23001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23002 $EGREP "(^|[^a-zA-Z_0-9])int64_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
23003 eval "ac_cv_type_int64_t=yes"
23005 eval "ac_cv_type_int64_t=no"
23010 if eval "test \"`echo '$ac_cv_type_'int64_t`\" = yes"; then
23011 { echo "$as_me:$LINENO: result: yes" >&5
23012 echo "${ECHO_T}yes" >&6; }
23014 { echo "$as_me:$LINENO: result: no" >&5
23015 echo "${ECHO_T}no" >&6; }
23016 cat >>confdefs.h <<_ACEOF
23017 #define int64_t $long64
23023 { echo "$as_me:$LINENO: checking size of uint8_t" >&5
23024 echo $ECHO_N "checking size of uint8_t... $ECHO_C" >&6; }
23025 if test "${ac_cv_sizeof_uint8_t+set}" = set; then
23026 echo $ECHO_N "(cached) $ECHO_C" >&6
23028 if test "$cross_compiling" = yes; then
23029 ac_cv_sizeof_uint8_t=0
23031 cat >conftest.$ac_ext <<_ACEOF
23034 cat confdefs.h >>conftest.$ac_ext
23035 cat >>conftest.$ac_ext <<_ACEOF
23036 /* end confdefs.h. */
23038 #include <stdint.h>
23040 #include <sys/types.h>
23041 #ifdef STDC_HEADERS
23042 #include <stdlib.h>
23048 FILE *f=fopen("conftestval", "w");
23050 fprintf(f, "%d\n", sizeof(uint8_t));
23054 rm -f conftest$ac_exeext
23055 if { (ac_try="$ac_link"
23056 case "(($ac_try" in
23057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23058 *) ac_try_echo=$ac_try;;
23060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23061 (eval "$ac_link") 2>&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23065 { (case "(($ac_try" in
23066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23067 *) ac_try_echo=$ac_try;;
23069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23070 (eval "$ac_try") 2>&5
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); }; }; then
23074 ac_cv_sizeof_uint8_t=`cat conftestval`
23076 echo "$as_me: program exited with status $ac_status" >&5
23077 echo "$as_me: failed program was:" >&5
23078 sed 's/^/| /' conftest.$ac_ext >&5
23080 ( exit $ac_status )
23081 ac_cv_sizeof_uint8_t=0
23083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23088 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint8_t" >&5
23089 echo "${ECHO_T}$ac_cv_sizeof_uint8_t" >&6; }
23090 cat >>confdefs.h <<_ACEOF
23091 #define SIZEOF_UINT8_T $ac_cv_sizeof_uint8_t
23096 { echo "$as_me:$LINENO: checking size of uint16_t" >&5
23097 echo $ECHO_N "checking size of uint16_t... $ECHO_C" >&6; }
23098 if test "${ac_cv_sizeof_uint16_t+set}" = set; then
23099 echo $ECHO_N "(cached) $ECHO_C" >&6
23101 if test "$cross_compiling" = yes; then
23102 ac_cv_sizeof_uint16_t=0
23104 cat >conftest.$ac_ext <<_ACEOF
23107 cat confdefs.h >>conftest.$ac_ext
23108 cat >>conftest.$ac_ext <<_ACEOF
23109 /* end confdefs.h. */
23111 #include <stdint.h>
23113 #include <sys/types.h>
23114 #ifdef STDC_HEADERS
23115 #include <stdlib.h>
23121 FILE *f=fopen("conftestval", "w");
23123 fprintf(f, "%d\n", sizeof(uint16_t));
23127 rm -f conftest$ac_exeext
23128 if { (ac_try="$ac_link"
23129 case "(($ac_try" in
23130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23131 *) ac_try_echo=$ac_try;;
23133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23134 (eval "$ac_link") 2>&5
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23138 { (case "(($ac_try" in
23139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23140 *) ac_try_echo=$ac_try;;
23142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23143 (eval "$ac_try") 2>&5
23145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23146 (exit $ac_status); }; }; then
23147 ac_cv_sizeof_uint16_t=`cat conftestval`
23149 echo "$as_me: program exited with status $ac_status" >&5
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23153 ( exit $ac_status )
23154 ac_cv_sizeof_uint16_t=0
23156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23161 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint16_t" >&5
23162 echo "${ECHO_T}$ac_cv_sizeof_uint16_t" >&6; }
23163 cat >>confdefs.h <<_ACEOF
23164 #define SIZEOF_UINT16_T $ac_cv_sizeof_uint16_t
23169 { echo "$as_me:$LINENO: checking size of uint32_t" >&5
23170 echo $ECHO_N "checking size of uint32_t... $ECHO_C" >&6; }
23171 if test "${ac_cv_sizeof_uint32_t+set}" = set; then
23172 echo $ECHO_N "(cached) $ECHO_C" >&6
23174 if test "$cross_compiling" = yes; then
23175 ac_cv_sizeof_uint32_t=0
23177 cat >conftest.$ac_ext <<_ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h. */
23184 #include <stdint.h>
23186 #include <sys/types.h>
23187 #ifdef STDC_HEADERS
23188 #include <stdlib.h>
23194 FILE *f=fopen("conftestval", "w");
23196 fprintf(f, "%d\n", sizeof(uint32_t));
23200 rm -f conftest$ac_exeext
23201 if { (ac_try="$ac_link"
23202 case "(($ac_try" in
23203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23204 *) ac_try_echo=$ac_try;;
23206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23207 (eval "$ac_link") 2>&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23211 { (case "(($ac_try" in
23212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213 *) ac_try_echo=$ac_try;;
23215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23216 (eval "$ac_try") 2>&5
23218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23219 (exit $ac_status); }; }; then
23220 ac_cv_sizeof_uint32_t=`cat conftestval`
23222 echo "$as_me: program exited with status $ac_status" >&5
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 ( exit $ac_status )
23227 ac_cv_sizeof_uint32_t=0
23229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23234 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint32_t" >&5
23235 echo "${ECHO_T}$ac_cv_sizeof_uint32_t" >&6; }
23236 cat >>confdefs.h <<_ACEOF
23237 #define SIZEOF_UINT32_T $ac_cv_sizeof_uint32_t
23242 { echo "$as_me:$LINENO: checking size of int64_t" >&5
23243 echo $ECHO_N "checking size of int64_t... $ECHO_C" >&6; }
23244 if test "${ac_cv_sizeof_int64_t+set}" = set; then
23245 echo $ECHO_N "(cached) $ECHO_C" >&6
23247 if test "$cross_compiling" = yes; then
23248 ac_cv_sizeof_int64_t=0
23250 cat >conftest.$ac_ext <<_ACEOF
23253 cat confdefs.h >>conftest.$ac_ext
23254 cat >>conftest.$ac_ext <<_ACEOF
23255 /* end confdefs.h. */
23257 #include <stdint.h>
23259 #include <sys/types.h>
23260 #ifdef STDC_HEADERS
23261 #include <stdlib.h>
23267 FILE *f=fopen("conftestval", "w");
23269 fprintf(f, "%d\n", sizeof(int64_t));
23273 rm -f conftest$ac_exeext
23274 if { (ac_try="$ac_link"
23275 case "(($ac_try" in
23276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23277 *) ac_try_echo=$ac_try;;
23279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23280 (eval "$ac_link") 2>&5
23282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23284 { (case "(($ac_try" in
23285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23286 *) ac_try_echo=$ac_try;;
23288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23289 (eval "$ac_try") 2>&5
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); }; }; then
23293 ac_cv_sizeof_int64_t=`cat conftestval`
23295 echo "$as_me: program exited with status $ac_status" >&5
23296 echo "$as_me: failed program was:" >&5
23297 sed 's/^/| /' conftest.$ac_ext >&5
23299 ( exit $ac_status )
23300 ac_cv_sizeof_int64_t=0
23302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23307 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int64_t" >&5
23308 echo "${ECHO_T}$ac_cv_sizeof_int64_t" >&6; }
23309 cat >>confdefs.h <<_ACEOF
23310 #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
23315 { echo "$as_me:$LINENO: checking size of uint64_t" >&5
23316 echo $ECHO_N "checking size of uint64_t... $ECHO_C" >&6; }
23317 if test "${ac_cv_sizeof_uint64_t+set}" = set; then
23318 echo $ECHO_N "(cached) $ECHO_C" >&6
23320 if test "$cross_compiling" = yes; then
23321 ac_cv_sizeof_uint64_t=0
23323 cat >conftest.$ac_ext <<_ACEOF
23326 cat confdefs.h >>conftest.$ac_ext
23327 cat >>conftest.$ac_ext <<_ACEOF
23328 /* end confdefs.h. */
23330 #include <stdint.h>
23332 #include <sys/types.h>
23333 #ifdef STDC_HEADERS
23334 #include <stdlib.h>
23340 FILE *f=fopen("conftestval", "w");
23342 fprintf(f, "%d\n", sizeof(uint64_t));
23346 rm -f conftest$ac_exeext
23347 if { (ac_try="$ac_link"
23348 case "(($ac_try" in
23349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23350 *) ac_try_echo=$ac_try;;
23352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23353 (eval "$ac_link") 2>&5
23355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23357 { (case "(($ac_try" in
23358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23359 *) ac_try_echo=$ac_try;;
23361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23362 (eval "$ac_try") 2>&5
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); }; }; then
23366 ac_cv_sizeof_uint64_t=`cat conftestval`
23368 echo "$as_me: program exited with status $ac_status" >&5
23369 echo "$as_me: failed program was:" >&5
23370 sed 's/^/| /' conftest.$ac_ext >&5
23372 ( exit $ac_status )
23373 ac_cv_sizeof_uint64_t=0
23375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23380 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_uint64_t" >&5
23381 echo "${ECHO_T}$ac_cv_sizeof_uint64_t" >&6; }
23382 cat >>confdefs.h <<_ACEOF
23383 #define SIZEOF_UINT64_T $ac_cv_sizeof_uint64_t
23402 for ac_func in mmap strerror strndup strtoul mbrtowc mkstemp getopt_long utimes utime wcwidth snprintf vsnprintf strtof
23404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23408 echo $ECHO_N "(cached) $ECHO_C" >&6
23410 cat >conftest.$ac_ext <<_ACEOF
23413 cat confdefs.h >>conftest.$ac_ext
23414 cat >>conftest.$ac_ext <<_ACEOF
23415 /* end confdefs.h. */
23416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23418 #define $ac_func innocuous_$ac_func
23420 /* System header to define __stub macros and hopefully few prototypes,
23421 which can conflict with char $ac_func (); below.
23422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23423 <limits.h> exists even on freestanding compilers. */
23426 # include <limits.h>
23428 # include <assert.h>
23433 /* Override any GCC internal prototype to avoid an error.
23434 Use char because int might match the return type of a GCC
23435 builtin and then its argument prototype would still apply. */
23440 /* The GNU C library defines this for functions which it implements
23441 to always fail with ENOSYS. Some functions are actually named
23442 something starting with __ and the normal name is an alias. */
23443 #if defined __stub_$ac_func || defined __stub___$ac_func
23450 return $ac_func ();
23455 rm -f conftest.$ac_objext conftest$ac_exeext
23456 if { (ac_try="$ac_link"
23457 case "(($ac_try" in
23458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23459 *) ac_try_echo=$ac_try;;
23461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23462 (eval "$ac_link") 2>conftest.er1
23464 grep -v '^ *+' conftest.er1 >conftest.err
23466 cat conftest.err >&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } && {
23469 test -z "$ac_c_werror_flag" ||
23470 test ! -s conftest.err
23471 } && test -s conftest$ac_exeext &&
23472 $as_test_x conftest$ac_exeext; then
23473 eval "$as_ac_var=yes"
23475 echo "$as_me: failed program was:" >&5
23476 sed 's/^/| /' conftest.$ac_ext >&5
23478 eval "$as_ac_var=no"
23481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23482 conftest$ac_exeext conftest.$ac_ext
23484 ac_res=`eval echo '${'$as_ac_var'}'`
23485 { echo "$as_me:$LINENO: result: $ac_res" >&5
23486 echo "${ECHO_T}$ac_res" >&6; }
23487 if test `eval echo '${'$as_ac_var'}'` = yes; then
23488 cat >>confdefs.h <<_ACEOF
23489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23497 { echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
23498 echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6; }
23499 if test "${ac_cv_lib_z_gzopen+set}" = set; then
23500 echo $ECHO_N "(cached) $ECHO_C" >&6
23502 ac_check_lib_save_LIBS=$LIBS
23504 cat >conftest.$ac_ext <<_ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h. */
23511 /* Override any GCC internal prototype to avoid an error.
23512 Use char because int might match the return type of a GCC
23513 builtin and then its argument prototype would still apply. */
23526 rm -f conftest.$ac_objext conftest$ac_exeext
23527 if { (ac_try="$ac_link"
23528 case "(($ac_try" in
23529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530 *) ac_try_echo=$ac_try;;
23532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23533 (eval "$ac_link") 2>conftest.er1
23535 grep -v '^ *+' conftest.er1 >conftest.err
23537 cat conftest.err >&5
23538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23539 (exit $ac_status); } && {
23540 test -z "$ac_c_werror_flag" ||
23541 test ! -s conftest.err
23542 } && test -s conftest$ac_exeext &&
23543 $as_test_x conftest$ac_exeext; then
23544 ac_cv_lib_z_gzopen=yes
23546 echo "$as_me: failed program was:" >&5
23547 sed 's/^/| /' conftest.$ac_ext >&5
23549 ac_cv_lib_z_gzopen=no
23552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23553 conftest$ac_exeext conftest.$ac_ext
23554 LIBS=$ac_check_lib_save_LIBS
23556 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
23557 echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6; }
23558 if test $ac_cv_lib_z_gzopen = yes; then
23559 cat >>confdefs.h <<_ACEOF
23560 #define HAVE_LIBZ 1
23568 if test "$cross_compiling" = yes; then
23569 IS_CROSS_COMPILE_TRUE=
23570 IS_CROSS_COMPILE_FALSE='#'
23572 IS_CROSS_COMPILE_TRUE='#'
23573 IS_CROSS_COMPILE_FALSE=
23577 ac_config_files="$ac_config_files Makefile src/Makefile magic/Makefile doc/Makefile python/Makefile"
23579 cat >confcache <<\_ACEOF
23580 # This file is a shell script that caches the results of configure
23581 # tests run on this system so they can be shared between configure
23582 # scripts and configure runs, see configure's option --config-cache.
23583 # It is not useful on other systems. If it contains results you don't
23584 # want to keep, you may remove or edit it.
23586 # config.status only pays attention to the cache file if you give it
23587 # the --recheck option to rerun configure.
23589 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23590 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23591 # following values.
23595 # The following way of writing the cache mishandles newlines in values,
23596 # but we know of no workaround that is simple, portable, and efficient.
23597 # So, we kill variables containing newlines.
23598 # Ultrix sh set writes to stderr and can't be redirected directly,
23599 # and sets the high bit in the cache file unless we assign to the vars.
23601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23602 eval ac_val=\$$ac_var
23606 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23607 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23610 _ | IFS | as_nl) ;; #(
23611 *) $as_unset $ac_var ;;
23617 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23618 *${as_nl}ac_space=\ *)
23619 # `set' does not quote correctly, so add quotes (double-quote
23620 # substitution turns \\\\ into \\, and sed turns \\ into \).
23623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23626 # `set' quotes correctly as required by POSIX, so do not add quotes.
23627 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23636 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23638 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23640 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23641 if test -w "$cache_file"; then
23642 test "x$cache_file" != "x/dev/null" &&
23643 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23644 echo "$as_me: updating cache $cache_file" >&6;}
23645 cat confcache >$cache_file
23647 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23648 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23653 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23654 # Let make expand exec_prefix.
23655 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23657 DEFS=-DHAVE_CONFIG_H
23661 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23662 # 1. Remove the extension, and $U if already installed.
23663 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23664 ac_i=`echo "$ac_i" | sed "$ac_script"`
23665 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23666 # will be set to the directory where LIBOBJS objects are built.
23667 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23668 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23670 LIBOBJS=$ac_libobjs
23672 LTLIBOBJS=$ac_ltlibobjs
23675 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23676 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23677 Usually this means the macro was only invoked conditionally." >&5
23678 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23679 Usually this means the macro was only invoked conditionally." >&2;}
23680 { (exit 1); exit 1; }; }
23682 if test -z "${FSECT5_TRUE}" && test -z "${FSECT5_FALSE}"; then
23683 { { echo "$as_me:$LINENO: error: conditional \"FSECT5\" was never defined.
23684 Usually this means the macro was only invoked conditionally." >&5
23685 echo "$as_me: error: conditional \"FSECT5\" was never defined.
23686 Usually this means the macro was only invoked conditionally." >&2;}
23687 { (exit 1); exit 1; }; }
23689 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23690 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23691 Usually this means the macro was only invoked conditionally." >&5
23692 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23693 Usually this means the macro was only invoked conditionally." >&2;}
23694 { (exit 1); exit 1; }; }
23696 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23697 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23698 Usually this means the macro was only invoked conditionally." >&5
23699 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23700 Usually this means the macro was only invoked conditionally." >&2;}
23701 { (exit 1); exit 1; }; }
23703 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23704 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23705 Usually this means the macro was only invoked conditionally." >&5
23706 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23707 Usually this means the macro was only invoked conditionally." >&2;}
23708 { (exit 1); exit 1; }; }
23710 if test -z "${IS_CROSS_COMPILE_TRUE}" && test -z "${IS_CROSS_COMPILE_FALSE}"; then
23711 { { echo "$as_me:$LINENO: error: conditional \"IS_CROSS_COMPILE\" was never defined.
23712 Usually this means the macro was only invoked conditionally." >&5
23713 echo "$as_me: error: conditional \"IS_CROSS_COMPILE\" was never defined.
23714 Usually this means the macro was only invoked conditionally." >&2;}
23715 { (exit 1); exit 1; }; }
23718 : ${CONFIG_STATUS=./config.status}
23719 ac_clean_files_save=$ac_clean_files
23720 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23721 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23722 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23723 cat >$CONFIG_STATUS <<_ACEOF
23725 # Generated by $as_me.
23726 # Run this file to recreate the current configuration.
23727 # Compiler output produced by configure, useful for debugging
23728 # configure, is in config.log if it exists.
23731 ac_cs_recheck=false
23733 SHELL=\${CONFIG_SHELL-$SHELL}
23736 cat >>$CONFIG_STATUS <<\_ACEOF
23737 ## --------------------- ##
23738 ## M4sh Initialization. ##
23739 ## --------------------- ##
23741 # Be more Bourne compatible
23742 DUALCASE=1; export DUALCASE # for MKS sh
23743 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23746 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23747 # is contrary to our usage. Disable this feature.
23748 alias -g '${1+"$@"}'='"$@"'
23749 setopt NO_GLOB_SUBST
23751 case `(set -o) 2>/dev/null` in
23752 *posix*) set -o posix ;;
23761 # Avoid depending upon Character Ranges.
23762 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23763 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23764 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23765 as_cr_digits='0123456789'
23766 as_cr_alnum=$as_cr_Letters$as_cr_digits
23768 # The user is always right.
23769 if test "${PATH_SEPARATOR+set}" != set; then
23770 echo "#! /bin/sh" >conf$$.sh
23771 echo "exit 0" >>conf$$.sh
23773 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23781 # Support unset when possible.
23782 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23790 # We need space, tab and new line, in precisely that order. Quoting is
23791 # there to prevent editors from complaining about space-tab.
23792 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23793 # splitting by setting IFS to empty value.)
23798 # Find who we are. Look in the path if we contain no directory separator.
23800 *[\\/]* ) as_myself=$0 ;;
23801 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23802 for as_dir in $PATH
23805 test -z "$as_dir" && as_dir=.
23806 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23812 # We did not find ourselves, most probably we were run as `sh COMMAND'
23813 # in which case we are not to be found in the path.
23814 if test "x$as_myself" = x; then
23817 if test ! -f "$as_myself"; then
23818 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23819 { (exit 1); exit 1; }
23822 # Work around bugs in pre-3.0 UWIN ksh.
23823 for as_var in ENV MAIL MAILPATH
23824 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23832 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23833 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23834 LC_TELEPHONE LC_TIME
23836 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23837 eval $as_var=C; export $as_var
23839 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23843 # Required to use basename.
23844 if expr a : '\(a\)' >/dev/null 2>&1 &&
23845 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23851 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23852 as_basename=basename
23858 # Name of the executable.
23859 as_me=`$as_basename -- "$0" ||
23860 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23861 X"$0" : 'X\(//\)$' \| \
23862 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23864 sed '/^.*\/\([^/][^/]*\)\/*$/{
23883 as_lineno_1=$LINENO
23884 as_lineno_2=$LINENO
23885 test "x$as_lineno_1" != "x$as_lineno_2" &&
23886 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23888 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23889 # uniformly replaced by the line number. The first 'sed' inserts a
23890 # line-number line after each line using $LINENO; the second 'sed'
23891 # does the real work. The second script uses 'N' to pair each
23892 # line-number line with the line containing $LINENO, and appends
23893 # trailing '-' during substitution so that $LINENO is not a special
23894 # case at line end.
23895 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23896 # scripts with optimization help from Paolo Bonzini. Blame Lee
23897 # E. McMahon (1931-1989) for sed's syntax. :-)
23909 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23912 ' >$as_me.lineno &&
23913 chmod +x "$as_me.lineno" ||
23914 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23915 { (exit 1); exit 1; }; }
23917 # Don't try to exec as it changes $[0], causing all sort of problems
23918 # (the dirname of $[0] is not the place where we might find the
23919 # original and so on. Autoconf is especially sensitive to this).
23920 . "./$as_me.lineno"
23921 # Exit status is that of the last command.
23926 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23932 ECHO_C= ECHO_N= ECHO_T=
23933 case `echo -n x` in
23935 case `echo 'x\c'` in
23936 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23943 if expr a : '\(a\)' >/dev/null 2>&1 &&
23944 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23950 rm -f conf$$ conf$$.exe conf$$.file
23951 if test -d conf$$.dir; then
23952 rm -f conf$$.dir/conf$$.file
23958 if ln -s conf$$.file conf$$ 2>/dev/null; then
23960 # ... but there are two gotchas:
23961 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23962 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23963 # In both cases, we have to default to `cp -p'.
23964 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23966 elif ln conf$$.file conf$$ 2>/dev/null; then
23971 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23972 rmdir conf$$.dir 2>/dev/null
23974 if mkdir -p . 2>/dev/null; then
23977 test -d ./-p && rmdir ./-p
23981 if test -x / >/dev/null 2>&1; then
23982 as_test_x='test -x'
23984 if ls -dL / >/dev/null 2>&1; then
23991 if test -d "$1"; then
23997 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23998 ???[sx]*):;;*)false;;esac;fi
24002 as_executable_p=$as_test_x
24004 # Sed expression to map a string onto a valid CPP name.
24005 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24007 # Sed expression to map a string onto a valid variable name.
24008 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24013 # Save the log message, to keep $[0] and so on meaningful, and to
24014 # report actual input values of CONFIG_FILES etc. instead of their
24015 # values after options handling.
24017 This file was extended by $as_me, which was
24018 generated by GNU Autoconf 2.61. Invocation command line was
24020 CONFIG_FILES = $CONFIG_FILES
24021 CONFIG_HEADERS = $CONFIG_HEADERS
24022 CONFIG_LINKS = $CONFIG_LINKS
24023 CONFIG_COMMANDS = $CONFIG_COMMANDS
24026 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24031 cat >>$CONFIG_STATUS <<_ACEOF
24032 # Files that config.status was made for.
24033 config_files="$ac_config_files"
24034 config_headers="$ac_config_headers"
24035 config_commands="$ac_config_commands"
24039 cat >>$CONFIG_STATUS <<\_ACEOF
24041 \`$as_me' instantiates files from templates according to the
24042 current configuration.
24044 Usage: $0 [OPTIONS] [FILE]...
24046 -h, --help print this help, then exit
24047 -V, --version print version number and configuration settings, then exit
24048 -q, --quiet do not print progress messages
24049 -d, --debug don't remove temporary files
24050 --recheck update $as_me by reconfiguring in the same conditions
24051 --file=FILE[:TEMPLATE]
24052 instantiate the configuration file FILE
24053 --header=FILE[:TEMPLATE]
24054 instantiate the configuration header FILE
24056 Configuration files:
24059 Configuration headers:
24062 Configuration commands:
24065 Report bugs to <bug-autoconf@gnu.org>."
24068 cat >>$CONFIG_STATUS <<_ACEOF
24071 configured by $0, generated by GNU Autoconf 2.61,
24072 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24074 Copyright (C) 2006 Free Software Foundation, Inc.
24075 This config.status script is free software; the Free Software Foundation
24076 gives unlimited permission to copy, distribute and modify it."
24084 cat >>$CONFIG_STATUS <<\_ACEOF
24085 # If no file are specified by the user, then we need to provide default
24086 # value. By we need to know if files were specified by the user.
24092 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24093 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24104 # Handling of the options.
24105 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24107 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24108 echo "$ac_cs_version"; exit ;;
24109 --debug | --debu | --deb | --de | --d | -d )
24111 --file | --fil | --fi | --f )
24113 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24114 ac_need_defaults=false;;
24115 --header | --heade | --head | --hea )
24117 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24118 ac_need_defaults=false;;
24120 # Conflict between --help and --header
24121 { echo "$as_me: error: ambiguous option: $1
24122 Try \`$0 --help' for more information." >&2
24123 { (exit 1); exit 1; }; };;
24124 --help | --hel | -h )
24125 echo "$ac_cs_usage"; exit ;;
24126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24127 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24130 # This is an error.
24131 -*) { echo "$as_me: error: unrecognized option: $1
24132 Try \`$0 --help' for more information." >&2
24133 { (exit 1); exit 1; }; } ;;
24135 *) ac_config_targets="$ac_config_targets $1"
24136 ac_need_defaults=false ;;
24142 ac_configure_extra_args=
24144 if $ac_cs_silent; then
24146 ac_configure_extra_args="$ac_configure_extra_args --silent"
24150 cat >>$CONFIG_STATUS <<_ACEOF
24151 if \$ac_cs_recheck; then
24152 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24153 CONFIG_SHELL=$SHELL
24154 export CONFIG_SHELL
24155 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24159 cat >>$CONFIG_STATUS <<\_ACEOF
24163 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24164 ## Running $as_me. ##
24170 cat >>$CONFIG_STATUS <<_ACEOF
24174 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24178 cat >>$CONFIG_STATUS <<\_ACEOF
24180 # Handling of arguments.
24181 for ac_config_target in $ac_config_targets
24183 case $ac_config_target in
24184 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24185 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24186 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24187 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24188 "magic/Makefile") CONFIG_FILES="$CONFIG_FILES magic/Makefile" ;;
24189 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24190 "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
24192 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24193 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24194 { (exit 1); exit 1; }; };;
24199 # If the user did not use the arguments to specify the items to instantiate,
24200 # then the envvar interface is used. Set only those that are not.
24201 # We use the long form for the default assignment because of an extremely
24202 # bizarre bug on SunOS 4.1.3.
24203 if $ac_need_defaults; then
24204 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24205 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24206 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24209 # Have a temporary directory for convenience. Make it in the build tree
24210 # simply because there is no reason against having it here, and in addition,
24211 # creating and moving files from /tmp can sometimes cause problems.
24212 # Hook for its removal unless debugging.
24213 # Note that there is a small window in which the directory will not be cleaned:
24214 # after its creation but before its name has been assigned to `$tmp'.
24218 trap 'exit_status=$?
24219 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24221 trap '{ (exit 1); exit 1; }' 1 2 13 15
24223 # Create a (secure) tmp directory for tmp files.
24226 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24227 test -n "$tmp" && test -d "$tmp"
24230 tmp=./conf$$-$RANDOM
24231 (umask 077 && mkdir "$tmp")
24234 echo "$me: cannot create a temporary directory in ." >&2
24235 { (exit 1); exit 1; }
24239 # Set up the sed scripts for CONFIG_FILES section.
24242 # No need to generate the scripts if there are no CONFIG_FILES.
24243 # This happens for instance when ./config.status config.h
24244 if test -n "$CONFIG_FILES"; then
24251 for ac_last_try in false false false false false :; do
24252 cat >conf$$subs.sed <<_ACEOF
24253 SHELL!$SHELL$ac_delim
24254 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24255 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24256 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24257 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24258 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24259 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24260 exec_prefix!$exec_prefix$ac_delim
24261 prefix!$prefix$ac_delim
24262 program_transform_name!$program_transform_name$ac_delim
24263 bindir!$bindir$ac_delim
24264 sbindir!$sbindir$ac_delim
24265 libexecdir!$libexecdir$ac_delim
24266 datarootdir!$datarootdir$ac_delim
24267 datadir!$datadir$ac_delim
24268 sysconfdir!$sysconfdir$ac_delim
24269 sharedstatedir!$sharedstatedir$ac_delim
24270 localstatedir!$localstatedir$ac_delim
24271 includedir!$includedir$ac_delim
24272 oldincludedir!$oldincludedir$ac_delim
24273 docdir!$docdir$ac_delim
24274 infodir!$infodir$ac_delim
24275 htmldir!$htmldir$ac_delim
24276 dvidir!$dvidir$ac_delim
24277 pdfdir!$pdfdir$ac_delim
24278 psdir!$psdir$ac_delim
24279 libdir!$libdir$ac_delim
24280 localedir!$localedir$ac_delim
24281 mandir!$mandir$ac_delim
24282 DEFS!$DEFS$ac_delim
24283 ECHO_C!$ECHO_C$ac_delim
24284 ECHO_N!$ECHO_N$ac_delim
24285 ECHO_T!$ECHO_T$ac_delim
24286 LIBS!$LIBS$ac_delim
24287 build_alias!$build_alias$ac_delim
24288 host_alias!$host_alias$ac_delim
24289 target_alias!$target_alias$ac_delim
24290 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24291 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24292 INSTALL_DATA!$INSTALL_DATA$ac_delim
24293 am__isrc!$am__isrc$ac_delim
24294 CYGPATH_W!$CYGPATH_W$ac_delim
24295 PACKAGE!$PACKAGE$ac_delim
24296 VERSION!$VERSION$ac_delim
24297 ACLOCAL!$ACLOCAL$ac_delim
24298 AUTOCONF!$AUTOCONF$ac_delim
24299 AUTOMAKE!$AUTOMAKE$ac_delim
24300 AUTOHEADER!$AUTOHEADER$ac_delim
24301 MAKEINFO!$MAKEINFO$ac_delim
24302 install_sh!$install_sh$ac_delim
24303 STRIP!$STRIP$ac_delim
24304 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24305 mkdir_p!$mkdir_p$ac_delim
24307 SET_MAKE!$SET_MAKE$ac_delim
24308 am__leading_dot!$am__leading_dot$ac_delim
24309 AMTAR!$AMTAR$ac_delim
24310 am__tar!$am__tar$ac_delim
24311 am__untar!$am__untar$ac_delim
24312 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
24313 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
24314 MAINT!$MAINT$ac_delim
24315 fsect!$fsect$ac_delim
24316 FSECT5_TRUE!$FSECT5_TRUE$ac_delim
24317 FSECT5_FALSE!$FSECT5_FALSE$ac_delim
24319 CFLAGS!$CFLAGS$ac_delim
24320 LDFLAGS!$LDFLAGS$ac_delim
24321 CPPFLAGS!$CPPFLAGS$ac_delim
24322 ac_ct_CC!$ac_ct_CC$ac_delim
24323 EXEEXT!$EXEEXT$ac_delim
24324 OBJEXT!$OBJEXT$ac_delim
24325 DEPDIR!$DEPDIR$ac_delim
24326 am__include!$am__include$ac_delim
24327 am__quote!$am__quote$ac_delim
24328 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24329 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24330 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24331 CCDEPMODE!$CCDEPMODE$ac_delim
24332 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24333 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24334 LN_S!$LN_S$ac_delim
24335 build!$build$ac_delim
24336 build_cpu!$build_cpu$ac_delim
24337 build_vendor!$build_vendor$ac_delim
24338 build_os!$build_os$ac_delim
24339 host!$host$ac_delim
24340 host_cpu!$host_cpu$ac_delim
24341 host_vendor!$host_vendor$ac_delim
24342 host_os!$host_os$ac_delim
24343 GREP!$GREP$ac_delim
24344 EGREP!$EGREP$ac_delim
24345 ECHO!$ECHO$ac_delim
24347 RANLIB!$RANLIB$ac_delim
24352 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24354 elif $ac_last_try; then
24355 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24356 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24357 { (exit 1); exit 1; }; }
24359 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24363 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24364 if test -n "$ac_eof"; then
24365 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24366 ac_eof=`expr $ac_eof + 1`
24369 cat >>$CONFIG_STATUS <<_ACEOF
24370 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24374 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24375 s/^/s,@/; s/!/@,|#_!!_#|/
24378 s/'"$ac_delim"'$/,g/; t
24380 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24381 ' >>$CONFIG_STATUS <conf$$subs.sed
24382 rm -f conf$$subs.sed
24383 cat >>$CONFIG_STATUS <<_ACEOF
24389 for ac_last_try in false false false false false :; do
24390 cat >conf$$subs.sed <<_ACEOF
24391 CXXFLAGS!$CXXFLAGS$ac_delim
24392 ac_ct_CXX!$ac_ct_CXX$ac_delim
24393 CXXDEPMODE!$CXXDEPMODE$ac_delim
24394 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24395 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24396 CXXCPP!$CXXCPP$ac_delim
24398 FFLAGS!$FFLAGS$ac_delim
24399 ac_ct_F77!$ac_ct_F77$ac_delim
24400 LIBTOOL!$LIBTOOL$ac_delim
24401 IS_CROSS_COMPILE_TRUE!$IS_CROSS_COMPILE_TRUE$ac_delim
24402 IS_CROSS_COMPILE_FALSE!$IS_CROSS_COMPILE_FALSE$ac_delim
24403 LIBOBJS!$LIBOBJS$ac_delim
24404 LTLIBOBJS!$LTLIBOBJS$ac_delim
24407 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24409 elif $ac_last_try; then
24410 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24411 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24412 { (exit 1); exit 1; }; }
24414 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24418 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24419 if test -n "$ac_eof"; then
24420 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24421 ac_eof=`expr $ac_eof + 1`
24424 cat >>$CONFIG_STATUS <<_ACEOF
24425 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24429 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24430 s/^/s,@/; s/!/@,|#_!!_#|/
24433 s/'"$ac_delim"'$/,g/; t
24435 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24436 ' >>$CONFIG_STATUS <conf$$subs.sed
24437 rm -f conf$$subs.sed
24438 cat >>$CONFIG_STATUS <<_ACEOF
24445 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24446 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24447 # trailing colons and then remove the whole line if VPATH becomes empty
24448 # (actually we leave an empty line to preserve line numbers).
24449 if test "x$srcdir" = x.; then
24450 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24451 s/:*\$(srcdir):*/:/
24452 s/:*\${srcdir}:*/:/
24454 s/^\([^=]*=[ ]*\):*/\1/
24460 cat >>$CONFIG_STATUS <<\_ACEOF
24461 fi # test -n "$CONFIG_FILES"
24464 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24467 :[FHLC]) ac_mode=$ac_tag; continue;;
24469 case $ac_mode$ac_tag in
24471 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24472 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24473 { (exit 1); exit 1; }; };;
24474 :[FH]-) ac_tag=-:-;;
24475 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24492 -) ac_f="$tmp/stdin";;
24493 *) # Look for the file first in the build tree, then in the source tree
24494 # (if the path is not absolute). The absolute path cannot be DOS-style,
24495 # because $ac_f cannot contain `:'.
24499 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24501 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24502 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24503 { (exit 1); exit 1; }; };;
24505 ac_file_inputs="$ac_file_inputs $ac_f"
24508 # Let's still pretend it is `configure' which instantiates (i.e., don't
24509 # use $as_me), people would be surprised to read:
24510 # /* config.h. Generated by config.status. */
24511 configure_input="Generated from "`IFS=:
24512 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24513 if test x"$ac_file" != x-; then
24514 configure_input="$ac_file. $configure_input"
24515 { echo "$as_me:$LINENO: creating $ac_file" >&5
24516 echo "$as_me: creating $ac_file" >&6;}
24520 *:-:* | *:-) cat >"$tmp/stdin";;
24525 ac_dir=`$as_dirname -- "$ac_file" ||
24526 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24527 X"$ac_file" : 'X\(//\)[^/]' \| \
24528 X"$ac_file" : 'X\(//\)$' \| \
24529 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24535 /^X\(\/\/\)[^/].*/{
24550 -*) as_dir=./$as_dir;;
24552 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24556 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24557 *) as_qdir=$as_dir;;
24559 as_dirs="'$as_qdir' $as_dirs"
24560 as_dir=`$as_dirname -- "$as_dir" ||
24561 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24562 X"$as_dir" : 'X\(//\)[^/]' \| \
24563 X"$as_dir" : 'X\(//\)$' \| \
24564 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24570 /^X\(\/\/\)[^/].*/{
24583 test -d "$as_dir" && break
24585 test -z "$as_dirs" || eval "mkdir $as_dirs"
24586 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24587 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24588 { (exit 1); exit 1; }; }; }
24592 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24594 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24595 # A ".." for each directory in $ac_dir_suffix.
24596 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24597 case $ac_top_builddir_sub in
24598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24602 ac_abs_top_builddir=$ac_pwd
24603 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24604 # for backward compatibility:
24605 ac_top_builddir=$ac_top_build_prefix
24608 .) # We are building in place.
24610 ac_top_srcdir=$ac_top_builddir_sub
24611 ac_abs_top_srcdir=$ac_pwd ;;
24612 [\\/]* | ?:[\\/]* ) # Absolute name.
24613 ac_srcdir=$srcdir$ac_dir_suffix;
24614 ac_top_srcdir=$srcdir
24615 ac_abs_top_srcdir=$srcdir ;;
24616 *) # Relative name.
24617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24618 ac_top_srcdir=$ac_top_build_prefix$srcdir
24619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24621 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24631 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24632 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24634 ac_MKDIR_P=$MKDIR_P
24636 [\\/$]* | ?:[\\/]* ) ;;
24637 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24641 cat >>$CONFIG_STATUS <<\_ACEOF
24642 # If the template does not know about datarootdir, expand it.
24643 # FIXME: This hack should be removed a few years after 2.60.
24644 ac_datarootdir_hack=; ac_datarootdir_seen=
24646 case `sed -n '/datarootdir/ {
24655 ' $ac_file_inputs` in
24656 *datarootdir*) ac_datarootdir_seen=yes;;
24657 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24658 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24659 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24661 cat >>$CONFIG_STATUS <<_ACEOF
24662 ac_datarootdir_hack='
24663 s&@datadir@&$datadir&g
24664 s&@docdir@&$docdir&g
24665 s&@infodir@&$infodir&g
24666 s&@localedir@&$localedir&g
24667 s&@mandir@&$mandir&g
24668 s&\\\${datarootdir}&$datarootdir&g' ;;
24672 # Neutralize VPATH when `$srcdir' = `.'.
24673 # Shell code in configure.ac might set extrasub.
24674 # FIXME: do we really want to maintain this feature?
24675 cat >>$CONFIG_STATUS <<_ACEOF
24679 cat >>$CONFIG_STATUS <<\_ACEOF
24681 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24682 s&@configure_input@&$configure_input&;t t
24683 s&@top_builddir@&$ac_top_builddir_sub&;t t
24684 s&@srcdir@&$ac_srcdir&;t t
24685 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24686 s&@top_srcdir@&$ac_top_srcdir&;t t
24687 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24688 s&@builddir@&$ac_builddir&;t t
24689 s&@abs_builddir@&$ac_abs_builddir&;t t
24690 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24691 s&@INSTALL@&$ac_INSTALL&;t t
24692 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24693 $ac_datarootdir_hack
24694 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24696 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24697 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24698 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24699 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24700 which seems to be undefined. Please make sure it is defined." >&5
24701 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24702 which seems to be undefined. Please make sure it is defined." >&2;}
24706 -) cat "$tmp/out"; rm -f "$tmp/out";;
24707 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24716 # Transform confdefs.h into a sed script `conftest.defines', that
24717 # substitutes the proper values into config.h.in to produce config.h.
24718 rm -f conftest.defines conftest.tail
24719 # First, append a space to every undef/define line, to ease matching.
24720 echo 's/$/ /' >conftest.defines
24721 # Then, protect against being on the right side of a sed subst, or in
24722 # an unquoted here document, in config.status. If some macros were
24723 # called several times there might be several #defines for the same
24724 # symbol, which is useless. But do not sort them, since the last
24725 # AC_DEFINE must be honored.
24726 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24727 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24728 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24729 # PARAMS is the parameter list in the macro definition--in most cases, it's
24730 # just an empty string.
24731 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24732 ac_dB='\\)[ (].*,\\1define\\2'
24740 s/^[ ]*#[ ]*define[ ][ ]*//
24745 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24746 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24747 ' >>conftest.defines
24749 # Remove the space that was appended to ease matching.
24750 # Then replace #undef with comments. This is necessary, for
24751 # example, in the case of _POSIX_SOURCE, which is predefined and required
24752 # on some systems where configure will not decide to define it.
24753 # (The regexp can be short, since the line contains either #define or #undef.)
24755 s,^[ #]*u.*,/* & */,' >>conftest.defines
24757 # Break up conftest.defines:
24758 ac_max_sed_lines=50
24760 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24761 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24762 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24764 ac_in='$ac_file_inputs'
24765 ac_out='"$tmp/out1"'
24766 ac_nxt='"$tmp/out2"'
24770 # Write a here document:
24771 cat >>$CONFIG_STATUS <<_ACEOF
24772 # First, check the format of the line:
24773 cat >"\$tmp/defines.sed" <<\\CEOF
24774 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24775 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24779 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24781 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24782 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24783 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24784 grep . conftest.tail >/dev/null || break
24785 rm -f conftest.defines
24786 mv conftest.tail conftest.defines
24788 rm -f conftest.defines conftest.tail
24790 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24791 cat >>$CONFIG_STATUS <<\_ACEOF
24792 if test x"$ac_file" != x-; then
24793 echo "/* $configure_input */" >"$tmp/config.h"
24794 cat "$ac_result" >>"$tmp/config.h"
24795 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24796 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24797 echo "$as_me: $ac_file is unchanged" >&6;}
24800 mv "$tmp/config.h" $ac_file
24803 echo "/* $configure_input */"
24807 # Compute $ac_file's index in $config_headers.
24809 for _am_header in $config_headers :; do
24810 case $_am_header in
24811 $ac_file | $ac_file:* )
24814 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24817 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24818 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24819 X$ac_file : 'X\(//\)[^/]' \| \
24820 X$ac_file : 'X\(//\)$' \| \
24821 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24827 /^X\(\/\/\)[^/].*/{
24839 s/.*/./; q'`/stamp-h$_am_stamp_count
24842 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24843 echo "$as_me: executing $ac_file commands" >&6;}
24848 case $ac_file$ac_mode in
24849 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24850 # Strip MF so we end up with the name of the file.
24851 mf=`echo "$mf" | sed -e 's/:.*$//'`
24852 # Check whether this is an Automake generated Makefile or not.
24853 # We used to match only the files named `Makefile.in', but
24854 # some people rename them; so instead we look at the file content.
24855 # Grep'ing the first line is not enough: some people post-process
24856 # each Makefile.in and add a new line on top of each file to say so.
24857 # Grep'ing the whole file is not good either: AIX grep has a line
24858 # limit of 2048, but all sed's we know have understand at least 4000.
24859 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
24860 dirpart=`$as_dirname -- "$mf" ||
24861 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24862 X"$mf" : 'X\(//\)[^/]' \| \
24863 X"$mf" : 'X\(//\)$' \| \
24864 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24866 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24870 /^X\(\/\/\)[^/].*/{
24886 # Extract the definition of DEPDIR, am__include, and am__quote
24887 # from the Makefile without running `make'.
24888 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24889 test -z "$DEPDIR" && continue
24890 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24891 test -z "am__include" && continue
24892 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24893 # When using ansi2knr, U may be empty or an underscore; expand it
24894 U=`sed -n 's/^U = //p' < "$mf"`
24895 # Find all dependency output files, they are included files with
24896 # $(DEPDIR) in their names. We invoke sed twice because it is the
24897 # simplest approach to changing $(DEPDIR) to its actual value in the
24899 for file in `sed -n "
24900 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24901 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24902 # Make sure the directory exists.
24903 test -f "$dirpart/$file" && continue
24904 fdir=`$as_dirname -- "$file" ||
24905 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24906 X"$file" : 'X\(//\)[^/]' \| \
24907 X"$file" : 'X\(//\)$' \| \
24908 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24914 /^X\(\/\/\)[^/].*/{
24927 { as_dir=$dirpart/$fdir
24929 -*) as_dir=./$as_dir;;
24931 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24935 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24936 *) as_qdir=$as_dir;;
24938 as_dirs="'$as_qdir' $as_dirs"
24939 as_dir=`$as_dirname -- "$as_dir" ||
24940 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24941 X"$as_dir" : 'X\(//\)[^/]' \| \
24942 X"$as_dir" : 'X\(//\)$' \| \
24943 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24949 /^X\(\/\/\)[^/].*/{
24962 test -d "$as_dir" && break
24964 test -z "$as_dirs" || eval "mkdir $as_dirs"
24965 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24966 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24967 { (exit 1); exit 1; }; }; }
24968 # echo "creating $dirpart/$file"
24969 echo '# dummy' > "$dirpart/$file"
24978 { (exit 0); exit 0; }
24980 chmod +x $CONFIG_STATUS
24981 ac_clean_files=$ac_clean_files_save
24984 # configure is writing to config.log, and then calls config.status.
24985 # config.status does its own redirection, appending to config.log.
24986 # Unfortunately, on DOS this fails, as config.log is still kept open
24987 # by configure, so config.status won't be able to write to it; its
24988 # output is simply discarded. So we exec the FD to /dev/null,
24989 # effectively closing config.log, so it can be properly (re)opened and
24990 # appended to by config.status. When coming back to configure, we
24991 # need to make the FD available again.
24992 if test "$no_create" != yes; then
24994 ac_config_status_args=
24995 test "$silent" = yes &&
24996 ac_config_status_args="$ac_config_status_args --quiet"
24998 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25000 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25001 # would make configure fail if this is the last instruction.
25002 $ac_cs_success || { (exit 1); exit 1; }