2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for mod_chxj 1.0.0.
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.
727 PACKAGE_NAME='mod_chxj'
728 PACKAGE_TARNAME='mod_chxj'
729 PACKAGE_VERSION='1.0.0'
730 PACKAGE_STRING='mod_chxj 1.0.0'
733 ac_unique_file="src/mod_chxj.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
833 INSTALL_STRIP_PROGRAM
890 ac_precious_vars='build_alias
907 # Initialize some variables set by options.
909 ac_init_version=false
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
919 program_transform_name=s,x,x,
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944 infodir='${datarootdir}/info'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
959 eval $ac_prev=\$ac_option
965 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 # Accept the important Cygnus configure options, so we can diagnose typos.
971 case $ac_dashdash$ac_option in
975 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980 -build | --build | --buil | --bui | --bu)
981 ac_prev=build_alias ;;
982 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983 build_alias=$ac_optarg ;;
985 -cache-file | --cache-file | --cache-fil | --cache-fi \
986 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987 ac_prev=cache_file ;;
988 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990 cache_file=$ac_optarg ;;
993 cache_file=config.cache ;;
995 -datadir | --datadir | --datadi | --datad)
997 -datadir=* | --datadir=* | --datadi=* | --datad=*)
998 datadir=$ac_optarg ;;
1000 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001 | --dataroo | --dataro | --datar)
1002 ac_prev=datarootdir ;;
1003 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005 datarootdir=$ac_optarg ;;
1007 -disable-* | --disable-*)
1008 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1011 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1012 { (exit 1); exit 1; }; }
1013 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1014 eval enable_$ac_feature=no ;;
1016 -docdir | --docdir | --docdi | --doc | --do)
1018 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019 docdir=$ac_optarg ;;
1021 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1023 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024 dvidir=$ac_optarg ;;
1026 -enable-* | --enable-*)
1027 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028 # Reject names that are not valid shell variable names.
1029 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1031 { (exit 1); exit 1; }; }
1032 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1033 eval enable_$ac_feature=\$ac_optarg ;;
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
1042 exec_prefix=$ac_optarg ;;
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
1055 -host | --host | --hos | --ho)
1056 ac_prev=host_alias ;;
1057 -host=* | --host=* | --hos=* | --ho=*)
1058 host_alias=$ac_optarg ;;
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1064 htmldir=$ac_optarg ;;
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
1071 includedir=$ac_optarg ;;
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076 infodir=$ac_optarg ;;
1078 -libdir | --libdir | --libdi | --libd)
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081 libdir=$ac_optarg ;;
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
1088 libexecdir=$ac_optarg ;;
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
1096 | --localstate | --localstat | --localsta | --localst | --locals)
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100 localstatedir=$ac_optarg ;;
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105 mandir=$ac_optarg ;;
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112 | --no-cr | --no-c | -n)
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126 oldincludedir=$ac_optarg ;;
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131 prefix=$ac_optarg ;;
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138 program_prefix=$ac_optarg ;;
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
1162 program_transform_name=$ac_optarg ;;
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1169 -psdir | --psdir | --psdi | --psd | --ps)
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1182 sbindir=$ac_optarg ;;
1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186 | --sharedst | --shareds | --shared | --share | --shar \
1188 ac_prev=sharedstatedir ;;
1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1193 sharedstatedir=$ac_optarg ;;
1195 -site | --site | --sit)
1197 -site=* | --site=* | --sit=*)
1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203 srcdir=$ac_optarg ;;
1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206 | --syscon | --sysco | --sysc | --sys | --sy)
1207 ac_prev=sysconfdir ;;
1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210 sysconfdir=$ac_optarg ;;
1212 -target | --target | --targe | --targ | --tar | --ta | --t)
1213 ac_prev=target_alias ;;
1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215 target_alias=$ac_optarg ;;
1217 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1220 -version | --version | --versio | --versi | --vers | -V)
1221 ac_init_version=: ;;
1224 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 { echo "$as_me: error: invalid package name: $ac_package" >&2
1228 { (exit 1); exit 1; }; }
1229 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230 eval with_$ac_package=\$ac_optarg ;;
1232 -without-* | --without-*)
1233 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236 { echo "$as_me: error: invalid package name: $ac_package" >&2
1237 { (exit 1); exit 1; }; }
1238 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239 eval with_$ac_package=no ;;
1242 # Obsolete; use --with-x.
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1259 -*) { echo "$as_me: error: unrecognized option: $ac_option
1260 Try \`$0 --help' for more information." >&2
1261 { (exit 1); exit 1; }; }
1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1268 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1269 { (exit 1); exit 1; }; }
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1274 # FIXME: should be removed in autoconf 3.0.
1275 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 { echo "$as_me: error: missing argument to $ac_option" >&2
1287 { (exit 1); exit 1; }; }
1290 # Be sure to have absolute directory names.
1291 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292 datadir sysconfdir sharedstatedir localstatedir includedir \
1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294 libdir localedir mandir
1296 eval ac_val=\$$ac_var
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1301 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1302 { (exit 1); exit 1; }; }
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1310 target=$target_alias
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314 if test "x$build_alias" = x; then
1315 cross_compiling=maybe
1316 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1317 If a cross compiler is detected then cross compile mode will be used." >&2
1318 elif test "x$build_alias" != "x$host_alias"; then
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1326 test "$silent" = yes && exec 6>/dev/null
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332 { echo "$as_me: error: Working directory cannot be determined" >&2
1333 { (exit 1); exit 1; }; }
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335 { echo "$as_me: error: pwd does not report name of working directory" >&2
1336 { (exit 1); exit 1; }; }
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341 ac_srcdir_defaulted=yes
1342 # Try the directory containing this script, then the parent directory.
1343 ac_confdir=`$as_dirname -- "$0" ||
1344 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345 X"$0" : 'X\(//\)[^/]' \| \
1346 X"$0" : 'X\(//\)$' \| \
1347 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1371 ac_srcdir_defaulted=no
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1376 { (exit 1); exit 1; }; }
1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1380 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1381 { (exit 1); exit 1; }; }
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1393 for ac_var in $ac_precious_vars; do
1394 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395 eval ac_env_${ac_var}_value=\$${ac_var}
1396 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 # Report the --help message.
1403 if test "$ac_init_help" = "long"; then
1404 # Omit some internal or obsolete options to make the list less imposing.
1405 # This message is too long to be a string in the A/UX 3.1 sh.
1407 \`configure' configures mod_chxj 1.0.0 to adapt to many kinds of systems.
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE. See below for descriptions of some of the useful variables.
1414 Defaults for the options are specified in brackets.
1417 -h, --help display this help and exit
1418 --help=short display options specific to this package
1419 --help=recursive display the short help of all the included packages
1420 -V, --version display version information and exit
1421 -q, --quiet, --silent do not print \`checking...' messages
1422 --cache-file=FILE cache test results in FILE [disabled]
1423 -C, --config-cache alias for \`--cache-file=config.cache'
1424 -n, --no-create do not create output files
1425 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1427 Installation directories:
1428 --prefix=PREFIX install architecture-independent files in PREFIX
1429 [$ac_default_prefix]
1430 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1438 For better control, use the options below.
1440 Fine tuning of the installation directories:
1441 --bindir=DIR user executables [EPREFIX/bin]
1442 --sbindir=DIR system admin executables [EPREFIX/sbin]
1443 --libexecdir=DIR program executables [EPREFIX/libexec]
1444 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1445 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1446 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1447 --libdir=DIR object code libraries [EPREFIX/lib]
1448 --includedir=DIR C header files [PREFIX/include]
1449 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1450 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1451 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1452 --infodir=DIR info documentation [DATAROOTDIR/info]
1453 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1454 --mandir=DIR man documentation [DATAROOTDIR/man]
1455 --docdir=DIR documentation root [DATAROOTDIR/doc/mod_chxj]
1456 --htmldir=DIR html documentation [DOCDIR]
1457 --dvidir=DIR dvi documentation [DOCDIR]
1458 --pdfdir=DIR pdf documentation [DOCDIR]
1459 --psdir=DIR ps documentation [DOCDIR]
1465 --program-prefix=PREFIX prepend PREFIX to installed program names
1466 --program-suffix=SUFFIX append SUFFIX to installed program names
1467 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1470 --build=BUILD configure for building on BUILD [guessed]
1471 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1472 --target=TARGET configure for building compilers for TARGET [HOST]
1476 if test -n "$ac_init_help"; then
1477 case $ac_init_help in
1478 short | recursive ) echo "Configuration of mod_chxj 1.0.0:";;
1483 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1484 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1485 --disable-dependency-tracking speeds up one-time build
1486 --enable-dependency-tracking do not reject slow dependency extractors
1487 --enable-shared[=PKGS] build shared libraries [default=yes]
1488 --enable-static[=PKGS] build static libraries [default=yes]
1489 --enable-fast-install[=PKGS]
1490 optimize for fast installation [default=yes]
1491 --disable-libtool-lock avoid locking (might break parallel builds)
1492 --enable-img-conv-f Please specify it when you change the file name of the image being written in the
1493 source by the automatic operation.
1494 --enable-memcache-cookie Please specify it when you save Cookie in memcached.
1495 --enable-mysql-cookie Please specify it when you save Cookie in MySQL.
1496 --enable-dump-log When the log of conversion is output, it specifies it with the output file.
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1502 --with-pic try to use only PIC/non-PIC objects [default=use
1504 --with-tags[=TAGS] include additional configurations [automatic]
1505 --with-apache-header=ARG The directory with the header file of apache2.x is specified.
1506 --with-apxs=ARG Path of apxs program file.
1507 --with-apr-config=ARG Path of apr-config program file.
1508 --with-apu-config=ARG Path of apu-config program file.
1509 --with-apr-memcache-header Path of "apr_memcache.h"
1510 --with-apr-memcache-lib-dir Path of "libapr_memcache.so"
1511 --with-mysql-header=ARG Path of "mysql.h"
1512 --with-mysql-lib-dir=ARG Path of libmysqlclient
1514 Some influential environment variables:
1515 CC C compiler command
1516 CFLAGS C compiler flags
1517 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1518 nonstandard directory <lib dir>
1519 LIBS libraries to pass to the linker, e.g. -l<library>
1520 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1521 you have headers in a nonstandard directory <include dir>
1523 CXX C++ compiler command
1524 CXXFLAGS C++ compiler flags
1525 CXXCPP C++ preprocessor
1526 F77 Fortran 77 compiler command
1527 FFLAGS Fortran 77 compiler flags
1529 Use these variables to override the choices made by `configure' or to help
1530 it to find libraries and programs with nonstandard names/locations.
1536 if test "$ac_init_help" = "recursive"; then
1537 # If there are subdirs, report their specific --help.
1538 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1539 test -d "$ac_dir" || continue
1543 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1545 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1546 # A ".." for each directory in $ac_dir_suffix.
1547 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1553 ac_abs_top_builddir=$ac_pwd
1554 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555 # for backward compatibility:
1556 ac_top_builddir=$ac_top_build_prefix
1559 .) # We are building in place.
1561 ac_top_srcdir=$ac_top_builddir_sub
1562 ac_abs_top_srcdir=$ac_pwd ;;
1563 [\\/]* | ?:[\\/]* ) # Absolute name.
1564 ac_srcdir=$srcdir$ac_dir_suffix;
1565 ac_top_srcdir=$srcdir
1566 ac_abs_top_srcdir=$srcdir ;;
1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1572 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1574 cd "$ac_dir" || { ac_status=$?; continue; }
1575 # Check for guested configure.
1576 if test -f "$ac_srcdir/configure.gnu"; then
1578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579 elif test -f "$ac_srcdir/configure"; then
1581 $SHELL "$ac_srcdir/configure" --help=recursive
1583 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1585 cd "$ac_pwd" || { ac_status=$?; break; }
1589 test -n "$ac_init_help" && exit $ac_status
1590 if $ac_init_version; then
1592 mod_chxj configure 1.0.0
1593 generated by GNU Autoconf 2.61
1595 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1596 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1597 This configure script is free software; the Free Software Foundation
1598 gives unlimited permission to copy, distribute and modify it.
1602 cat >config.log <<_ACEOF
1603 This file contains any messages produced by compilers while
1604 running configure, to aid debugging if configure makes a mistake.
1606 It was created by mod_chxj $as_me 1.0.0, which was
1607 generated by GNU Autoconf 2.61. Invocation command line was
1619 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1620 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1621 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1622 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1623 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1625 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1626 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1628 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1629 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1630 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1631 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1632 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1633 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1634 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1642 test -z "$as_dir" && as_dir=.
1643 echo "PATH: $as_dir"
1659 # Keep a trace of the command line.
1660 # Strip out --no-create and --no-recursion so they do not pile up.
1661 # Strip out --silent because we don't want to record it for future runs.
1662 # Also quote any args containing shell meta-characters.
1663 # Make two passes to allow for proper duplicate-argument suppression.
1667 ac_must_keep_next=false
1673 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1675 | -silent | --silent | --silen | --sile | --sil)
1678 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1681 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1683 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1684 if test $ac_must_keep_next = true; then
1685 ac_must_keep_next=false # Got value, back to normal.
1688 *=* | --config-cache | -C | -disable-* | --disable-* \
1689 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1690 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1691 | -with-* | --with-* | -without-* | --without-* | --x)
1692 case "$ac_configure_args0 " in
1693 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1696 -* ) ac_must_keep_next=true ;;
1699 ac_configure_args="$ac_configure_args '$ac_arg'"
1704 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1705 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1707 # When interrupted or exit'd, cleanup temporary files, and complete
1708 # config.log. We remove comments because anyway the quotes in there
1709 # would cause problems or look ugly.
1710 # WARNING: Use '\'' to represent an apostrophe within the trap.
1711 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1712 trap 'exit_status=$?
1713 # Save into config.log some information that might help in debugging.
1718 ## ---------------- ##
1719 ## Cache variables. ##
1720 ## ---------------- ##
1723 # The following way of writing the cache mishandles newlines in values,
1725 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1726 eval ac_val=\$$ac_var
1730 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1731 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1734 _ | IFS | as_nl) ;; #(
1735 *) $as_unset $ac_var ;;
1740 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1741 *${as_nl}ac_space=\ *)
1743 "s/'\''/'\''\\\\'\'''\''/g;
1744 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1747 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1755 ## ----------------- ##
1756 ## Output variables. ##
1757 ## ----------------- ##
1760 for ac_var in $ac_subst_vars
1762 eval ac_val=\$$ac_var
1764 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1766 echo "$ac_var='\''$ac_val'\''"
1770 if test -n "$ac_subst_files"; then
1772 ## ------------------- ##
1773 ## File substitutions. ##
1774 ## ------------------- ##
1777 for ac_var in $ac_subst_files
1779 eval ac_val=\$$ac_var
1781 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1783 echo "$ac_var='\''$ac_val'\''"
1788 if test -s confdefs.h; then
1798 test "$ac_signal" != 0 &&
1799 echo "$as_me: caught signal $ac_signal"
1800 echo "$as_me: exit $exit_status"
1802 rm -f core *.core core.conftest.* &&
1803 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1806 for ac_signal in 1 2 13 15; do
1807 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1811 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1812 rm -f -r conftest* confdefs.h
1814 # Predefined preprocessor variables.
1816 cat >>confdefs.h <<_ACEOF
1817 #define PACKAGE_NAME "$PACKAGE_NAME"
1821 cat >>confdefs.h <<_ACEOF
1822 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1826 cat >>confdefs.h <<_ACEOF
1827 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1831 cat >>confdefs.h <<_ACEOF
1832 #define PACKAGE_STRING "$PACKAGE_STRING"
1836 cat >>confdefs.h <<_ACEOF
1837 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1841 # Let the site file select an alternate cache file if it wants to.
1842 # Prefer explicitly selected file to automatically selected ones.
1843 if test -n "$CONFIG_SITE"; then
1844 set x "$CONFIG_SITE"
1845 elif test "x$prefix" != xNONE; then
1846 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1848 set x "$ac_default_prefix/share/config.site" \
1849 "$ac_default_prefix/etc/config.site"
1854 if test -r "$ac_site_file"; then
1855 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1856 echo "$as_me: loading site script $ac_site_file" >&6;}
1857 sed 's/^/| /' "$ac_site_file" >&5
1862 if test -r "$cache_file"; then
1863 # Some versions of bash will fail to source /dev/null (special
1864 # files actually), so we avoid doing that.
1865 if test -f "$cache_file"; then
1866 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1867 echo "$as_me: loading cache $cache_file" >&6;}
1869 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1870 *) . "./$cache_file";;
1874 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1875 echo "$as_me: creating cache $cache_file" >&6;}
1879 # Check that the precious variables saved in the cache have kept the same
1881 ac_cache_corrupted=false
1882 for ac_var in $ac_precious_vars; do
1883 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1884 eval ac_new_set=\$ac_env_${ac_var}_set
1885 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1886 eval ac_new_val=\$ac_env_${ac_var}_value
1887 case $ac_old_set,$ac_new_set in
1889 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1890 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1891 ac_cache_corrupted=: ;;
1893 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1894 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1895 ac_cache_corrupted=: ;;
1898 if test "x$ac_old_val" != "x$ac_new_val"; then
1899 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1900 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1901 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1902 echo "$as_me: former value: $ac_old_val" >&2;}
1903 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1904 echo "$as_me: current value: $ac_new_val" >&2;}
1905 ac_cache_corrupted=:
1908 # Pass precious variables to config.status.
1909 if test "$ac_new_set" = set; then
1911 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1912 *) ac_arg=$ac_var=$ac_new_val ;;
1914 case " $ac_configure_args " in
1915 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1916 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1920 if $ac_cache_corrupted; then
1921 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1922 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1923 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1924 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1925 { (exit 1); exit 1; }; }
1953 ac_cpp='$CPP $CPPFLAGS'
1954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1962 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1963 if test -f "$ac_dir/install-sh"; then
1965 ac_install_sh="$ac_aux_dir/install-sh -c"
1967 elif test -f "$ac_dir/install.sh"; then
1969 ac_install_sh="$ac_aux_dir/install.sh -c"
1971 elif test -f "$ac_dir/shtool"; then
1973 ac_install_sh="$ac_aux_dir/shtool install -c"
1977 if test -z "$ac_aux_dir"; then
1978 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1979 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1980 { (exit 1); exit 1; }; }
1983 # These three variables are undocumented and unsupported,
1984 # and are intended to be withdrawn in a future Autoconf release.
1985 # They can cause serious problems if a builder's source tree is in a directory
1986 # whose full name contains unusual characters.
1987 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1988 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1989 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1992 # Make sure we can run config.sub.
1993 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1994 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1995 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1996 { (exit 1); exit 1; }; }
1998 { echo "$as_me:$LINENO: checking build system type" >&5
1999 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2000 if test "${ac_cv_build+set}" = set; then
2001 echo $ECHO_N "(cached) $ECHO_C" >&6
2003 ac_build_alias=$build_alias
2004 test "x$ac_build_alias" = x &&
2005 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2006 test "x$ac_build_alias" = x &&
2007 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2008 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2009 { (exit 1); exit 1; }; }
2010 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2011 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2012 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2013 { (exit 1); exit 1; }; }
2016 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2017 echo "${ECHO_T}$ac_cv_build" >&6; }
2018 case $ac_cv_build in
2020 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2021 echo "$as_me: error: invalid value of canonical build" >&2;}
2022 { (exit 1); exit 1; }; };;
2025 ac_save_IFS=$IFS; IFS='-'
2031 # Remember, the first character of IFS is used to create $*,
2032 # except with old shells:
2035 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2038 { echo "$as_me:$LINENO: checking host system type" >&5
2039 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2040 if test "${ac_cv_host+set}" = set; then
2041 echo $ECHO_N "(cached) $ECHO_C" >&6
2043 if test "x$host_alias" = x; then
2044 ac_cv_host=$ac_cv_build
2046 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2047 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2048 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2049 { (exit 1); exit 1; }; }
2053 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2054 echo "${ECHO_T}$ac_cv_host" >&6; }
2057 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2058 echo "$as_me: error: invalid value of canonical host" >&2;}
2059 { (exit 1); exit 1; }; };;
2062 ac_save_IFS=$IFS; IFS='-'
2068 # Remember, the first character of IFS is used to create $*,
2069 # except with old shells:
2072 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2075 { echo "$as_me:$LINENO: checking target system type" >&5
2076 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2077 if test "${ac_cv_target+set}" = set; then
2078 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 if test "x$target_alias" = x; then
2081 ac_cv_target=$ac_cv_host
2083 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2084 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2085 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2086 { (exit 1); exit 1; }; }
2090 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2091 echo "${ECHO_T}$ac_cv_target" >&6; }
2092 case $ac_cv_target in
2094 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2095 echo "$as_me: error: invalid value of canonical target" >&2;}
2096 { (exit 1); exit 1; }; };;
2098 target=$ac_cv_target
2099 ac_save_IFS=$IFS; IFS='-'
2105 # Remember, the first character of IFS is used to create $*,
2106 # except with old shells:
2109 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2112 # The aliases save the names the user supplied, while $host etc.
2113 # will get canonicalized.
2114 test -n "$target_alias" &&
2115 test "$program_prefix$program_suffix$program_transform_name" = \
2117 program_prefix=${target_alias}-
2118 am__api_version='1.10'
2120 # Find a good install program. We prefer a C program (faster),
2121 # so one script is as good as another. But avoid the broken or
2122 # incompatible versions:
2123 # SysV /etc/install, /usr/sbin/install
2124 # SunOS /usr/etc/install
2125 # IRIX /sbin/install
2127 # AmigaOS /C/install, which installs bootblocks on floppy discs
2128 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2129 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2130 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2131 # OS/2's system install, which has a completely different semantic
2132 # ./install, which can be erroneously created by make from ./install.sh.
2133 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2134 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2135 if test -z "$INSTALL"; then
2136 if test "${ac_cv_path_install+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143 test -z "$as_dir" && as_dir=.
2144 # Account for people who put trailing slashes in PATH elements.
2146 ./ | .// | /cC/* | \
2147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2148 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2151 # OSF1 and SCO ODT 3.0 have their own names for install.
2152 # Don't use installbsd from OSF since it installs stuff as root
2154 for ac_prog in ginstall scoinst install; do
2155 for ac_exec_ext in '' $ac_executable_extensions; do
2156 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2157 if test $ac_prog = install &&
2158 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2159 # AIX install. It has an incompatible calling convention.
2161 elif test $ac_prog = install &&
2162 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2163 # program-specific install script used by HP pwplus--don't use.
2166 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2179 if test "${ac_cv_path_install+set}" = set; then
2180 INSTALL=$ac_cv_path_install
2182 # As a last resort, use the slow shell script. Don't cache a
2183 # value for INSTALL within a source directory, because that will
2184 # break other packages using the cache if that directory is
2185 # removed, or if the value is a relative name.
2186 INSTALL=$ac_install_sh
2189 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2190 echo "${ECHO_T}$INSTALL" >&6; }
2192 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2193 # It thinks the first close brace ends the variable substitution.
2194 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2196 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2198 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2200 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2201 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2204 echo timestamp > conftest.file
2205 # Do `set' in a subshell so we don't clobber the current shell's
2206 # arguments. Must try -L first in case configure is actually a
2207 # symlink; some systems play weird games with the mod time of symlinks
2208 # (eg FreeBSD returns the mod time of the symlink's containing
2211 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2212 if test "$*" = "X"; then
2214 set X `ls -t $srcdir/configure conftest.file`
2217 if test "$*" != "X $srcdir/configure conftest.file" \
2218 && test "$*" != "X conftest.file $srcdir/configure"; then
2220 # If neither matched, then we have a broken ls. This can happen
2221 # if, for instance, CONFIG_SHELL is bash and it inherits a
2222 # broken ls alias from the environment. This has actually
2223 # happened. Such a system could not be considered "sane".
2224 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2225 alias in your environment" >&5
2226 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2227 alias in your environment" >&2;}
2228 { (exit 1); exit 1; }; }
2231 test "$2" = conftest.file
2237 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2238 Check your system clock" >&5
2239 echo "$as_me: error: newly created file is older than distributed files!
2240 Check your system clock" >&2;}
2241 { (exit 1); exit 1; }; }
2243 { echo "$as_me:$LINENO: result: yes" >&5
2244 echo "${ECHO_T}yes" >&6; }
2245 test "$program_prefix" != NONE &&
2246 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2247 # Use a double $ so make ignores it.
2248 test "$program_suffix" != NONE &&
2249 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2250 # Double any \ or $. echo might interpret backslashes.
2251 # By default was `s,x,x', remove it if useless.
2252 cat <<\_ACEOF >conftest.sed
2253 s/[\\$]/&&/g;s/;s,x,x,$//
2255 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2258 # expand $ac_aux_dir to an absolute path
2259 am_aux_dir=`cd $ac_aux_dir && pwd`
2261 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2262 # Use eval to expand $SHELL
2263 if eval "$MISSING --run true"; then
2264 am_missing_run="$MISSING --run "
2267 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2268 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2271 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2272 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2273 if test -z "$MKDIR_P"; then
2274 if test "${ac_cv_path_mkdir+set}" = set; then
2275 echo $ECHO_N "(cached) $ECHO_C" >&6
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2281 test -z "$as_dir" && as_dir=.
2282 for ac_prog in mkdir gmkdir; do
2283 for ac_exec_ext in '' $ac_executable_extensions; do
2284 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2285 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2286 'mkdir (GNU coreutils) '* | \
2287 'mkdir (coreutils) '* | \
2288 'mkdir (fileutils) '4.1*)
2289 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2299 if test "${ac_cv_path_mkdir+set}" = set; then
2300 MKDIR_P="$ac_cv_path_mkdir -p"
2302 # As a last resort, use the slow shell script. Don't cache a
2303 # value for MKDIR_P within a source directory, because that will
2304 # break other packages using the cache if that directory is
2305 # removed, or if the value is a relative name.
2306 test -d ./--version && rmdir ./--version
2307 MKDIR_P="$ac_install_sh -d"
2310 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2311 echo "${ECHO_T}$MKDIR_P" >&6; }
2315 [\\/$]* | ?:[\\/]*) ;;
2316 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2319 for ac_prog in gawk mawk nawk awk
2321 # Extract the first word of "$ac_prog", so it can be a program name with args.
2322 set dummy $ac_prog; ac_word=$2
2323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325 if test "${ac_cv_prog_AWK+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 if test -n "$AWK"; then
2329 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2338 ac_cv_prog_AWK="$ac_prog"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2349 if test -n "$AWK"; then
2350 { echo "$as_me:$LINENO: result: $AWK" >&5
2351 echo "${ECHO_T}$AWK" >&6; }
2353 { echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6; }
2358 test -n "$AWK" && break
2361 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2362 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2363 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2364 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2365 echo $ECHO_N "(cached) $ECHO_C" >&6
2367 cat >conftest.make <<\_ACEOF
2370 @echo '@@@%%%=$(MAKE)=@@@%%%'
2372 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2373 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2375 eval ac_cv_prog_make_${ac_make}_set=yes;;
2377 eval ac_cv_prog_make_${ac_make}_set=no;;
2381 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2382 { echo "$as_me:$LINENO: result: yes" >&5
2383 echo "${ECHO_T}yes" >&6; }
2386 { echo "$as_me:$LINENO: result: no" >&5
2387 echo "${ECHO_T}no" >&6; }
2388 SET_MAKE="MAKE=${MAKE-make}"
2391 rm -rf .tst 2>/dev/null
2392 mkdir .tst 2>/dev/null
2393 if test -d .tst; then
2398 rmdir .tst 2>/dev/null
2400 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2401 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2402 # is not polluted with repeated "-I."
2403 am__isrc=' -I$(srcdir)'
2404 # test to see if srcdir already configured
2405 if test -f $srcdir/config.status; then
2406 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2407 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2408 { (exit 1); exit 1; }; }
2412 # test whether we have cygpath
2413 if test -z "$CYGPATH_W"; then
2414 if (cygpath --version) >/dev/null 2>/dev/null; then
2415 CYGPATH_W='cygpath -w'
2422 # Define the identity of the package.
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE "$PACKAGE"
2432 cat >>confdefs.h <<_ACEOF
2433 #define VERSION "$VERSION"
2436 # Some tools Automake needs.
2438 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2441 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2444 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2447 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2450 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2452 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2454 # Installed binaries are usually stripped using `strip' when the user
2455 # run `make install-strip'. However `strip' might not be the right
2456 # tool to use in cross-compilation environments, therefore Automake
2457 # will honor the `STRIP' environment variable to overrule this program.
2458 if test "$cross_compiling" != no; then
2459 if test -n "$ac_tool_prefix"; then
2460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2461 set dummy ${ac_tool_prefix}strip; ac_word=$2
2462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464 if test "${ac_cv_prog_STRIP+set}" = set; then
2465 echo $ECHO_N "(cached) $ECHO_C" >&6
2467 if test -n "$STRIP"; then
2468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474 test -z "$as_dir" && as_dir=.
2475 for ac_exec_ext in '' $ac_executable_extensions; do
2476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487 STRIP=$ac_cv_prog_STRIP
2488 if test -n "$STRIP"; then
2489 { echo "$as_me:$LINENO: result: $STRIP" >&5
2490 echo "${ECHO_T}$STRIP" >&6; }
2492 { echo "$as_me:$LINENO: result: no" >&5
2493 echo "${ECHO_T}no" >&6; }
2498 if test -z "$ac_cv_prog_STRIP"; then
2500 # Extract the first word of "strip", so it can be a program name with args.
2501 set dummy strip; ac_word=$2
2502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2504 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2505 echo $ECHO_N "(cached) $ECHO_C" >&6
2507 if test -n "$ac_ct_STRIP"; then
2508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 test -z "$as_dir" && as_dir=.
2515 for ac_exec_ext in '' $ac_executable_extensions; do
2516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2517 ac_cv_prog_ac_ct_STRIP="strip"
2518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2528 if test -n "$ac_ct_STRIP"; then
2529 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2530 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2532 { echo "$as_me:$LINENO: result: no" >&5
2533 echo "${ECHO_T}no" >&6; }
2536 if test "x$ac_ct_STRIP" = x; then
2539 case $cross_compiling:$ac_tool_warned in
2541 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2542 whose name does not start with the host triplet. If you think this
2543 configuration is useful to you, please write to autoconf@gnu.org." >&5
2544 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2545 whose name does not start with the host triplet. If you think this
2546 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2547 ac_tool_warned=yes ;;
2552 STRIP="$ac_cv_prog_STRIP"
2556 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2558 # We need awk for the "check" target. The system "awk" is bad on
2560 # Always define AMTAR for backward compatibility.
2562 AMTAR=${AMTAR-"${am_missing_run}tar"}
2564 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2570 ac_config_headers="$ac_config_headers include/config.h"
2574 # Checks for programs.
2575 DEPDIR="${am__leading_dot}deps"
2577 ac_config_commands="$ac_config_commands depfiles"
2580 am_make=${MAKE-make}
2581 cat > confinc << 'END'
2586 # If we don't find an include directive, just comment out the code.
2587 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2588 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2592 # First try GNU make style include.
2593 echo "include confinc" > confmf
2594 # We grep out `Entering directory' and `Leaving directory'
2595 # messages which can occur if `w' ends up in MAKEFLAGS.
2596 # In particular we don't look at `^make:' because GNU make might
2597 # be invoked under some other name (usually "gmake"), in which
2598 # case it prints its new name instead of `make'.
2599 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2604 # Now try BSD make style include.
2605 if test "$am__include" = "#"; then
2606 echo '.include "confinc"' > confmf
2607 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2608 am__include=.include
2615 { echo "$as_me:$LINENO: result: $_am_result" >&5
2616 echo "${ECHO_T}$_am_result" >&6; }
2617 rm -f confinc confmf
2619 # Check whether --enable-dependency-tracking was given.
2620 if test "${enable_dependency_tracking+set}" = set; then
2621 enableval=$enable_dependency_tracking;
2624 if test "x$enable_dependency_tracking" != xno; then
2625 am_depcomp="$ac_aux_dir/depcomp"
2628 if test "x$enable_dependency_tracking" != xno; then
2638 ac_cpp='$CPP $CPPFLAGS'
2639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2642 if test -n "$ac_tool_prefix"; then
2643 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2644 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2647 if test "${ac_cv_prog_CC+set}" = set; then
2648 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 if test -n "$CC"; then
2651 ac_cv_prog_CC="$CC" # Let the user override the test.
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2671 if test -n "$CC"; then
2672 { echo "$as_me:$LINENO: result: $CC" >&5
2673 echo "${ECHO_T}$CC" >&6; }
2675 { echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6; }
2681 if test -z "$ac_cv_prog_CC"; then
2683 # Extract the first word of "gcc", so it can be a program name with args.
2684 set dummy gcc; ac_word=$2
2685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2687 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2690 if test -n "$ac_ct_CC"; then
2691 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 test -z "$as_dir" && as_dir=.
2698 for ac_exec_ext in '' $ac_executable_extensions; do
2699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2700 ac_cv_prog_ac_ct_CC="gcc"
2701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2711 if test -n "$ac_ct_CC"; then
2712 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2713 echo "${ECHO_T}$ac_ct_CC" >&6; }
2715 { echo "$as_me:$LINENO: result: no" >&5
2716 echo "${ECHO_T}no" >&6; }
2719 if test "x$ac_ct_CC" = x; then
2722 case $cross_compiling:$ac_tool_warned in
2724 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&5
2727 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2728 whose name does not start with the host triplet. If you think this
2729 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2730 ac_tool_warned=yes ;;
2738 if test -z "$CC"; then
2739 if test -n "$ac_tool_prefix"; then
2740 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2741 set dummy ${ac_tool_prefix}cc; ac_word=$2
2742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2744 if test "${ac_cv_prog_CC+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 if test -n "$CC"; then
2748 ac_cv_prog_CC="$CC" # Let the user override the test.
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_CC="${ac_tool_prefix}cc"
2758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 if test -n "$CC"; then
2769 { echo "$as_me:$LINENO: result: $CC" >&5
2770 echo "${ECHO_T}$CC" >&6; }
2772 { echo "$as_me:$LINENO: result: no" >&5
2773 echo "${ECHO_T}no" >&6; }
2779 if test -z "$CC"; then
2780 # Extract the first word of "cc", so it can be a program name with args.
2781 set dummy cc; ac_word=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_CC+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 if test -n "$CC"; then
2788 ac_cv_prog_CC="$CC" # Let the user override the test.
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2799 ac_prog_rejected=yes
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 if test $ac_prog_rejected = yes; then
2811 # We found a bogon in the path, so make sure we never use it.
2812 set dummy $ac_cv_prog_CC
2814 if test $# != 0; then
2815 # We chose a different compiler from the bogus one.
2816 # However, it has the same basename, so the bogon will be chosen
2817 # first if we set CC to just the basename; use the full file name.
2819 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2825 if test -n "$CC"; then
2826 { echo "$as_me:$LINENO: result: $CC" >&5
2827 echo "${ECHO_T}$CC" >&6; }
2829 { echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6; }
2835 if test -z "$CC"; then
2836 if test -n "$ac_tool_prefix"; then
2837 for ac_prog in cl.exe
2839 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2840 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2843 if test "${ac_cv_prog_CC+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 if test -n "$CC"; then
2847 ac_cv_prog_CC="$CC" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2856 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 if test -n "$CC"; then
2868 { echo "$as_me:$LINENO: result: $CC" >&5
2869 echo "${ECHO_T}$CC" >&6; }
2871 { echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6; }
2876 test -n "$CC" && break
2879 if test -z "$CC"; then
2881 for ac_prog in cl.exe
2883 # Extract the first word of "$ac_prog", so it can be a program name with args.
2884 set dummy $ac_prog; ac_word=$2
2885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2887 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 if test -n "$ac_ct_CC"; then
2891 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 ac_cv_prog_ac_ct_CC="$ac_prog"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2911 if test -n "$ac_ct_CC"; then
2912 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2913 echo "${ECHO_T}$ac_ct_CC" >&6; }
2915 { echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6; }
2920 test -n "$ac_ct_CC" && break
2923 if test "x$ac_ct_CC" = x; then
2926 case $cross_compiling:$ac_tool_warned in
2928 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2929 whose name does not start with the host triplet. If you think this
2930 configuration is useful to you, please write to autoconf@gnu.org." >&5
2931 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2932 whose name does not start with the host triplet. If you think this
2933 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2934 ac_tool_warned=yes ;;
2943 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2944 See \`config.log' for more details." >&5
2945 echo "$as_me: error: no acceptable C compiler found in \$PATH
2946 See \`config.log' for more details." >&2;}
2947 { (exit 1); exit 1; }; }
2949 # Provide some information about the compiler.
2950 echo "$as_me:$LINENO: checking for C compiler version" >&5
2951 ac_compiler=`set X $ac_compile; echo $2`
2952 { (ac_try="$ac_compiler --version >&5"
2954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958 (eval "$ac_compiler --version >&5") 2>&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }
2962 { (ac_try="$ac_compiler -v >&5"
2964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2965 *) ac_try_echo=$ac_try;;
2967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2968 (eval "$ac_compiler -v >&5") 2>&5
2970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2971 (exit $ac_status); }
2972 { (ac_try="$ac_compiler -V >&5"
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2978 (eval "$ac_compiler -V >&5") 2>&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }
2983 cat >conftest.$ac_ext <<_ACEOF
2986 cat confdefs.h >>conftest.$ac_ext
2987 cat >>conftest.$ac_ext <<_ACEOF
2988 /* end confdefs.h. */
2998 ac_clean_files_save=$ac_clean_files
2999 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3000 # Try to create an executable without -o first, disregard a.out.
3001 # It will help us diagnose broken compilers, and finding out an intuition
3003 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3004 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3005 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3007 # List of possible output files, starting from the most likely.
3008 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3009 # only as a last resort. b.out is created by i960 compilers.
3010 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3012 # The IRIX 6 linker writes into existing files which may not be
3013 # executable, retaining their permissions. Remove them first so a
3014 # subsequent execution test works.
3016 for ac_file in $ac_files
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3020 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3025 if { (ac_try="$ac_link_default"
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3031 (eval "$ac_link_default") 2>&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); }; then
3035 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3036 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3037 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3038 # so that the user can short-circuit this test for compilers unknown to
3040 for ac_file in $ac_files ''
3042 test -f "$ac_file" || continue
3044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3047 # We found the default executable, but exeext='' is most
3051 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3053 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3055 # We set ac_cv_exeext here because the later test for it is not
3056 # safe: cross compilers may not add the suffix if given an `-o'
3057 # argument, so we may need to know it at that point already.
3058 # Even if this section looks crufty: it has the advantage of
3065 test "$ac_cv_exeext" = no && ac_cv_exeext=
3071 { echo "$as_me:$LINENO: result: $ac_file" >&5
3072 echo "${ECHO_T}$ac_file" >&6; }
3073 if test -z "$ac_file"; then
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3078 See \`config.log' for more details." >&5
3079 echo "$as_me: error: C compiler cannot create executables
3080 See \`config.log' for more details." >&2;}
3081 { (exit 77); exit 77; }; }
3084 ac_exeext=$ac_cv_exeext
3086 # Check that the compiler produces executables we can run. If not, either
3087 # the compiler is broken, or we cross compile.
3088 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3089 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3090 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3091 # If not cross compiling, check that we can run a simple program.
3092 if test "$cross_compiling" != yes; then
3093 if { ac_try='./$ac_file'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3105 if test "$cross_compiling" = maybe; then
3108 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3109 If you meant to cross compile, use \`--host'.
3110 See \`config.log' for more details." >&5
3111 echo "$as_me: error: cannot run C compiled programs.
3112 If you meant to cross compile, use \`--host'.
3113 See \`config.log' for more details." >&2;}
3114 { (exit 1); exit 1; }; }
3118 { echo "$as_me:$LINENO: result: yes" >&5
3119 echo "${ECHO_T}yes" >&6; }
3121 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3122 ac_clean_files=$ac_clean_files_save
3123 # Check that the compiler produces executables we can run. If not, either
3124 # the compiler is broken, or we cross compile.
3125 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3126 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3127 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3128 echo "${ECHO_T}$cross_compiling" >&6; }
3130 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3131 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3132 if { (ac_try="$ac_link"
3134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3135 *) ac_try_echo=$ac_try;;
3137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3138 (eval "$ac_link") 2>&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); }; then
3142 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3143 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3144 # work properly (i.e., refer to `conftest.exe'), while it won't with
3146 for ac_file in conftest.exe conftest conftest.*; do
3147 test -f "$ac_file" || continue
3149 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3150 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3156 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3157 See \`config.log' for more details." >&5
3158 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3159 See \`config.log' for more details." >&2;}
3160 { (exit 1); exit 1; }; }
3163 rm -f conftest$ac_cv_exeext
3164 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3165 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3167 rm -f conftest.$ac_ext
3168 EXEEXT=$ac_cv_exeext
3170 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3171 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3172 if test "${ac_cv_objext+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 cat >conftest.$ac_ext <<_ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3190 rm -f conftest.o conftest.obj
3191 if { (ac_try="$ac_compile"
3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compile") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }; then
3201 for ac_file in conftest.o conftest.obj conftest.*; do
3202 test -f "$ac_file" || continue;
3204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3205 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3210 echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3213 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3214 See \`config.log' for more details." >&5
3215 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3216 See \`config.log' for more details." >&2;}
3217 { (exit 1); exit 1; }; }
3220 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3222 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3223 echo "${ECHO_T}$ac_cv_objext" >&6; }
3224 OBJEXT=$ac_cv_objext
3226 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3227 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3228 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3229 echo $ECHO_N "(cached) $ECHO_C" >&6
3231 cat >conftest.$ac_ext <<_ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h. */
3249 rm -f conftest.$ac_objext
3250 if { (ac_try="$ac_compile"
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3256 (eval "$ac_compile") 2>conftest.er1
3258 grep -v '^ *+' conftest.er1 >conftest.err
3260 cat conftest.err >&5
3261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262 (exit $ac_status); } && {
3263 test -z "$ac_c_werror_flag" ||
3264 test ! -s conftest.err
3265 } && test -s conftest.$ac_objext; then
3268 echo "$as_me: failed program was:" >&5
3269 sed 's/^/| /' conftest.$ac_ext >&5
3274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3275 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3278 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3279 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3280 GCC=`test $ac_compiler_gnu = yes && echo yes`
3281 ac_test_CFLAGS=${CFLAGS+set}
3282 ac_save_CFLAGS=$CFLAGS
3283 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3284 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3285 if test "${ac_cv_prog_cc_g+set}" = set; then
3286 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 ac_save_c_werror_flag=$ac_c_werror_flag
3289 ac_c_werror_flag=yes
3292 cat >conftest.$ac_ext <<_ACEOF
3295 cat confdefs.h >>conftest.$ac_ext
3296 cat >>conftest.$ac_ext <<_ACEOF
3297 /* end confdefs.h. */
3307 rm -f conftest.$ac_objext
3308 if { (ac_try="$ac_compile"
3310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3311 *) ac_try_echo=$ac_try;;
3313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3314 (eval "$ac_compile") 2>conftest.er1
3316 grep -v '^ *+' conftest.er1 >conftest.err
3318 cat conftest.err >&5
3319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3320 (exit $ac_status); } && {
3321 test -z "$ac_c_werror_flag" ||
3322 test ! -s conftest.err
3323 } && test -s conftest.$ac_objext; then
3326 echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3330 cat >conftest.$ac_ext <<_ACEOF
3333 cat confdefs.h >>conftest.$ac_ext
3334 cat >>conftest.$ac_ext <<_ACEOF
3335 /* end confdefs.h. */
3345 rm -f conftest.$ac_objext
3346 if { (ac_try="$ac_compile"
3348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3349 *) ac_try_echo=$ac_try;;
3351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3352 (eval "$ac_compile") 2>conftest.er1
3354 grep -v '^ *+' conftest.er1 >conftest.err
3356 cat conftest.err >&5
3357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } && {
3359 test -z "$ac_c_werror_flag" ||
3360 test ! -s conftest.err
3361 } && test -s conftest.$ac_objext; then
3364 echo "$as_me: failed program was:" >&5
3365 sed 's/^/| /' conftest.$ac_ext >&5
3367 ac_c_werror_flag=$ac_save_c_werror_flag
3369 cat >conftest.$ac_ext <<_ACEOF
3372 cat confdefs.h >>conftest.$ac_ext
3373 cat >>conftest.$ac_ext <<_ACEOF
3374 /* end confdefs.h. */
3384 rm -f conftest.$ac_objext
3385 if { (ac_try="$ac_compile"
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3391 (eval "$ac_compile") 2>conftest.er1
3393 grep -v '^ *+' conftest.er1 >conftest.err
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } && {
3398 test -z "$ac_c_werror_flag" ||
3399 test ! -s conftest.err
3400 } && test -s conftest.$ac_objext; then
3403 echo "$as_me: failed program was:" >&5
3404 sed 's/^/| /' conftest.$ac_ext >&5
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3416 ac_c_werror_flag=$ac_save_c_werror_flag
3418 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3419 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3420 if test "$ac_test_CFLAGS" = set; then
3421 CFLAGS=$ac_save_CFLAGS
3422 elif test $ac_cv_prog_cc_g = yes; then
3423 if test "$GCC" = yes; then
3429 if test "$GCC" = yes; then
3435 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3436 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_cc_c89+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 ac_cv_prog_cc_c89=no
3442 cat >conftest.$ac_ext <<_ACEOF
3445 cat confdefs.h >>conftest.$ac_ext
3446 cat >>conftest.$ac_ext <<_ACEOF
3447 /* end confdefs.h. */
3450 #include <sys/types.h>
3451 #include <sys/stat.h>
3452 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3453 struct buf { int x; };
3454 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3455 static char *e (p, i)
3461 static char *f (char * (*g) (char **, int), char **p, ...)
3466 s = g (p, va_arg (v,int));
3471 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3472 function prototypes and stuff, but not '\xHH' hex character constants.
3473 These don't provoke an error unfortunately, instead are silently treated
3474 as 'x'. The following induces an error, until -std is added to get
3475 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3476 array size at least. It's necessary to write '\x00'==0 to get something
3477 that's true only with -std. */
3478 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3480 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3481 inside strings and character constants. */
3483 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3485 int test (int i, double x);
3486 struct s1 {int (*f) (int a);};
3487 struct s2 {int (*f) (double a);};
3488 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3494 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3499 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3500 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3502 CC="$ac_save_CC $ac_arg"
3503 rm -f conftest.$ac_objext
3504 if { (ac_try="$ac_compile"
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_compile") 2>conftest.er1
3512 grep -v '^ *+' conftest.er1 >conftest.err
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } && {
3517 test -z "$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3519 } && test -s conftest.$ac_objext; then
3520 ac_cv_prog_cc_c89=$ac_arg
3522 echo "$as_me: failed program was:" >&5
3523 sed 's/^/| /' conftest.$ac_ext >&5
3528 rm -f core conftest.err conftest.$ac_objext
3529 test "x$ac_cv_prog_cc_c89" != "xno" && break
3531 rm -f conftest.$ac_ext
3536 case "x$ac_cv_prog_cc_c89" in
3538 { echo "$as_me:$LINENO: result: none needed" >&5
3539 echo "${ECHO_T}none needed" >&6; } ;;
3541 { echo "$as_me:$LINENO: result: unsupported" >&5
3542 echo "${ECHO_T}unsupported" >&6; } ;;
3544 CC="$CC $ac_cv_prog_cc_c89"
3545 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3546 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3551 ac_cpp='$CPP $CPPFLAGS'
3552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3556 depcc="$CC" am_compiler_list=
3558 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3559 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3560 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3564 # We make a subdir and do the tests there. Otherwise we can end up
3565 # making bogus files that we don't know about and never remove. For
3566 # instance it was reported that on HP-UX the gcc test will end up
3567 # making a dummy file named `D' -- because `-MD' means `put the output
3570 # Copy depcomp to subdir because otherwise we won't find it if we're
3571 # using a relative directory.
3572 cp "$am_depcomp" conftest.dir
3574 # We will build objects and dependencies in a subdirectory because
3575 # it helps to detect inapplicable dependency modes. For instance
3576 # both Tru64's cc and ICC support -MD to output dependencies as a
3577 # side effect of compilation, but ICC will put the dependencies in
3578 # the current directory while Tru64 will put them in the object
3582 am_cv_CC_dependencies_compiler_type=none
3583 if test "$am_compiler_list" = ""; then
3584 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3586 for depmode in $am_compiler_list; do
3587 # Setup a source with many dependencies, because some compilers
3588 # like to wrap large dependency lists on column 80 (with \), and
3589 # we should not choose a depcomp mode which is confused by this.
3591 # We need to recreate these files for each test, as the compiler may
3592 # overwrite some of them when testing with obscure command lines.
3593 # This happens at least with the AIX C compiler.
3595 for i in 1 2 3 4 5 6; do
3596 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3597 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3598 # Solaris 8's {/usr,}/bin/sh.
3599 touch sub/conftst$i.h
3601 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3605 # after this tag, mechanisms are not by side-effect, so they'll
3606 # only be used when explicitly requested
3607 if test "x$enable_dependency_tracking" = xyes; then
3615 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3616 # mode. It turns out that the SunPro C++ compiler does not properly
3617 # handle `-M -o', and we need to detect this.
3618 if depmode=$depmode \
3619 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3620 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3621 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3622 >/dev/null 2>conftest.err &&
3623 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3624 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3625 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3626 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3627 # icc doesn't choke on unknown options, it will just issue warnings
3628 # or remarks (even with -Werror). So we grep stderr for any message
3629 # that says an option was ignored or not supported.
3630 # When given -MP, icc 7.0 and 7.1 complain thusly:
3631 # icc: Command line warning: ignoring option '-M'; no argument required
3632 # The diagnosis changed in icc 8.0:
3633 # icc: Command line remark: option '-MP' not supported
3634 if (grep 'ignoring option' conftest.err ||
3635 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3636 am_cv_CC_dependencies_compiler_type=$depmode
3645 am_cv_CC_dependencies_compiler_type=none
3649 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3650 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3651 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3654 test "x$enable_dependency_tracking" != xno \
3655 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3657 am__fastdepCC_FALSE='#'
3659 am__fastdepCC_TRUE='#'
3660 am__fastdepCC_FALSE=
3665 ac_cpp='$CPP $CPPFLAGS'
3666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3670 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3671 # On Suns, sometimes $CPP names a directory.
3672 if test -n "$CPP" && test -d "$CPP"; then
3675 if test -z "$CPP"; then
3676 if test "${ac_cv_prog_CPP+set}" = set; then
3677 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 # Double quotes because CPP needs to be expanded
3680 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3683 for ac_c_preproc_warn_flag in '' yes
3685 # Use a header file that comes with gcc, so configuring glibc
3686 # with a fresh cross-compiler works.
3687 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3688 # <limits.h> exists even on freestanding compilers.
3689 # On the NeXT, cc -E runs the code through the compiler's parser,
3690 # not just through cpp. "Syntax error" is here to catch this case.
3691 cat >conftest.$ac_ext <<_ACEOF
3694 cat confdefs.h >>conftest.$ac_ext
3695 cat >>conftest.$ac_ext <<_ACEOF
3696 /* end confdefs.h. */
3698 # include <limits.h>
3700 # include <assert.h>
3704 if { (ac_try="$ac_cpp conftest.$ac_ext"
3706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3707 *) ac_try_echo=$ac_try;;
3709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3712 grep -v '^ *+' conftest.er1 >conftest.err
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } >/dev/null && {
3717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3722 echo "$as_me: failed program was:" >&5
3723 sed 's/^/| /' conftest.$ac_ext >&5
3725 # Broken: fails on valid input.
3729 rm -f conftest.err conftest.$ac_ext
3731 # OK, works on sane cases. Now check whether nonexistent headers
3732 # can be detected and how.
3733 cat >conftest.$ac_ext <<_ACEOF
3736 cat confdefs.h >>conftest.$ac_ext
3737 cat >>conftest.$ac_ext <<_ACEOF
3738 /* end confdefs.h. */
3739 #include <ac_nonexistent.h>
3741 if { (ac_try="$ac_cpp conftest.$ac_ext"
3743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3749 grep -v '^ *+' conftest.er1 >conftest.err
3751 cat conftest.err >&5
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); } >/dev/null && {
3754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3755 test ! -s conftest.err
3757 # Broken: success on invalid input.
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 # Passes both tests.
3768 rm -f conftest.err conftest.$ac_ext
3771 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3772 rm -f conftest.err conftest.$ac_ext
3773 if $ac_preproc_ok; then
3785 { echo "$as_me:$LINENO: result: $CPP" >&5
3786 echo "${ECHO_T}$CPP" >&6; }
3788 for ac_c_preproc_warn_flag in '' yes
3790 # Use a header file that comes with gcc, so configuring glibc
3791 # with a fresh cross-compiler works.
3792 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3793 # <limits.h> exists even on freestanding compilers.
3794 # On the NeXT, cc -E runs the code through the compiler's parser,
3795 # not just through cpp. "Syntax error" is here to catch this case.
3796 cat >conftest.$ac_ext <<_ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3803 # include <limits.h>
3805 # include <assert.h>
3809 if { (ac_try="$ac_cpp conftest.$ac_ext"
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3817 grep -v '^ *+' conftest.er1 >conftest.err
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } >/dev/null && {
3822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3823 test ! -s conftest.err
3827 echo "$as_me: failed program was:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3830 # Broken: fails on valid input.
3834 rm -f conftest.err conftest.$ac_ext
3836 # OK, works on sane cases. Now check whether nonexistent headers
3837 # can be detected and how.
3838 cat >conftest.$ac_ext <<_ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844 #include <ac_nonexistent.h>
3846 if { (ac_try="$ac_cpp conftest.$ac_ext"
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3854 grep -v '^ *+' conftest.er1 >conftest.err
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } >/dev/null && {
3859 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3860 test ! -s conftest.err
3862 # Broken: success on invalid input.
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3868 # Passes both tests.
3873 rm -f conftest.err conftest.$ac_ext
3876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3877 rm -f conftest.err conftest.$ac_ext
3878 if $ac_preproc_ok; then
3881 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3882 See \`config.log' for more details." >&5
3883 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3884 See \`config.log' for more details." >&2;}
3885 { (exit 1); exit 1; }; }
3889 ac_cpp='$CPP $CPPFLAGS'
3890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 if test -n "$ac_tool_prefix"; then
3900 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3901 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3904 if test "${ac_cv_prog_CC+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3907 if test -n "$CC"; then
3908 ac_cv_prog_CC="$CC" # Let the user override the test.
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 if test -n "$CC"; then
3929 { echo "$as_me:$LINENO: result: $CC" >&5
3930 echo "${ECHO_T}$CC" >&6; }
3932 { echo "$as_me:$LINENO: result: no" >&5
3933 echo "${ECHO_T}no" >&6; }
3938 if test -z "$ac_cv_prog_CC"; then
3940 # Extract the first word of "gcc", so it can be a program name with args.
3941 set dummy gcc; ac_word=$2
3942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3945 echo $ECHO_N "(cached) $ECHO_C" >&6
3947 if test -n "$ac_ct_CC"; then
3948 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 test -z "$as_dir" && as_dir=.
3955 for ac_exec_ext in '' $ac_executable_extensions; do
3956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3957 ac_cv_prog_ac_ct_CC="gcc"
3958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3968 if test -n "$ac_ct_CC"; then
3969 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3970 echo "${ECHO_T}$ac_ct_CC" >&6; }
3972 { echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6; }
3976 if test "x$ac_ct_CC" = x; then
3979 case $cross_compiling:$ac_tool_warned in
3981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3982 whose name does not start with the host triplet. If you think this
3983 configuration is useful to you, please write to autoconf@gnu.org." >&5
3984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3985 whose name does not start with the host triplet. If you think this
3986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3987 ac_tool_warned=yes ;;
3995 if test -z "$CC"; then
3996 if test -n "$ac_tool_prefix"; then
3997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3998 set dummy ${ac_tool_prefix}cc; ac_word=$2
3999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4001 if test "${ac_cv_prog_CC+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4004 if test -n "$CC"; then
4005 ac_cv_prog_CC="$CC" # Let the user override the test.
4007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4011 test -z "$as_dir" && as_dir=.
4012 for ac_exec_ext in '' $ac_executable_extensions; do
4013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4014 ac_cv_prog_CC="${ac_tool_prefix}cc"
4015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 if test -n "$CC"; then
4026 { echo "$as_me:$LINENO: result: $CC" >&5
4027 echo "${ECHO_T}$CC" >&6; }
4029 { echo "$as_me:$LINENO: result: no" >&5
4030 echo "${ECHO_T}no" >&6; }
4036 if test -z "$CC"; then
4037 # Extract the first word of "cc", so it can be a program name with args.
4038 set dummy cc; ac_word=$2
4039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4041 if test "${ac_cv_prog_CC+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 if test -n "$CC"; then
4045 ac_cv_prog_CC="$CC" # Let the user override the test.
4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4052 test -z "$as_dir" && as_dir=.
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4056 ac_prog_rejected=yes
4060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 if test $ac_prog_rejected = yes; then
4068 # We found a bogon in the path, so make sure we never use it.
4069 set dummy $ac_cv_prog_CC
4071 if test $# != 0; then
4072 # We chose a different compiler from the bogus one.
4073 # However, it has the same basename, so the bogon will be chosen
4074 # first if we set CC to just the basename; use the full file name.
4076 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4082 if test -n "$CC"; then
4083 { echo "$as_me:$LINENO: result: $CC" >&5
4084 echo "${ECHO_T}$CC" >&6; }
4086 { echo "$as_me:$LINENO: result: no" >&5
4087 echo "${ECHO_T}no" >&6; }
4092 if test -z "$CC"; then
4093 if test -n "$ac_tool_prefix"; then
4094 for ac_prog in cl.exe
4096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4100 if test "${ac_cv_prog_CC+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 if test -n "$CC"; then
4104 ac_cv_prog_CC="$CC" # Let the user override the test.
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4113 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 if test -n "$CC"; then
4125 { echo "$as_me:$LINENO: result: $CC" >&5
4126 echo "${ECHO_T}$CC" >&6; }
4128 { echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6; }
4133 test -n "$CC" && break
4136 if test -z "$CC"; then
4138 for ac_prog in cl.exe
4140 # Extract the first word of "$ac_prog", so it can be a program name with args.
4141 set dummy $ac_prog; ac_word=$2
4142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4145 echo $ECHO_N "(cached) $ECHO_C" >&6
4147 if test -n "$ac_ct_CC"; then
4148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4154 test -z "$as_dir" && as_dir=.
4155 for ac_exec_ext in '' $ac_executable_extensions; do
4156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4157 ac_cv_prog_ac_ct_CC="$ac_prog"
4158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4168 if test -n "$ac_ct_CC"; then
4169 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4170 echo "${ECHO_T}$ac_ct_CC" >&6; }
4172 { echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6; }
4177 test -n "$ac_ct_CC" && break
4180 if test "x$ac_ct_CC" = x; then
4183 case $cross_compiling:$ac_tool_warned in
4185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4186 whose name does not start with the host triplet. If you think this
4187 configuration is useful to you, please write to autoconf@gnu.org." >&5
4188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4189 whose name does not start with the host triplet. If you think this
4190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4191 ac_tool_warned=yes ;;
4200 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4201 See \`config.log' for more details." >&5
4202 echo "$as_me: error: no acceptable C compiler found in \$PATH
4203 See \`config.log' for more details." >&2;}
4204 { (exit 1); exit 1; }; }
4206 # Provide some information about the compiler.
4207 echo "$as_me:$LINENO: checking for C compiler version" >&5
4208 ac_compiler=`set X $ac_compile; echo $2`
4209 { (ac_try="$ac_compiler --version >&5"
4211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4212 *) ac_try_echo=$ac_try;;
4214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4215 (eval "$ac_compiler --version >&5") 2>&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }
4219 { (ac_try="$ac_compiler -v >&5"
4221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4222 *) ac_try_echo=$ac_try;;
4224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4225 (eval "$ac_compiler -v >&5") 2>&5
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }
4229 { (ac_try="$ac_compiler -V >&5"
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_compiler -V >&5") 2>&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }
4240 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4241 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4242 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4263 rm -f conftest.$ac_objext
4264 if { (ac_try="$ac_compile"
4266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_compile") 2>conftest.er1
4272 grep -v '^ *+' conftest.er1 >conftest.err
4274 cat conftest.err >&5
4275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4276 (exit $ac_status); } && {
4277 test -z "$ac_c_werror_flag" ||
4278 test ! -s conftest.err
4279 } && test -s conftest.$ac_objext; then
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4292 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4293 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4294 GCC=`test $ac_compiler_gnu = yes && echo yes`
4295 ac_test_CFLAGS=${CFLAGS+set}
4296 ac_save_CFLAGS=$CFLAGS
4297 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4298 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4299 if test "${ac_cv_prog_cc_g+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4302 ac_save_c_werror_flag=$ac_c_werror_flag
4303 ac_c_werror_flag=yes
4306 cat >conftest.$ac_ext <<_ACEOF
4309 cat confdefs.h >>conftest.$ac_ext
4310 cat >>conftest.$ac_ext <<_ACEOF
4311 /* end confdefs.h. */
4321 rm -f conftest.$ac_objext
4322 if { (ac_try="$ac_compile"
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_compile") 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); } && {
4335 test -z "$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4337 } && test -s conftest.$ac_objext; then
4340 echo "$as_me: failed program was:" >&5
4341 sed 's/^/| /' conftest.$ac_ext >&5
4344 cat >conftest.$ac_ext <<_ACEOF
4347 cat confdefs.h >>conftest.$ac_ext
4348 cat >>conftest.$ac_ext <<_ACEOF
4349 /* end confdefs.h. */
4359 rm -f conftest.$ac_objext
4360 if { (ac_try="$ac_compile"
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_compile") 2>conftest.er1
4368 grep -v '^ *+' conftest.er1 >conftest.err
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } && {
4373 test -z "$ac_c_werror_flag" ||
4374 test ! -s conftest.err
4375 } && test -s conftest.$ac_objext; then
4378 echo "$as_me: failed program was:" >&5
4379 sed 's/^/| /' conftest.$ac_ext >&5
4381 ac_c_werror_flag=$ac_save_c_werror_flag
4383 cat >conftest.$ac_ext <<_ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h. */
4398 rm -f conftest.$ac_objext
4399 if { (ac_try="$ac_compile"
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4405 (eval "$ac_compile") 2>conftest.er1
4407 grep -v '^ *+' conftest.er1 >conftest.err
4409 cat conftest.err >&5
4410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); } && {
4412 test -z "$ac_c_werror_flag" ||
4413 test ! -s conftest.err
4414 } && test -s conftest.$ac_objext; then
4417 echo "$as_me: failed program was:" >&5
4418 sed 's/^/| /' conftest.$ac_ext >&5
4423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4430 ac_c_werror_flag=$ac_save_c_werror_flag
4432 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4433 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4434 if test "$ac_test_CFLAGS" = set; then
4435 CFLAGS=$ac_save_CFLAGS
4436 elif test $ac_cv_prog_cc_g = yes; then
4437 if test "$GCC" = yes; then
4443 if test "$GCC" = yes; then
4449 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4450 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4451 if test "${ac_cv_prog_cc_c89+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4454 ac_cv_prog_cc_c89=no
4456 cat >conftest.$ac_ext <<_ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */
4464 #include <sys/types.h>
4465 #include <sys/stat.h>
4466 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4467 struct buf { int x; };
4468 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4469 static char *e (p, i)
4475 static char *f (char * (*g) (char **, int), char **p, ...)
4480 s = g (p, va_arg (v,int));
4485 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4486 function prototypes and stuff, but not '\xHH' hex character constants.
4487 These don't provoke an error unfortunately, instead are silently treated
4488 as 'x'. The following induces an error, until -std is added to get
4489 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4490 array size at least. It's necessary to write '\x00'==0 to get something
4491 that's true only with -std. */
4492 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4494 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4495 inside strings and character constants. */
4497 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4499 int test (int i, double x);
4500 struct s1 {int (*f) (int a);};
4501 struct s2 {int (*f) (double a);};
4502 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4508 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4513 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4514 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4516 CC="$ac_save_CC $ac_arg"
4517 rm -f conftest.$ac_objext
4518 if { (ac_try="$ac_compile"
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4524 (eval "$ac_compile") 2>conftest.er1
4526 grep -v '^ *+' conftest.er1 >conftest.err
4528 cat conftest.err >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } && {
4531 test -z "$ac_c_werror_flag" ||
4532 test ! -s conftest.err
4533 } && test -s conftest.$ac_objext; then
4534 ac_cv_prog_cc_c89=$ac_arg
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4542 rm -f core conftest.err conftest.$ac_objext
4543 test "x$ac_cv_prog_cc_c89" != "xno" && break
4545 rm -f conftest.$ac_ext
4550 case "x$ac_cv_prog_cc_c89" in
4552 { echo "$as_me:$LINENO: result: none needed" >&5
4553 echo "${ECHO_T}none needed" >&6; } ;;
4555 { echo "$as_me:$LINENO: result: unsupported" >&5
4556 echo "${ECHO_T}unsupported" >&6; } ;;
4558 CC="$CC $ac_cv_prog_cc_c89"
4559 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4560 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4565 ac_cpp='$CPP $CPPFLAGS'
4566 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4567 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4568 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4570 depcc="$CC" am_compiler_list=
4572 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4573 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4574 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4575 echo $ECHO_N "(cached) $ECHO_C" >&6
4577 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4578 # We make a subdir and do the tests there. Otherwise we can end up
4579 # making bogus files that we don't know about and never remove. For
4580 # instance it was reported that on HP-UX the gcc test will end up
4581 # making a dummy file named `D' -- because `-MD' means `put the output
4584 # Copy depcomp to subdir because otherwise we won't find it if we're
4585 # using a relative directory.
4586 cp "$am_depcomp" conftest.dir
4588 # We will build objects and dependencies in a subdirectory because
4589 # it helps to detect inapplicable dependency modes. For instance
4590 # both Tru64's cc and ICC support -MD to output dependencies as a
4591 # side effect of compilation, but ICC will put the dependencies in
4592 # the current directory while Tru64 will put them in the object
4596 am_cv_CC_dependencies_compiler_type=none
4597 if test "$am_compiler_list" = ""; then
4598 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4600 for depmode in $am_compiler_list; do
4601 # Setup a source with many dependencies, because some compilers
4602 # like to wrap large dependency lists on column 80 (with \), and
4603 # we should not choose a depcomp mode which is confused by this.
4605 # We need to recreate these files for each test, as the compiler may
4606 # overwrite some of them when testing with obscure command lines.
4607 # This happens at least with the AIX C compiler.
4609 for i in 1 2 3 4 5 6; do
4610 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4611 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4612 # Solaris 8's {/usr,}/bin/sh.
4613 touch sub/conftst$i.h
4615 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4619 # after this tag, mechanisms are not by side-effect, so they'll
4620 # only be used when explicitly requested
4621 if test "x$enable_dependency_tracking" = xyes; then
4629 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4630 # mode. It turns out that the SunPro C++ compiler does not properly
4631 # handle `-M -o', and we need to detect this.
4632 if depmode=$depmode \
4633 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4634 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4635 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4636 >/dev/null 2>conftest.err &&
4637 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4638 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4639 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4640 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4641 # icc doesn't choke on unknown options, it will just issue warnings
4642 # or remarks (even with -Werror). So we grep stderr for any message
4643 # that says an option was ignored or not supported.
4644 # When given -MP, icc 7.0 and 7.1 complain thusly:
4645 # icc: Command line warning: ignoring option '-M'; no argument required
4646 # The diagnosis changed in icc 8.0:
4647 # icc: Command line remark: option '-MP' not supported
4648 if (grep 'ignoring option' conftest.err ||
4649 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4650 am_cv_CC_dependencies_compiler_type=$depmode
4659 am_cv_CC_dependencies_compiler_type=none
4663 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4664 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4665 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4668 test "x$enable_dependency_tracking" != xno \
4669 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4671 am__fastdepCC_FALSE='#'
4673 am__fastdepCC_TRUE='#'
4674 am__fastdepCC_FALSE=
4678 # Find a good install program. We prefer a C program (faster),
4679 # so one script is as good as another. But avoid the broken or
4680 # incompatible versions:
4681 # SysV /etc/install, /usr/sbin/install
4682 # SunOS /usr/etc/install
4683 # IRIX /sbin/install
4685 # AmigaOS /C/install, which installs bootblocks on floppy discs
4686 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4687 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4688 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4689 # OS/2's system install, which has a completely different semantic
4690 # ./install, which can be erroneously created by make from ./install.sh.
4691 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4692 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4693 if test -z "$INSTALL"; then
4694 if test "${ac_cv_path_install+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4701 test -z "$as_dir" && as_dir=.
4702 # Account for people who put trailing slashes in PATH elements.
4704 ./ | .// | /cC/* | \
4705 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4706 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4709 # OSF1 and SCO ODT 3.0 have their own names for install.
4710 # Don't use installbsd from OSF since it installs stuff as root
4712 for ac_prog in ginstall scoinst install; do
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4715 if test $ac_prog = install &&
4716 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4717 # AIX install. It has an incompatible calling convention.
4719 elif test $ac_prog = install &&
4720 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4721 # program-specific install script used by HP pwplus--don't use.
4724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4737 if test "${ac_cv_path_install+set}" = set; then
4738 INSTALL=$ac_cv_path_install
4740 # As a last resort, use the slow shell script. Don't cache a
4741 # value for INSTALL within a source directory, because that will
4742 # break other packages using the cache if that directory is
4743 # removed, or if the value is a relative name.
4744 INSTALL=$ac_install_sh
4747 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4748 echo "${ECHO_T}$INSTALL" >&6; }
4750 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4751 # It thinks the first close brace ends the variable substitution.
4752 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4754 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4756 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4758 # Check whether --enable-shared was given.
4759 if test "${enable_shared+set}" = set; then
4760 enableval=$enable_shared; p=${PACKAGE-default}
4762 yes) enable_shared=yes ;;
4763 no) enable_shared=no ;;
4766 # Look at the argument we got. We use all the common list separators.
4767 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4768 for pkg in $enableval; do
4770 if test "X$pkg" = "X$p"; then
4782 # Check whether --enable-static was given.
4783 if test "${enable_static+set}" = set; then
4784 enableval=$enable_static; p=${PACKAGE-default}
4786 yes) enable_static=yes ;;
4787 no) enable_static=no ;;
4790 # Look at the argument we got. We use all the common list separators.
4791 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4792 for pkg in $enableval; do
4794 if test "X$pkg" = "X$p"; then
4806 # Check whether --enable-fast-install was given.
4807 if test "${enable_fast_install+set}" = set; then
4808 enableval=$enable_fast_install; p=${PACKAGE-default}
4810 yes) enable_fast_install=yes ;;
4811 no) enable_fast_install=no ;;
4813 enable_fast_install=no
4814 # Look at the argument we got. We use all the common list separators.
4815 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4816 for pkg in $enableval; do
4818 if test "X$pkg" = "X$p"; then
4819 enable_fast_install=yes
4826 enable_fast_install=yes
4830 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4831 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4832 if test "${lt_cv_path_SED+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 # Loop through the user's path and test for sed and gsed.
4836 # Then use that list of sed's as ones to test for truncation.
4837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4841 test -z "$as_dir" && as_dir=.
4842 for lt_ac_prog in sed gsed; do
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4845 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4852 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4853 # along with /bin/sed that truncates output.
4854 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4855 test ! -f $lt_ac_sed && continue
4856 cat /dev/null > conftest.in
4858 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4859 # Check for GNU sed and select it if it is found.
4860 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4861 lt_cv_path_SED=$lt_ac_sed
4865 cat conftest.in conftest.in >conftest.tmp
4866 mv conftest.tmp conftest.in
4867 cp conftest.in conftest.nl
4869 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4870 cmp -s conftest.out conftest.nl || break
4871 # 10000 chars as input seems more than enough
4872 test $lt_ac_count -gt 10 && break
4873 lt_ac_count=`expr $lt_ac_count + 1`
4874 if test $lt_ac_count -gt $lt_ac_max; then
4875 lt_ac_max=$lt_ac_count
4876 lt_cv_path_SED=$lt_ac_sed
4884 { echo "$as_me:$LINENO: result: $SED" >&5
4885 echo "${ECHO_T}$SED" >&6; }
4887 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4888 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4889 if test "${ac_cv_path_GREP+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 # Extract the first word of "grep ggrep" to use in msg output
4893 if test -z "$GREP"; then
4894 set dummy grep ggrep; ac_prog_name=$2
4895 if test "${ac_cv_path_GREP+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 ac_path_GREP_found=false
4899 # Loop through the user's path and test for each of PROGNAME-LIST
4900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4901 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4904 test -z "$as_dir" && as_dir=.
4905 for ac_prog in grep ggrep; do
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4908 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4909 # Check for GNU ac_path_GREP and select it if it is found.
4910 # Check for GNU $ac_path_GREP
4911 case `"$ac_path_GREP" --version 2>&1` in
4913 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4916 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4919 cat "conftest.in" "conftest.in" >"conftest.tmp"
4920 mv "conftest.tmp" "conftest.in"
4921 cp "conftest.in" "conftest.nl"
4922 echo 'GREP' >> "conftest.nl"
4923 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4924 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4925 ac_count=`expr $ac_count + 1`
4926 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4927 # Best one so far, save it but keep looking for a better one
4928 ac_cv_path_GREP="$ac_path_GREP"
4929 ac_path_GREP_max=$ac_count
4931 # 10*(2^10) chars as input seems more than enough
4932 test $ac_count -gt 10 && break
4934 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4938 $ac_path_GREP_found && break 3
4948 GREP="$ac_cv_path_GREP"
4949 if test -z "$GREP"; then
4950 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4951 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4952 { (exit 1); exit 1; }; }
4956 ac_cv_path_GREP=$GREP
4961 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4962 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4963 GREP="$ac_cv_path_GREP"
4966 { echo "$as_me:$LINENO: checking for egrep" >&5
4967 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4968 if test "${ac_cv_path_EGREP+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4972 then ac_cv_path_EGREP="$GREP -E"
4974 # Extract the first word of "egrep" to use in msg output
4975 if test -z "$EGREP"; then
4976 set dummy egrep; ac_prog_name=$2
4977 if test "${ac_cv_path_EGREP+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 ac_path_EGREP_found=false
4981 # Loop through the user's path and test for each of PROGNAME-LIST
4982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4983 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4986 test -z "$as_dir" && as_dir=.
4987 for ac_prog in egrep; do
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4990 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4991 # Check for GNU ac_path_EGREP and select it if it is found.
4992 # Check for GNU $ac_path_EGREP
4993 case `"$ac_path_EGREP" --version 2>&1` in
4995 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4998 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5001 cat "conftest.in" "conftest.in" >"conftest.tmp"
5002 mv "conftest.tmp" "conftest.in"
5003 cp "conftest.in" "conftest.nl"
5004 echo 'EGREP' >> "conftest.nl"
5005 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5006 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5007 ac_count=`expr $ac_count + 1`
5008 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5009 # Best one so far, save it but keep looking for a better one
5010 ac_cv_path_EGREP="$ac_path_EGREP"
5011 ac_path_EGREP_max=$ac_count
5013 # 10*(2^10) chars as input seems more than enough
5014 test $ac_count -gt 10 && break
5016 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5020 $ac_path_EGREP_found && break 3
5030 EGREP="$ac_cv_path_EGREP"
5031 if test -z "$EGREP"; then
5032 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5033 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5034 { (exit 1); exit 1; }; }
5038 ac_cv_path_EGREP=$EGREP
5044 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5045 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5046 EGREP="$ac_cv_path_EGREP"
5050 # Check whether --with-gnu-ld was given.
5051 if test "${with_gnu_ld+set}" = set; then
5052 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5058 if test "$GCC" = yes; then
5059 # Check if gcc -print-prog-name=ld gives a path.
5060 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5061 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5064 # gcc leaves a trailing carriage return which upsets mingw
5065 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5067 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5070 # Accept absolute paths.
5072 re_direlt='/[^/][^/]*/\.\./'
5073 # Canonicalize the pathname of ld
5074 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5075 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5076 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5078 test -z "$LD" && LD="$ac_prog"
5081 # If it fails, then pretend we aren't using GCC.
5085 # If it is relative, then search for the first ld in PATH.
5089 elif test "$with_gnu_ld" = yes; then
5090 { echo "$as_me:$LINENO: checking for GNU ld" >&5
5091 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5093 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5094 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5096 if test "${lt_cv_path_LD+set}" = set; then
5097 echo $ECHO_N "(cached) $ECHO_C" >&6
5099 if test -z "$LD"; then
5100 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5101 for ac_dir in $PATH; do
5103 test -z "$ac_dir" && ac_dir=.
5104 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5105 lt_cv_path_LD="$ac_dir/$ac_prog"
5106 # Check to see if the program is GNU ld. I'd rather use --version,
5107 # but apparently some variants of GNU ld only accept -v.
5108 # Break only if it was the GNU/non-GNU ld that we prefer.
5109 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5110 *GNU* | *'with BFD'*)
5111 test "$with_gnu_ld" != no && break
5114 test "$with_gnu_ld" != yes && break
5121 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5126 if test -n "$LD"; then
5127 { echo "$as_me:$LINENO: result: $LD" >&5
5128 echo "${ECHO_T}$LD" >&6; }
5130 { echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6; }
5133 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5134 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5135 { (exit 1); exit 1; }; }
5136 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5137 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5138 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5142 case `$LD -v 2>&1 </dev/null` in
5143 *GNU* | *'with BFD'*)
5144 lt_cv_prog_gnu_ld=yes
5147 lt_cv_prog_gnu_ld=no
5151 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5152 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5153 with_gnu_ld=$lt_cv_prog_gnu_ld
5156 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5157 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5158 if test "${lt_cv_ld_reload_flag+set}" = set; then
5159 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 lt_cv_ld_reload_flag='-r'
5163 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5164 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5165 reload_flag=$lt_cv_ld_reload_flag
5166 case $reload_flag in
5168 *) reload_flag=" $reload_flag" ;;
5170 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5173 if test "$GCC" = yes; then
5174 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5176 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5181 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5182 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5183 if test "${lt_cv_path_NM+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 if test -n "$NM"; then
5187 # Let the user override the test.
5190 lt_nm_to_check="${ac_tool_prefix}nm"
5191 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5192 lt_nm_to_check="$lt_nm_to_check nm"
5194 for lt_tmp_nm in $lt_nm_to_check; do
5195 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5196 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5198 test -z "$ac_dir" && ac_dir=.
5199 tmp_nm="$ac_dir/$lt_tmp_nm"
5200 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5201 # Check to see if the nm accepts a BSD-compat flag.
5202 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5203 # nm: unknown option "B" ignored
5204 # Tru64's nm complains that /dev/null is an invalid object file
5205 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5206 */dev/null* | *'Invalid file or object type'*)
5207 lt_cv_path_NM="$tmp_nm -B"
5211 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5213 lt_cv_path_NM="$tmp_nm -p"
5217 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5218 continue # so that we can try to find one that supports BSD flags
5227 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5230 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5231 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5234 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5235 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5237 if test "$LN_S" = "ln -s"; then
5238 { echo "$as_me:$LINENO: result: yes" >&5
5239 echo "${ECHO_T}yes" >&6; }
5241 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5242 echo "${ECHO_T}no, using $LN_S" >&6; }
5245 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5246 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
5247 if test "${lt_cv_deplibs_check_method+set}" = set; then
5248 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 lt_cv_file_magic_cmd='$MAGIC_CMD'
5251 lt_cv_file_magic_test_file=
5252 lt_cv_deplibs_check_method='unknown'
5253 # Need to set the preceding variable on all platforms that support
5254 # interlibrary dependencies.
5255 # 'none' -- dependencies not supported.
5256 # `unknown' -- same as none, but documents that we really don't know.
5257 # 'pass_all' -- all dependencies passed with no checks.
5258 # 'test_compile' -- check by making test program.
5259 # 'file_magic [[regex]]' -- check by looking for files in library path
5260 # which responds to the $file_magic_cmd with a given extended regex.
5261 # If you have `file' or equivalent on your system and you're not sure
5262 # whether `pass_all' will *always* work, you probably want this one.
5266 lt_cv_deplibs_check_method=pass_all
5270 lt_cv_deplibs_check_method=pass_all
5274 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5275 lt_cv_file_magic_cmd='/usr/bin/file -L'
5276 lt_cv_file_magic_test_file=/shlib/libc.so
5280 # func_win32_libid is a shell function defined in ltmain.sh
5281 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5282 lt_cv_file_magic_cmd='func_win32_libid'
5286 # Base MSYS/MinGW do not provide the 'file' command needed by
5287 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5288 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5289 lt_cv_file_magic_cmd='$OBJDUMP -f'
5292 darwin* | rhapsody*)
5293 lt_cv_deplibs_check_method=pass_all
5296 freebsd* | dragonfly*)
5297 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5300 # Not sure whether the presence of OpenBSD here was a mistake.
5301 # Let's accept both of them until this is cleared up.
5302 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5303 lt_cv_file_magic_cmd=/usr/bin/file
5304 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5308 lt_cv_deplibs_check_method=pass_all
5313 lt_cv_deplibs_check_method=pass_all
5316 hpux10.20* | hpux11*)
5317 lt_cv_file_magic_cmd=/usr/bin/file
5320 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5321 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5324 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]'
5325 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5328 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5329 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5335 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5339 irix5* | irix6* | nonstopux*)
5341 *-32|*"-32 ") libmagic=32-bit;;
5342 *-n32|*"-n32 ") libmagic=N32;;
5343 *-64|*"-64 ") libmagic=64-bit;;
5344 *) libmagic=never-match;;
5346 lt_cv_deplibs_check_method=pass_all
5349 # This must be Linux ELF.
5350 linux* | k*bsd*-gnu)
5351 lt_cv_deplibs_check_method=pass_all
5354 netbsd* | netbsdelf*-gnu)
5355 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5358 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5363 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5364 lt_cv_file_magic_cmd=/usr/bin/file
5365 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5369 lt_cv_deplibs_check_method=unknown
5373 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5374 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5380 osf3* | osf4* | osf5*)
5381 lt_cv_deplibs_check_method=pass_all
5385 lt_cv_deplibs_check_method=pass_all
5389 case $host_vendor in
5391 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]'
5392 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5395 lt_cv_deplibs_check_method=pass_all
5398 lt_cv_file_magic_cmd='/bin/file'
5399 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5402 lt_cv_file_magic_cmd='/bin/file'
5403 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5404 lt_cv_file_magic_test_file=/lib/libc.so
5407 lt_cv_deplibs_check_method=pass_all
5410 lt_cv_deplibs_check_method=pass_all
5415 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5416 lt_cv_deplibs_check_method=pass_all
5421 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5422 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5423 file_magic_cmd=$lt_cv_file_magic_cmd
5424 deplibs_check_method=$lt_cv_deplibs_check_method
5425 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5430 # If no C compiler was specified, use CC.
5433 # If no C compiler flags were specified, use CFLAGS.
5434 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5436 # Allow CC to be a program name with arguments.
5440 # Check whether --enable-libtool-lock was given.
5441 if test "${enable_libtool_lock+set}" = set; then
5442 enableval=$enable_libtool_lock;
5445 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5447 # Some flags need to be propagated to the compiler or linker for good
5451 # Find out which ABI we are using.
5452 echo 'int i;' > conftest.$ac_ext
5453 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5454 (eval $ac_compile) 2>&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); }; then
5458 case `/usr/bin/file conftest.$ac_objext` in
5470 # Find out which ABI we are using.
5471 echo '#line 5471 "configure"' > conftest.$ac_ext
5472 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5473 (eval $ac_compile) 2>&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); }; then
5477 if test "$lt_cv_prog_gnu_ld" = yes; then
5478 case `/usr/bin/file conftest.$ac_objext` in
5480 LD="${LD-ld} -melf32bsmip"
5483 LD="${LD-ld} -melf32bmipn32"
5486 LD="${LD-ld} -melf64bmip"
5490 case `/usr/bin/file conftest.$ac_objext` in
5506 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5507 # Find out which ABI we are using.
5508 echo 'int i;' > conftest.$ac_ext
5509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5510 (eval $ac_compile) 2>&5
5512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5513 (exit $ac_status); }; then
5514 case `/usr/bin/file conftest.o` in
5518 LD="${LD-ld} -m elf_i386"
5520 ppc64-*linux*|powerpc64-*linux*)
5521 LD="${LD-ld} -m elf32ppclinux"
5524 LD="${LD-ld} -m elf_s390"
5527 LD="${LD-ld} -m elf32_sparc"
5534 LD="${LD-ld} -m elf_x86_64"
5536 ppc*-*linux*|powerpc*-*linux*)
5537 LD="${LD-ld} -m elf64ppc"
5540 LD="${LD-ld} -m elf64_s390"
5543 LD="${LD-ld} -m elf64_sparc"
5553 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5554 SAVE_CFLAGS="$CFLAGS"
5555 CFLAGS="$CFLAGS -belf"
5556 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5557 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5558 if test "${lt_cv_cc_needs_belf+set}" = set; then
5559 echo $ECHO_N "(cached) $ECHO_C" >&6
5562 ac_cpp='$CPP $CPPFLAGS'
5563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5567 cat >conftest.$ac_ext <<_ACEOF
5570 cat confdefs.h >>conftest.$ac_ext
5571 cat >>conftest.$ac_ext <<_ACEOF
5572 /* end confdefs.h. */
5582 rm -f conftest.$ac_objext conftest$ac_exeext
5583 if { (ac_try="$ac_link"
5585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5586 *) ac_try_echo=$ac_try;;
5588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5589 (eval "$ac_link") 2>conftest.er1
5591 grep -v '^ *+' conftest.er1 >conftest.err
5593 cat conftest.err >&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } && {
5596 test -z "$ac_c_werror_flag" ||
5597 test ! -s conftest.err
5598 } && test -s conftest$ac_exeext &&
5599 $as_test_x conftest$ac_exeext; then
5600 lt_cv_cc_needs_belf=yes
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5605 lt_cv_cc_needs_belf=no
5608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5609 conftest$ac_exeext conftest.$ac_ext
5611 ac_cpp='$CPP $CPPFLAGS'
5612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5617 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5618 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5619 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5620 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5621 CFLAGS="$SAVE_CFLAGS"
5625 # Find out which ABI we are using.
5626 echo 'int i;' > conftest.$ac_ext
5627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5628 (eval $ac_compile) 2>&5
5630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631 (exit $ac_status); }; then
5632 case `/usr/bin/file conftest.o` in
5634 case $lt_cv_prog_gnu_ld in
5635 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5636 *) LD="${LD-ld} -64" ;;
5647 need_locks="$enable_libtool_lock"
5651 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5652 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5653 if test "${ac_cv_header_stdc+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 cat >conftest.$ac_ext <<_ACEOF
5659 cat confdefs.h >>conftest.$ac_ext
5660 cat >>conftest.$ac_ext <<_ACEOF
5661 /* end confdefs.h. */
5675 rm -f conftest.$ac_objext
5676 if { (ac_try="$ac_compile"
5678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5679 *) ac_try_echo=$ac_try;;
5681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5682 (eval "$ac_compile") 2>conftest.er1
5684 grep -v '^ *+' conftest.er1 >conftest.err
5686 cat conftest.err >&5
5687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5688 (exit $ac_status); } && {
5689 test -z "$ac_c_werror_flag" ||
5690 test ! -s conftest.err
5691 } && test -s conftest.$ac_objext; then
5692 ac_cv_header_stdc=yes
5694 echo "$as_me: failed program was:" >&5
5695 sed 's/^/| /' conftest.$ac_ext >&5
5697 ac_cv_header_stdc=no
5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5702 if test $ac_cv_header_stdc = yes; then
5703 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5704 cat >conftest.$ac_ext <<_ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5714 $EGREP "memchr" >/dev/null 2>&1; then
5717 ac_cv_header_stdc=no
5723 if test $ac_cv_header_stdc = yes; then
5724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5725 cat >conftest.$ac_ext <<_ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5735 $EGREP "free" >/dev/null 2>&1; then
5738 ac_cv_header_stdc=no
5744 if test $ac_cv_header_stdc = yes; then
5745 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5746 if test "$cross_compiling" = yes; then
5749 cat >conftest.$ac_ext <<_ACEOF
5752 cat confdefs.h >>conftest.$ac_ext
5753 cat >>conftest.$ac_ext <<_ACEOF
5754 /* end confdefs.h. */
5757 #if ((' ' & 0x0FF) == 0x020)
5758 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5759 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5761 # define ISLOWER(c) \
5762 (('a' <= (c) && (c) <= 'i') \
5763 || ('j' <= (c) && (c) <= 'r') \
5764 || ('s' <= (c) && (c) <= 'z'))
5765 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5768 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5773 for (i = 0; i < 256; i++)
5774 if (XOR (islower (i), ISLOWER (i))
5775 || toupper (i) != TOUPPER (i))
5780 rm -f conftest$ac_exeext
5781 if { (ac_try="$ac_link"
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_link") 2>&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5791 { (case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_try") 2>&5
5798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5799 (exit $ac_status); }; }; then
5802 echo "$as_me: program exited with status $ac_status" >&5
5803 echo "$as_me: failed program was:" >&5
5804 sed 's/^/| /' conftest.$ac_ext >&5
5807 ac_cv_header_stdc=no
5809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5815 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5816 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5817 if test $ac_cv_header_stdc = yes; then
5819 cat >>confdefs.h <<\_ACEOF
5820 #define STDC_HEADERS 1
5825 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5835 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5836 inttypes.h stdint.h unistd.h
5838 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 cat >conftest.$ac_ext <<_ACEOF
5847 cat confdefs.h >>conftest.$ac_ext
5848 cat >>conftest.$ac_ext <<_ACEOF
5849 /* end confdefs.h. */
5850 $ac_includes_default
5852 #include <$ac_header>
5854 rm -f conftest.$ac_objext
5855 if { (ac_try="$ac_compile"
5857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858 *) ac_try_echo=$ac_try;;
5860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861 (eval "$ac_compile") 2>conftest.er1
5863 grep -v '^ *+' conftest.er1 >conftest.err
5865 cat conftest.err >&5
5866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867 (exit $ac_status); } && {
5868 test -z "$ac_c_werror_flag" ||
5869 test ! -s conftest.err
5870 } && test -s conftest.$ac_objext; then
5871 eval "$as_ac_Header=yes"
5873 echo "$as_me: failed program was:" >&5
5874 sed 's/^/| /' conftest.$ac_ext >&5
5876 eval "$as_ac_Header=no"
5879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5881 ac_res=`eval echo '${'$as_ac_Header'}'`
5882 { echo "$as_me:$LINENO: result: $ac_res" >&5
5883 echo "${ECHO_T}$ac_res" >&6; }
5884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5885 cat >>confdefs.h <<_ACEOF
5886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5895 for ac_header in dlfcn.h
5897 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5898 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5899 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5900 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5901 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5904 ac_res=`eval echo '${'$as_ac_Header'}'`
5905 { echo "$as_me:$LINENO: result: $ac_res" >&5
5906 echo "${ECHO_T}$ac_res" >&6; }
5908 # Is the header compilable?
5909 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5910 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5911 cat >conftest.$ac_ext <<_ACEOF
5914 cat confdefs.h >>conftest.$ac_ext
5915 cat >>conftest.$ac_ext <<_ACEOF
5916 /* end confdefs.h. */
5917 $ac_includes_default
5918 #include <$ac_header>
5920 rm -f conftest.$ac_objext
5921 if { (ac_try="$ac_compile"
5923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5924 *) ac_try_echo=$ac_try;;
5926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5927 (eval "$ac_compile") 2>conftest.er1
5929 grep -v '^ *+' conftest.er1 >conftest.err
5931 cat conftest.err >&5
5932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933 (exit $ac_status); } && {
5934 test -z "$ac_c_werror_flag" ||
5935 test ! -s conftest.err
5936 } && test -s conftest.$ac_objext; then
5937 ac_header_compiler=yes
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5942 ac_header_compiler=no
5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5946 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5947 echo "${ECHO_T}$ac_header_compiler" >&6; }
5949 # Is the header present?
5950 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5951 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5952 cat >conftest.$ac_ext <<_ACEOF
5955 cat confdefs.h >>conftest.$ac_ext
5956 cat >>conftest.$ac_ext <<_ACEOF
5957 /* end confdefs.h. */
5958 #include <$ac_header>
5960 if { (ac_try="$ac_cpp conftest.$ac_ext"
5962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5963 *) ac_try_echo=$ac_try;;
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5968 grep -v '^ *+' conftest.er1 >conftest.err
5970 cat conftest.err >&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } >/dev/null && {
5973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5974 test ! -s conftest.err
5976 ac_header_preproc=yes
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5981 ac_header_preproc=no
5984 rm -f conftest.err conftest.$ac_ext
5985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5986 echo "${ECHO_T}$ac_header_preproc" >&6; }
5988 # So? What about this header?
5989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5995 ac_header_preproc=yes
5998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 eval "$as_ac_Header=\$ac_header_preproc"
6020 ac_res=`eval echo '${'$as_ac_Header'}'`
6021 { echo "$as_me:$LINENO: result: $ac_res" >&5
6022 echo "${ECHO_T}$ac_res" >&6; }
6025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6026 cat >>confdefs.h <<_ACEOF
6027 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6035 ac_cpp='$CXXCPP $CPPFLAGS'
6036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6039 if test -z "$CXX"; then
6040 if test -n "$CCC"; then
6043 if test -n "$ac_tool_prefix"; then
6044 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6050 if test "${ac_cv_prog_CXX+set}" = set; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 if test -n "$CXX"; then
6054 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 test -z "$as_dir" && as_dir=.
6061 for ac_exec_ext in '' $ac_executable_extensions; do
6062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6063 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 if test -n "$CXX"; then
6075 { echo "$as_me:$LINENO: result: $CXX" >&5
6076 echo "${ECHO_T}$CXX" >&6; }
6078 { echo "$as_me:$LINENO: result: no" >&5
6079 echo "${ECHO_T}no" >&6; }
6083 test -n "$CXX" && break
6086 if test -z "$CXX"; then
6088 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6090 # Extract the first word of "$ac_prog", so it can be a program name with args.
6091 set dummy $ac_prog; ac_word=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 if test -n "$ac_ct_CXX"; then
6098 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6107 ac_cv_prog_ac_ct_CXX="$ac_prog"
6108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6118 if test -n "$ac_ct_CXX"; then
6119 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6120 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6122 { echo "$as_me:$LINENO: result: no" >&5
6123 echo "${ECHO_T}no" >&6; }
6127 test -n "$ac_ct_CXX" && break
6130 if test "x$ac_ct_CXX" = x; then
6133 case $cross_compiling:$ac_tool_warned in
6135 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6136 whose name does not start with the host triplet. If you think this
6137 configuration is useful to you, please write to autoconf@gnu.org." >&5
6138 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6139 whose name does not start with the host triplet. If you think this
6140 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6141 ac_tool_warned=yes ;;
6149 # Provide some information about the compiler.
6150 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6151 ac_compiler=`set X $ac_compile; echo $2`
6152 { (ac_try="$ac_compiler --version >&5"
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_compiler --version >&5") 2>&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); }
6162 { (ac_try="$ac_compiler -v >&5"
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compiler -v >&5") 2>&5
6170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); }
6172 { (ac_try="$ac_compiler -V >&5"
6174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6175 *) ac_try_echo=$ac_try;;
6177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6178 (eval "$ac_compiler -V >&5") 2>&5
6180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6181 (exit $ac_status); }
6183 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6184 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6185 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6186 echo $ECHO_N "(cached) $ECHO_C" >&6
6188 cat >conftest.$ac_ext <<_ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6206 rm -f conftest.$ac_objext
6207 if { (ac_try="$ac_compile"
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_compile") 2>conftest.er1
6215 grep -v '^ *+' conftest.er1 >conftest.err
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } && {
6220 test -z "$ac_cxx_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest.$ac_objext; then
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6235 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6236 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6237 GXX=`test $ac_compiler_gnu = yes && echo yes`
6238 ac_test_CXXFLAGS=${CXXFLAGS+set}
6239 ac_save_CXXFLAGS=$CXXFLAGS
6240 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6241 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6242 if test "${ac_cv_prog_cxx_g+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6245 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6246 ac_cxx_werror_flag=yes
6249 cat >conftest.$ac_ext <<_ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6264 rm -f conftest.$ac_objext
6265 if { (ac_try="$ac_compile"
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compile") 2>conftest.er1
6273 grep -v '^ *+' conftest.er1 >conftest.err
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } && {
6278 test -z "$ac_cxx_werror_flag" ||
6279 test ! -s conftest.err
6280 } && test -s conftest.$ac_objext; then
6281 ac_cv_prog_cxx_g=yes
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6287 cat >conftest.$ac_ext <<_ACEOF
6290 cat confdefs.h >>conftest.$ac_ext
6291 cat >>conftest.$ac_ext <<_ACEOF
6292 /* end confdefs.h. */
6302 rm -f conftest.$ac_objext
6303 if { (ac_try="$ac_compile"
6305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6306 *) ac_try_echo=$ac_try;;
6308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6309 (eval "$ac_compile") 2>conftest.er1
6311 grep -v '^ *+' conftest.er1 >conftest.err
6313 cat conftest.err >&5
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); } && {
6316 test -z "$ac_cxx_werror_flag" ||
6317 test ! -s conftest.err
6318 } && test -s conftest.$ac_objext; then
6321 echo "$as_me: failed program was:" >&5
6322 sed 's/^/| /' conftest.$ac_ext >&5
6324 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6326 cat >conftest.$ac_ext <<_ACEOF
6329 cat confdefs.h >>conftest.$ac_ext
6330 cat >>conftest.$ac_ext <<_ACEOF
6331 /* end confdefs.h. */
6341 rm -f conftest.$ac_objext
6342 if { (ac_try="$ac_compile"
6344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6345 *) ac_try_echo=$ac_try;;
6347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6348 (eval "$ac_compile") 2>conftest.er1
6350 grep -v '^ *+' conftest.er1 >conftest.err
6352 cat conftest.err >&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); } && {
6355 test -z "$ac_cxx_werror_flag" ||
6356 test ! -s conftest.err
6357 } && test -s conftest.$ac_objext; then
6358 ac_cv_prog_cxx_g=yes
6360 echo "$as_me: failed program was:" >&5
6361 sed 's/^/| /' conftest.$ac_ext >&5
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6373 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6376 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6377 if test "$ac_test_CXXFLAGS" = set; then
6378 CXXFLAGS=$ac_save_CXXFLAGS
6379 elif test $ac_cv_prog_cxx_g = yes; then
6380 if test "$GXX" = yes; then
6386 if test "$GXX" = yes; then
6393 ac_cpp='$CXXCPP $CPPFLAGS'
6394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6398 depcc="$CXX" am_compiler_list=
6400 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6401 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
6402 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6403 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6406 # We make a subdir and do the tests there. Otherwise we can end up
6407 # making bogus files that we don't know about and never remove. For
6408 # instance it was reported that on HP-UX the gcc test will end up
6409 # making a dummy file named `D' -- because `-MD' means `put the output
6412 # Copy depcomp to subdir because otherwise we won't find it if we're
6413 # using a relative directory.
6414 cp "$am_depcomp" conftest.dir
6416 # We will build objects and dependencies in a subdirectory because
6417 # it helps to detect inapplicable dependency modes. For instance
6418 # both Tru64's cc and ICC support -MD to output dependencies as a
6419 # side effect of compilation, but ICC will put the dependencies in
6420 # the current directory while Tru64 will put them in the object
6424 am_cv_CXX_dependencies_compiler_type=none
6425 if test "$am_compiler_list" = ""; then
6426 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6428 for depmode in $am_compiler_list; do
6429 # Setup a source with many dependencies, because some compilers
6430 # like to wrap large dependency lists on column 80 (with \), and
6431 # we should not choose a depcomp mode which is confused by this.
6433 # We need to recreate these files for each test, as the compiler may
6434 # overwrite some of them when testing with obscure command lines.
6435 # This happens at least with the AIX C compiler.
6437 for i in 1 2 3 4 5 6; do
6438 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6439 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6440 # Solaris 8's {/usr,}/bin/sh.
6441 touch sub/conftst$i.h
6443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6447 # after this tag, mechanisms are not by side-effect, so they'll
6448 # only be used when explicitly requested
6449 if test "x$enable_dependency_tracking" = xyes; then
6457 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6458 # mode. It turns out that the SunPro C++ compiler does not properly
6459 # handle `-M -o', and we need to detect this.
6460 if depmode=$depmode \
6461 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6462 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6463 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6464 >/dev/null 2>conftest.err &&
6465 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6466 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6467 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6468 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6469 # icc doesn't choke on unknown options, it will just issue warnings
6470 # or remarks (even with -Werror). So we grep stderr for any message
6471 # that says an option was ignored or not supported.
6472 # When given -MP, icc 7.0 and 7.1 complain thusly:
6473 # icc: Command line warning: ignoring option '-M'; no argument required
6474 # The diagnosis changed in icc 8.0:
6475 # icc: Command line remark: option '-MP' not supported
6476 if (grep 'ignoring option' conftest.err ||
6477 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6478 am_cv_CXX_dependencies_compiler_type=$depmode
6487 am_cv_CXX_dependencies_compiler_type=none
6491 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6492 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
6493 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6496 test "x$enable_dependency_tracking" != xno \
6497 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6498 am__fastdepCXX_TRUE=
6499 am__fastdepCXX_FALSE='#'
6501 am__fastdepCXX_TRUE='#'
6502 am__fastdepCXX_FALSE=
6508 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6509 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6510 (test "X$CXX" != "Xg++"))) ; then
6512 ac_cpp='$CXXCPP $CPPFLAGS'
6513 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6514 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6515 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6516 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6517 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6518 if test -z "$CXXCPP"; then
6519 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 # Double quotes because CXXCPP needs to be expanded
6523 for CXXCPP in "$CXX -E" "/lib/cpp"
6526 for ac_cxx_preproc_warn_flag in '' yes
6528 # Use a header file that comes with gcc, so configuring glibc
6529 # with a fresh cross-compiler works.
6530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6531 # <limits.h> exists even on freestanding compilers.
6532 # On the NeXT, cc -E runs the code through the compiler's parser,
6533 # not just through cpp. "Syntax error" is here to catch this case.
6534 cat >conftest.$ac_ext <<_ACEOF
6537 cat confdefs.h >>conftest.$ac_ext
6538 cat >>conftest.$ac_ext <<_ACEOF
6539 /* end confdefs.h. */
6541 # include <limits.h>
6543 # include <assert.h>
6547 if { (ac_try="$ac_cpp conftest.$ac_ext"
6549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6555 grep -v '^ *+' conftest.er1 >conftest.err
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } >/dev/null && {
6560 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6561 test ! -s conftest.err
6565 echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6568 # Broken: fails on valid input.
6572 rm -f conftest.err conftest.$ac_ext
6574 # OK, works on sane cases. Now check whether nonexistent headers
6575 # can be detected and how.
6576 cat >conftest.$ac_ext <<_ACEOF
6579 cat confdefs.h >>conftest.$ac_ext
6580 cat >>conftest.$ac_ext <<_ACEOF
6581 /* end confdefs.h. */
6582 #include <ac_nonexistent.h>
6584 if { (ac_try="$ac_cpp conftest.$ac_ext"
6586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6592 grep -v '^ *+' conftest.er1 >conftest.err
6594 cat conftest.err >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } >/dev/null && {
6597 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6598 test ! -s conftest.err
6600 # Broken: success on invalid input.
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 # Passes both tests.
6611 rm -f conftest.err conftest.$ac_ext
6614 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6615 rm -f conftest.err conftest.$ac_ext
6616 if $ac_preproc_ok; then
6621 ac_cv_prog_CXXCPP=$CXXCPP
6624 CXXCPP=$ac_cv_prog_CXXCPP
6626 ac_cv_prog_CXXCPP=$CXXCPP
6628 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6629 echo "${ECHO_T}$CXXCPP" >&6; }
6631 for ac_cxx_preproc_warn_flag in '' yes
6633 # Use a header file that comes with gcc, so configuring glibc
6634 # with a fresh cross-compiler works.
6635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6636 # <limits.h> exists even on freestanding compilers.
6637 # On the NeXT, cc -E runs the code through the compiler's parser,
6638 # not just through cpp. "Syntax error" is here to catch this case.
6639 cat >conftest.$ac_ext <<_ACEOF
6642 cat confdefs.h >>conftest.$ac_ext
6643 cat >>conftest.$ac_ext <<_ACEOF
6644 /* end confdefs.h. */
6646 # include <limits.h>
6648 # include <assert.h>
6652 if { (ac_try="$ac_cpp conftest.$ac_ext"
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6660 grep -v '^ *+' conftest.er1 >conftest.err
6662 cat conftest.err >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } >/dev/null && {
6665 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6666 test ! -s conftest.err
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 # Broken: fails on valid input.
6677 rm -f conftest.err conftest.$ac_ext
6679 # OK, works on sane cases. Now check whether nonexistent headers
6680 # can be detected and how.
6681 cat >conftest.$ac_ext <<_ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 #include <ac_nonexistent.h>
6689 if { (ac_try="$ac_cpp conftest.$ac_ext"
6691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6697 grep -v '^ *+' conftest.er1 >conftest.err
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } >/dev/null && {
6702 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6703 test ! -s conftest.err
6705 # Broken: success on invalid input.
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.$ac_ext >&5
6711 # Passes both tests.
6716 rm -f conftest.err conftest.$ac_ext
6719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6720 rm -f conftest.err conftest.$ac_ext
6721 if $ac_preproc_ok; then
6724 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6725 See \`config.log' for more details." >&5
6726 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6727 See \`config.log' for more details." >&2;}
6728 { (exit 1); exit 1; }; }
6732 ac_cpp='$CXXCPP $CPPFLAGS'
6733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6741 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6742 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6743 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6744 if test -n "$ac_tool_prefix"; then
6745 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
6747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6751 if test "${ac_cv_prog_F77+set}" = set; then
6752 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 if test -n "$F77"; then
6755 ac_cv_prog_F77="$F77" # Let the user override the test.
6757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6761 test -z "$as_dir" && as_dir=.
6762 for ac_exec_ext in '' $ac_executable_extensions; do
6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6764 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775 if test -n "$F77"; then
6776 { echo "$as_me:$LINENO: result: $F77" >&5
6777 echo "${ECHO_T}$F77" >&6; }
6779 { echo "$as_me:$LINENO: result: no" >&5
6780 echo "${ECHO_T}no" >&6; }
6784 test -n "$F77" && break
6787 if test -z "$F77"; then
6789 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
6791 # Extract the first word of "$ac_prog", so it can be a program name with args.
6792 set dummy $ac_prog; ac_word=$2
6793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6795 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6798 if test -n "$ac_ct_F77"; then
6799 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6805 test -z "$as_dir" && as_dir=.
6806 for ac_exec_ext in '' $ac_executable_extensions; do
6807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6808 ac_cv_prog_ac_ct_F77="$ac_prog"
6809 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6818 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6819 if test -n "$ac_ct_F77"; then
6820 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6821 echo "${ECHO_T}$ac_ct_F77" >&6; }
6823 { echo "$as_me:$LINENO: result: no" >&5
6824 echo "${ECHO_T}no" >&6; }
6828 test -n "$ac_ct_F77" && break
6831 if test "x$ac_ct_F77" = x; then
6834 case $cross_compiling:$ac_tool_warned in
6836 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6837 whose name does not start with the host triplet. If you think this
6838 configuration is useful to you, please write to autoconf@gnu.org." >&5
6839 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6840 whose name does not start with the host triplet. If you think this
6841 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6842 ac_tool_warned=yes ;;
6849 # Provide some information about the compiler.
6850 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6851 ac_compiler=`set X $ac_compile; echo $2`
6852 { (ac_try="$ac_compiler --version >&5"
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_compiler --version >&5") 2>&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }
6862 { (ac_try="$ac_compiler -v >&5"
6864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6865 *) ac_try_echo=$ac_try;;
6867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868 (eval "$ac_compiler -v >&5") 2>&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }
6872 { (ac_try="$ac_compiler -V >&5"
6874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6875 *) ac_try_echo=$ac_try;;
6877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878 (eval "$ac_compiler -V >&5") 2>&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }
6884 # If we don't use `.F' as extension, the preprocessor is not run on the
6885 # input file. (Note that this only needs to work for GNU compilers.)
6888 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6889 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6890 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6891 echo $ECHO_N "(cached) $ECHO_C" >&6
6893 cat >conftest.$ac_ext <<_ACEOF
6901 rm -f conftest.$ac_objext
6902 if { (ac_try="$ac_compile"
6904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6905 *) ac_try_echo=$ac_try;;
6907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6908 (eval "$ac_compile") 2>conftest.er1
6910 grep -v '^ *+' conftest.er1 >conftest.err
6912 cat conftest.err >&5
6913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6914 (exit $ac_status); } && {
6915 test -z "$ac_f77_werror_flag" ||
6916 test ! -s conftest.err
6917 } && test -s conftest.$ac_objext; then
6920 echo "$as_me: failed program was:" >&5
6921 sed 's/^/| /' conftest.$ac_ext >&5
6926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6930 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6931 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6933 ac_test_FFLAGS=${FFLAGS+set}
6934 ac_save_FFLAGS=$FFLAGS
6936 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6937 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6938 if test "${ac_cv_prog_f77_g+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 cat >conftest.$ac_ext <<_ACEOF
6947 rm -f conftest.$ac_objext
6948 if { (ac_try="$ac_compile"
6950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6951 *) ac_try_echo=$ac_try;;
6953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6954 (eval "$ac_compile") 2>conftest.er1
6956 grep -v '^ *+' conftest.er1 >conftest.err
6958 cat conftest.err >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); } && {
6961 test -z "$ac_f77_werror_flag" ||
6962 test ! -s conftest.err
6963 } && test -s conftest.$ac_objext; then
6964 ac_cv_prog_f77_g=yes
6966 echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6975 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6976 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6977 if test "$ac_test_FFLAGS" = set; then
6978 FFLAGS=$ac_save_FFLAGS
6979 elif test $ac_cv_prog_f77_g = yes; then
6980 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6986 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6993 G77=`test $ac_compiler_gnu = yes && echo yes`
6995 ac_cpp='$CPP $CPPFLAGS'
6996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7002 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7004 # find the maximum length of command line arguments
7005 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7006 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7007 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7015 # On DJGPP, this test can blow up pretty badly due to problems in libc
7016 # (any single argument exceeding 2000 bytes causes a buffer overrun
7017 # during glob expansion). Even if it were fixed, the result of this
7018 # check would be larger than it should be.
7019 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7023 # Under GNU Hurd, this test is not required because there is
7024 # no limit to the length of command line arguments.
7025 # Libtool will interpret -1 as no limit whatsoever
7026 lt_cv_sys_max_cmd_len=-1;
7030 # On Win9x/ME, this test blows up -- it succeeds, but takes
7031 # about 5 minutes as the teststring grows exponentially.
7032 # Worse, since 9x/ME are not pre-emptively multitasking,
7033 # you end up with a "frozen" computer, even though with patience
7034 # the test eventually succeeds (with a max line length of 256k).
7035 # Instead, let's just punt: use the minimum linelength reported by
7036 # all of the supported platforms: 8192 (on NT/2K/XP).
7037 lt_cv_sys_max_cmd_len=8192;
7041 # On AmigaOS with pdksh, this test takes hours, literally.
7042 # So we just punt and use a minimum line length of 8192.
7043 lt_cv_sys_max_cmd_len=8192;
7046 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7047 # This has been around since 386BSD, at least. Likely further.
7048 if test -x /sbin/sysctl; then
7049 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7050 elif test -x /usr/sbin/sysctl; then
7051 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7053 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7055 # And add a safety zone
7056 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7057 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7061 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7062 lt_cv_sys_max_cmd_len=196608
7066 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7067 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7068 # nice to cause kernel panics so lets avoid the loop below.
7069 # First set a reasonable default.
7070 lt_cv_sys_max_cmd_len=16384
7072 if test -x /sbin/sysconfig; then
7073 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7074 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7079 lt_cv_sys_max_cmd_len=102400
7081 sysv5* | sco5v6* | sysv4.2uw2*)
7082 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7083 if test -n "$kargmax"; then
7084 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7086 lt_cv_sys_max_cmd_len=32768
7090 # If test is not a shell built-in, we'll probably end up computing a
7091 # maximum length that is only half of the actual maximum length, but
7093 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7094 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7095 = "XX$teststring") >/dev/null 2>&1 &&
7096 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7097 lt_cv_sys_max_cmd_len=$new_result &&
7098 test $i != 17 # 1/2 MB should be enough
7101 teststring=$teststring$teststring
7104 # Add a significant safety factor because C++ compilers can tack on massive
7105 # amounts of additional arguments before passing them to the linker.
7106 # It appears as though 1/2 is a usable value.
7107 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7113 if test -n $lt_cv_sys_max_cmd_len ; then
7114 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7115 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7117 { echo "$as_me:$LINENO: result: none" >&5
7118 echo "${ECHO_T}none" >&6; }
7124 # Check for command to grab the raw symbol name followed by C symbol from nm.
7125 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7126 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7127 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 # These are sane defaults that work on at least a few old systems.
7132 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7134 # Character class describing NM global symbol codes.
7135 symcode='[BCDEGRST]'
7137 # Regexp to match symbols that can be accessed directly from C.
7138 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7140 # Transform an extracted symbol line into a proper C declaration
7141 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7143 # Transform an extracted symbol line into symbol name and symbol address
7144 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'"
7146 # Define system-specific variables.
7151 cygwin* | mingw* | pw32*)
7152 symcode='[ABCDGISTW]'
7154 hpux*) # Its linker distinguishes data from code symbols
7155 if test "$host_cpu" = ia64; then
7156 symcode='[ABCDEGRST]'
7158 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7159 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'"
7161 linux* | k*bsd*-gnu)
7162 if test "$host_cpu" = ia64; then
7163 symcode='[ABCDGIRSTW]'
7164 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7165 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'"
7169 symcode='[BCDEGRST]'
7172 symcode='[BCDEGQRST]'
7183 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7191 # Handle CRLF in mingw tool chain
7195 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7199 # If we're using GNU nm, then use its standard symbol codes.
7200 case `$NM -V 2>&1` in
7201 *GNU* | *'with BFD'*)
7202 symcode='[ABCDGIRSTW]' ;;
7205 # Try without a prefix undercore, then with it.
7206 for ac_symprfx in "" "_"; do
7208 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7209 symxfrm="\\1 $ac_symprfx\\2 \\2"
7211 # Write the raw and C identifiers.
7212 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7214 # Check to see that the pipe works correctly.
7218 cat > conftest.$ac_ext <<EOF
7223 void nm_test_func(){}
7227 int main(){nm_test_var='a';nm_test_func();return(0);}
7230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7231 (eval $ac_compile) 2>&5
7233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7234 (exit $ac_status); }; then
7235 # Now try to grab the symbols.
7237 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7238 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } && test -s "$nlist"; then
7242 # Try sorting and uniquifying the output.
7243 if sort "$nlist" | uniq > "$nlist"T; then
7244 mv -f "$nlist"T "$nlist"
7249 # Make sure that we snagged all the symbols we need.
7250 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7251 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7252 cat <<EOF > conftest.$ac_ext
7258 # Now generate the symbol file.
7259 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7261 cat <<EOF >> conftest.$ac_ext
7262 #if defined (__STDC__) && __STDC__
7263 # define lt_ptr_t void *
7265 # define lt_ptr_t char *
7269 /* The mapping between symbol names and symbols. */
7274 lt_preloaded_symbols[] =
7277 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7278 cat <<\EOF >> conftest.$ac_ext
7286 # Now try linking the two files.
7287 mv conftest.$ac_objext conftstm.$ac_objext
7288 lt_save_LIBS="$LIBS"
7289 lt_save_CFLAGS="$CFLAGS"
7290 LIBS="conftstm.$ac_objext"
7291 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7293 (eval $ac_link) 2>&5
7295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7296 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7299 LIBS="$lt_save_LIBS"
7300 CFLAGS="$lt_save_CFLAGS"
7302 echo "cannot find nm_test_func in $nlist" >&5
7305 echo "cannot find nm_test_var in $nlist" >&5
7308 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7311 echo "$progname: failed program was:" >&5
7312 cat conftest.$ac_ext >&5
7314 rm -f conftest* conftst*
7316 # Do not use the global_symbol_pipe unless it works.
7317 if test "$pipe_works" = yes; then
7320 lt_cv_sys_global_symbol_pipe=
7326 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7327 lt_cv_sys_global_symbol_to_cdecl=
7329 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7330 { echo "$as_me:$LINENO: result: failed" >&5
7331 echo "${ECHO_T}failed" >&6; }
7333 { echo "$as_me:$LINENO: result: ok" >&5
7334 echo "${ECHO_T}ok" >&6; }
7337 { echo "$as_me:$LINENO: checking for objdir" >&5
7338 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7339 if test "${lt_cv_objdir+set}" = set; then
7340 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 rm -f .libs 2>/dev/null
7343 mkdir .libs 2>/dev/null
7344 if test -d .libs; then
7347 # MS-DOS does not allow filenames that begin with a dot.
7350 rmdir .libs 2>/dev/null
7352 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7353 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7354 objdir=$lt_cv_objdir
7362 # AIX sometimes has problems with the GCC collect2 program. For some
7363 # reason, if we set the COLLECT_NAMES environment variable, the problems
7364 # vanish in a puff of smoke.
7365 if test "X${COLLECT_NAMES+set}" != Xset; then
7367 export COLLECT_NAMES
7372 # Sed substitution that helps us do robust quoting. It backslashifies
7373 # metacharacters that are still active within double-quoted strings.
7374 Xsed='sed -e 1s/^X//'
7375 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7377 # Same as above, but do not quote variable references.
7378 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7380 # Sed substitution to delay expansion of an escaped shell variable in a
7381 # double_quote_subst'ed string.
7382 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7384 # Sed substitution to avoid accidental globbing in evaled expressions
7385 no_glob_subst='s/\*/\\\*/g'
7391 default_ofile=libtool
7392 can_build_shared=yes
7394 # All known linkers require a `.a' archive for static linking (except MSVC,
7395 # which needs '.lib').
7397 ltmain="$ac_aux_dir/ltmain.sh"
7398 ofile="$default_ofile"
7399 with_gnu_ld="$lt_cv_prog_gnu_ld"
7401 if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}ar; ac_word=$2
7404 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7406 if test "${ac_cv_prog_AR+set}" = set; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 if test -n "$AR"; then
7410 ac_cv_prog_AR="$AR" # Let the user override the test.
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7419 ac_cv_prog_AR="${ac_tool_prefix}ar"
7420 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7430 if test -n "$AR"; then
7431 { echo "$as_me:$LINENO: result: $AR" >&5
7432 echo "${ECHO_T}$AR" >&6; }
7434 { echo "$as_me:$LINENO: result: no" >&5
7435 echo "${ECHO_T}no" >&6; }
7440 if test -z "$ac_cv_prog_AR"; then
7442 # Extract the first word of "ar", so it can be a program name with args.
7443 set dummy ar; ac_word=$2
7444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7446 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7447 echo $ECHO_N "(cached) $ECHO_C" >&6
7449 if test -n "$ac_ct_AR"; then
7450 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7459 ac_cv_prog_ac_ct_AR="ar"
7460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7469 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7470 if test -n "$ac_ct_AR"; then
7471 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7472 echo "${ECHO_T}$ac_ct_AR" >&6; }
7474 { echo "$as_me:$LINENO: result: no" >&5
7475 echo "${ECHO_T}no" >&6; }
7478 if test "x$ac_ct_AR" = x; then
7481 case $cross_compiling:$ac_tool_warned in
7483 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7484 whose name does not start with the host triplet. If you think this
7485 configuration is useful to you, please write to autoconf@gnu.org." >&5
7486 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7487 whose name does not start with the host triplet. If you think this
7488 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7489 ac_tool_warned=yes ;;
7497 if test -n "$ac_tool_prefix"; then
7498 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7499 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7500 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7501 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7502 if test "${ac_cv_prog_RANLIB+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 if test -n "$RANLIB"; then
7506 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7512 test -z "$as_dir" && as_dir=.
7513 for ac_exec_ext in '' $ac_executable_extensions; do
7514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7515 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7516 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7525 RANLIB=$ac_cv_prog_RANLIB
7526 if test -n "$RANLIB"; then
7527 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7528 echo "${ECHO_T}$RANLIB" >&6; }
7530 { echo "$as_me:$LINENO: result: no" >&5
7531 echo "${ECHO_T}no" >&6; }
7536 if test -z "$ac_cv_prog_RANLIB"; then
7537 ac_ct_RANLIB=$RANLIB
7538 # Extract the first word of "ranlib", so it can be a program name with args.
7539 set dummy ranlib; ac_word=$2
7540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7542 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7543 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 if test -n "$ac_ct_RANLIB"; then
7546 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_prog_ac_ct_RANLIB="ranlib"
7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7566 if test -n "$ac_ct_RANLIB"; then
7567 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7568 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7570 { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7574 if test "x$ac_ct_RANLIB" = x; then
7577 case $cross_compiling:$ac_tool_warned in
7579 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7580 whose name does not start with the host triplet. If you think this
7581 configuration is useful to you, please write to autoconf@gnu.org." >&5
7582 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7583 whose name does not start with the host triplet. If you think this
7584 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7585 ac_tool_warned=yes ;;
7587 RANLIB=$ac_ct_RANLIB
7590 RANLIB="$ac_cv_prog_RANLIB"
7593 if test -n "$ac_tool_prefix"; then
7594 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7595 set dummy ${ac_tool_prefix}strip; ac_word=$2
7596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7598 if test "${ac_cv_prog_STRIP+set}" = set; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 if test -n "$STRIP"; then
7602 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 STRIP=$ac_cv_prog_STRIP
7622 if test -n "$STRIP"; then
7623 { echo "$as_me:$LINENO: result: $STRIP" >&5
7624 echo "${ECHO_T}$STRIP" >&6; }
7626 { echo "$as_me:$LINENO: result: no" >&5
7627 echo "${ECHO_T}no" >&6; }
7632 if test -z "$ac_cv_prog_STRIP"; then
7634 # Extract the first word of "strip", so it can be a program name with args.
7635 set dummy strip; ac_word=$2
7636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7638 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 if test -n "$ac_ct_STRIP"; then
7642 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7648 test -z "$as_dir" && as_dir=.
7649 for ac_exec_ext in '' $ac_executable_extensions; do
7650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7651 ac_cv_prog_ac_ct_STRIP="strip"
7652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7662 if test -n "$ac_ct_STRIP"; then
7663 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7664 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7666 { echo "$as_me:$LINENO: result: no" >&5
7667 echo "${ECHO_T}no" >&6; }
7670 if test "x$ac_ct_STRIP" = x; then
7673 case $cross_compiling:$ac_tool_warned in
7675 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7676 whose name does not start with the host triplet. If you think this
7677 configuration is useful to you, please write to autoconf@gnu.org." >&5
7678 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7679 whose name does not start with the host triplet. If you think this
7680 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7681 ac_tool_warned=yes ;;
7686 STRIP="$ac_cv_prog_STRIP"
7691 old_CFLAGS="$CFLAGS"
7693 # Set sane defaults for various variables
7694 test -z "$AR" && AR=ar
7695 test -z "$AR_FLAGS" && AR_FLAGS=cru
7696 test -z "$AS" && AS=as
7697 test -z "$CC" && CC=cc
7698 test -z "$LTCC" && LTCC=$CC
7699 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7700 test -z "$DLLTOOL" && DLLTOOL=dlltool
7701 test -z "$LD" && LD=ld
7702 test -z "$LN_S" && LN_S="ln -s"
7703 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7704 test -z "$NM" && NM=nm
7705 test -z "$SED" && SED=sed
7706 test -z "$OBJDUMP" && OBJDUMP=objdump
7707 test -z "$RANLIB" && RANLIB=:
7708 test -z "$STRIP" && STRIP=:
7709 test -z "$ac_objext" && ac_objext=o
7711 # Determine commands to create old-style static archives.
7712 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7713 old_postinstall_cmds='chmod 644 $oldlib'
7714 old_postuninstall_cmds=
7716 if test -n "$RANLIB"; then
7719 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7722 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7725 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7728 for cc_temp in $compiler""; do
7730 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7731 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7736 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7739 # Only perform the check for file, if the check method requires it
7740 case $deplibs_check_method in
7742 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7743 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7744 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7745 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7746 echo $ECHO_N "(cached) $ECHO_C" >&6
7750 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7753 lt_save_MAGIC_CMD="$MAGIC_CMD"
7754 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7755 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7756 for ac_dir in $ac_dummy; do
7758 test -z "$ac_dir" && ac_dir=.
7759 if test -f $ac_dir/${ac_tool_prefix}file; then
7760 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7761 if test -n "$file_magic_test_file"; then
7762 case $deplibs_check_method in
7764 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7765 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7766 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7767 $EGREP "$file_magic_regex" > /dev/null; then
7772 *** Warning: the command libtool uses to detect shared libraries,
7773 *** $file_magic_cmd, produces output that libtool cannot recognize.
7774 *** The result is that libtool may fail to recognize shared libraries
7775 *** as such. This will affect the creation of libtool libraries that
7776 *** depend on shared libraries, but programs linked with such libtool
7777 *** libraries will work regardless of this problem. Nevertheless, you
7778 *** may want to report the problem to your system manager and/or to
7779 *** bug-libtool@gnu.org
7789 MAGIC_CMD="$lt_save_MAGIC_CMD"
7794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7795 if test -n "$MAGIC_CMD"; then
7796 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7797 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7799 { echo "$as_me:$LINENO: result: no" >&5
7800 echo "${ECHO_T}no" >&6; }
7803 if test -z "$lt_cv_path_MAGIC_CMD"; then
7804 if test -n "$ac_tool_prefix"; then
7805 { echo "$as_me:$LINENO: checking for file" >&5
7806 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7807 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7808 echo $ECHO_N "(cached) $ECHO_C" >&6
7812 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7815 lt_save_MAGIC_CMD="$MAGIC_CMD"
7816 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7817 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7818 for ac_dir in $ac_dummy; do
7820 test -z "$ac_dir" && ac_dir=.
7821 if test -f $ac_dir/file; then
7822 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7823 if test -n "$file_magic_test_file"; then
7824 case $deplibs_check_method in
7826 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7827 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7828 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7829 $EGREP "$file_magic_regex" > /dev/null; then
7834 *** Warning: the command libtool uses to detect shared libraries,
7835 *** $file_magic_cmd, produces output that libtool cannot recognize.
7836 *** The result is that libtool may fail to recognize shared libraries
7837 *** as such. This will affect the creation of libtool libraries that
7838 *** depend on shared libraries, but programs linked with such libtool
7839 *** libraries will work regardless of this problem. Nevertheless, you
7840 *** may want to report the problem to your system manager and/or to
7841 *** bug-libtool@gnu.org
7851 MAGIC_CMD="$lt_save_MAGIC_CMD"
7856 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7857 if test -n "$MAGIC_CMD"; then
7858 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7859 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7861 { echo "$as_me:$LINENO: result: no" >&5
7862 echo "${ECHO_T}no" >&6; }
7877 # Check whether --enable-libtool-lock was given.
7878 if test "${enable_libtool_lock+set}" = set; then
7879 enableval=$enable_libtool_lock;
7882 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7885 # Check whether --with-pic was given.
7886 if test "${with_pic+set}" = set; then
7887 withval=$with_pic; pic_mode="$withval"
7892 test -z "$pic_mode" && pic_mode=default
7894 # Use C for the default configuration in the libtool script
7898 ac_cpp='$CPP $CPPFLAGS'
7899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7904 # Source file extension for C test sources.
7907 # Object file extension for compiled C test sources.
7911 # Code to be used in simple compile tests
7912 lt_simple_compile_test_code="int some_variable = 0;\n"
7914 # Code to be used in simple link tests
7915 lt_simple_link_test_code='int main(){return(0);}\n'
7918 # If no C compiler was specified, use CC.
7921 # If no C compiler flags were specified, use CFLAGS.
7922 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7924 # Allow CC to be a program name with arguments.
7928 # save warnings/boilerplate of simple test code
7929 ac_outfile=conftest.$ac_objext
7930 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7931 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7932 _lt_compiler_boilerplate=`cat conftest.err`
7935 ac_outfile=conftest.$ac_objext
7936 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7937 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7938 _lt_linker_boilerplate=`cat conftest.err`
7943 lt_prog_compiler_no_builtin_flag=
7945 if test "$GCC" = yes; then
7946 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7949 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7950 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7951 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 lt_cv_prog_compiler_rtti_exceptions=no
7955 ac_outfile=conftest.$ac_objext
7956 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7957 lt_compiler_flag="-fno-rtti -fno-exceptions"
7958 # Insert the option either (1) after the last *FLAGS variable, or
7959 # (2) before a word containing "conftest.", or (3) at the end.
7960 # Note that $ac_compile itself does not contain backslashes and begins
7961 # with a dollar sign (not a hyphen), so the echo should work correctly.
7962 # The option is referenced via a variable to avoid confusing sed.
7963 lt_compile=`echo "$ac_compile" | $SED \
7964 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7965 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7966 -e 's:$: $lt_compiler_flag:'`
7967 (eval echo "\"\$as_me:7967: $lt_compile\"" >&5)
7968 (eval "$lt_compile" 2>conftest.err)
7970 cat conftest.err >&5
7971 echo "$as_me:7971: \$? = $ac_status" >&5
7972 if (exit $ac_status) && test -s "$ac_outfile"; then
7973 # The compiler can only warn and ignore the option if not recognized
7974 # So say no if there are warnings other than the usual output.
7975 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7976 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7977 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7978 lt_cv_prog_compiler_rtti_exceptions=yes
7984 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7985 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7987 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7988 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7995 lt_prog_compiler_wl=
7996 lt_prog_compiler_pic=
7997 lt_prog_compiler_static=
7999 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8000 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8002 if test "$GCC" = yes; then
8003 lt_prog_compiler_wl='-Wl,'
8004 lt_prog_compiler_static='-static'
8008 # All AIX code is PIC.
8009 if test "$host_cpu" = ia64; then
8010 # AIX 5 now supports IA64 processor
8011 lt_prog_compiler_static='-Bstatic'
8016 # FIXME: we need at least 68020 code to build shared libraries, but
8017 # adding the `-m68020' flag to GCC prevents building anything better,
8019 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8022 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8023 # PIC is the default for these OSes.
8026 mingw* | pw32* | os2*)
8027 # This hack is so that the source file can tell whether it is being
8028 # built for inclusion in a dll (and should export symbols for example).
8029 lt_prog_compiler_pic='-DDLL_EXPORT'
8032 darwin* | rhapsody*)
8033 # PIC is the default on this platform
8034 # Common symbols not allowed in MH_DYLIB files
8035 lt_prog_compiler_pic='-fno-common'
8039 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8040 # Instead, we relocate shared libraries at runtime.
8044 # Just because we use GCC doesn't mean we suddenly get shared libraries
8045 # on systems that don't support them.
8046 lt_prog_compiler_can_build_shared=no
8051 if test -d /usr/nec; then
8052 lt_prog_compiler_pic=-Kconform_pic
8057 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8064 lt_prog_compiler_pic='-fPIC'
8070 lt_prog_compiler_pic='-fPIC'
8074 # PORTME Check for flag to pass linker flags through the system compiler.
8077 lt_prog_compiler_wl='-Wl,'
8078 if test "$host_cpu" = ia64; then
8079 # AIX 5 now supports IA64 processor
8080 lt_prog_compiler_static='-Bstatic'
8082 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8086 # PIC is the default on this platform
8087 # Common symbols not allowed in MH_DYLIB files
8088 case $cc_basename in
8090 lt_prog_compiler_pic='-qnocommon'
8091 lt_prog_compiler_wl='-Wl,'
8096 mingw* | pw32* | os2*)
8097 # This hack is so that the source file can tell whether it is being
8098 # built for inclusion in a dll (and should export symbols for example).
8099 lt_prog_compiler_pic='-DDLL_EXPORT'
8102 hpux9* | hpux10* | hpux11*)
8103 lt_prog_compiler_wl='-Wl,'
8104 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8111 lt_prog_compiler_pic='+Z'
8114 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8115 lt_prog_compiler_static='${wl}-a ${wl}archive'
8118 irix5* | irix6* | nonstopux*)
8119 lt_prog_compiler_wl='-Wl,'
8120 # PIC (with -KPIC) is the default.
8121 lt_prog_compiler_static='-non_shared'
8125 lt_prog_compiler_pic='-KPIC'
8126 lt_prog_compiler_static='-Bstatic'
8129 linux* | k*bsd*-gnu)
8130 case $cc_basename in
8132 lt_prog_compiler_wl='-Wl,'
8133 lt_prog_compiler_pic='-KPIC'
8134 lt_prog_compiler_static='-static'
8136 pgcc* | pgf77* | pgf90* | pgf95*)
8137 # Portland Group compilers (*not* the Pentium gcc compiler,
8138 # which looks to be a dead project)
8139 lt_prog_compiler_wl='-Wl,'
8140 lt_prog_compiler_pic='-fpic'
8141 lt_prog_compiler_static='-Bstatic'
8144 lt_prog_compiler_wl='-Wl,'
8145 # All Alpha code is PIC.
8146 lt_prog_compiler_static='-non_shared'
8151 osf3* | osf4* | osf5*)
8152 lt_prog_compiler_wl='-Wl,'
8153 # All OSF/1 code is PIC.
8154 lt_prog_compiler_static='-non_shared'
8158 lt_prog_compiler_pic='-KPIC'
8159 lt_prog_compiler_static='-Bstatic'
8160 case $cc_basename in
8162 lt_prog_compiler_wl='-Qoption ld ';;
8164 lt_prog_compiler_wl='-Wl,';;
8169 lt_prog_compiler_wl='-Qoption ld '
8170 lt_prog_compiler_pic='-PIC'
8171 lt_prog_compiler_static='-Bstatic'
8174 sysv4 | sysv4.2uw2* | sysv4.3*)
8175 lt_prog_compiler_wl='-Wl,'
8176 lt_prog_compiler_pic='-KPIC'
8177 lt_prog_compiler_static='-Bstatic'
8181 if test -d /usr/nec ;then
8182 lt_prog_compiler_pic='-Kconform_pic'
8183 lt_prog_compiler_static='-Bstatic'
8187 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8188 lt_prog_compiler_wl='-Wl,'
8189 lt_prog_compiler_pic='-KPIC'
8190 lt_prog_compiler_static='-Bstatic'
8194 lt_prog_compiler_wl='-Wl,'
8195 lt_prog_compiler_can_build_shared=no
8199 lt_prog_compiler_pic='-pic'
8200 lt_prog_compiler_static='-Bstatic'
8204 lt_prog_compiler_can_build_shared=no
8209 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8210 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8213 # Check to make sure the PIC flag actually works.
8215 if test -n "$lt_prog_compiler_pic"; then
8217 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8218 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8219 if test "${lt_prog_compiler_pic_works+set}" = set; then
8220 echo $ECHO_N "(cached) $ECHO_C" >&6
8222 lt_prog_compiler_pic_works=no
8223 ac_outfile=conftest.$ac_objext
8224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8225 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8226 # Insert the option either (1) after the last *FLAGS variable, or
8227 # (2) before a word containing "conftest.", or (3) at the end.
8228 # Note that $ac_compile itself does not contain backslashes and begins
8229 # with a dollar sign (not a hyphen), so the echo should work correctly.
8230 # The option is referenced via a variable to avoid confusing sed.
8231 lt_compile=`echo "$ac_compile" | $SED \
8232 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8234 -e 's:$: $lt_compiler_flag:'`
8235 (eval echo "\"\$as_me:8235: $lt_compile\"" >&5)
8236 (eval "$lt_compile" 2>conftest.err)
8238 cat conftest.err >&5
8239 echo "$as_me:8239: \$? = $ac_status" >&5
8240 if (exit $ac_status) && test -s "$ac_outfile"; then
8241 # The compiler can only warn and ignore the option if not recognized
8242 # So say no if there are warnings other than the usual output.
8243 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8244 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8245 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8246 lt_prog_compiler_pic_works=yes
8252 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8253 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8255 if test x"$lt_prog_compiler_pic_works" = xyes; then
8256 case $lt_prog_compiler_pic in
8258 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8261 lt_prog_compiler_pic=
8262 lt_prog_compiler_can_build_shared=no
8267 # For platforms which do not support PIC, -DPIC is meaningless:
8269 lt_prog_compiler_pic=
8272 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8277 # Check to make sure the static flag actually works.
8279 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8280 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8281 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8282 if test "${lt_prog_compiler_static_works+set}" = set; then
8283 echo $ECHO_N "(cached) $ECHO_C" >&6
8285 lt_prog_compiler_static_works=no
8286 save_LDFLAGS="$LDFLAGS"
8287 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8288 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8289 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8290 # The linker can only warn and ignore the option if not recognized
8291 # So say no if there are warnings
8292 if test -s conftest.err; then
8293 # Append any errors to the config.log.
8294 cat conftest.err 1>&5
8295 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8297 if diff conftest.exp conftest.er2 >/dev/null; then
8298 lt_prog_compiler_static_works=yes
8301 lt_prog_compiler_static_works=yes
8305 LDFLAGS="$save_LDFLAGS"
8308 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8309 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8311 if test x"$lt_prog_compiler_static_works" = xyes; then
8314 lt_prog_compiler_static=
8318 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8319 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8320 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 lt_cv_prog_compiler_c_o=no
8324 $rm -r conftest 2>/dev/null
8328 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8330 lt_compiler_flag="-o out/conftest2.$ac_objext"
8331 # Insert the option either (1) after the last *FLAGS variable, or
8332 # (2) before a word containing "conftest.", or (3) at the end.
8333 # Note that $ac_compile itself does not contain backslashes and begins
8334 # with a dollar sign (not a hyphen), so the echo should work correctly.
8335 lt_compile=`echo "$ac_compile" | $SED \
8336 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8337 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8338 -e 's:$: $lt_compiler_flag:'`
8339 (eval echo "\"\$as_me:8339: $lt_compile\"" >&5)
8340 (eval "$lt_compile" 2>out/conftest.err)
8342 cat out/conftest.err >&5
8343 echo "$as_me:8343: \$? = $ac_status" >&5
8344 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8346 # The compiler can only warn and ignore the option if not recognized
8347 # So say no if there are warnings
8348 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8349 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8350 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8351 lt_cv_prog_compiler_c_o=yes
8356 # SGI C++ compiler will create directory out/ii_files/ for
8357 # template instantiation
8358 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8359 $rm out/* && rmdir out
8365 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8366 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8369 hard_links="nottested"
8370 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8371 # do not overwrite the value of need_locks provided by the user
8372 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8373 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8376 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8378 ln conftest.a conftest.b 2>&5 || hard_links=no
8379 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8380 { echo "$as_me:$LINENO: result: $hard_links" >&5
8381 echo "${ECHO_T}$hard_links" >&6; }
8382 if test "$hard_links" = no; then
8383 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8384 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8391 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8392 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8395 allow_undefined_flag=
8396 enable_shared_with_static_runtimes=no
8398 archive_expsym_cmds=
8399 old_archive_From_new_cmds=
8400 old_archive_from_expsyms_cmds=
8401 export_dynamic_flag_spec=
8402 whole_archive_flag_spec=
8403 thread_safe_flag_spec=
8404 hardcode_libdir_flag_spec=
8405 hardcode_libdir_flag_spec_ld=
8406 hardcode_libdir_separator=
8409 hardcode_shlibpath_var=unsupported
8410 link_all_deplibs=unknown
8411 hardcode_automatic=no
8414 always_export_symbols=no
8415 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8416 # include_expsyms should be a list of space-separated symbols to be *always*
8417 # included in the symbol list
8419 # exclude_expsyms can be an extended regexp of symbols to exclude
8420 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8421 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8422 # as well as any symbol that contains `d'.
8423 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8424 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8425 # platforms (ab)use it in PIC code, but their linkers get confused if
8426 # the symbol is explicitly referenced. Since portable code cannot
8427 # rely on this symbol name, it's probably fine to never include it in
8428 # preloaded symbol tables.
8429 extract_expsyms_cmds=
8430 # Just being paranoid about ensuring that cc_basename is set.
8431 for cc_temp in $compiler""; do
8433 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8434 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8439 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8442 cygwin* | mingw* | pw32*)
8443 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8444 # When not using gcc, we currently assume that we are using
8445 # Microsoft Visual C++.
8446 if test "$GCC" != yes; then
8451 # we just hope/assume this is gcc and not c89 (= MSVC++)
8460 if test "$with_gnu_ld" = yes; then
8461 # If archive_cmds runs LD, not CC, wlarc should be empty
8464 # Set some defaults for GNU ld with shared library support. These
8465 # are reset later if shared libraries are not supported. Putting them
8466 # here allows them to be overridden if necessary.
8467 runpath_var=LD_RUN_PATH
8468 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8469 export_dynamic_flag_spec='${wl}--export-dynamic'
8470 # ancient GNU ld didn't support --whole-archive et. al.
8471 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8472 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8474 whole_archive_flag_spec=
8476 supports_anon_versioning=no
8477 case `$LD -v 2>/dev/null` in
8478 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8479 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8480 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8481 *\ 2.11.*) ;; # other 2.11 versions
8482 *) supports_anon_versioning=yes ;;
8485 # See if GNU ld supports shared libraries.
8487 aix3* | aix4* | aix5*)
8488 # On AIX/PPC, the GNU linker is very broken
8489 if test "$host_cpu" != ia64; then
8493 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8494 *** to be unable to reliably create shared libraries on AIX.
8495 *** Therefore, libtool is disabling shared libraries support. If you
8496 *** really care for shared libraries, you may want to modify your PATH
8497 *** so that a non-GNU linker is found, and then restart.
8504 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)'
8505 hardcode_libdir_flag_spec='-L$libdir'
8506 hardcode_minus_L=yes
8508 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8509 # that the semantics of dynamic libraries on AmigaOS, at least up
8510 # to version 4, is to share data among multiple programs linked
8511 # with the same dynamic library. Since this doesn't match the
8512 # behavior of shared libraries on other platforms, we can't use
8518 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8519 allow_undefined_flag=unsupported
8520 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8521 # support --undefined. This deserves some investigation. FIXME
8522 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8528 cygwin* | mingw* | pw32*)
8529 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8530 # as there is no search path for DLLs.
8531 hardcode_libdir_flag_spec='-L$libdir'
8532 allow_undefined_flag=unsupported
8533 always_export_symbols=no
8534 enable_shared_with_static_runtimes=yes
8535 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8537 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8538 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8539 # If the export-symbols file already is a .def file (1st line
8540 # is EXPORTS), use it as is; otherwise, prepend...
8541 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8542 cp $export_symbols $output_objdir/$soname.def;
8544 echo EXPORTS > $output_objdir/$soname.def;
8545 cat $export_symbols >> $output_objdir/$soname.def;
8547 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8555 hardcode_shlibpath_var=no
8556 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8557 export_dynamic_flag_spec='${wl}-E'
8558 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8559 # Instead, shared libraries are loaded at an image base (0x10000000 by
8560 # default) and relocated if they conflict, which is a slow very memory
8561 # consuming and fragmenting process. To avoid this, we pick a random,
8562 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8563 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8564 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8565 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8568 linux* | k*bsd*-gnu)
8569 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8571 case $cc_basename,$host_cpu in
8572 pgcc*) # Portland Group C compiler
8573 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'
8574 tmp_addflag=' $pic_flag'
8576 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8577 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'
8578 tmp_addflag=' $pic_flag -Mnomain' ;;
8579 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8580 tmp_addflag=' -i_dynamic' ;;
8581 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8582 tmp_addflag=' -i_dynamic -nofor_main' ;;
8583 ifc* | ifort*) # Intel Fortran compiler
8584 tmp_addflag=' -nofor_main' ;;
8586 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8588 if test $supports_anon_versioning = yes; then
8589 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8590 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8591 $echo "local: *; };" >> $output_objdir/$libname.ver~
8592 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8600 netbsd* | netbsdelf*-gnu)
8601 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8602 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8606 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8611 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8615 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8616 *** create shared libraries on Solaris systems. Therefore, libtool
8617 *** is disabling shared libraries support. We urge you to upgrade GNU
8618 *** binutils to release 2.9.1 or newer. Another option is to modify
8619 *** your PATH or compiler configuration so that the native linker is
8620 *** used, and then restart.
8623 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8624 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8625 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8632 case `$LD -v 2>&1` in
8633 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8637 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8638 *** reliably create shared libraries on SCO systems. Therefore, libtool
8639 *** is disabling shared libraries support. We urge you to upgrade GNU
8640 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8641 *** your PATH or compiler configuration so that the native linker is
8642 *** used, and then restart.
8647 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8648 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8649 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8650 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8659 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8662 hardcode_shlibpath_var=no
8666 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8667 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8668 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8675 if test "$ld_shlibs" = no; then
8677 hardcode_libdir_flag_spec=
8678 export_dynamic_flag_spec=
8679 whole_archive_flag_spec=
8682 # PORTME fill in a description of your system's linker (not GNU ld)
8685 allow_undefined_flag=unsupported
8686 always_export_symbols=yes
8687 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'
8688 # Note: this linker hardcodes the directories in LIBPATH if there
8689 # are no directories specified by -L.
8690 hardcode_minus_L=yes
8691 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8692 # Neither direct hardcoding nor static linking is supported with a
8694 hardcode_direct=unsupported
8699 if test "$host_cpu" = ia64; then
8700 # On IA64, the linker does run time linking by default, so we don't
8701 # have to do anything special.
8702 aix_use_runtimelinking=no
8703 exp_sym_flag='-Bexport'
8706 # If we're using GNU nm, then we don't want the "-C" option.
8707 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8708 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8709 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'
8711 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'
8713 aix_use_runtimelinking=no
8715 # Test if we are trying to use run time linking or normal
8716 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8717 # need to do runtime linking.
8718 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8719 for ld_flag in $LDFLAGS; do
8720 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8721 aix_use_runtimelinking=yes
8728 exp_sym_flag='-bexport'
8729 no_entry_flag='-bnoentry'
8732 # When large executables or shared objects are built, AIX ld can
8733 # have problems creating the table of contents. If linking a library
8734 # or program results in "error TOC overflow" add -mminimal-toc to
8735 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8736 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8740 hardcode_libdir_separator=':'
8741 link_all_deplibs=yes
8743 if test "$GCC" = yes; then
8744 case $host_os in aix4.[012]|aix4.[012].*)
8745 # We only want to do this on AIX 4.2 and lower, the check
8746 # below for broken collect2 doesn't work under 4.3+
8747 collect2name=`${CC} -print-prog-name=collect2`
8748 if test -f "$collect2name" && \
8749 strings "$collect2name" | grep resolve_lib_name >/dev/null
8751 # We have reworked collect2
8754 # We have old collect2
8755 hardcode_direct=unsupported
8756 # It fails to find uninstalled libraries when the uninstalled
8757 # path is not listed in the libpath. Setting hardcode_minus_L
8758 # to unsupported forces relinking
8759 hardcode_minus_L=yes
8760 hardcode_libdir_flag_spec='-L$libdir'
8761 hardcode_libdir_separator=
8765 shared_flag='-shared'
8766 if test "$aix_use_runtimelinking" = yes; then
8767 shared_flag="$shared_flag "'${wl}-G'
8771 if test "$host_cpu" = ia64; then
8772 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8773 # chokes on -Wl,-G. The following line is correct:
8776 if test "$aix_use_runtimelinking" = yes; then
8777 shared_flag='${wl}-G'
8779 shared_flag='${wl}-bM:SRE'
8784 # It seems that -bexpall does not export symbols beginning with
8785 # underscore (_), so it is better to generate a list of symbols to export.
8786 always_export_symbols=yes
8787 if test "$aix_use_runtimelinking" = yes; then
8788 # Warning - without using the other runtime loading flags (-brtl),
8789 # -berok will link without error, but may produce a broken library.
8790 allow_undefined_flag='-berok'
8791 # Determine the default libpath from the value encoded in an empty executable.
8792 cat >conftest.$ac_ext <<_ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8807 rm -f conftest.$ac_objext conftest$ac_exeext
8808 if { (ac_try="$ac_link"
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_link") 2>conftest.er1
8816 grep -v '^ *+' conftest.er1 >conftest.err
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } && {
8821 test -z "$ac_c_werror_flag" ||
8822 test ! -s conftest.err
8823 } && test -s conftest$ac_exeext &&
8824 $as_test_x conftest$ac_exeext; then
8826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8828 # Check for a 64-bit object if we didn't find anything.
8829 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; }
8832 echo "$as_me: failed program was:" >&5
8833 sed 's/^/| /' conftest.$ac_ext >&5
8838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8839 conftest$ac_exeext conftest.$ac_ext
8840 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8842 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8843 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8845 if test "$host_cpu" = ia64; then
8846 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8847 allow_undefined_flag="-z nodefs"
8848 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
8850 # Determine the default libpath from the value encoded in an empty executable.
8851 cat >conftest.$ac_ext <<_ACEOF
8854 cat confdefs.h >>conftest.$ac_ext
8855 cat >>conftest.$ac_ext <<_ACEOF
8856 /* end confdefs.h. */
8866 rm -f conftest.$ac_objext conftest$ac_exeext
8867 if { (ac_try="$ac_link"
8869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8870 *) ac_try_echo=$ac_try;;
8872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8873 (eval "$ac_link") 2>conftest.er1
8875 grep -v '^ *+' conftest.er1 >conftest.err
8877 cat conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && {
8880 test -z "$ac_c_werror_flag" ||
8881 test ! -s conftest.err
8882 } && test -s conftest$ac_exeext &&
8883 $as_test_x conftest$ac_exeext; then
8885 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8887 # Check for a 64-bit object if we didn't find anything.
8888 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; }
8891 echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8898 conftest$ac_exeext conftest.$ac_ext
8899 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8901 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8902 # Warning - without using the other run time loading flags,
8903 # -berok will link without error, but may produce a broken library.
8904 no_undefined_flag=' ${wl}-bernotok'
8905 allow_undefined_flag=' ${wl}-berok'
8906 # Exported symbols can be pulled into shared objects from archives
8907 whole_archive_flag_spec='$convenience'
8908 archive_cmds_need_lc=yes
8909 # This is similar to how AIX traditionally builds its shared libraries.
8910 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8916 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)'
8917 hardcode_libdir_flag_spec='-L$libdir'
8918 hardcode_minus_L=yes
8919 # see comment about different semantics on the GNU ld section
8924 export_dynamic_flag_spec=-rdynamic
8927 cygwin* | mingw* | pw32*)
8928 # When not using gcc, we currently assume that we are using
8929 # Microsoft Visual C++.
8930 # hardcode_libdir_flag_spec is actually meaningless, as there is
8931 # no search path for DLLs.
8932 hardcode_libdir_flag_spec=' '
8933 allow_undefined_flag=unsupported
8934 # Tell ltmain to make .lib files, not .a files.
8936 # Tell ltmain to make .dll files, not .so files.
8938 # FIXME: Setting linknames here is a bad hack.
8939 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8940 # The linker will automatically build a .lib file if we build a DLL.
8941 old_archive_From_new_cmds='true'
8942 # FIXME: Should let the user specify the lib program.
8943 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8944 fix_srcfile_path='`cygpath -w "$srcfile"`'
8945 enable_shared_with_static_runtimes=yes
8948 darwin* | rhapsody*)
8950 rhapsody* | darwin1.[012])
8951 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8954 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8955 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8957 case ${MACOSX_DEPLOYMENT_TARGET} in
8959 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8962 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8968 archive_cmds_need_lc=no
8970 hardcode_automatic=yes
8971 hardcode_shlibpath_var=unsupported
8972 whole_archive_flag_spec=''
8973 link_all_deplibs=yes
8974 if test "$GCC" = yes ; then
8975 output_verbose_link_cmd='echo'
8976 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8977 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8978 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8979 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}'
8980 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}'
8982 case $cc_basename in
8984 output_verbose_link_cmd='echo'
8985 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8986 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8987 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8988 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}'
8989 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}'
8999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9000 hardcode_libdir_flag_spec='-L$libdir'
9001 hardcode_shlibpath_var=no
9008 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9009 # support. Future versions do this automatically, but an explicit c++rt0.o
9010 # does not break anything, and helps significantly (at the cost of a little
9013 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9014 hardcode_libdir_flag_spec='-R$libdir'
9016 hardcode_shlibpath_var=no
9019 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9021 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9023 hardcode_minus_L=yes
9024 hardcode_shlibpath_var=no
9027 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9028 freebsd* | dragonfly*)
9029 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9030 hardcode_libdir_flag_spec='-R$libdir'
9032 hardcode_shlibpath_var=no
9036 if test "$GCC" = yes; then
9037 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'
9039 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'
9041 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9042 hardcode_libdir_separator=:
9045 # hardcode_minus_L: Not really in the search PATH,
9046 # but as the default location of the library.
9047 hardcode_minus_L=yes
9048 export_dynamic_flag_spec='${wl}-E'
9052 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9053 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9055 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9057 if test "$with_gnu_ld" = no; then
9058 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9059 hardcode_libdir_separator=:
9062 export_dynamic_flag_spec='${wl}-E'
9064 # hardcode_minus_L: Not really in the search PATH,
9065 # but as the default location of the library.
9066 hardcode_minus_L=yes
9071 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9074 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9077 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9080 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9086 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9089 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9092 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9096 if test "$with_gnu_ld" = no; then
9097 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9098 hardcode_libdir_separator=:
9102 hardcode_libdir_flag_spec_ld='+b $libdir'
9104 hardcode_shlibpath_var=no
9108 export_dynamic_flag_spec='${wl}-E'
9110 # hardcode_minus_L: Not really in the search PATH,
9111 # but as the default location of the library.
9112 hardcode_minus_L=yes
9118 irix5* | irix6* | nonstopux*)
9119 if test "$GCC" = yes; then
9120 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'
9122 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'
9123 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9126 hardcode_libdir_separator=:
9127 link_all_deplibs=yes
9130 netbsd* | netbsdelf*-gnu)
9131 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9132 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9134 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9136 hardcode_libdir_flag_spec='-R$libdir'
9138 hardcode_shlibpath_var=no
9142 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9145 hardcode_libdir_separator=:
9146 hardcode_shlibpath_var=no
9151 hardcode_shlibpath_var=no
9152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9153 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9154 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9155 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9156 export_dynamic_flag_spec='${wl}-E'
9159 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9160 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9161 hardcode_libdir_flag_spec='-R$libdir'
9164 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9165 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9172 hardcode_libdir_flag_spec='-L$libdir'
9173 hardcode_minus_L=yes
9174 allow_undefined_flag=unsupported
9175 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'
9176 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9180 if test "$GCC" = yes; then
9181 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9182 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'
9184 allow_undefined_flag=' -expect_unresolved \*'
9185 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'
9187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9188 hardcode_libdir_separator=:
9191 osf4* | osf5*) # as osf3* with the addition of -msym flag
9192 if test "$GCC" = yes; then
9193 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9194 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'
9195 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9197 allow_undefined_flag=' -expect_unresolved \*'
9198 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'
9199 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9200 $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'
9202 # Both c and cxx compiler support -rpath directly
9203 hardcode_libdir_flag_spec='-rpath $libdir'
9205 hardcode_libdir_separator=:
9209 no_undefined_flag=' -z text'
9210 if test "$GCC" = yes; then
9212 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9213 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9214 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9217 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9218 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9219 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9221 hardcode_libdir_flag_spec='-R$libdir'
9222 hardcode_shlibpath_var=no
9224 solaris2.[0-5] | solaris2.[0-5].*) ;;
9226 # The compiler driver will combine linker options so we
9227 # cannot just pass the convience library names through
9228 # without $wl, iff we do not link with $LD.
9229 # Luckily, gcc supports the same syntax we need for Sun Studio.
9230 # Supported since Solaris 2.6 (maybe 2.5.1?)
9233 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9235 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' ;;
9238 link_all_deplibs=yes
9242 if test "x$host_vendor" = xsequent; then
9243 # Use $CC to link under sequent, because it throws in some extra .o
9244 # files that make .init and .fini sections work.
9245 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9247 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9249 hardcode_libdir_flag_spec='-L$libdir'
9251 hardcode_minus_L=yes
9252 hardcode_shlibpath_var=no
9256 case $host_vendor in
9258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9259 hardcode_direct=yes # is this really true???
9262 ## LD is ld it makes a PLAMLIB
9263 ## CC just makes a GrossModule.
9264 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9265 reload_cmds='$CC -r -o $output$reload_objs'
9269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9270 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9273 runpath_var='LD_RUN_PATH'
9274 hardcode_shlibpath_var=no
9278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9279 hardcode_shlibpath_var=no
9280 export_dynamic_flag_spec='-Bexport'
9284 if test -d /usr/nec; then
9285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9286 hardcode_shlibpath_var=no
9287 runpath_var=LD_RUN_PATH
9288 hardcode_runpath_var=yes
9293 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9294 no_undefined_flag='${wl}-z,text'
9295 archive_cmds_need_lc=no
9296 hardcode_shlibpath_var=no
9297 runpath_var='LD_RUN_PATH'
9299 if test "$GCC" = yes; then
9300 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9301 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9303 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9304 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9308 sysv5* | sco3.2v5* | sco5v6*)
9309 # Note: We can NOT use -z defs as we might desire, because we do not
9310 # link with -lc, and that would cause any symbols used from libc to
9311 # always be unresolved, which means just about no library would
9312 # ever link correctly. If we're not using GNU ld we use -z text
9313 # though, which does catch some bad symbols but isn't as heavy-handed
9315 no_undefined_flag='${wl}-z,text'
9316 allow_undefined_flag='${wl}-z,nodefs'
9317 archive_cmds_need_lc=no
9318 hardcode_shlibpath_var=no
9319 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9320 hardcode_libdir_separator=':'
9321 link_all_deplibs=yes
9322 export_dynamic_flag_spec='${wl}-Bexport'
9323 runpath_var='LD_RUN_PATH'
9325 if test "$GCC" = yes; then
9326 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9327 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9329 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9330 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9336 hardcode_libdir_flag_spec='-L$libdir'
9337 hardcode_shlibpath_var=no
9346 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9347 echo "${ECHO_T}$ld_shlibs" >&6; }
9348 test "$ld_shlibs" = no && can_build_shared=no
9351 # Do we need to explicitly link libc?
9353 case "x$archive_cmds_need_lc" in
9355 # Assume -lc should be added
9356 archive_cmds_need_lc=yes
9358 if test "$enable_shared" = yes && test "$GCC" = yes; then
9359 case $archive_cmds in
9361 # FIXME: we may have to deal with multi-command sequences.
9364 # Test whether the compiler implicitly links with -lc since on some
9365 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9366 # to ld, don't add -lc before -lgcc.
9367 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9368 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9370 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9373 (eval $ac_compile) 2>&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } 2>conftest.err; then
9379 libobjs=conftest.$ac_objext
9381 wl=$lt_prog_compiler_wl
9382 pic_flag=$lt_prog_compiler_pic
9388 lt_save_allow_undefined_flag=$allow_undefined_flag
9389 allow_undefined_flag=
9390 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9391 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }
9396 archive_cmds_need_lc=no
9398 archive_cmds_need_lc=yes
9400 allow_undefined_flag=$lt_save_allow_undefined_flag
9402 cat conftest.err 1>&5
9405 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9406 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9413 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9414 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9416 libname_spec='lib$name'
9424 shlibpath_overrides_runpath=unknown
9426 dynamic_linker="$host_os ld.so"
9427 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9428 if test "$GCC" = yes; then
9429 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9430 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9431 # if the path contains ";" then we assume it to be the separator
9432 # otherwise default to the standard path separator (i.e. ":") - it is
9433 # assumed that no part of a normal pathname contains ";" but that should
9434 # okay in the real world where ";" in dirpaths is itself problematic.
9435 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9437 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9440 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9442 need_lib_prefix=unknown
9443 hardcode_into_libs=no
9445 # when you set need_version to no, make sure it does not cause -set_version
9446 # flags to be left without arguments
9447 need_version=unknown
9452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9453 shlibpath_var=LIBPATH
9455 # AIX 3 has no versioning support, so we append a major version to the name.
9456 soname_spec='${libname}${release}${shared_ext}$major'
9463 hardcode_into_libs=yes
9464 if test "$host_cpu" = ia64; then
9465 # AIX 5 supports IA64
9466 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9467 shlibpath_var=LD_LIBRARY_PATH
9469 # With GCC up to 2.95.x, collect2 would create an import file
9470 # for dependence libraries. The import file would start with
9471 # the line `#! .'. This would cause the generated library to
9472 # depend on `.', always an invalid library. This was fixed in
9473 # development snapshots of GCC prior to 3.0.
9475 aix4 | aix4.[01] | aix4.[01].*)
9476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9478 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9486 # soname into executable. Probably we can add versioning support to
9487 # collect2, so additional links can be useful in future.
9488 if test "$aix_use_runtimelinking" = yes; then
9489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9490 # instead of lib<name>.a to let people know that these are not
9491 # typical AIX shared libraries.
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9494 # We preserve .a as extension for shared libraries through AIX4.2
9495 # and later when we are not doing run time linking.
9496 library_names_spec='${libname}${release}.a $libname.a'
9497 soname_spec='${libname}${release}${shared_ext}$major'
9499 shlibpath_var=LIBPATH
9504 library_names_spec='$libname.ixlibrary $libname.a'
9505 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9506 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'
9510 library_names_spec='${libname}${shared_ext}'
9511 dynamic_linker="$host_os ld.so"
9512 shlibpath_var=LIBRARY_PATH
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519 soname_spec='${libname}${release}${shared_ext}$major'
9520 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9521 shlibpath_var=LD_LIBRARY_PATH
9522 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9523 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9524 # the default ld.so.conf also contains /usr/contrib/lib and
9525 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9526 # libtool to hard-code these into programs
9529 cygwin* | mingw* | pw32*)
9530 version_type=windows
9535 case $GCC,$host_os in
9536 yes,cygwin* | yes,mingw* | yes,pw32*)
9537 library_names_spec='$libname.dll.a'
9538 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9539 postinstall_cmds='base_file=`basename \${file}`~
9540 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9541 dldir=$destdir/`dirname \$dlpath`~
9542 test -d \$dldir || mkdir -p \$dldir~
9543 $install_prog $dir/$dlname \$dldir/$dlname~
9544 chmod a+x \$dldir/$dlname'
9545 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9546 dlpath=$dir/\$dldll~
9548 shlibpath_overrides_runpath=yes
9552 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9553 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9554 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9557 # MinGW DLLs use traditional 'lib' prefix
9558 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9560 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9561 # It is most probably a Windows format PATH printed by
9562 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9563 # path with ; separators, and with drive letters. We can handle the
9564 # drive letters (cygwin fileutils understands them), so leave them,
9565 # especially as we might pass files found there to a mingw objdump,
9566 # which wouldn't understand a cygwinified path. Ahh.
9567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9573 # pw32 DLLs use 'pw' prefix rather than 'lib'
9574 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9580 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9583 dynamic_linker='Win32 ld.exe'
9584 # FIXME: first we should search . and the directory the executable is in
9588 darwin* | rhapsody*)
9589 dynamic_linker="$host_os dyld"
9593 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9594 soname_spec='${libname}${release}${major}$shared_ext'
9595 shlibpath_overrides_runpath=yes
9596 shlibpath_var=DYLD_LIBRARY_PATH
9597 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9598 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9599 if test "$GCC" = yes; then
9600 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"`
9602 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9604 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9612 soname_spec='${libname}${release}${shared_ext}$major'
9613 shlibpath_var=LD_LIBRARY_PATH
9620 freebsd* | dragonfly*)
9621 # DragonFly does not have aout. When/if they implement a new
9622 # versioning mechanism, adjust this.
9623 if test -x /usr/bin/objformat; then
9624 objformat=`/usr/bin/objformat`
9627 freebsd[123]*) objformat=aout ;;
9631 version_type=freebsd-$objformat
9632 case $version_type in
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9639 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9643 shlibpath_var=LD_LIBRARY_PATH
9646 shlibpath_overrides_runpath=yes
9648 freebsd3.[01]* | freebsdelf3.[01]*)
9649 shlibpath_overrides_runpath=yes
9650 hardcode_into_libs=yes
9652 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9653 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9654 shlibpath_overrides_runpath=no
9655 hardcode_into_libs=yes
9657 freebsd*) # from 4.6 on
9658 shlibpath_overrides_runpath=yes
9659 hardcode_into_libs=yes
9668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9669 soname_spec='${libname}${release}${shared_ext}$major'
9670 shlibpath_var=LD_LIBRARY_PATH
9671 hardcode_into_libs=yes
9674 hpux9* | hpux10* | hpux11*)
9675 # Give a soname corresponding to the major version so that dld.sl refuses to
9676 # link against other versions.
9683 hardcode_into_libs=yes
9684 dynamic_linker="$host_os dld.so"
9685 shlibpath_var=LD_LIBRARY_PATH
9686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9688 soname_spec='${libname}${release}${shared_ext}$major'
9689 if test "X$HPUX_IA64_MODE" = X32; then
9690 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9692 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9698 hardcode_into_libs=yes
9699 dynamic_linker="$host_os dld.sl"
9700 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9709 dynamic_linker="$host_os dld.sl"
9710 shlibpath_var=SHLIB_PATH
9711 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9713 soname_spec='${libname}${release}${shared_ext}$major'
9716 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9717 postinstall_cmds='chmod 555 $lib'
9724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9725 soname_spec='${libname}${release}${shared_ext}$major'
9726 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9727 shlibpath_var=LD_LIBRARY_PATH
9728 shlibpath_overrides_runpath=no
9729 hardcode_into_libs=yes
9732 irix5* | irix6* | nonstopux*)
9734 nonstopux*) version_type=nonstopux ;;
9736 if test "$lt_cv_prog_gnu_ld" = yes; then
9744 soname_spec='${libname}${release}${shared_ext}$major'
9745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9747 irix5* | nonstopux*)
9751 case $LD in # libtool.m4 will add one of these switches to LD
9752 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9753 libsuff= shlibsuff= libmagic=32-bit;;
9754 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9755 libsuff=32 shlibsuff=N32 libmagic=N32;;
9756 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9757 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9758 *) libsuff= shlibsuff= libmagic=never-match;;
9762 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9763 shlibpath_overrides_runpath=no
9764 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9765 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9766 hardcode_into_libs=yes
9769 # No shared lib support for Linux oldld, aout, or coff.
9770 linux*oldld* | linux*aout* | linux*coff*)
9774 # This must be Linux ELF.
9775 linux* | k*bsd*-gnu)
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9780 soname_spec='${libname}${release}${shared_ext}$major'
9781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9782 shlibpath_var=LD_LIBRARY_PATH
9783 shlibpath_overrides_runpath=no
9784 # This implies no fast_install, which is unacceptable.
9785 # Some rework will be needed to allow for fast_install
9786 # before this can be enabled.
9787 hardcode_into_libs=yes
9789 # Append ld.so.conf contents to the search path
9790 if test -f /etc/ld.so.conf; then
9791 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' ' '`
9792 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9795 # We used to test for /lib/ld.so.1 and disable shared libraries on
9796 # powerpc, because MkLinux only supported shared libraries with the
9797 # GNU dynamic linker. Since this was broken with cross compilers,
9798 # most powerpc-linux boxes support dynamic linking these days and
9799 # people can always --disable-shared, the test was removed, and we
9800 # assume the GNU/Linux dynamic linker is in use.
9801 dynamic_linker='GNU/Linux ld.so'
9808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9809 soname_spec='${libname}${release}${shared_ext}$major'
9810 shlibpath_var=LD_LIBRARY_PATH
9811 shlibpath_overrides_runpath=no
9812 hardcode_into_libs=yes
9813 dynamic_linker='NetBSD ld.elf_so'
9820 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9822 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9823 dynamic_linker='NetBSD (a.out) ld.so'
9825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9826 soname_spec='${libname}${release}${shared_ext}$major'
9827 dynamic_linker='NetBSD ld.elf_so'
9829 shlibpath_var=LD_LIBRARY_PATH
9830 shlibpath_overrides_runpath=yes
9831 hardcode_into_libs=yes
9836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9837 shlibpath_var=LD_LIBRARY_PATH
9838 shlibpath_overrides_runpath=yes
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9846 soname_spec='${libname}${release}${shared_ext}$major'
9847 shlibpath_var=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath=yes
9853 sys_lib_dlsearch_path_spec="/usr/lib"
9855 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9857 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9858 *) need_version=no ;;
9860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9861 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9862 shlibpath_var=LD_LIBRARY_PATH
9863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9865 openbsd2.[89] | openbsd2.[89].*)
9866 shlibpath_overrides_runpath=no
9869 shlibpath_overrides_runpath=yes
9873 shlibpath_overrides_runpath=yes
9878 libname_spec='$name'
9881 library_names_spec='$libname${shared_ext} $libname.a'
9882 dynamic_linker='OS/2 ld.exe'
9883 shlibpath_var=LIBPATH
9886 osf3* | osf4* | osf5*)
9890 soname_spec='${libname}${release}${shared_ext}$major'
9891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9894 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902 soname_spec='${libname}${release}${shared_ext}$major'
9903 shlibpath_var=LD_LIBRARY_PATH
9904 shlibpath_overrides_runpath=yes
9905 hardcode_into_libs=yes
9906 # ldd complains unless libraries are executable
9907 postinstall_cmds='chmod +x $lib'
9912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9913 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 shlibpath_overrides_runpath=yes
9916 if test "$with_gnu_ld" = yes; then
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 shlibpath_var=LD_LIBRARY_PATH
9927 case $host_vendor in
9929 shlibpath_overrides_runpath=no
9931 export_dynamic_flag_spec='${wl}-Blargedynsym'
9932 runpath_var=LD_RUN_PATH
9940 shlibpath_overrides_runpath=no
9941 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9947 if test -d /usr/nec ;then
9949 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9950 soname_spec='$libname${shared_ext}.$major'
9951 shlibpath_var=LD_LIBRARY_PATH
9955 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9956 version_type=freebsd-elf
9959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9960 soname_spec='${libname}${release}${shared_ext}$major'
9961 shlibpath_var=LD_LIBRARY_PATH
9962 hardcode_into_libs=yes
9963 if test "$with_gnu_ld" = yes; then
9964 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9965 shlibpath_overrides_runpath=no
9967 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9968 shlibpath_overrides_runpath=yes
9971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9975 sys_lib_dlsearch_path_spec='/usr/lib'
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 soname_spec='${libname}${release}${shared_ext}$major'
9982 shlibpath_var=LD_LIBRARY_PATH
9989 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9990 echo "${ECHO_T}$dynamic_linker" >&6; }
9991 test "$dynamic_linker" = no && can_build_shared=no
9993 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9994 if test "$GCC" = yes; then
9995 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9998 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9999 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10001 if test -n "$hardcode_libdir_flag_spec" || \
10002 test -n "$runpath_var" || \
10003 test "X$hardcode_automatic" = "Xyes" ; then
10005 # We can hardcode non-existant directories.
10006 if test "$hardcode_direct" != no &&
10007 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10008 # have to relink, otherwise we might link with an installed library
10009 # when we should be linking with a yet-to-be-installed one
10010 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10011 test "$hardcode_minus_L" != no; then
10012 # Linking always hardcodes the temporary library directory.
10013 hardcode_action=relink
10015 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10016 hardcode_action=immediate
10019 # We cannot hardcode anything, or else we can only hardcode existing
10021 hardcode_action=unsupported
10023 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10024 echo "${ECHO_T}$hardcode_action" >&6; }
10026 if test "$hardcode_action" = relink; then
10027 # Fast installation is not supported
10028 enable_fast_install=no
10029 elif test "$shlibpath_overrides_runpath" = yes ||
10030 test "$enable_shared" = no; then
10031 # Fast installation is not necessary
10032 enable_fast_install=needless
10037 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10038 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10039 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10040 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10041 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10042 { echo "$as_me:$LINENO: result: yes" >&5
10043 echo "${ECHO_T}yes" >&6; }
10045 # FIXME - insert some real tests, host_os isn't really good enough
10048 if test -n "$STRIP" ; then
10049 striplib="$STRIP -x"
10050 { echo "$as_me:$LINENO: result: yes" >&5
10051 echo "${ECHO_T}yes" >&6; }
10053 { echo "$as_me:$LINENO: result: no" >&5
10054 echo "${ECHO_T}no" >&6; }
10058 { echo "$as_me:$LINENO: result: no" >&5
10059 echo "${ECHO_T}no" >&6; }
10064 if test "x$enable_dlopen" != xyes; then
10065 enable_dlopen=unknown
10066 enable_dlopen_self=unknown
10067 enable_dlopen_self_static=unknown
10074 lt_cv_dlopen="load_add_on"
10076 lt_cv_dlopen_self=yes
10080 lt_cv_dlopen="LoadLibrary"
10085 lt_cv_dlopen="dlopen"
10090 # if libdl is installed we need to link against it
10091 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10092 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10093 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 ac_check_lib_save_LIBS=$LIBS
10098 cat >conftest.$ac_ext <<_ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10105 /* Override any GCC internal prototype to avoid an error.
10106 Use char because int might match the return type of a GCC
10107 builtin and then its argument prototype would still apply. */
10120 rm -f conftest.$ac_objext conftest$ac_exeext
10121 if { (ac_try="$ac_link"
10122 case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_link") 2>conftest.er1
10129 grep -v '^ *+' conftest.er1 >conftest.err
10131 cat conftest.err >&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 (exit $ac_status); } && {
10134 test -z "$ac_c_werror_flag" ||
10135 test ! -s conftest.err
10136 } && test -s conftest$ac_exeext &&
10137 $as_test_x conftest$ac_exeext; then
10138 ac_cv_lib_dl_dlopen=yes
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.$ac_ext >&5
10143 ac_cv_lib_dl_dlopen=no
10146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10147 conftest$ac_exeext conftest.$ac_ext
10148 LIBS=$ac_check_lib_save_LIBS
10150 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10151 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10152 if test $ac_cv_lib_dl_dlopen = yes; then
10153 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10156 lt_cv_dlopen="dyld"
10158 lt_cv_dlopen_self=yes
10165 { echo "$as_me:$LINENO: checking for shl_load" >&5
10166 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10167 if test "${ac_cv_func_shl_load+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 cat >conftest.$ac_ext <<_ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h. */
10176 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10178 #define shl_load innocuous_shl_load
10180 /* System header to define __stub macros and hopefully few prototypes,
10181 which can conflict with char shl_load (); below.
10182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10183 <limits.h> exists even on freestanding compilers. */
10186 # include <limits.h>
10188 # include <assert.h>
10193 /* Override any GCC internal prototype to avoid an error.
10194 Use char because int might match the return type of a GCC
10195 builtin and then its argument prototype would still apply. */
10200 /* The GNU C library defines this for functions which it implements
10201 to always fail with ENOSYS. Some functions are actually named
10202 something starting with __ and the normal name is an alias. */
10203 #if defined __stub_shl_load || defined __stub___shl_load
10210 return shl_load ();
10215 rm -f conftest.$ac_objext conftest$ac_exeext
10216 if { (ac_try="$ac_link"
10217 case "(($ac_try" in
10218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10219 *) ac_try_echo=$ac_try;;
10221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10222 (eval "$ac_link") 2>conftest.er1
10224 grep -v '^ *+' conftest.er1 >conftest.err
10226 cat conftest.err >&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } && {
10229 test -z "$ac_c_werror_flag" ||
10230 test ! -s conftest.err
10231 } && test -s conftest$ac_exeext &&
10232 $as_test_x conftest$ac_exeext; then
10233 ac_cv_func_shl_load=yes
10235 echo "$as_me: failed program was:" >&5
10236 sed 's/^/| /' conftest.$ac_ext >&5
10238 ac_cv_func_shl_load=no
10241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10242 conftest$ac_exeext conftest.$ac_ext
10244 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10245 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10246 if test $ac_cv_func_shl_load = yes; then
10247 lt_cv_dlopen="shl_load"
10249 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10250 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10251 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 ac_check_lib_save_LIBS=$LIBS
10256 cat >conftest.$ac_ext <<_ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10263 /* Override any GCC internal prototype to avoid an error.
10264 Use char because int might match the return type of a GCC
10265 builtin and then its argument prototype would still apply. */
10273 return shl_load ();
10278 rm -f conftest.$ac_objext conftest$ac_exeext
10279 if { (ac_try="$ac_link"
10280 case "(($ac_try" in
10281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10282 *) ac_try_echo=$ac_try;;
10284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10285 (eval "$ac_link") 2>conftest.er1
10287 grep -v '^ *+' conftest.er1 >conftest.err
10289 cat conftest.err >&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } && {
10292 test -z "$ac_c_werror_flag" ||
10293 test ! -s conftest.err
10294 } && test -s conftest$ac_exeext &&
10295 $as_test_x conftest$ac_exeext; then
10296 ac_cv_lib_dld_shl_load=yes
10298 echo "$as_me: failed program was:" >&5
10299 sed 's/^/| /' conftest.$ac_ext >&5
10301 ac_cv_lib_dld_shl_load=no
10304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10305 conftest$ac_exeext conftest.$ac_ext
10306 LIBS=$ac_check_lib_save_LIBS
10308 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10309 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10310 if test $ac_cv_lib_dld_shl_load = yes; then
10311 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10313 { echo "$as_me:$LINENO: checking for dlopen" >&5
10314 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10315 if test "${ac_cv_func_dlopen+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 cat >conftest.$ac_ext <<_ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h. */
10324 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10326 #define dlopen innocuous_dlopen
10328 /* System header to define __stub macros and hopefully few prototypes,
10329 which can conflict with char dlopen (); below.
10330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10331 <limits.h> exists even on freestanding compilers. */
10334 # include <limits.h>
10336 # include <assert.h>
10341 /* Override any GCC internal prototype to avoid an error.
10342 Use char because int might match the return type of a GCC
10343 builtin and then its argument prototype would still apply. */
10348 /* The GNU C library defines this for functions which it implements
10349 to always fail with ENOSYS. Some functions are actually named
10350 something starting with __ and the normal name is an alias. */
10351 #if defined __stub_dlopen || defined __stub___dlopen
10363 rm -f conftest.$ac_objext conftest$ac_exeext
10364 if { (ac_try="$ac_link"
10365 case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_link") 2>conftest.er1
10372 grep -v '^ *+' conftest.er1 >conftest.err
10374 cat conftest.err >&5
10375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10376 (exit $ac_status); } && {
10377 test -z "$ac_c_werror_flag" ||
10378 test ! -s conftest.err
10379 } && test -s conftest$ac_exeext &&
10380 $as_test_x conftest$ac_exeext; then
10381 ac_cv_func_dlopen=yes
10383 echo "$as_me: failed program was:" >&5
10384 sed 's/^/| /' conftest.$ac_ext >&5
10386 ac_cv_func_dlopen=no
10389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10390 conftest$ac_exeext conftest.$ac_ext
10392 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10393 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10394 if test $ac_cv_func_dlopen = yes; then
10395 lt_cv_dlopen="dlopen"
10397 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10398 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10399 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 ac_check_lib_save_LIBS=$LIBS
10404 cat >conftest.$ac_ext <<_ACEOF
10407 cat confdefs.h >>conftest.$ac_ext
10408 cat >>conftest.$ac_ext <<_ACEOF
10409 /* end confdefs.h. */
10411 /* Override any GCC internal prototype to avoid an error.
10412 Use char because int might match the return type of a GCC
10413 builtin and then its argument prototype would still apply. */
10426 rm -f conftest.$ac_objext conftest$ac_exeext
10427 if { (ac_try="$ac_link"
10428 case "(($ac_try" in
10429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10430 *) ac_try_echo=$ac_try;;
10432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10433 (eval "$ac_link") 2>conftest.er1
10435 grep -v '^ *+' conftest.er1 >conftest.err
10437 cat conftest.err >&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); } && {
10440 test -z "$ac_c_werror_flag" ||
10441 test ! -s conftest.err
10442 } && test -s conftest$ac_exeext &&
10443 $as_test_x conftest$ac_exeext; then
10444 ac_cv_lib_dl_dlopen=yes
10446 echo "$as_me: failed program was:" >&5
10447 sed 's/^/| /' conftest.$ac_ext >&5
10449 ac_cv_lib_dl_dlopen=no
10452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10453 conftest$ac_exeext conftest.$ac_ext
10454 LIBS=$ac_check_lib_save_LIBS
10456 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10457 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10458 if test $ac_cv_lib_dl_dlopen = yes; then
10459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10461 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10462 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10463 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10464 echo $ECHO_N "(cached) $ECHO_C" >&6
10466 ac_check_lib_save_LIBS=$LIBS
10467 LIBS="-lsvld $LIBS"
10468 cat >conftest.$ac_ext <<_ACEOF
10471 cat confdefs.h >>conftest.$ac_ext
10472 cat >>conftest.$ac_ext <<_ACEOF
10473 /* end confdefs.h. */
10475 /* Override any GCC internal prototype to avoid an error.
10476 Use char because int might match the return type of a GCC
10477 builtin and then its argument prototype would still apply. */
10490 rm -f conftest.$ac_objext conftest$ac_exeext
10491 if { (ac_try="$ac_link"
10492 case "(($ac_try" in
10493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10494 *) ac_try_echo=$ac_try;;
10496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10497 (eval "$ac_link") 2>conftest.er1
10499 grep -v '^ *+' conftest.er1 >conftest.err
10501 cat conftest.err >&5
10502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10503 (exit $ac_status); } && {
10504 test -z "$ac_c_werror_flag" ||
10505 test ! -s conftest.err
10506 } && test -s conftest$ac_exeext &&
10507 $as_test_x conftest$ac_exeext; then
10508 ac_cv_lib_svld_dlopen=yes
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10513 ac_cv_lib_svld_dlopen=no
10516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10517 conftest$ac_exeext conftest.$ac_ext
10518 LIBS=$ac_check_lib_save_LIBS
10520 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10521 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10522 if test $ac_cv_lib_svld_dlopen = yes; then
10523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10525 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10526 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10527 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 ac_check_lib_save_LIBS=$LIBS
10532 cat >conftest.$ac_ext <<_ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10539 /* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
10549 return dld_link ();
10554 rm -f conftest.$ac_objext conftest$ac_exeext
10555 if { (ac_try="$ac_link"
10556 case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_link") 2>conftest.er1
10563 grep -v '^ *+' conftest.er1 >conftest.err
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && {
10568 test -z "$ac_c_werror_flag" ||
10569 test ! -s conftest.err
10570 } && test -s conftest$ac_exeext &&
10571 $as_test_x conftest$ac_exeext; then
10572 ac_cv_lib_dld_dld_link=yes
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10577 ac_cv_lib_dld_dld_link=no
10580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10581 conftest$ac_exeext conftest.$ac_ext
10582 LIBS=$ac_check_lib_save_LIBS
10584 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10585 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10586 if test $ac_cv_lib_dld_dld_link = yes; then
10587 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10608 if test "x$lt_cv_dlopen" != xno; then
10614 case $lt_cv_dlopen in
10616 save_CPPFLAGS="$CPPFLAGS"
10617 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10619 save_LDFLAGS="$LDFLAGS"
10620 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10623 LIBS="$lt_cv_dlopen_libs $LIBS"
10625 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10626 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10627 if test "${lt_cv_dlopen_self+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 if test "$cross_compiling" = yes; then :
10631 lt_cv_dlopen_self=cross
10633 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10634 lt_status=$lt_dlunknown
10635 cat > conftest.$ac_ext <<EOF
10636 #line 10636 "configure"
10637 #include "confdefs.h"
10646 # define LT_DLGLOBAL RTLD_GLOBAL
10649 # define LT_DLGLOBAL DL_GLOBAL
10651 # define LT_DLGLOBAL 0
10655 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10656 find out it does not work in some platform. */
10657 #ifndef LT_DLLAZY_OR_NOW
10659 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10662 # define LT_DLLAZY_OR_NOW DL_LAZY
10665 # define LT_DLLAZY_OR_NOW RTLD_NOW
10668 # define LT_DLLAZY_OR_NOW DL_NOW
10670 # define LT_DLLAZY_OR_NOW 0
10678 extern "C" void exit (int);
10681 void fnord() { int i=42;}
10684 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10685 int status = $lt_dlunknown;
10689 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10690 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10691 /* dlclose (self); */
10699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10700 (eval $ac_link) 2>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10704 (./conftest; exit; ) >&5 2>/dev/null
10706 case x$lt_status in
10707 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10708 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10709 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10712 # compilation failed
10713 lt_cv_dlopen_self=no
10720 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10721 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10723 if test "x$lt_cv_dlopen_self" = xyes; then
10724 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10725 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10726 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10727 if test "${lt_cv_dlopen_self_static+set}" = set; then
10728 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 if test "$cross_compiling" = yes; then :
10731 lt_cv_dlopen_self_static=cross
10733 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10734 lt_status=$lt_dlunknown
10735 cat > conftest.$ac_ext <<EOF
10736 #line 10736 "configure"
10737 #include "confdefs.h"
10746 # define LT_DLGLOBAL RTLD_GLOBAL
10749 # define LT_DLGLOBAL DL_GLOBAL
10751 # define LT_DLGLOBAL 0
10755 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10756 find out it does not work in some platform. */
10757 #ifndef LT_DLLAZY_OR_NOW
10759 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10762 # define LT_DLLAZY_OR_NOW DL_LAZY
10765 # define LT_DLLAZY_OR_NOW RTLD_NOW
10768 # define LT_DLLAZY_OR_NOW DL_NOW
10770 # define LT_DLLAZY_OR_NOW 0
10778 extern "C" void exit (int);
10781 void fnord() { int i=42;}
10784 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10785 int status = $lt_dlunknown;
10789 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10790 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10791 /* dlclose (self); */
10799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10800 (eval $ac_link) 2>&5
10802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10803 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10804 (./conftest; exit; ) >&5 2>/dev/null
10806 case x$lt_status in
10807 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10808 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10809 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10812 # compilation failed
10813 lt_cv_dlopen_self_static=no
10820 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10821 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10824 CPPFLAGS="$save_CPPFLAGS"
10825 LDFLAGS="$save_LDFLAGS"
10830 case $lt_cv_dlopen_self in
10831 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10832 *) enable_dlopen_self=unknown ;;
10835 case $lt_cv_dlopen_self_static in
10836 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10837 *) enable_dlopen_self_static=unknown ;;
10842 # Report which library types will actually be built
10843 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10844 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10845 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10846 echo "${ECHO_T}$can_build_shared" >&6; }
10848 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10849 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10850 test "$can_build_shared" = "no" && enable_shared=no
10852 # On AIX, shared libraries and static libraries use the same namespace, and
10853 # are all built from PIC.
10856 test "$enable_shared" = yes && enable_static=no
10857 if test -n "$RANLIB"; then
10858 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10859 postinstall_cmds='$RANLIB $lib'
10864 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10865 test "$enable_shared" = yes && enable_static=no
10869 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10870 echo "${ECHO_T}$enable_shared" >&6; }
10872 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10873 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10874 # Make sure either enable_shared or enable_static is yes.
10875 test "$enable_shared" = yes || enable_static=yes
10876 { echo "$as_me:$LINENO: result: $enable_static" >&5
10877 echo "${ECHO_T}$enable_static" >&6; }
10879 # The else clause should only fire when bootstrapping the
10880 # libtool distribution, otherwise you forgot to ship ltmain.sh
10881 # with your package, and you will get complaints that there are
10882 # no rules to generate ltmain.sh.
10883 if test -f "$ltmain"; then
10884 # See if we are running on zsh, and set the options which allow our commands through
10885 # without removal of \ escapes.
10886 if test -n "${ZSH_VERSION+set}" ; then
10887 setopt NO_GLOB_SUBST
10889 # Now quote all the things that may contain metacharacters while being
10890 # careful not to overquote the AC_SUBSTed values. We take copies of the
10891 # variables and quote the copies for generation of the libtool script.
10892 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10894 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10895 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10896 deplibs_check_method reload_flag reload_cmds need_locks \
10897 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10898 lt_cv_sys_global_symbol_to_c_name_address \
10899 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10900 old_postinstall_cmds old_postuninstall_cmds \
10904 lt_prog_compiler_wl \
10905 lt_prog_compiler_pic \
10906 lt_prog_compiler_static \
10907 lt_prog_compiler_no_builtin_flag \
10908 export_dynamic_flag_spec \
10909 thread_safe_flag_spec \
10910 whole_archive_flag_spec \
10911 enable_shared_with_static_runtimes \
10913 old_archive_from_new_cmds \
10918 compiler_lib_search_path \
10920 archive_expsym_cmds \
10922 postuninstall_cmds \
10923 old_archive_from_expsyms_cmds \
10924 allow_undefined_flag \
10925 no_undefined_flag \
10926 export_symbols_cmds \
10927 hardcode_libdir_flag_spec \
10928 hardcode_libdir_flag_spec_ld \
10929 hardcode_libdir_separator \
10930 hardcode_automatic \
10932 module_expsym_cmds \
10933 lt_cv_prog_compiler_c_o \
10935 include_expsyms; do
10938 old_archive_cmds | \
10939 old_archive_from_new_cmds | \
10941 archive_expsym_cmds | \
10943 module_expsym_cmds | \
10944 old_archive_from_expsyms_cmds | \
10945 export_symbols_cmds | \
10946 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10947 postinstall_cmds | postuninstall_cmds | \
10948 old_postinstall_cmds | old_postuninstall_cmds | \
10949 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10950 # Double-quote double-evaled strings.
10951 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10954 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10960 *'\$0 --fallback-echo"')
10961 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10965 cfgfile="${ofile}T"
10966 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10968 { echo "$as_me:$LINENO: creating $ofile" >&5
10969 echo "$as_me: creating $ofile" >&6;}
10971 cat <<__EOF__ >> "$cfgfile"
10974 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10975 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10976 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10978 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10979 # Free Software Foundation, Inc.
10981 # This file is part of GNU Libtool:
10982 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10984 # This program is free software; you can redistribute it and/or modify
10985 # it under the terms of the GNU General Public License as published by
10986 # the Free Software Foundation; either version 2 of the License, or
10987 # (at your option) any later version.
10989 # This program is distributed in the hope that it will be useful, but
10990 # WITHOUT ANY WARRANTY; without even the implied warranty of
10991 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10992 # General Public License for more details.
10994 # You should have received a copy of the GNU General Public License
10995 # along with this program; if not, write to the Free Software
10996 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10998 # As a special exception to the GNU General Public License, if you
10999 # distribute this file as part of a program that contains a
11000 # configuration script generated by Autoconf, you may include it under
11001 # the same distribution terms that you use for the rest of that program.
11003 # A sed program that does not truncate output.
11006 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11007 Xsed="$SED -e 1s/^X//"
11009 # The HP-UX ksh and POSIX shell print the target directory to stdout
11010 # if CDPATH is set.
11011 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11013 # The names of the tagged configurations supported by this script.
11016 # ### BEGIN LIBTOOL CONFIG
11018 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11020 # Shell to use when invoking shell scripts.
11023 # Whether or not to build shared libraries.
11024 build_libtool_libs=$enable_shared
11026 # Whether or not to build static libraries.
11027 build_old_libs=$enable_static
11029 # Whether or not to add -lc for building shared libraries.
11030 build_libtool_need_lc=$archive_cmds_need_lc
11032 # Whether or not to disallow shared libs when runtime libs are static
11033 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11035 # Whether or not to optimize for fast installation.
11036 fast_install=$enable_fast_install
11039 host_alias=$host_alias
11043 # The build system.
11044 build_alias=$build_alias
11048 # An echo program that does not interpret backslashes.
11053 AR_FLAGS=$lt_AR_FLAGS
11058 # LTCC compiler flags.
11059 LTCFLAGS=$lt_LTCFLAGS
11061 # A language-specific compiler.
11064 # Is the compiler the GNU C compiler?
11070 # The linker used to build libraries.
11073 # Whether we need hard or soft links.
11076 # A BSD-compatible nm program.
11079 # A symbol stripping program
11082 # Used to examine libraries when file_magic_cmd begins "file"
11083 MAGIC_CMD=$MAGIC_CMD
11085 # Used on cygwin: DLL creation program.
11088 # Used on cygwin: object dumper.
11091 # Used on cygwin: assembler.
11094 # The name of the directory that contains temporary libtool files.
11097 # How to create reloadable object files.
11098 reload_flag=$lt_reload_flag
11099 reload_cmds=$lt_reload_cmds
11101 # How to pass a linker flag through the compiler.
11102 wl=$lt_lt_prog_compiler_wl
11104 # Object file suffix (normally "o").
11105 objext="$ac_objext"
11107 # Old archive suffix (normally "a").
11110 # Shared library suffix (normally ".so").
11111 shrext_cmds='$shrext_cmds'
11113 # Executable file suffix (normally "").
11116 # Additional compiler flags for building library objects.
11117 pic_flag=$lt_lt_prog_compiler_pic
11120 # What is the maximum length of a command?
11121 max_cmd_len=$lt_cv_sys_max_cmd_len
11123 # Does compiler simultaneously support -c and -o options?
11124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11126 # Must we lock files when doing compilation?
11127 need_locks=$lt_need_locks
11129 # Do we need the lib prefix for modules?
11130 need_lib_prefix=$need_lib_prefix
11132 # Do we need a version for libraries?
11133 need_version=$need_version
11135 # Whether dlopen is supported.
11136 dlopen_support=$enable_dlopen
11138 # Whether dlopen of programs is supported.
11139 dlopen_self=$enable_dlopen_self
11141 # Whether dlopen of statically linked programs is supported.
11142 dlopen_self_static=$enable_dlopen_self_static
11144 # Compiler flag to prevent dynamic linking.
11145 link_static_flag=$lt_lt_prog_compiler_static
11147 # Compiler flag to turn off builtin functions.
11148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11150 # Compiler flag to allow reflexive dlopens.
11151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11153 # Compiler flag to generate shared objects directly from archives.
11154 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11156 # Compiler flag to generate thread-safe objects.
11157 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11159 # Library versioning type.
11160 version_type=$version_type
11162 # Format of library name prefix.
11163 libname_spec=$lt_libname_spec
11165 # List of archive names. First name is the real one, the rest are links.
11166 # The last name is the one that the linker finds with -lNAME.
11167 library_names_spec=$lt_library_names_spec
11169 # The coded name of the library, if different from the real name.
11170 soname_spec=$lt_soname_spec
11172 # Commands used to build and install an old-style archive.
11174 old_archive_cmds=$lt_old_archive_cmds
11175 old_postinstall_cmds=$lt_old_postinstall_cmds
11176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11178 # Create an old-style archive from a shared archive.
11179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11181 # Create a temporary old-style archive to link instead of a shared archive.
11182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11184 # Commands used to build and install a shared archive.
11185 archive_cmds=$lt_archive_cmds
11186 archive_expsym_cmds=$lt_archive_expsym_cmds
11187 postinstall_cmds=$lt_postinstall_cmds
11188 postuninstall_cmds=$lt_postuninstall_cmds
11190 # Commands used to build a loadable module (assumed same as above if empty)
11191 module_cmds=$lt_module_cmds
11192 module_expsym_cmds=$lt_module_expsym_cmds
11194 # Commands to strip libraries.
11195 old_striplib=$lt_old_striplib
11196 striplib=$lt_striplib
11198 # Dependencies to place before the objects being linked to create a
11200 predep_objects=$lt_predep_objects
11202 # Dependencies to place after the objects being linked to create a
11204 postdep_objects=$lt_postdep_objects
11206 # Dependencies to place before the objects being linked to create a
11208 predeps=$lt_predeps
11210 # Dependencies to place after the objects being linked to create a
11212 postdeps=$lt_postdeps
11214 # The library search path used internally by the compiler when linking
11215 # a shared library.
11216 compiler_lib_search_path=$lt_compiler_lib_search_path
11218 # Method to check whether dependent libraries are shared objects.
11219 deplibs_check_method=$lt_deplibs_check_method
11221 # Command to use when deplibs_check_method == file_magic.
11222 file_magic_cmd=$lt_file_magic_cmd
11224 # Flag that allows shared libraries with undefined symbols to be built.
11225 allow_undefined_flag=$lt_allow_undefined_flag
11227 # Flag that forces no undefined symbols.
11228 no_undefined_flag=$lt_no_undefined_flag
11230 # Commands used to finish a libtool library installation in a directory.
11231 finish_cmds=$lt_finish_cmds
11233 # Same as above, but a single script fragment to be evaled but not shown.
11234 finish_eval=$lt_finish_eval
11236 # Take the output of nm and produce a listing of raw symbols and C names.
11237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11239 # Transform the output of nm in a proper C declaration
11240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11242 # Transform the output of nm in a C name address pair
11243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11245 # This is the shared library runtime path variable.
11246 runpath_var=$runpath_var
11248 # This is the shared library path variable.
11249 shlibpath_var=$shlibpath_var
11251 # Is shlibpath searched before the hard-coded library search path?
11252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11254 # How to hardcode a shared library path into an executable.
11255 hardcode_action=$hardcode_action
11257 # Whether we should hardcode library paths into libraries.
11258 hardcode_into_libs=$hardcode_into_libs
11260 # Flag to hardcode \$libdir into a binary during linking.
11261 # This must work even if \$libdir does not exist.
11262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11264 # If ld is used when linking, flag to hardcode \$libdir into
11265 # a binary during linking. This must work even if \$libdir does
11267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11269 # Whether we need a single -rpath flag with a separated argument.
11270 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11273 # resulting binary.
11274 hardcode_direct=$hardcode_direct
11276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11277 # resulting binary.
11278 hardcode_minus_L=$hardcode_minus_L
11280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11281 # the resulting binary.
11282 hardcode_shlibpath_var=$hardcode_shlibpath_var
11284 # Set to yes if building a shared library automatically hardcodes DIR into the library
11285 # and all subsequent libraries and executables linked against it.
11286 hardcode_automatic=$hardcode_automatic
11288 # Variables whose values should be saved in libtool wrapper scripts and
11289 # restored at relink time.
11290 variables_saved_for_relink="$variables_saved_for_relink"
11292 # Whether libtool must link a program against all its dependency libraries.
11293 link_all_deplibs=$link_all_deplibs
11295 # Compile-time system search path for libraries
11296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11298 # Run-time system search path for libraries
11299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11301 # Fix the shell variable \$srcfile for the compiler.
11302 fix_srcfile_path="$fix_srcfile_path"
11304 # Set to yes if exported symbols are required.
11305 always_export_symbols=$always_export_symbols
11307 # The commands to list exported symbols.
11308 export_symbols_cmds=$lt_export_symbols_cmds
11310 # The commands to extract the exported symbol list from a shared archive.
11311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11313 # Symbols that should not be listed in the preloaded symbols.
11314 exclude_expsyms=$lt_exclude_expsyms
11316 # Symbols that must always be exported.
11317 include_expsyms=$lt_include_expsyms
11319 # ### END LIBTOOL CONFIG
11326 cat <<\EOF >> "$cfgfile"
11328 # AIX sometimes has problems with the GCC collect2 program. For some
11329 # reason, if we set the COLLECT_NAMES environment variable, the problems
11330 # vanish in a puff of smoke.
11331 if test "X${COLLECT_NAMES+set}" != Xset; then
11333 export COLLECT_NAMES
11339 # We use sed instead of cat because bash on DJGPP gets confused if
11340 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11341 # text mode, it properly converts lines to CR/LF. This bash problem
11342 # is reportedly fixed, but why not run on old versions too?
11343 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11345 mv -f "$cfgfile" "$ofile" || \
11346 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11350 # If there is no Makefile yet, we rely on a make rule to execute
11351 # `config.status --recheck' to rerun these tests and create the
11352 # libtool script then.
11353 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11354 if test -f "$ltmain_in"; then
11355 test -f Makefile && make "$ltmain"
11361 ac_cpp='$CPP $CPPFLAGS'
11362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11369 # Check whether --with-tags was given.
11370 if test "${with_tags+set}" = set; then
11371 withval=$with_tags; tagnames="$withval"
11375 if test -f "$ltmain" && test -n "$tagnames"; then
11376 if test ! -f "${ofile}"; then
11377 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11378 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11381 if test -z "$LTCC"; then
11382 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11383 if test -z "$LTCC"; then
11384 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11385 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11387 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11388 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11391 if test -z "$LTCFLAGS"; then
11392 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11395 # Extract list of available tagged configurations in $ofile.
11396 # Note that this assumes the entire list is on one line.
11397 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11399 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11400 for tagname in $tagnames; do
11402 # Check whether tagname contains only valid characters
11403 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11405 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11406 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11407 { (exit 1); exit 1; }; }
11411 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11413 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11414 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11415 { (exit 1); exit 1; }; }
11418 # Update the list of available tags.
11419 if test -n "$tagname"; then
11420 echo appending configuration tag \"$tagname\" to $ofile
11424 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11425 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11426 (test "X$CXX" != "Xg++"))) ; then
11428 ac_cpp='$CXXCPP $CPPFLAGS'
11429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11436 archive_cmds_need_lc_CXX=no
11437 allow_undefined_flag_CXX=
11438 always_export_symbols_CXX=no
11439 archive_expsym_cmds_CXX=
11440 export_dynamic_flag_spec_CXX=
11441 hardcode_direct_CXX=no
11442 hardcode_libdir_flag_spec_CXX=
11443 hardcode_libdir_flag_spec_ld_CXX=
11444 hardcode_libdir_separator_CXX=
11445 hardcode_minus_L_CXX=no
11446 hardcode_shlibpath_var_CXX=unsupported
11447 hardcode_automatic_CXX=no
11449 module_expsym_cmds_CXX=
11450 link_all_deplibs_CXX=unknown
11451 old_archive_cmds_CXX=$old_archive_cmds
11452 no_undefined_flag_CXX=
11453 whole_archive_flag_spec_CXX=
11454 enable_shared_with_static_runtimes_CXX=no
11456 # Dependencies to place before and after the object being linked:
11457 predep_objects_CXX=
11458 postdep_objects_CXX=
11461 compiler_lib_search_path_CXX=
11463 # Source file extension for C++ test sources.
11466 # Object file extension for compiled C++ test sources.
11470 # Code to be used in simple compile tests
11471 lt_simple_compile_test_code="int some_variable = 0;\n"
11473 # Code to be used in simple link tests
11474 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11476 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11478 # If no C compiler was specified, use CC.
11481 # If no C compiler flags were specified, use CFLAGS.
11482 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11484 # Allow CC to be a program name with arguments.
11488 # save warnings/boilerplate of simple test code
11489 ac_outfile=conftest.$ac_objext
11490 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11491 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11492 _lt_compiler_boilerplate=`cat conftest.err`
11495 ac_outfile=conftest.$ac_objext
11496 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11497 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11498 _lt_linker_boilerplate=`cat conftest.err`
11502 # Allow CC to be a program name with arguments.
11507 lt_save_with_gnu_ld=$with_gnu_ld
11508 lt_save_path_LD=$lt_cv_path_LD
11509 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11510 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11512 $as_unset lt_cv_prog_gnu_ld
11514 if test -n "${lt_cv_path_LDCXX+set}"; then
11515 lt_cv_path_LD=$lt_cv_path_LDCXX
11517 $as_unset lt_cv_path_LD
11519 test -z "${LDCXX+set}" || LD=$LDCXX
11523 for cc_temp in $compiler""; do
11525 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11526 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11531 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11534 # We don't want -fno-exception wen compiling C++ code, so set the
11535 # no_builtin_flag separately
11536 if test "$GXX" = yes; then
11537 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11539 lt_prog_compiler_no_builtin_flag_CXX=
11542 if test "$GXX" = yes; then
11543 # Set up default GNU C++ configuration
11546 # Check whether --with-gnu-ld was given.
11547 if test "${with_gnu_ld+set}" = set; then
11548 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11554 if test "$GCC" = yes; then
11555 # Check if gcc -print-prog-name=ld gives a path.
11556 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11557 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11560 # gcc leaves a trailing carriage return which upsets mingw
11561 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11563 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11566 # Accept absolute paths.
11568 re_direlt='/[^/][^/]*/\.\./'
11569 # Canonicalize the pathname of ld
11570 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11571 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11572 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11574 test -z "$LD" && LD="$ac_prog"
11577 # If it fails, then pretend we aren't using GCC.
11581 # If it is relative, then search for the first ld in PATH.
11582 with_gnu_ld=unknown
11585 elif test "$with_gnu_ld" = yes; then
11586 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11587 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11589 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11590 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11592 if test "${lt_cv_path_LD+set}" = set; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 if test -z "$LD"; then
11596 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11597 for ac_dir in $PATH; do
11599 test -z "$ac_dir" && ac_dir=.
11600 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11601 lt_cv_path_LD="$ac_dir/$ac_prog"
11602 # Check to see if the program is GNU ld. I'd rather use --version,
11603 # but apparently some variants of GNU ld only accept -v.
11604 # Break only if it was the GNU/non-GNU ld that we prefer.
11605 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11606 *GNU* | *'with BFD'*)
11607 test "$with_gnu_ld" != no && break
11610 test "$with_gnu_ld" != yes && break
11617 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11621 LD="$lt_cv_path_LD"
11622 if test -n "$LD"; then
11623 { echo "$as_me:$LINENO: result: $LD" >&5
11624 echo "${ECHO_T}$LD" >&6; }
11626 { echo "$as_me:$LINENO: result: no" >&5
11627 echo "${ECHO_T}no" >&6; }
11629 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11630 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11631 { (exit 1); exit 1; }; }
11632 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11633 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11634 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11635 echo $ECHO_N "(cached) $ECHO_C" >&6
11637 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11638 case `$LD -v 2>&1 </dev/null` in
11639 *GNU* | *'with BFD'*)
11640 lt_cv_prog_gnu_ld=yes
11643 lt_cv_prog_gnu_ld=no
11647 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11648 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11649 with_gnu_ld=$lt_cv_prog_gnu_ld
11653 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11654 # archiving commands below assume that GNU ld is being used.
11655 if test "$with_gnu_ld" = yes; then
11656 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11657 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'
11659 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11660 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11662 # If archive_cmds runs LD, not CC, wlarc should be empty
11663 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11664 # investigate it a little bit more. (MM)
11667 # ancient GNU ld didn't support --whole-archive et. al.
11668 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11669 grep 'no-whole-archive' > /dev/null; then
11670 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11672 whole_archive_flag_spec_CXX=
11678 # A generic and very simple default shared library creation
11679 # command for GNU C++ for the case where it uses the native
11680 # linker, instead of GNU ld. If possible, this setting should
11681 # overridden to take advantage of the native linker features on
11682 # the platform it is being used on.
11683 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11686 # Commands to make compiler produce verbose output that lists
11687 # what "hidden" libraries, object files and flags are used when
11688 # linking a shared library.
11689 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11697 # PORTME: fill in a description of your system's C++ link characteristics
11698 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11699 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11703 # FIXME: insert proper C++ library support
11707 if test "$host_cpu" = ia64; then
11708 # On IA64, the linker does run time linking by default, so we don't
11709 # have to do anything special.
11710 aix_use_runtimelinking=no
11711 exp_sym_flag='-Bexport'
11714 aix_use_runtimelinking=no
11716 # Test if we are trying to use run time linking or normal
11717 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11718 # need to do runtime linking.
11719 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11720 for ld_flag in $LDFLAGS; do
11723 aix_use_runtimelinking=yes
11731 exp_sym_flag='-bexport'
11732 no_entry_flag='-bnoentry'
11735 # When large executables or shared objects are built, AIX ld can
11736 # have problems creating the table of contents. If linking a library
11737 # or program results in "error TOC overflow" add -mminimal-toc to
11738 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11739 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11741 archive_cmds_CXX=''
11742 hardcode_direct_CXX=yes
11743 hardcode_libdir_separator_CXX=':'
11744 link_all_deplibs_CXX=yes
11746 if test "$GXX" = yes; then
11747 case $host_os in aix4.[012]|aix4.[012].*)
11748 # We only want to do this on AIX 4.2 and lower, the check
11749 # below for broken collect2 doesn't work under 4.3+
11750 collect2name=`${CC} -print-prog-name=collect2`
11751 if test -f "$collect2name" && \
11752 strings "$collect2name" | grep resolve_lib_name >/dev/null
11754 # We have reworked collect2
11755 hardcode_direct_CXX=yes
11757 # We have old collect2
11758 hardcode_direct_CXX=unsupported
11759 # It fails to find uninstalled libraries when the uninstalled
11760 # path is not listed in the libpath. Setting hardcode_minus_L
11761 # to unsupported forces relinking
11762 hardcode_minus_L_CXX=yes
11763 hardcode_libdir_flag_spec_CXX='-L$libdir'
11764 hardcode_libdir_separator_CXX=
11768 shared_flag='-shared'
11769 if test "$aix_use_runtimelinking" = yes; then
11770 shared_flag="$shared_flag "'${wl}-G'
11774 if test "$host_cpu" = ia64; then
11775 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11776 # chokes on -Wl,-G. The following line is correct:
11779 if test "$aix_use_runtimelinking" = yes; then
11780 shared_flag='${wl}-G'
11782 shared_flag='${wl}-bM:SRE'
11787 # It seems that -bexpall does not export symbols beginning with
11788 # underscore (_), so it is better to generate a list of symbols to export.
11789 always_export_symbols_CXX=yes
11790 if test "$aix_use_runtimelinking" = yes; then
11791 # Warning - without using the other runtime loading flags (-brtl),
11792 # -berok will link without error, but may produce a broken library.
11793 allow_undefined_flag_CXX='-berok'
11794 # Determine the default libpath from the value encoded in an empty executable.
11795 cat >conftest.$ac_ext <<_ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11810 rm -f conftest.$ac_objext conftest$ac_exeext
11811 if { (ac_try="$ac_link"
11812 case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_link") 2>conftest.er1
11819 grep -v '^ *+' conftest.er1 >conftest.err
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } && {
11824 test -z "$ac_cxx_werror_flag" ||
11825 test ! -s conftest.err
11826 } && test -s conftest$ac_exeext &&
11827 $as_test_x conftest$ac_exeext; then
11829 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11831 # Check for a 64-bit object if we didn't find anything.
11832 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; }
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11841 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11842 conftest$ac_exeext conftest.$ac_ext
11843 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11845 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11847 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11849 if test "$host_cpu" = ia64; then
11850 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11851 allow_undefined_flag_CXX="-z nodefs"
11852 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11854 # Determine the default libpath from the value encoded in an empty executable.
11855 cat >conftest.$ac_ext <<_ACEOF
11858 cat confdefs.h >>conftest.$ac_ext
11859 cat >>conftest.$ac_ext <<_ACEOF
11860 /* end confdefs.h. */
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (ac_try="$ac_link"
11872 case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_link") 2>conftest.er1
11879 grep -v '^ *+' conftest.er1 >conftest.err
11881 cat conftest.err >&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } && {
11884 test -z "$ac_cxx_werror_flag" ||
11885 test ! -s conftest.err
11886 } && test -s conftest$ac_exeext &&
11887 $as_test_x conftest$ac_exeext; then
11889 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11891 # Check for a 64-bit object if we didn't find anything.
11892 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; }
11895 echo "$as_me: failed program was:" >&5
11896 sed 's/^/| /' conftest.$ac_ext >&5
11901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11902 conftest$ac_exeext conftest.$ac_ext
11903 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11905 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11906 # Warning - without using the other run time loading flags,
11907 # -berok will link without error, but may produce a broken library.
11908 no_undefined_flag_CXX=' ${wl}-bernotok'
11909 allow_undefined_flag_CXX=' ${wl}-berok'
11910 # Exported symbols can be pulled into shared objects from archives
11911 whole_archive_flag_spec_CXX='$convenience'
11912 archive_cmds_need_lc_CXX=yes
11913 # This is similar to how AIX traditionally builds its shared libraries.
11914 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11921 allow_undefined_flag_CXX=unsupported
11922 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11923 # support --undefined. This deserves some investigation. FIXME
11924 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11931 case $cc_basename in
11933 # FIXME: insert proper C++ library support
11939 cygwin* | mingw* | pw32*)
11940 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11941 # as there is no search path for DLLs.
11942 hardcode_libdir_flag_spec_CXX='-L$libdir'
11943 allow_undefined_flag_CXX=unsupported
11944 always_export_symbols_CXX=no
11945 enable_shared_with_static_runtimes_CXX=yes
11947 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11948 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11949 # If the export-symbols file already is a .def file (1st line
11950 # is EXPORTS), use it as is; otherwise, prepend...
11951 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11952 cp $export_symbols $output_objdir/$soname.def;
11954 echo EXPORTS > $output_objdir/$soname.def;
11955 cat $export_symbols >> $output_objdir/$soname.def;
11957 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11962 darwin* | rhapsody*)
11964 rhapsody* | darwin1.[012])
11965 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11968 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11969 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11971 case ${MACOSX_DEPLOYMENT_TARGET} in
11973 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11976 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11982 archive_cmds_need_lc_CXX=no
11983 hardcode_direct_CXX=no
11984 hardcode_automatic_CXX=yes
11985 hardcode_shlibpath_var_CXX=unsupported
11986 whole_archive_flag_spec_CXX=''
11987 link_all_deplibs_CXX=yes
11989 if test "$GXX" = yes ; then
11990 lt_int_apple_cc_single_mod=no
11991 output_verbose_link_cmd='echo'
11992 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11993 lt_int_apple_cc_single_mod=yes
11995 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11996 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11998 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'
12000 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12001 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12002 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12003 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}'
12005 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}'
12007 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}'
12009 case $cc_basename in
12011 output_verbose_link_cmd='echo'
12012 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'
12013 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12014 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12015 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}'
12016 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}'
12026 case $cc_basename in
12028 # FIXME: insert proper C++ library support
12032 # Green Hills C++ Compiler
12033 # FIXME: insert proper C++ library support
12037 # FIXME: insert proper C++ library support
12043 # C++ shared libraries reported to be fairly broken before switch to ELF
12047 archive_cmds_need_lc_CXX=no
12049 freebsd* | dragonfly*)
12050 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12057 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12058 hardcode_libdir_separator_CXX=:
12059 export_dynamic_flag_spec_CXX='${wl}-E'
12060 hardcode_direct_CXX=yes
12061 hardcode_minus_L_CXX=yes # Not in the search PATH,
12062 # but as the default
12063 # location of the library.
12065 case $cc_basename in
12067 # FIXME: insert proper C++ library support
12071 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'
12072 # Commands to make compiler produce verbose output that lists
12073 # what "hidden" libraries, object files and flags are used when
12074 # linking a shared library.
12076 # There doesn't appear to be a way to prevent this compiler from
12077 # explicitly linking system object files so we need to strip them
12078 # from the output so that they don't get included in the library
12080 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'
12083 if test "$GXX" = yes; then
12084 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'
12086 # FIXME: insert proper C++ library support
12093 if test $with_gnu_ld = no; then
12094 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12095 hardcode_libdir_separator_CXX=:
12099 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12102 export_dynamic_flag_spec_CXX='${wl}-E'
12108 hardcode_direct_CXX=no
12109 hardcode_shlibpath_var_CXX=no
12112 hardcode_direct_CXX=yes
12113 hardcode_minus_L_CXX=yes # Not in the search PATH,
12114 # but as the default
12115 # location of the library.
12119 case $cc_basename in
12121 # FIXME: insert proper C++ library support
12127 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12130 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12133 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12136 # Commands to make compiler produce verbose output that lists
12137 # what "hidden" libraries, object files and flags are used when
12138 # linking a shared library.
12140 # There doesn't appear to be a way to prevent this compiler from
12141 # explicitly linking system object files so we need to strip them
12142 # from the output so that they don't get included in the library
12144 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'
12147 if test "$GXX" = yes; then
12148 if test $with_gnu_ld = no; then
12151 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12154 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12157 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'
12162 # FIXME: insert proper C++ library support
12169 hardcode_direct_CXX=no
12170 hardcode_shlibpath_var_CXX=no
12171 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12172 export_dynamic_flag_spec_CXX='${wl}-E'
12173 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12174 # Instead, shared libraries are loaded at an image base (0x10000000 by
12175 # default) and relocated if they conflict, which is a slow very memory
12176 # consuming and fragmenting process. To avoid this, we pick a random,
12177 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12178 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12179 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12180 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12183 case $cc_basename in
12186 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'
12188 # Archives containing C++ object files must be created using
12189 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12190 # necessary to make sure instantiated templates are included
12192 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12195 if test "$GXX" = yes; then
12196 if test "$with_gnu_ld" = no; then
12197 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'
12199 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'
12202 link_all_deplibs_CXX=yes
12205 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12206 hardcode_libdir_separator_CXX=:
12208 linux* | k*bsd*-gnu)
12209 case $cc_basename in
12211 # Kuck and Associates, Inc. (KAI) C++ Compiler
12213 # KCC will only create a shared library if the output file
12214 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12215 # to its proper name (with version) after linking.
12216 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'
12217 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'
12218 # Commands to make compiler produce verbose output that lists
12219 # what "hidden" libraries, object files and flags are used when
12220 # linking a shared library.
12222 # There doesn't appear to be a way to prevent this compiler from
12223 # explicitly linking system object files so we need to strip them
12224 # from the output so that they don't get included in the library
12226 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'
12228 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12229 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12231 # Archives containing C++ object files must be created using
12232 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12233 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12238 # version 8.0 and above of icpc choke on multiply defined symbols
12239 # if we add $predep_objects and $postdep_objects, however 7.1 and
12240 # earlier do not add the objects themselves.
12241 case `$CC -V 2>&1` in
12243 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12244 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'
12246 *) # Version 8.0 or newer
12249 ia64*) tmp_idyn=' -i_dynamic';;
12251 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12252 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'
12255 archive_cmds_need_lc_CXX=no
12256 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12257 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12258 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12261 # Portland Group C++ compiler
12262 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12263 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'
12265 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12266 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12267 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'
12271 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12272 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'
12274 runpath_var=LD_RUN_PATH
12275 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12276 hardcode_libdir_separator_CXX=:
12278 # Commands to make compiler produce verbose output that lists
12279 # what "hidden" libraries, object files and flags are used when
12280 # linking a shared library.
12282 # There doesn't appear to be a way to prevent this compiler from
12283 # explicitly linking system object files so we need to strip them
12284 # from the output so that they don't get included in the library
12286 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'
12291 # FIXME: insert proper C++ library support
12295 # FIXME: insert proper C++ library support
12299 case $cc_basename in
12301 # FIXME: insert proper C++ library support
12305 # FIXME: insert proper C++ library support
12310 netbsd* | netbsdelf*-gnu)
12311 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12312 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12314 hardcode_libdir_flag_spec_CXX='-R$libdir'
12315 hardcode_direct_CXX=yes
12316 hardcode_shlibpath_var_CXX=no
12318 # Workaround some broken pre-1.5 toolchains
12319 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12322 # C++ shared libraries are fairly broken
12326 hardcode_direct_CXX=yes
12327 hardcode_shlibpath_var_CXX=no
12328 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12329 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12330 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12331 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12332 export_dynamic_flag_spec_CXX='${wl}-E'
12333 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12335 output_verbose_link_cmd='echo'
12338 case $cc_basename in
12340 # Kuck and Associates, Inc. (KAI) C++ Compiler
12342 # KCC will only create a shared library if the output file
12343 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12344 # to its proper name (with version) after linking.
12345 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'
12347 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12348 hardcode_libdir_separator_CXX=:
12350 # Archives containing C++ object files must be created using
12351 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12352 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12356 # Rational C++ 2.4.1
12357 # FIXME: insert proper C++ library support
12361 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12362 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'
12364 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12365 hardcode_libdir_separator_CXX=:
12367 # Commands to make compiler produce verbose output that lists
12368 # what "hidden" libraries, object files and flags are used when
12369 # linking a shared library.
12371 # There doesn't appear to be a way to prevent this compiler from
12372 # explicitly linking system object files so we need to strip them
12373 # from the output so that they don't get included in the library
12375 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'
12378 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12379 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12380 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'
12382 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12383 hardcode_libdir_separator_CXX=:
12385 # Commands to make compiler produce verbose output that lists
12386 # what "hidden" libraries, object files and flags are used when
12387 # linking a shared library.
12388 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12391 # FIXME: insert proper C++ library support
12398 case $cc_basename in
12400 # Kuck and Associates, Inc. (KAI) C++ Compiler
12402 # KCC will only create a shared library if the output file
12403 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12404 # to its proper name (with version) after linking.
12405 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'
12407 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12408 hardcode_libdir_separator_CXX=:
12410 # Archives containing C++ object files must be created using
12411 # the KAI C++ compiler.
12412 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12415 # Rational C++ 2.4.1
12416 # FIXME: insert proper C++ library support
12420 allow_undefined_flag_CXX=' -expect_unresolved \*'
12421 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'
12422 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12423 echo "-hidden">> $lib.exp~
12424 $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~
12427 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12428 hardcode_libdir_separator_CXX=:
12430 # Commands to make compiler produce verbose output that lists
12431 # what "hidden" libraries, object files and flags are used when
12432 # linking a shared library.
12434 # There doesn't appear to be a way to prevent this compiler from
12435 # explicitly linking system object files so we need to strip them
12436 # from the output so that they don't get included in the library
12438 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'
12441 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12442 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12443 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'
12445 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12446 hardcode_libdir_separator_CXX=:
12448 # Commands to make compiler produce verbose output that lists
12449 # what "hidden" libraries, object files and flags are used when
12450 # linking a shared library.
12451 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12454 # FIXME: insert proper C++ library support
12461 # FIXME: insert proper C++ library support
12465 case $cc_basename in
12468 # FIXME: insert proper C++ library support
12473 # FIXME: insert proper C++ library support
12477 # FIXME: insert proper C++ library support
12483 case $cc_basename in
12485 # Sun C++ 4.2, 5.x and Centerline C++
12486 archive_cmds_need_lc_CXX=yes
12487 no_undefined_flag_CXX=' -zdefs'
12488 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12489 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12490 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12492 hardcode_libdir_flag_spec_CXX='-R$libdir'
12493 hardcode_shlibpath_var_CXX=no
12495 solaris2.[0-5] | solaris2.[0-5].*) ;;
12497 # The C++ compiler is used as linker so we must use $wl
12498 # flag to pass the commands to the underlying system
12499 # linker. We must also pass each convience library through
12500 # to the system linker between allextract/defaultextract.
12501 # The C++ compiler will combine linker options so we
12502 # cannot just pass the convience library names through
12504 # Supported since Solaris 2.6 (maybe 2.5.1?)
12505 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'
12508 link_all_deplibs_CXX=yes
12510 output_verbose_link_cmd='echo'
12512 # Archives containing C++ object files must be created using
12513 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12514 # necessary to make sure instantiated templates are included
12516 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12519 # Green Hills C++ Compiler
12520 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12522 # The C++ compiler must be used to create the archive.
12523 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12526 # GNU C++ compiler with Solaris linker
12527 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12528 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12529 if $CC --version | grep -v '^2\.7' > /dev/null; then
12530 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12531 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12532 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12534 # Commands to make compiler produce verbose output that lists
12535 # what "hidden" libraries, object files and flags are used when
12536 # linking a shared library.
12537 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12539 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12541 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12542 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12543 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12545 # Commands to make compiler produce verbose output that lists
12546 # what "hidden" libraries, object files and flags are used when
12547 # linking a shared library.
12548 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12551 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12556 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12557 no_undefined_flag_CXX='${wl}-z,text'
12558 archive_cmds_need_lc_CXX=no
12559 hardcode_shlibpath_var_CXX=no
12560 runpath_var='LD_RUN_PATH'
12562 case $cc_basename in
12564 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12565 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12568 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12569 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12573 sysv5* | sco3.2v5* | sco5v6*)
12574 # Note: We can NOT use -z defs as we might desire, because we do not
12575 # link with -lc, and that would cause any symbols used from libc to
12576 # always be unresolved, which means just about no library would
12577 # ever link correctly. If we're not using GNU ld we use -z text
12578 # though, which does catch some bad symbols but isn't as heavy-handed
12580 # For security reasons, it is highly recommended that you always
12581 # use absolute paths for naming shared libraries, and exclude the
12582 # DT_RUNPATH tag from executables and libraries. But doing so
12583 # requires that you compile everything twice, which is a pain.
12584 # So that behaviour is only enabled if SCOABSPATH is set to a
12585 # non-empty value in the environment. Most likely only useful for
12586 # creating official distributions of packages.
12587 # This is a hack until libtool officially supports absolute path
12588 # names for shared libraries.
12589 no_undefined_flag_CXX='${wl}-z,text'
12590 allow_undefined_flag_CXX='${wl}-z,nodefs'
12591 archive_cmds_need_lc_CXX=no
12592 hardcode_shlibpath_var_CXX=no
12593 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12594 hardcode_libdir_separator_CXX=':'
12595 link_all_deplibs_CXX=yes
12596 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12597 runpath_var='LD_RUN_PATH'
12599 case $cc_basename in
12601 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12602 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12605 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12606 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12611 case $cc_basename in
12613 # NonStop-UX NCC 3.20
12614 # FIXME: insert proper C++ library support
12618 # FIXME: insert proper C++ library support
12624 # FIXME: insert proper C++ library support
12628 # FIXME: insert proper C++ library support
12632 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12633 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12634 test "$ld_shlibs_CXX" = no && can_build_shared=no
12640 cat > conftest.$ac_ext <<EOF
12644 Foo (void) { a = 0; }
12650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12651 (eval $ac_compile) 2>&5
12653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12654 (exit $ac_status); }; then
12655 # Parse the compiler output and extract the necessary
12656 # objects, libraries and library flags.
12658 # Sentinel used to keep track of whether or not we are before
12659 # the conftest object file.
12660 pre_test_object_deps_done=no
12662 # The `*' in the case matches for architectures that use `case' in
12663 # $output_verbose_cmd can trigger glob expansion during the loop
12664 # eval without this substitution.
12665 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12667 for p in `eval $output_verbose_link_cmd`; do
12671 # Some compilers place space between "-{L,R}" and the path.
12672 # Remove the space.
12673 if test $p = "-L" \
12674 || test $p = "-R"; then
12681 if test "$pre_test_object_deps_done" = no; then
12684 # Internal compiler library paths should come after those
12685 # provided the user. The postdeps already come after the
12686 # user supplied libs so there is no need to process them.
12687 if test -z "$compiler_lib_search_path_CXX"; then
12688 compiler_lib_search_path_CXX="${prev}${p}"
12690 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12693 # The "-l" case would never come before the object being
12694 # linked, so don't bother handling this case.
12697 if test -z "$postdeps_CXX"; then
12698 postdeps_CXX="${prev}${p}"
12700 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12706 # This assumes that the test object file only shows up
12707 # once in the compiler output.
12708 if test "$p" = "conftest.$objext"; then
12709 pre_test_object_deps_done=yes
12713 if test "$pre_test_object_deps_done" = no; then
12714 if test -z "$predep_objects_CXX"; then
12715 predep_objects_CXX="$p"
12717 predep_objects_CXX="$predep_objects_CXX $p"
12720 if test -z "$postdep_objects_CXX"; then
12721 postdep_objects_CXX="$p"
12723 postdep_objects_CXX="$postdep_objects_CXX $p"
12728 *) ;; # Ignore the rest.
12736 echo "libtool.m4: error: problem compiling CXX test program"
12739 $rm -f confest.$objext
12741 # PORTME: override above test on systems where it is broken
12744 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12745 # hack all around it, let's just trust "g++" to DTRT.
12746 predep_objects_CXX=
12747 postdep_objects_CXX=
12752 case $cc_basename in
12754 # Adding this requires a known-good setup of shared libraries for
12755 # Sun compiler versions before 5.6, else PIC objects from an old
12756 # archive will be linked into the output, leading to subtle bugs.
12757 postdeps_CXX='-lCstd -lCrun'
12764 case " $postdeps_CXX " in
12765 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12768 lt_prog_compiler_wl_CXX=
12769 lt_prog_compiler_pic_CXX=
12770 lt_prog_compiler_static_CXX=
12772 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12773 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12775 # C++ specific cases for pic, static, wl, etc.
12776 if test "$GXX" = yes; then
12777 lt_prog_compiler_wl_CXX='-Wl,'
12778 lt_prog_compiler_static_CXX='-static'
12782 # All AIX code is PIC.
12783 if test "$host_cpu" = ia64; then
12784 # AIX 5 now supports IA64 processor
12785 lt_prog_compiler_static_CXX='-Bstatic'
12789 # FIXME: we need at least 68020 code to build shared libraries, but
12790 # adding the `-m68020' flag to GCC prevents building anything better,
12792 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12794 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12795 # PIC is the default for these OSes.
12797 mingw* | os2* | pw32*)
12798 # This hack is so that the source file can tell whether it is being
12799 # built for inclusion in a dll (and should export symbols for example).
12800 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12802 darwin* | rhapsody*)
12803 # PIC is the default on this platform
12804 # Common symbols not allowed in MH_DYLIB files
12805 lt_prog_compiler_pic_CXX='-fno-common'
12808 # DJGPP does not support shared libraries at all
12809 lt_prog_compiler_pic_CXX=
12812 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12813 # Instead, we relocate shared libraries at runtime.
12816 if test -d /usr/nec; then
12817 lt_prog_compiler_pic_CXX=-Kconform_pic
12821 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12822 # not for PA HP-UX.
12827 lt_prog_compiler_pic_CXX='-fPIC'
12832 lt_prog_compiler_pic_CXX='-fPIC'
12838 # All AIX code is PIC.
12839 if test "$host_cpu" = ia64; then
12840 # AIX 5 now supports IA64 processor
12841 lt_prog_compiler_static_CXX='-Bstatic'
12843 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12847 case $cc_basename in
12849 # Green Hills C++ Compiler
12850 # _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"
12855 # PIC is the default on this platform
12856 # Common symbols not allowed in MH_DYLIB files
12857 case $cc_basename in
12859 lt_prog_compiler_pic_CXX='-qnocommon'
12860 lt_prog_compiler_wl_CXX='-Wl,'
12865 case $cc_basename in
12867 lt_prog_compiler_pic_CXX='-KPIC'
12870 # Green Hills C++ Compiler
12871 lt_prog_compiler_pic_CXX='-pic'
12877 freebsd* | dragonfly*)
12878 # FreeBSD uses GNU C++
12880 hpux9* | hpux10* | hpux11*)
12881 case $cc_basename in
12883 lt_prog_compiler_wl_CXX='-Wl,'
12884 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12885 if test "$host_cpu" != ia64; then
12886 lt_prog_compiler_pic_CXX='+Z'
12890 lt_prog_compiler_wl_CXX='-Wl,'
12891 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12897 lt_prog_compiler_pic_CXX='+Z'
12906 # This is c89, which is MS Visual C++ (no shared libs)
12907 # Anyone wants to do a port?
12909 irix5* | irix6* | nonstopux*)
12910 case $cc_basename in
12912 lt_prog_compiler_wl_CXX='-Wl,'
12913 lt_prog_compiler_static_CXX='-non_shared'
12914 # CC pic flag -KPIC is the default.
12920 linux* | k*bsd*-gnu)
12921 case $cc_basename in
12924 lt_prog_compiler_wl_CXX='--backend -Wl,'
12925 lt_prog_compiler_pic_CXX='-fPIC'
12929 lt_prog_compiler_wl_CXX='-Wl,'
12930 lt_prog_compiler_pic_CXX='-KPIC'
12931 lt_prog_compiler_static_CXX='-static'
12934 # Portland Group C++ compiler.
12935 lt_prog_compiler_wl_CXX='-Wl,'
12936 lt_prog_compiler_pic_CXX='-fpic'
12937 lt_prog_compiler_static_CXX='-Bstatic'
12941 # Make sure the PIC flag is empty. It appears that all Alpha
12942 # Linux and Compaq Tru64 Unix objects are PIC.
12943 lt_prog_compiler_pic_CXX=
12944 lt_prog_compiler_static_CXX='-non_shared'
12955 case $cc_basename in
12957 lt_prog_compiler_pic_CXX='-W c,exportall'
12963 netbsd* | netbsdelf*-gnu)
12965 osf3* | osf4* | osf5*)
12966 case $cc_basename in
12968 lt_prog_compiler_wl_CXX='--backend -Wl,'
12971 # Rational C++ 2.4.1
12972 lt_prog_compiler_pic_CXX='-pic'
12975 # Digital/Compaq C++
12976 lt_prog_compiler_wl_CXX='-Wl,'
12977 # Make sure the PIC flag is empty. It appears that all Alpha
12978 # Linux and Compaq Tru64 Unix objects are PIC.
12979 lt_prog_compiler_pic_CXX=
12980 lt_prog_compiler_static_CXX='-non_shared'
12989 case $cc_basename in
12991 # Sun C++ 4.2, 5.x and Centerline C++
12992 lt_prog_compiler_pic_CXX='-KPIC'
12993 lt_prog_compiler_static_CXX='-Bstatic'
12994 lt_prog_compiler_wl_CXX='-Qoption ld '
12997 # Green Hills C++ Compiler
12998 lt_prog_compiler_pic_CXX='-PIC'
13005 case $cc_basename in
13008 lt_prog_compiler_pic_CXX='-pic'
13009 lt_prog_compiler_static_CXX='-Bstatic'
13013 lt_prog_compiler_pic_CXX='-pic'
13020 case $cc_basename in
13022 # NonStop-UX NCC 3.20
13023 lt_prog_compiler_pic_CXX='-KPIC'
13029 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13030 case $cc_basename in
13032 lt_prog_compiler_wl_CXX='-Wl,'
13033 lt_prog_compiler_pic_CXX='-KPIC'
13034 lt_prog_compiler_static_CXX='-Bstatic'
13041 lt_prog_compiler_can_build_shared_CXX=no
13046 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13047 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
13050 # Check to make sure the PIC flag actually works.
13052 if test -n "$lt_prog_compiler_pic_CXX"; then
13054 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13055 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
13056 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 lt_prog_compiler_pic_works_CXX=no
13060 ac_outfile=conftest.$ac_objext
13061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13062 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13063 # Insert the option either (1) after the last *FLAGS variable, or
13064 # (2) before a word containing "conftest.", or (3) at the end.
13065 # Note that $ac_compile itself does not contain backslashes and begins
13066 # with a dollar sign (not a hyphen), so the echo should work correctly.
13067 # The option is referenced via a variable to avoid confusing sed.
13068 lt_compile=`echo "$ac_compile" | $SED \
13069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13071 -e 's:$: $lt_compiler_flag:'`
13072 (eval echo "\"\$as_me:13072: $lt_compile\"" >&5)
13073 (eval "$lt_compile" 2>conftest.err)
13075 cat conftest.err >&5
13076 echo "$as_me:13076: \$? = $ac_status" >&5
13077 if (exit $ac_status) && test -s "$ac_outfile"; then
13078 # The compiler can only warn and ignore the option if not recognized
13079 # So say no if there are warnings other than the usual output.
13080 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13081 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13082 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13083 lt_prog_compiler_pic_works_CXX=yes
13089 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13090 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
13092 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13093 case $lt_prog_compiler_pic_CXX in
13095 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13098 lt_prog_compiler_pic_CXX=
13099 lt_prog_compiler_can_build_shared_CXX=no
13104 # For platforms which do not support PIC, -DPIC is meaningless:
13106 lt_prog_compiler_pic_CXX=
13109 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13114 # Check to make sure the static flag actually works.
13116 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13117 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13118 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13119 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 lt_prog_compiler_static_works_CXX=no
13123 save_LDFLAGS="$LDFLAGS"
13124 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13125 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13126 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13127 # The linker can only warn and ignore the option if not recognized
13128 # So say no if there are warnings
13129 if test -s conftest.err; then
13130 # Append any errors to the config.log.
13131 cat conftest.err 1>&5
13132 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13133 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13134 if diff conftest.exp conftest.er2 >/dev/null; then
13135 lt_prog_compiler_static_works_CXX=yes
13138 lt_prog_compiler_static_works_CXX=yes
13142 LDFLAGS="$save_LDFLAGS"
13145 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13146 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
13148 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13151 lt_prog_compiler_static_CXX=
13155 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13156 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13157 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 lt_cv_prog_compiler_c_o_CXX=no
13161 $rm -r conftest 2>/dev/null
13165 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13167 lt_compiler_flag="-o out/conftest2.$ac_objext"
13168 # Insert the option either (1) after the last *FLAGS variable, or
13169 # (2) before a word containing "conftest.", or (3) at the end.
13170 # Note that $ac_compile itself does not contain backslashes and begins
13171 # with a dollar sign (not a hyphen), so the echo should work correctly.
13172 lt_compile=`echo "$ac_compile" | $SED \
13173 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13174 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13175 -e 's:$: $lt_compiler_flag:'`
13176 (eval echo "\"\$as_me:13176: $lt_compile\"" >&5)
13177 (eval "$lt_compile" 2>out/conftest.err)
13179 cat out/conftest.err >&5
13180 echo "$as_me:13180: \$? = $ac_status" >&5
13181 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13183 # The compiler can only warn and ignore the option if not recognized
13184 # So say no if there are warnings
13185 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13186 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13187 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13188 lt_cv_prog_compiler_c_o_CXX=yes
13193 # SGI C++ compiler will create directory out/ii_files/ for
13194 # template instantiation
13195 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13196 $rm out/* && rmdir out
13202 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13203 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
13206 hard_links="nottested"
13207 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13208 # do not overwrite the value of need_locks provided by the user
13209 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13210 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13215 ln conftest.a conftest.b 2>&5 || hard_links=no
13216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13217 { echo "$as_me:$LINENO: result: $hard_links" >&5
13218 echo "${ECHO_T}$hard_links" >&6; }
13219 if test "$hard_links" = no; then
13220 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13221 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13228 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13229 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13231 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13234 # If we're using GNU nm, then we don't want the "-C" option.
13235 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13236 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13237 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'
13239 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'
13243 export_symbols_cmds_CXX="$ltdll_cmds"
13246 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'
13248 linux* | k*bsd*-gnu)
13249 link_all_deplibs_CXX=no
13252 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13256 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13257 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13258 test "$ld_shlibs_CXX" = no && can_build_shared=no
13261 # Do we need to explicitly link libc?
13263 case "x$archive_cmds_need_lc_CXX" in
13265 # Assume -lc should be added
13266 archive_cmds_need_lc_CXX=yes
13268 if test "$enable_shared" = yes && test "$GCC" = yes; then
13269 case $archive_cmds_CXX in
13271 # FIXME: we may have to deal with multi-command sequences.
13274 # Test whether the compiler implicitly links with -lc since on some
13275 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13276 # to ld, don't add -lc before -lgcc.
13277 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13278 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13280 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13283 (eval $ac_compile) 2>&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } 2>conftest.err; then
13289 libobjs=conftest.$ac_objext
13291 wl=$lt_prog_compiler_wl_CXX
13292 pic_flag=$lt_prog_compiler_pic_CXX
13298 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13299 allow_undefined_flag_CXX=
13300 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13301 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 (exit $ac_status); }
13306 archive_cmds_need_lc_CXX=no
13308 archive_cmds_need_lc_CXX=yes
13310 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13312 cat conftest.err 1>&5
13315 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13316 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13323 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13324 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13325 library_names_spec=
13326 libname_spec='lib$name'
13330 postuninstall_cmds=
13334 shlibpath_overrides_runpath=unknown
13336 dynamic_linker="$host_os ld.so"
13337 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13338 if test "$GCC" = yes; then
13339 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13340 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13341 # if the path contains ";" then we assume it to be the separator
13342 # otherwise default to the standard path separator (i.e. ":") - it is
13343 # assumed that no part of a normal pathname contains ";" but that should
13344 # okay in the real world where ";" in dirpaths is itself problematic.
13345 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13347 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13350 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13352 need_lib_prefix=unknown
13353 hardcode_into_libs=no
13355 # when you set need_version to no, make sure it does not cause -set_version
13356 # flags to be left without arguments
13357 need_version=unknown
13362 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13363 shlibpath_var=LIBPATH
13365 # AIX 3 has no versioning support, so we append a major version to the name.
13366 soname_spec='${libname}${release}${shared_ext}$major'
13373 hardcode_into_libs=yes
13374 if test "$host_cpu" = ia64; then
13375 # AIX 5 supports IA64
13376 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13377 shlibpath_var=LD_LIBRARY_PATH
13379 # With GCC up to 2.95.x, collect2 would create an import file
13380 # for dependence libraries. The import file would start with
13381 # the line `#! .'. This would cause the generated library to
13382 # depend on `.', always an invalid library. This was fixed in
13383 # development snapshots of GCC prior to 3.0.
13385 aix4 | aix4.[01] | aix4.[01].*)
13386 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13388 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13391 can_build_shared=no
13395 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13396 # soname into executable. Probably we can add versioning support to
13397 # collect2, so additional links can be useful in future.
13398 if test "$aix_use_runtimelinking" = yes; then
13399 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13400 # instead of lib<name>.a to let people know that these are not
13401 # typical AIX shared libraries.
13402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13404 # We preserve .a as extension for shared libraries through AIX4.2
13405 # and later when we are not doing run time linking.
13406 library_names_spec='${libname}${release}.a $libname.a'
13407 soname_spec='${libname}${release}${shared_ext}$major'
13409 shlibpath_var=LIBPATH
13414 library_names_spec='$libname.ixlibrary $libname.a'
13415 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13416 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'
13420 library_names_spec='${libname}${shared_ext}'
13421 dynamic_linker="$host_os ld.so"
13422 shlibpath_var=LIBRARY_PATH
13428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13429 soname_spec='${libname}${release}${shared_ext}$major'
13430 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13431 shlibpath_var=LD_LIBRARY_PATH
13432 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13433 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13434 # the default ld.so.conf also contains /usr/contrib/lib and
13435 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13436 # libtool to hard-code these into programs
13439 cygwin* | mingw* | pw32*)
13440 version_type=windows
13445 case $GCC,$host_os in
13446 yes,cygwin* | yes,mingw* | yes,pw32*)
13447 library_names_spec='$libname.dll.a'
13448 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13449 postinstall_cmds='base_file=`basename \${file}`~
13450 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13451 dldir=$destdir/`dirname \$dlpath`~
13452 test -d \$dldir || mkdir -p \$dldir~
13453 $install_prog $dir/$dlname \$dldir/$dlname~
13454 chmod a+x \$dldir/$dlname'
13455 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13456 dlpath=$dir/\$dldll~
13458 shlibpath_overrides_runpath=yes
13462 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13463 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13464 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13467 # MinGW DLLs use traditional 'lib' prefix
13468 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13469 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13470 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13471 # It is most probably a Windows format PATH printed by
13472 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13473 # path with ; separators, and with drive letters. We can handle the
13474 # drive letters (cygwin fileutils understands them), so leave them,
13475 # especially as we might pass files found there to a mingw objdump,
13476 # which wouldn't understand a cygwinified path. Ahh.
13477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13483 # pw32 DLLs use 'pw' prefix rather than 'lib'
13484 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13490 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13493 dynamic_linker='Win32 ld.exe'
13494 # FIXME: first we should search . and the directory the executable is in
13498 darwin* | rhapsody*)
13499 dynamic_linker="$host_os dyld"
13500 version_type=darwin
13503 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13504 soname_spec='${libname}${release}${major}$shared_ext'
13505 shlibpath_overrides_runpath=yes
13506 shlibpath_var=DYLD_LIBRARY_PATH
13507 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13508 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13509 if test "$GCC" = yes; then
13510 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"`
13512 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13514 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13522 soname_spec='${libname}${release}${shared_ext}$major'
13523 shlibpath_var=LD_LIBRARY_PATH
13530 freebsd* | dragonfly*)
13531 # DragonFly does not have aout. When/if they implement a new
13532 # versioning mechanism, adjust this.
13533 if test -x /usr/bin/objformat; then
13534 objformat=`/usr/bin/objformat`
13537 freebsd[123]*) objformat=aout ;;
13538 *) objformat=elf ;;
13541 version_type=freebsd-$objformat
13542 case $version_type in
13544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13549 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13553 shlibpath_var=LD_LIBRARY_PATH
13556 shlibpath_overrides_runpath=yes
13558 freebsd3.[01]* | freebsdelf3.[01]*)
13559 shlibpath_overrides_runpath=yes
13560 hardcode_into_libs=yes
13562 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13563 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13564 shlibpath_overrides_runpath=no
13565 hardcode_into_libs=yes
13567 freebsd*) # from 4.6 on
13568 shlibpath_overrides_runpath=yes
13569 hardcode_into_libs=yes
13578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13579 soname_spec='${libname}${release}${shared_ext}$major'
13580 shlibpath_var=LD_LIBRARY_PATH
13581 hardcode_into_libs=yes
13584 hpux9* | hpux10* | hpux11*)
13585 # Give a soname corresponding to the major version so that dld.sl refuses to
13586 # link against other versions.
13593 hardcode_into_libs=yes
13594 dynamic_linker="$host_os dld.so"
13595 shlibpath_var=LD_LIBRARY_PATH
13596 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13598 soname_spec='${libname}${release}${shared_ext}$major'
13599 if test "X$HPUX_IA64_MODE" = X32; then
13600 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13602 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13604 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13608 hardcode_into_libs=yes
13609 dynamic_linker="$host_os dld.sl"
13610 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13611 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13613 soname_spec='${libname}${release}${shared_ext}$major'
13614 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13615 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13619 dynamic_linker="$host_os dld.sl"
13620 shlibpath_var=SHLIB_PATH
13621 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13623 soname_spec='${libname}${release}${shared_ext}$major'
13626 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13627 postinstall_cmds='chmod 555 $lib'
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13635 soname_spec='${libname}${release}${shared_ext}$major'
13636 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13637 shlibpath_var=LD_LIBRARY_PATH
13638 shlibpath_overrides_runpath=no
13639 hardcode_into_libs=yes
13642 irix5* | irix6* | nonstopux*)
13644 nonstopux*) version_type=nonstopux ;;
13646 if test "$lt_cv_prog_gnu_ld" = yes; then
13654 soname_spec='${libname}${release}${shared_ext}$major'
13655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13657 irix5* | nonstopux*)
13658 libsuff= shlibsuff=
13661 case $LD in # libtool.m4 will add one of these switches to LD
13662 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13663 libsuff= shlibsuff= libmagic=32-bit;;
13664 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13665 libsuff=32 shlibsuff=N32 libmagic=N32;;
13666 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13667 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13668 *) libsuff= shlibsuff= libmagic=never-match;;
13672 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13673 shlibpath_overrides_runpath=no
13674 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13675 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13676 hardcode_into_libs=yes
13679 # No shared lib support for Linux oldld, aout, or coff.
13680 linux*oldld* | linux*aout* | linux*coff*)
13684 # This must be Linux ELF.
13685 linux* | k*bsd*-gnu)
13689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13690 soname_spec='${libname}${release}${shared_ext}$major'
13691 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13692 shlibpath_var=LD_LIBRARY_PATH
13693 shlibpath_overrides_runpath=no
13694 # This implies no fast_install, which is unacceptable.
13695 # Some rework will be needed to allow for fast_install
13696 # before this can be enabled.
13697 hardcode_into_libs=yes
13699 # Append ld.so.conf contents to the search path
13700 if test -f /etc/ld.so.conf; then
13701 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' ' '`
13702 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13705 # We used to test for /lib/ld.so.1 and disable shared libraries on
13706 # powerpc, because MkLinux only supported shared libraries with the
13707 # GNU dynamic linker. Since this was broken with cross compilers,
13708 # most powerpc-linux boxes support dynamic linking these days and
13709 # people can always --disable-shared, the test was removed, and we
13710 # assume the GNU/Linux dynamic linker is in use.
13711 dynamic_linker='GNU/Linux ld.so'
13718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13719 soname_spec='${libname}${release}${shared_ext}$major'
13720 shlibpath_var=LD_LIBRARY_PATH
13721 shlibpath_overrides_runpath=no
13722 hardcode_into_libs=yes
13723 dynamic_linker='NetBSD ld.elf_so'
13730 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13732 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13733 dynamic_linker='NetBSD (a.out) ld.so'
13735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13736 soname_spec='${libname}${release}${shared_ext}$major'
13737 dynamic_linker='NetBSD ld.elf_so'
13739 shlibpath_var=LD_LIBRARY_PATH
13740 shlibpath_overrides_runpath=yes
13741 hardcode_into_libs=yes
13746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747 shlibpath_var=LD_LIBRARY_PATH
13748 shlibpath_overrides_runpath=yes
13755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13756 soname_spec='${libname}${release}${shared_ext}$major'
13757 shlibpath_var=LD_LIBRARY_PATH
13758 shlibpath_overrides_runpath=yes
13763 sys_lib_dlsearch_path_spec="/usr/lib"
13765 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13767 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13768 *) need_version=no ;;
13770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13772 shlibpath_var=LD_LIBRARY_PATH
13773 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13775 openbsd2.[89] | openbsd2.[89].*)
13776 shlibpath_overrides_runpath=no
13779 shlibpath_overrides_runpath=yes
13783 shlibpath_overrides_runpath=yes
13788 libname_spec='$name'
13791 library_names_spec='$libname${shared_ext} $libname.a'
13792 dynamic_linker='OS/2 ld.exe'
13793 shlibpath_var=LIBPATH
13796 osf3* | osf4* | osf5*)
13800 soname_spec='${libname}${release}${shared_ext}$major'
13801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13802 shlibpath_var=LD_LIBRARY_PATH
13803 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13804 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13812 soname_spec='${libname}${release}${shared_ext}$major'
13813 shlibpath_var=LD_LIBRARY_PATH
13814 shlibpath_overrides_runpath=yes
13815 hardcode_into_libs=yes
13816 # ldd complains unless libraries are executable
13817 postinstall_cmds='chmod +x $lib'
13822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13823 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13824 shlibpath_var=LD_LIBRARY_PATH
13825 shlibpath_overrides_runpath=yes
13826 if test "$with_gnu_ld" = yes; then
13834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13835 soname_spec='${libname}${release}${shared_ext}$major'
13836 shlibpath_var=LD_LIBRARY_PATH
13837 case $host_vendor in
13839 shlibpath_overrides_runpath=no
13841 export_dynamic_flag_spec='${wl}-Blargedynsym'
13842 runpath_var=LD_RUN_PATH
13850 shlibpath_overrides_runpath=no
13851 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13857 if test -d /usr/nec ;then
13859 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13860 soname_spec='$libname${shared_ext}.$major'
13861 shlibpath_var=LD_LIBRARY_PATH
13865 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13866 version_type=freebsd-elf
13869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13870 soname_spec='${libname}${release}${shared_ext}$major'
13871 shlibpath_var=LD_LIBRARY_PATH
13872 hardcode_into_libs=yes
13873 if test "$with_gnu_ld" = yes; then
13874 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13875 shlibpath_overrides_runpath=no
13877 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13878 shlibpath_overrides_runpath=yes
13881 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13885 sys_lib_dlsearch_path_spec='/usr/lib'
13890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13891 soname_spec='${libname}${release}${shared_ext}$major'
13892 shlibpath_var=LD_LIBRARY_PATH
13899 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13900 echo "${ECHO_T}$dynamic_linker" >&6; }
13901 test "$dynamic_linker" = no && can_build_shared=no
13903 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13904 if test "$GCC" = yes; then
13905 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13908 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13909 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13910 hardcode_action_CXX=
13911 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13912 test -n "$runpath_var_CXX" || \
13913 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13915 # We can hardcode non-existant directories.
13916 if test "$hardcode_direct_CXX" != no &&
13917 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13918 # have to relink, otherwise we might link with an installed library
13919 # when we should be linking with a yet-to-be-installed one
13920 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13921 test "$hardcode_minus_L_CXX" != no; then
13922 # Linking always hardcodes the temporary library directory.
13923 hardcode_action_CXX=relink
13925 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13926 hardcode_action_CXX=immediate
13929 # We cannot hardcode anything, or else we can only hardcode existing
13931 hardcode_action_CXX=unsupported
13933 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13934 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13936 if test "$hardcode_action_CXX" = relink; then
13937 # Fast installation is not supported
13938 enable_fast_install=no
13939 elif test "$shlibpath_overrides_runpath" = yes ||
13940 test "$enable_shared" = no; then
13941 # Fast installation is not necessary
13942 enable_fast_install=needless
13946 # The else clause should only fire when bootstrapping the
13947 # libtool distribution, otherwise you forgot to ship ltmain.sh
13948 # with your package, and you will get complaints that there are
13949 # no rules to generate ltmain.sh.
13950 if test -f "$ltmain"; then
13951 # See if we are running on zsh, and set the options which allow our commands through
13952 # without removal of \ escapes.
13953 if test -n "${ZSH_VERSION+set}" ; then
13954 setopt NO_GLOB_SUBST
13956 # Now quote all the things that may contain metacharacters while being
13957 # careful not to overquote the AC_SUBSTed values. We take copies of the
13958 # variables and quote the copies for generation of the libtool script.
13959 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13961 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13962 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13963 deplibs_check_method reload_flag reload_cmds need_locks \
13964 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13965 lt_cv_sys_global_symbol_to_c_name_address \
13966 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13967 old_postinstall_cmds old_postuninstall_cmds \
13971 lt_prog_compiler_wl_CXX \
13972 lt_prog_compiler_pic_CXX \
13973 lt_prog_compiler_static_CXX \
13974 lt_prog_compiler_no_builtin_flag_CXX \
13975 export_dynamic_flag_spec_CXX \
13976 thread_safe_flag_spec_CXX \
13977 whole_archive_flag_spec_CXX \
13978 enable_shared_with_static_runtimes_CXX \
13979 old_archive_cmds_CXX \
13980 old_archive_from_new_cmds_CXX \
13981 predep_objects_CXX \
13982 postdep_objects_CXX \
13985 compiler_lib_search_path_CXX \
13987 archive_expsym_cmds_CXX \
13988 postinstall_cmds_CXX \
13989 postuninstall_cmds_CXX \
13990 old_archive_from_expsyms_cmds_CXX \
13991 allow_undefined_flag_CXX \
13992 no_undefined_flag_CXX \
13993 export_symbols_cmds_CXX \
13994 hardcode_libdir_flag_spec_CXX \
13995 hardcode_libdir_flag_spec_ld_CXX \
13996 hardcode_libdir_separator_CXX \
13997 hardcode_automatic_CXX \
13999 module_expsym_cmds_CXX \
14000 lt_cv_prog_compiler_c_o_CXX \
14001 exclude_expsyms_CXX \
14002 include_expsyms_CXX; do
14005 old_archive_cmds_CXX | \
14006 old_archive_from_new_cmds_CXX | \
14007 archive_cmds_CXX | \
14008 archive_expsym_cmds_CXX | \
14009 module_cmds_CXX | \
14010 module_expsym_cmds_CXX | \
14011 old_archive_from_expsyms_cmds_CXX | \
14012 export_symbols_cmds_CXX | \
14013 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14014 postinstall_cmds | postuninstall_cmds | \
14015 old_postinstall_cmds | old_postuninstall_cmds | \
14016 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14017 # Double-quote double-evaled strings.
14018 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14021 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14027 *'\$0 --fallback-echo"')
14028 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14034 cat <<__EOF__ >> "$cfgfile"
14035 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14037 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14039 # Shell to use when invoking shell scripts.
14042 # Whether or not to build shared libraries.
14043 build_libtool_libs=$enable_shared
14045 # Whether or not to build static libraries.
14046 build_old_libs=$enable_static
14048 # Whether or not to add -lc for building shared libraries.
14049 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14051 # Whether or not to disallow shared libs when runtime libs are static
14052 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14054 # Whether or not to optimize for fast installation.
14055 fast_install=$enable_fast_install
14058 host_alias=$host_alias
14062 # The build system.
14063 build_alias=$build_alias
14067 # An echo program that does not interpret backslashes.
14072 AR_FLAGS=$lt_AR_FLAGS
14077 # LTCC compiler flags.
14078 LTCFLAGS=$lt_LTCFLAGS
14080 # A language-specific compiler.
14081 CC=$lt_compiler_CXX
14083 # Is the compiler the GNU C compiler?
14089 # The linker used to build libraries.
14092 # Whether we need hard or soft links.
14095 # A BSD-compatible nm program.
14098 # A symbol stripping program
14101 # Used to examine libraries when file_magic_cmd begins "file"
14102 MAGIC_CMD=$MAGIC_CMD
14104 # Used on cygwin: DLL creation program.
14107 # Used on cygwin: object dumper.
14110 # Used on cygwin: assembler.
14113 # The name of the directory that contains temporary libtool files.
14116 # How to create reloadable object files.
14117 reload_flag=$lt_reload_flag
14118 reload_cmds=$lt_reload_cmds
14120 # How to pass a linker flag through the compiler.
14121 wl=$lt_lt_prog_compiler_wl_CXX
14123 # Object file suffix (normally "o").
14124 objext="$ac_objext"
14126 # Old archive suffix (normally "a").
14129 # Shared library suffix (normally ".so").
14130 shrext_cmds='$shrext_cmds'
14132 # Executable file suffix (normally "").
14135 # Additional compiler flags for building library objects.
14136 pic_flag=$lt_lt_prog_compiler_pic_CXX
14139 # What is the maximum length of a command?
14140 max_cmd_len=$lt_cv_sys_max_cmd_len
14142 # Does compiler simultaneously support -c and -o options?
14143 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14145 # Must we lock files when doing compilation?
14146 need_locks=$lt_need_locks
14148 # Do we need the lib prefix for modules?
14149 need_lib_prefix=$need_lib_prefix
14151 # Do we need a version for libraries?
14152 need_version=$need_version
14154 # Whether dlopen is supported.
14155 dlopen_support=$enable_dlopen
14157 # Whether dlopen of programs is supported.
14158 dlopen_self=$enable_dlopen_self
14160 # Whether dlopen of statically linked programs is supported.
14161 dlopen_self_static=$enable_dlopen_self_static
14163 # Compiler flag to prevent dynamic linking.
14164 link_static_flag=$lt_lt_prog_compiler_static_CXX
14166 # Compiler flag to turn off builtin functions.
14167 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14169 # Compiler flag to allow reflexive dlopens.
14170 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14172 # Compiler flag to generate shared objects directly from archives.
14173 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14175 # Compiler flag to generate thread-safe objects.
14176 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14178 # Library versioning type.
14179 version_type=$version_type
14181 # Format of library name prefix.
14182 libname_spec=$lt_libname_spec
14184 # List of archive names. First name is the real one, the rest are links.
14185 # The last name is the one that the linker finds with -lNAME.
14186 library_names_spec=$lt_library_names_spec
14188 # The coded name of the library, if different from the real name.
14189 soname_spec=$lt_soname_spec
14191 # Commands used to build and install an old-style archive.
14193 old_archive_cmds=$lt_old_archive_cmds_CXX
14194 old_postinstall_cmds=$lt_old_postinstall_cmds
14195 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14197 # Create an old-style archive from a shared archive.
14198 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14200 # Create a temporary old-style archive to link instead of a shared archive.
14201 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14203 # Commands used to build and install a shared archive.
14204 archive_cmds=$lt_archive_cmds_CXX
14205 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14206 postinstall_cmds=$lt_postinstall_cmds
14207 postuninstall_cmds=$lt_postuninstall_cmds
14209 # Commands used to build a loadable module (assumed same as above if empty)
14210 module_cmds=$lt_module_cmds_CXX
14211 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14213 # Commands to strip libraries.
14214 old_striplib=$lt_old_striplib
14215 striplib=$lt_striplib
14217 # Dependencies to place before the objects being linked to create a
14219 predep_objects=$lt_predep_objects_CXX
14221 # Dependencies to place after the objects being linked to create a
14223 postdep_objects=$lt_postdep_objects_CXX
14225 # Dependencies to place before the objects being linked to create a
14227 predeps=$lt_predeps_CXX
14229 # Dependencies to place after the objects being linked to create a
14231 postdeps=$lt_postdeps_CXX
14233 # The library search path used internally by the compiler when linking
14234 # a shared library.
14235 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14237 # Method to check whether dependent libraries are shared objects.
14238 deplibs_check_method=$lt_deplibs_check_method
14240 # Command to use when deplibs_check_method == file_magic.
14241 file_magic_cmd=$lt_file_magic_cmd
14243 # Flag that allows shared libraries with undefined symbols to be built.
14244 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14246 # Flag that forces no undefined symbols.
14247 no_undefined_flag=$lt_no_undefined_flag_CXX
14249 # Commands used to finish a libtool library installation in a directory.
14250 finish_cmds=$lt_finish_cmds
14252 # Same as above, but a single script fragment to be evaled but not shown.
14253 finish_eval=$lt_finish_eval
14255 # Take the output of nm and produce a listing of raw symbols and C names.
14256 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14258 # Transform the output of nm in a proper C declaration
14259 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14261 # Transform the output of nm in a C name address pair
14262 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14264 # This is the shared library runtime path variable.
14265 runpath_var=$runpath_var
14267 # This is the shared library path variable.
14268 shlibpath_var=$shlibpath_var
14270 # Is shlibpath searched before the hard-coded library search path?
14271 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14273 # How to hardcode a shared library path into an executable.
14274 hardcode_action=$hardcode_action_CXX
14276 # Whether we should hardcode library paths into libraries.
14277 hardcode_into_libs=$hardcode_into_libs
14279 # Flag to hardcode \$libdir into a binary during linking.
14280 # This must work even if \$libdir does not exist.
14281 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14283 # If ld is used when linking, flag to hardcode \$libdir into
14284 # a binary during linking. This must work even if \$libdir does
14286 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14288 # Whether we need a single -rpath flag with a separated argument.
14289 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14291 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14292 # resulting binary.
14293 hardcode_direct=$hardcode_direct_CXX
14295 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14296 # resulting binary.
14297 hardcode_minus_L=$hardcode_minus_L_CXX
14299 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14300 # the resulting binary.
14301 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14303 # Set to yes if building a shared library automatically hardcodes DIR into the library
14304 # and all subsequent libraries and executables linked against it.
14305 hardcode_automatic=$hardcode_automatic_CXX
14307 # Variables whose values should be saved in libtool wrapper scripts and
14308 # restored at relink time.
14309 variables_saved_for_relink="$variables_saved_for_relink"
14311 # Whether libtool must link a program against all its dependency libraries.
14312 link_all_deplibs=$link_all_deplibs_CXX
14314 # Compile-time system search path for libraries
14315 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14317 # Run-time system search path for libraries
14318 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14320 # Fix the shell variable \$srcfile for the compiler.
14321 fix_srcfile_path="$fix_srcfile_path_CXX"
14323 # Set to yes if exported symbols are required.
14324 always_export_symbols=$always_export_symbols_CXX
14326 # The commands to list exported symbols.
14327 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14329 # The commands to extract the exported symbol list from a shared archive.
14330 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14332 # Symbols that should not be listed in the preloaded symbols.
14333 exclude_expsyms=$lt_exclude_expsyms_CXX
14335 # Symbols that must always be exported.
14336 include_expsyms=$lt_include_expsyms_CXX
14338 # ### END LIBTOOL TAG CONFIG: $tagname
14344 # If there is no Makefile yet, we rely on a make rule to execute
14345 # `config.status --recheck' to rerun these tests and create the
14346 # libtool script then.
14347 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14348 if test -f "$ltmain_in"; then
14349 test -f Makefile && make "$ltmain"
14355 ac_cpp='$CPP $CPPFLAGS'
14356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14364 with_gnu_ldcxx=$with_gnu_ld
14365 with_gnu_ld=$lt_save_with_gnu_ld
14366 lt_cv_path_LDCXX=$lt_cv_path_LD
14367 lt_cv_path_LD=$lt_save_path_LD
14368 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14369 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14377 if test -n "$F77" && test "X$F77" != "Xno"; then
14380 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14381 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14382 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14385 archive_cmds_need_lc_F77=no
14386 allow_undefined_flag_F77=
14387 always_export_symbols_F77=no
14388 archive_expsym_cmds_F77=
14389 export_dynamic_flag_spec_F77=
14390 hardcode_direct_F77=no
14391 hardcode_libdir_flag_spec_F77=
14392 hardcode_libdir_flag_spec_ld_F77=
14393 hardcode_libdir_separator_F77=
14394 hardcode_minus_L_F77=no
14395 hardcode_automatic_F77=no
14397 module_expsym_cmds_F77=
14398 link_all_deplibs_F77=unknown
14399 old_archive_cmds_F77=$old_archive_cmds
14400 no_undefined_flag_F77=
14401 whole_archive_flag_spec_F77=
14402 enable_shared_with_static_runtimes_F77=no
14404 # Source file extension for f77 test sources.
14407 # Object file extension for compiled f77 test sources.
14411 # Code to be used in simple compile tests
14412 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
14414 # Code to be used in simple link tests
14415 lt_simple_link_test_code=" program t\n end\n"
14417 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14419 # If no C compiler was specified, use CC.
14422 # If no C compiler flags were specified, use CFLAGS.
14423 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14425 # Allow CC to be a program name with arguments.
14429 # save warnings/boilerplate of simple test code
14430 ac_outfile=conftest.$ac_objext
14431 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14432 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14433 _lt_compiler_boilerplate=`cat conftest.err`
14436 ac_outfile=conftest.$ac_objext
14437 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14438 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14439 _lt_linker_boilerplate=`cat conftest.err`
14443 # Allow CC to be a program name with arguments.
14448 for cc_temp in $compiler""; do
14450 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14451 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14456 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14459 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14460 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14461 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14462 echo "${ECHO_T}$can_build_shared" >&6; }
14464 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14465 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14466 test "$can_build_shared" = "no" && enable_shared=no
14468 # On AIX, shared libraries and static libraries use the same namespace, and
14469 # are all built from PIC.
14472 test "$enable_shared" = yes && enable_static=no
14473 if test -n "$RANLIB"; then
14474 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14475 postinstall_cmds='$RANLIB $lib'
14479 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14480 test "$enable_shared" = yes && enable_static=no
14484 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14485 echo "${ECHO_T}$enable_shared" >&6; }
14487 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14488 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14489 # Make sure either enable_shared or enable_static is yes.
14490 test "$enable_shared" = yes || enable_static=yes
14491 { echo "$as_me:$LINENO: result: $enable_static" >&5
14492 echo "${ECHO_T}$enable_static" >&6; }
14497 lt_prog_compiler_wl_F77=
14498 lt_prog_compiler_pic_F77=
14499 lt_prog_compiler_static_F77=
14501 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14502 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14504 if test "$GCC" = yes; then
14505 lt_prog_compiler_wl_F77='-Wl,'
14506 lt_prog_compiler_static_F77='-static'
14510 # All AIX code is PIC.
14511 if test "$host_cpu" = ia64; then
14512 # AIX 5 now supports IA64 processor
14513 lt_prog_compiler_static_F77='-Bstatic'
14518 # FIXME: we need at least 68020 code to build shared libraries, but
14519 # adding the `-m68020' flag to GCC prevents building anything better,
14521 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14524 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14525 # PIC is the default for these OSes.
14528 mingw* | pw32* | os2*)
14529 # This hack is so that the source file can tell whether it is being
14530 # built for inclusion in a dll (and should export symbols for example).
14531 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14534 darwin* | rhapsody*)
14535 # PIC is the default on this platform
14536 # Common symbols not allowed in MH_DYLIB files
14537 lt_prog_compiler_pic_F77='-fno-common'
14541 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14542 # Instead, we relocate shared libraries at runtime.
14546 # Just because we use GCC doesn't mean we suddenly get shared libraries
14547 # on systems that don't support them.
14548 lt_prog_compiler_can_build_shared_F77=no
14553 if test -d /usr/nec; then
14554 lt_prog_compiler_pic_F77=-Kconform_pic
14559 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14560 # not for PA HP-UX.
14566 lt_prog_compiler_pic_F77='-fPIC'
14572 lt_prog_compiler_pic_F77='-fPIC'
14576 # PORTME Check for flag to pass linker flags through the system compiler.
14579 lt_prog_compiler_wl_F77='-Wl,'
14580 if test "$host_cpu" = ia64; then
14581 # AIX 5 now supports IA64 processor
14582 lt_prog_compiler_static_F77='-Bstatic'
14584 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14588 # PIC is the default on this platform
14589 # Common symbols not allowed in MH_DYLIB files
14590 case $cc_basename in
14592 lt_prog_compiler_pic_F77='-qnocommon'
14593 lt_prog_compiler_wl_F77='-Wl,'
14598 mingw* | pw32* | os2*)
14599 # This hack is so that the source file can tell whether it is being
14600 # built for inclusion in a dll (and should export symbols for example).
14601 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14604 hpux9* | hpux10* | hpux11*)
14605 lt_prog_compiler_wl_F77='-Wl,'
14606 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14607 # not for PA HP-UX.
14613 lt_prog_compiler_pic_F77='+Z'
14616 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14617 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14620 irix5* | irix6* | nonstopux*)
14621 lt_prog_compiler_wl_F77='-Wl,'
14622 # PIC (with -KPIC) is the default.
14623 lt_prog_compiler_static_F77='-non_shared'
14627 lt_prog_compiler_pic_F77='-KPIC'
14628 lt_prog_compiler_static_F77='-Bstatic'
14631 linux* | k*bsd*-gnu)
14632 case $cc_basename in
14634 lt_prog_compiler_wl_F77='-Wl,'
14635 lt_prog_compiler_pic_F77='-KPIC'
14636 lt_prog_compiler_static_F77='-static'
14638 pgcc* | pgf77* | pgf90* | pgf95*)
14639 # Portland Group compilers (*not* the Pentium gcc compiler,
14640 # which looks to be a dead project)
14641 lt_prog_compiler_wl_F77='-Wl,'
14642 lt_prog_compiler_pic_F77='-fpic'
14643 lt_prog_compiler_static_F77='-Bstatic'
14646 lt_prog_compiler_wl_F77='-Wl,'
14647 # All Alpha code is PIC.
14648 lt_prog_compiler_static_F77='-non_shared'
14653 osf3* | osf4* | osf5*)
14654 lt_prog_compiler_wl_F77='-Wl,'
14655 # All OSF/1 code is PIC.
14656 lt_prog_compiler_static_F77='-non_shared'
14660 lt_prog_compiler_pic_F77='-KPIC'
14661 lt_prog_compiler_static_F77='-Bstatic'
14662 case $cc_basename in
14663 f77* | f90* | f95*)
14664 lt_prog_compiler_wl_F77='-Qoption ld ';;
14666 lt_prog_compiler_wl_F77='-Wl,';;
14671 lt_prog_compiler_wl_F77='-Qoption ld '
14672 lt_prog_compiler_pic_F77='-PIC'
14673 lt_prog_compiler_static_F77='-Bstatic'
14676 sysv4 | sysv4.2uw2* | sysv4.3*)
14677 lt_prog_compiler_wl_F77='-Wl,'
14678 lt_prog_compiler_pic_F77='-KPIC'
14679 lt_prog_compiler_static_F77='-Bstatic'
14683 if test -d /usr/nec ;then
14684 lt_prog_compiler_pic_F77='-Kconform_pic'
14685 lt_prog_compiler_static_F77='-Bstatic'
14689 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14690 lt_prog_compiler_wl_F77='-Wl,'
14691 lt_prog_compiler_pic_F77='-KPIC'
14692 lt_prog_compiler_static_F77='-Bstatic'
14696 lt_prog_compiler_wl_F77='-Wl,'
14697 lt_prog_compiler_can_build_shared_F77=no
14701 lt_prog_compiler_pic_F77='-pic'
14702 lt_prog_compiler_static_F77='-Bstatic'
14706 lt_prog_compiler_can_build_shared_F77=no
14711 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14712 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14715 # Check to make sure the PIC flag actually works.
14717 if test -n "$lt_prog_compiler_pic_F77"; then
14719 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14721 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14722 echo $ECHO_N "(cached) $ECHO_C" >&6
14724 lt_prog_compiler_pic_works_F77=no
14725 ac_outfile=conftest.$ac_objext
14726 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14727 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14728 # Insert the option either (1) after the last *FLAGS variable, or
14729 # (2) before a word containing "conftest.", or (3) at the end.
14730 # Note that $ac_compile itself does not contain backslashes and begins
14731 # with a dollar sign (not a hyphen), so the echo should work correctly.
14732 # The option is referenced via a variable to avoid confusing sed.
14733 lt_compile=`echo "$ac_compile" | $SED \
14734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14736 -e 's:$: $lt_compiler_flag:'`
14737 (eval echo "\"\$as_me:14737: $lt_compile\"" >&5)
14738 (eval "$lt_compile" 2>conftest.err)
14740 cat conftest.err >&5
14741 echo "$as_me:14741: \$? = $ac_status" >&5
14742 if (exit $ac_status) && test -s "$ac_outfile"; then
14743 # The compiler can only warn and ignore the option if not recognized
14744 # So say no if there are warnings other than the usual output.
14745 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14746 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14747 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14748 lt_prog_compiler_pic_works_F77=yes
14754 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14755 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14757 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14758 case $lt_prog_compiler_pic_F77 in
14760 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14763 lt_prog_compiler_pic_F77=
14764 lt_prog_compiler_can_build_shared_F77=no
14769 # For platforms which do not support PIC, -DPIC is meaningless:
14771 lt_prog_compiler_pic_F77=
14774 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14779 # Check to make sure the static flag actually works.
14781 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14782 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14784 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 lt_prog_compiler_static_works_F77=no
14788 save_LDFLAGS="$LDFLAGS"
14789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14790 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14792 # The linker can only warn and ignore the option if not recognized
14793 # So say no if there are warnings
14794 if test -s conftest.err; then
14795 # Append any errors to the config.log.
14796 cat conftest.err 1>&5
14797 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14799 if diff conftest.exp conftest.er2 >/dev/null; then
14800 lt_prog_compiler_static_works_F77=yes
14803 lt_prog_compiler_static_works_F77=yes
14807 LDFLAGS="$save_LDFLAGS"
14810 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14811 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14813 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14816 lt_prog_compiler_static_F77=
14820 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14822 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14823 echo $ECHO_N "(cached) $ECHO_C" >&6
14825 lt_cv_prog_compiler_c_o_F77=no
14826 $rm -r conftest 2>/dev/null
14830 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14832 lt_compiler_flag="-o out/conftest2.$ac_objext"
14833 # Insert the option either (1) after the last *FLAGS variable, or
14834 # (2) before a word containing "conftest.", or (3) at the end.
14835 # Note that $ac_compile itself does not contain backslashes and begins
14836 # with a dollar sign (not a hyphen), so the echo should work correctly.
14837 lt_compile=`echo "$ac_compile" | $SED \
14838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14840 -e 's:$: $lt_compiler_flag:'`
14841 (eval echo "\"\$as_me:14841: $lt_compile\"" >&5)
14842 (eval "$lt_compile" 2>out/conftest.err)
14844 cat out/conftest.err >&5
14845 echo "$as_me:14845: \$? = $ac_status" >&5
14846 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14848 # The compiler can only warn and ignore the option if not recognized
14849 # So say no if there are warnings
14850 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14851 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14852 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14853 lt_cv_prog_compiler_c_o_F77=yes
14858 # SGI C++ compiler will create directory out/ii_files/ for
14859 # template instantiation
14860 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14861 $rm out/* && rmdir out
14867 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14871 hard_links="nottested"
14872 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14873 # do not overwrite the value of need_locks provided by the user
14874 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14878 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14880 ln conftest.a conftest.b 2>&5 || hard_links=no
14881 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14882 { echo "$as_me:$LINENO: result: $hard_links" >&5
14883 echo "${ECHO_T}$hard_links" >&6; }
14884 if test "$hard_links" = no; then
14885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14893 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14897 allow_undefined_flag_F77=
14898 enable_shared_with_static_runtimes_F77=no
14900 archive_expsym_cmds_F77=
14901 old_archive_From_new_cmds_F77=
14902 old_archive_from_expsyms_cmds_F77=
14903 export_dynamic_flag_spec_F77=
14904 whole_archive_flag_spec_F77=
14905 thread_safe_flag_spec_F77=
14906 hardcode_libdir_flag_spec_F77=
14907 hardcode_libdir_flag_spec_ld_F77=
14908 hardcode_libdir_separator_F77=
14909 hardcode_direct_F77=no
14910 hardcode_minus_L_F77=no
14911 hardcode_shlibpath_var_F77=unsupported
14912 link_all_deplibs_F77=unknown
14913 hardcode_automatic_F77=no
14915 module_expsym_cmds_F77=
14916 always_export_symbols_F77=no
14917 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14918 # include_expsyms should be a list of space-separated symbols to be *always*
14919 # included in the symbol list
14920 include_expsyms_F77=
14921 # exclude_expsyms can be an extended regexp of symbols to exclude
14922 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14923 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14924 # as well as any symbol that contains `d'.
14925 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14926 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14927 # platforms (ab)use it in PIC code, but their linkers get confused if
14928 # the symbol is explicitly referenced. Since portable code cannot
14929 # rely on this symbol name, it's probably fine to never include it in
14930 # preloaded symbol tables.
14931 extract_expsyms_cmds=
14932 # Just being paranoid about ensuring that cc_basename is set.
14933 for cc_temp in $compiler""; do
14935 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14936 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14941 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14944 cygwin* | mingw* | pw32*)
14945 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14946 # When not using gcc, we currently assume that we are using
14947 # Microsoft Visual C++.
14948 if test "$GCC" != yes; then
14953 # we just hope/assume this is gcc and not c89 (= MSVC++)
14962 if test "$with_gnu_ld" = yes; then
14963 # If archive_cmds runs LD, not CC, wlarc should be empty
14966 # Set some defaults for GNU ld with shared library support. These
14967 # are reset later if shared libraries are not supported. Putting them
14968 # here allows them to be overridden if necessary.
14969 runpath_var=LD_RUN_PATH
14970 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14971 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14972 # ancient GNU ld didn't support --whole-archive et. al.
14973 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14974 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14976 whole_archive_flag_spec_F77=
14978 supports_anon_versioning=no
14979 case `$LD -v 2>/dev/null` in
14980 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14981 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14982 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14983 *\ 2.11.*) ;; # other 2.11 versions
14984 *) supports_anon_versioning=yes ;;
14987 # See if GNU ld supports shared libraries.
14989 aix3* | aix4* | aix5*)
14990 # On AIX/PPC, the GNU linker is very broken
14991 if test "$host_cpu" != ia64; then
14995 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14996 *** to be unable to reliably create shared libraries on AIX.
14997 *** Therefore, libtool is disabling shared libraries support. If you
14998 *** really care for shared libraries, you may want to modify your PATH
14999 *** so that a non-GNU linker is found, and then restart.
15006 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)'
15007 hardcode_libdir_flag_spec_F77='-L$libdir'
15008 hardcode_minus_L_F77=yes
15010 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15011 # that the semantics of dynamic libraries on AmigaOS, at least up
15012 # to version 4, is to share data among multiple programs linked
15013 # with the same dynamic library. Since this doesn't match the
15014 # behavior of shared libraries on other platforms, we can't use
15020 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15021 allow_undefined_flag_F77=unsupported
15022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15023 # support --undefined. This deserves some investigation. FIXME
15024 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15030 cygwin* | mingw* | pw32*)
15031 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15032 # as there is no search path for DLLs.
15033 hardcode_libdir_flag_spec_F77='-L$libdir'
15034 allow_undefined_flag_F77=unsupported
15035 always_export_symbols_F77=no
15036 enable_shared_with_static_runtimes_F77=yes
15037 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15039 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15040 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15041 # If the export-symbols file already is a .def file (1st line
15042 # is EXPORTS), use it as is; otherwise, prepend...
15043 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15044 cp $export_symbols $output_objdir/$soname.def;
15046 echo EXPORTS > $output_objdir/$soname.def;
15047 cat $export_symbols >> $output_objdir/$soname.def;
15049 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15056 hardcode_direct_F77=no
15057 hardcode_shlibpath_var_F77=no
15058 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15059 export_dynamic_flag_spec_F77='${wl}-E'
15060 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15061 # Instead, shared libraries are loaded at an image base (0x10000000 by
15062 # default) and relocated if they conflict, which is a slow very memory
15063 # consuming and fragmenting process. To avoid this, we pick a random,
15064 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15065 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15066 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15067 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15070 linux* | k*bsd*-gnu)
15071 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15073 case $cc_basename,$host_cpu in
15074 pgcc*) # Portland Group C compiler
15075 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'
15076 tmp_addflag=' $pic_flag'
15078 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15079 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'
15080 tmp_addflag=' $pic_flag -Mnomain' ;;
15081 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15082 tmp_addflag=' -i_dynamic' ;;
15083 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15084 tmp_addflag=' -i_dynamic -nofor_main' ;;
15085 ifc* | ifort*) # Intel Fortran compiler
15086 tmp_addflag=' -nofor_main' ;;
15088 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15090 if test $supports_anon_versioning = yes; then
15091 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15092 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15093 $echo "local: *; };" >> $output_objdir/$libname.ver~
15094 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15096 link_all_deplibs_F77=no
15102 netbsd* | netbsdelf*-gnu)
15103 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15104 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15107 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15108 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15113 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15117 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15118 *** create shared libraries on Solaris systems. Therefore, libtool
15119 *** is disabling shared libraries support. We urge you to upgrade GNU
15120 *** binutils to release 2.9.1 or newer. Another option is to modify
15121 *** your PATH or compiler configuration so that the native linker is
15122 *** used, and then restart.
15125 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15126 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15127 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15133 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15134 case `$LD -v 2>&1` in
15135 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15139 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15140 *** reliably create shared libraries on SCO systems. Therefore, libtool
15141 *** is disabling shared libraries support. We urge you to upgrade GNU
15142 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15143 *** your PATH or compiler configuration so that the native linker is
15144 *** used, and then restart.
15149 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15150 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15151 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15152 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15161 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15163 hardcode_direct_F77=yes
15164 hardcode_shlibpath_var_F77=no
15168 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15169 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15170 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15177 if test "$ld_shlibs_F77" = no; then
15179 hardcode_libdir_flag_spec_F77=
15180 export_dynamic_flag_spec_F77=
15181 whole_archive_flag_spec_F77=
15184 # PORTME fill in a description of your system's linker (not GNU ld)
15187 allow_undefined_flag_F77=unsupported
15188 always_export_symbols_F77=yes
15189 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'
15190 # Note: this linker hardcodes the directories in LIBPATH if there
15191 # are no directories specified by -L.
15192 hardcode_minus_L_F77=yes
15193 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15194 # Neither direct hardcoding nor static linking is supported with a
15196 hardcode_direct_F77=unsupported
15201 if test "$host_cpu" = ia64; then
15202 # On IA64, the linker does run time linking by default, so we don't
15203 # have to do anything special.
15204 aix_use_runtimelinking=no
15205 exp_sym_flag='-Bexport'
15208 # If we're using GNU nm, then we don't want the "-C" option.
15209 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15210 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15211 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'
15213 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'
15215 aix_use_runtimelinking=no
15217 # Test if we are trying to use run time linking or normal
15218 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15219 # need to do runtime linking.
15220 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15221 for ld_flag in $LDFLAGS; do
15222 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15223 aix_use_runtimelinking=yes
15230 exp_sym_flag='-bexport'
15231 no_entry_flag='-bnoentry'
15234 # When large executables or shared objects are built, AIX ld can
15235 # have problems creating the table of contents. If linking a library
15236 # or program results in "error TOC overflow" add -mminimal-toc to
15237 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15238 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15240 archive_cmds_F77=''
15241 hardcode_direct_F77=yes
15242 hardcode_libdir_separator_F77=':'
15243 link_all_deplibs_F77=yes
15245 if test "$GCC" = yes; then
15246 case $host_os in aix4.[012]|aix4.[012].*)
15247 # We only want to do this on AIX 4.2 and lower, the check
15248 # below for broken collect2 doesn't work under 4.3+
15249 collect2name=`${CC} -print-prog-name=collect2`
15250 if test -f "$collect2name" && \
15251 strings "$collect2name" | grep resolve_lib_name >/dev/null
15253 # We have reworked collect2
15254 hardcode_direct_F77=yes
15256 # We have old collect2
15257 hardcode_direct_F77=unsupported
15258 # It fails to find uninstalled libraries when the uninstalled
15259 # path is not listed in the libpath. Setting hardcode_minus_L
15260 # to unsupported forces relinking
15261 hardcode_minus_L_F77=yes
15262 hardcode_libdir_flag_spec_F77='-L$libdir'
15263 hardcode_libdir_separator_F77=
15267 shared_flag='-shared'
15268 if test "$aix_use_runtimelinking" = yes; then
15269 shared_flag="$shared_flag "'${wl}-G'
15273 if test "$host_cpu" = ia64; then
15274 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15275 # chokes on -Wl,-G. The following line is correct:
15278 if test "$aix_use_runtimelinking" = yes; then
15279 shared_flag='${wl}-G'
15281 shared_flag='${wl}-bM:SRE'
15286 # It seems that -bexpall does not export symbols beginning with
15287 # underscore (_), so it is better to generate a list of symbols to export.
15288 always_export_symbols_F77=yes
15289 if test "$aix_use_runtimelinking" = yes; then
15290 # Warning - without using the other runtime loading flags (-brtl),
15291 # -berok will link without error, but may produce a broken library.
15292 allow_undefined_flag_F77='-berok'
15293 # Determine the default libpath from the value encoded in an empty executable.
15294 cat >conftest.$ac_ext <<_ACEOF
15299 rm -f conftest.$ac_objext conftest$ac_exeext
15300 if { (ac_try="$ac_link"
15301 case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15306 (eval "$ac_link") 2>conftest.er1
15308 grep -v '^ *+' conftest.er1 >conftest.err
15310 cat conftest.err >&5
15311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15312 (exit $ac_status); } && {
15313 test -z "$ac_f77_werror_flag" ||
15314 test ! -s conftest.err
15315 } && test -s conftest$ac_exeext &&
15316 $as_test_x conftest$ac_exeext; then
15318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15320 # Check for a 64-bit object if we didn't find anything.
15321 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; }
15324 echo "$as_me: failed program was:" >&5
15325 sed 's/^/| /' conftest.$ac_ext >&5
15330 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15331 conftest$ac_exeext conftest.$ac_ext
15332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15334 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15335 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15337 if test "$host_cpu" = ia64; then
15338 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15339 allow_undefined_flag_F77="-z nodefs"
15340 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15342 # Determine the default libpath from the value encoded in an empty executable.
15343 cat >conftest.$ac_ext <<_ACEOF
15348 rm -f conftest.$ac_objext conftest$ac_exeext
15349 if { (ac_try="$ac_link"
15350 case "(($ac_try" in
15351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15352 *) ac_try_echo=$ac_try;;
15354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15355 (eval "$ac_link") 2>conftest.er1
15357 grep -v '^ *+' conftest.er1 >conftest.err
15359 cat conftest.err >&5
15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361 (exit $ac_status); } && {
15362 test -z "$ac_f77_werror_flag" ||
15363 test ! -s conftest.err
15364 } && test -s conftest$ac_exeext &&
15365 $as_test_x conftest$ac_exeext; then
15367 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15369 # Check for a 64-bit object if we didn't find anything.
15370 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; }
15373 echo "$as_me: failed program was:" >&5
15374 sed 's/^/| /' conftest.$ac_ext >&5
15379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15380 conftest$ac_exeext conftest.$ac_ext
15381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15383 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15384 # Warning - without using the other run time loading flags,
15385 # -berok will link without error, but may produce a broken library.
15386 no_undefined_flag_F77=' ${wl}-bernotok'
15387 allow_undefined_flag_F77=' ${wl}-berok'
15388 # Exported symbols can be pulled into shared objects from archives
15389 whole_archive_flag_spec_F77='$convenience'
15390 archive_cmds_need_lc_F77=yes
15391 # This is similar to how AIX traditionally builds its shared libraries.
15392 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15398 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)'
15399 hardcode_libdir_flag_spec_F77='-L$libdir'
15400 hardcode_minus_L_F77=yes
15401 # see comment about different semantics on the GNU ld section
15406 export_dynamic_flag_spec_F77=-rdynamic
15409 cygwin* | mingw* | pw32*)
15410 # When not using gcc, we currently assume that we are using
15411 # Microsoft Visual C++.
15412 # hardcode_libdir_flag_spec is actually meaningless, as there is
15413 # no search path for DLLs.
15414 hardcode_libdir_flag_spec_F77=' '
15415 allow_undefined_flag_F77=unsupported
15416 # Tell ltmain to make .lib files, not .a files.
15418 # Tell ltmain to make .dll files, not .so files.
15420 # FIXME: Setting linknames here is a bad hack.
15421 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15422 # The linker will automatically build a .lib file if we build a DLL.
15423 old_archive_From_new_cmds_F77='true'
15424 # FIXME: Should let the user specify the lib program.
15425 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15426 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15427 enable_shared_with_static_runtimes_F77=yes
15430 darwin* | rhapsody*)
15432 rhapsody* | darwin1.[012])
15433 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15436 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15437 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15439 case ${MACOSX_DEPLOYMENT_TARGET} in
15441 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15444 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15450 archive_cmds_need_lc_F77=no
15451 hardcode_direct_F77=no
15452 hardcode_automatic_F77=yes
15453 hardcode_shlibpath_var_F77=unsupported
15454 whole_archive_flag_spec_F77=''
15455 link_all_deplibs_F77=yes
15456 if test "$GCC" = yes ; then
15457 output_verbose_link_cmd='echo'
15458 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15459 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15460 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15461 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}'
15462 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}'
15464 case $cc_basename in
15466 output_verbose_link_cmd='echo'
15467 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15468 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15469 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15470 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}'
15471 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}'
15481 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15482 hardcode_libdir_flag_spec_F77='-L$libdir'
15483 hardcode_shlibpath_var_F77=no
15490 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15491 # support. Future versions do this automatically, but an explicit c++rt0.o
15492 # does not break anything, and helps significantly (at the cost of a little
15495 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15496 hardcode_libdir_flag_spec_F77='-R$libdir'
15497 hardcode_direct_F77=yes
15498 hardcode_shlibpath_var_F77=no
15501 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15503 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15504 hardcode_direct_F77=yes
15505 hardcode_minus_L_F77=yes
15506 hardcode_shlibpath_var_F77=no
15509 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15510 freebsd* | dragonfly*)
15511 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15512 hardcode_libdir_flag_spec_F77='-R$libdir'
15513 hardcode_direct_F77=yes
15514 hardcode_shlibpath_var_F77=no
15518 if test "$GCC" = yes; then
15519 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'
15521 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'
15523 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15524 hardcode_libdir_separator_F77=:
15525 hardcode_direct_F77=yes
15527 # hardcode_minus_L: Not really in the search PATH,
15528 # but as the default location of the library.
15529 hardcode_minus_L_F77=yes
15530 export_dynamic_flag_spec_F77='${wl}-E'
15534 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15535 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15537 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15539 if test "$with_gnu_ld" = no; then
15540 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15541 hardcode_libdir_separator_F77=:
15543 hardcode_direct_F77=yes
15544 export_dynamic_flag_spec_F77='${wl}-E'
15546 # hardcode_minus_L: Not really in the search PATH,
15547 # but as the default location of the library.
15548 hardcode_minus_L_F77=yes
15553 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15556 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15559 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15562 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15568 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15571 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15574 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15578 if test "$with_gnu_ld" = no; then
15579 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15580 hardcode_libdir_separator_F77=:
15584 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15585 hardcode_direct_F77=no
15586 hardcode_shlibpath_var_F77=no
15589 hardcode_direct_F77=yes
15590 export_dynamic_flag_spec_F77='${wl}-E'
15592 # hardcode_minus_L: Not really in the search PATH,
15593 # but as the default location of the library.
15594 hardcode_minus_L_F77=yes
15600 irix5* | irix6* | nonstopux*)
15601 if test "$GCC" = yes; then
15602 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'
15604 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'
15605 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15607 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15608 hardcode_libdir_separator_F77=:
15609 link_all_deplibs_F77=yes
15612 netbsd* | netbsdelf*-gnu)
15613 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15614 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15616 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15618 hardcode_libdir_flag_spec_F77='-R$libdir'
15619 hardcode_direct_F77=yes
15620 hardcode_shlibpath_var_F77=no
15624 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15625 hardcode_direct_F77=yes
15626 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15627 hardcode_libdir_separator_F77=:
15628 hardcode_shlibpath_var_F77=no
15632 hardcode_direct_F77=yes
15633 hardcode_shlibpath_var_F77=no
15634 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15635 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15636 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15637 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15638 export_dynamic_flag_spec_F77='${wl}-E'
15641 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15642 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15643 hardcode_libdir_flag_spec_F77='-R$libdir'
15646 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15647 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15654 hardcode_libdir_flag_spec_F77='-L$libdir'
15655 hardcode_minus_L_F77=yes
15656 allow_undefined_flag_F77=unsupported
15657 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'
15658 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15662 if test "$GCC" = yes; then
15663 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15664 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'
15666 allow_undefined_flag_F77=' -expect_unresolved \*'
15667 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'
15669 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15670 hardcode_libdir_separator_F77=:
15673 osf4* | osf5*) # as osf3* with the addition of -msym flag
15674 if test "$GCC" = yes; then
15675 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15676 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'
15677 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15679 allow_undefined_flag_F77=' -expect_unresolved \*'
15680 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'
15681 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~
15682 $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'
15684 # Both c and cxx compiler support -rpath directly
15685 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15687 hardcode_libdir_separator_F77=:
15691 no_undefined_flag_F77=' -z text'
15692 if test "$GCC" = yes; then
15694 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15695 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15696 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15699 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15700 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15701 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15703 hardcode_libdir_flag_spec_F77='-R$libdir'
15704 hardcode_shlibpath_var_F77=no
15706 solaris2.[0-5] | solaris2.[0-5].*) ;;
15708 # The compiler driver will combine linker options so we
15709 # cannot just pass the convience library names through
15710 # without $wl, iff we do not link with $LD.
15711 # Luckily, gcc supports the same syntax we need for Sun Studio.
15712 # Supported since Solaris 2.6 (maybe 2.5.1?)
15715 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15717 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' ;;
15720 link_all_deplibs_F77=yes
15724 if test "x$host_vendor" = xsequent; then
15725 # Use $CC to link under sequent, because it throws in some extra .o
15726 # files that make .init and .fini sections work.
15727 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15729 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15731 hardcode_libdir_flag_spec_F77='-L$libdir'
15732 hardcode_direct_F77=yes
15733 hardcode_minus_L_F77=yes
15734 hardcode_shlibpath_var_F77=no
15738 case $host_vendor in
15740 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15741 hardcode_direct_F77=yes # is this really true???
15744 ## LD is ld it makes a PLAMLIB
15745 ## CC just makes a GrossModule.
15746 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15747 reload_cmds_F77='$CC -r -o $output$reload_objs'
15748 hardcode_direct_F77=no
15751 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15752 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15755 runpath_var='LD_RUN_PATH'
15756 hardcode_shlibpath_var_F77=no
15760 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15761 hardcode_shlibpath_var_F77=no
15762 export_dynamic_flag_spec_F77='-Bexport'
15766 if test -d /usr/nec; then
15767 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15768 hardcode_shlibpath_var_F77=no
15769 runpath_var=LD_RUN_PATH
15770 hardcode_runpath_var=yes
15775 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15776 no_undefined_flag_F77='${wl}-z,text'
15777 archive_cmds_need_lc_F77=no
15778 hardcode_shlibpath_var_F77=no
15779 runpath_var='LD_RUN_PATH'
15781 if test "$GCC" = yes; then
15782 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15783 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15785 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15786 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15790 sysv5* | sco3.2v5* | sco5v6*)
15791 # Note: We can NOT use -z defs as we might desire, because we do not
15792 # link with -lc, and that would cause any symbols used from libc to
15793 # always be unresolved, which means just about no library would
15794 # ever link correctly. If we're not using GNU ld we use -z text
15795 # though, which does catch some bad symbols but isn't as heavy-handed
15797 no_undefined_flag_F77='${wl}-z,text'
15798 allow_undefined_flag_F77='${wl}-z,nodefs'
15799 archive_cmds_need_lc_F77=no
15800 hardcode_shlibpath_var_F77=no
15801 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15802 hardcode_libdir_separator_F77=':'
15803 link_all_deplibs_F77=yes
15804 export_dynamic_flag_spec_F77='${wl}-Bexport'
15805 runpath_var='LD_RUN_PATH'
15807 if test "$GCC" = yes; then
15808 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15809 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15811 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15812 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15817 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15818 hardcode_libdir_flag_spec_F77='-L$libdir'
15819 hardcode_shlibpath_var_F77=no
15828 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15829 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15830 test "$ld_shlibs_F77" = no && can_build_shared=no
15833 # Do we need to explicitly link libc?
15835 case "x$archive_cmds_need_lc_F77" in
15837 # Assume -lc should be added
15838 archive_cmds_need_lc_F77=yes
15840 if test "$enable_shared" = yes && test "$GCC" = yes; then
15841 case $archive_cmds_F77 in
15843 # FIXME: we may have to deal with multi-command sequences.
15846 # Test whether the compiler implicitly links with -lc since on some
15847 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15848 # to ld, don't add -lc before -lgcc.
15849 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15850 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15852 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15854 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15855 (eval $ac_compile) 2>&5
15857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15858 (exit $ac_status); } 2>conftest.err; then
15861 libobjs=conftest.$ac_objext
15863 wl=$lt_prog_compiler_wl_F77
15864 pic_flag=$lt_prog_compiler_pic_F77
15870 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15871 allow_undefined_flag_F77=
15872 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15873 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }
15878 archive_cmds_need_lc_F77=no
15880 archive_cmds_need_lc_F77=yes
15882 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15884 cat conftest.err 1>&5
15887 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15888 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15895 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15896 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15897 library_names_spec=
15898 libname_spec='lib$name'
15902 postuninstall_cmds=
15906 shlibpath_overrides_runpath=unknown
15908 dynamic_linker="$host_os ld.so"
15909 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15910 if test "$GCC" = yes; then
15911 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15912 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15913 # if the path contains ";" then we assume it to be the separator
15914 # otherwise default to the standard path separator (i.e. ":") - it is
15915 # assumed that no part of a normal pathname contains ";" but that should
15916 # okay in the real world where ";" in dirpaths is itself problematic.
15917 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15922 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15924 need_lib_prefix=unknown
15925 hardcode_into_libs=no
15927 # when you set need_version to no, make sure it does not cause -set_version
15928 # flags to be left without arguments
15929 need_version=unknown
15934 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15935 shlibpath_var=LIBPATH
15937 # AIX 3 has no versioning support, so we append a major version to the name.
15938 soname_spec='${libname}${release}${shared_ext}$major'
15945 hardcode_into_libs=yes
15946 if test "$host_cpu" = ia64; then
15947 # AIX 5 supports IA64
15948 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15949 shlibpath_var=LD_LIBRARY_PATH
15951 # With GCC up to 2.95.x, collect2 would create an import file
15952 # for dependence libraries. The import file would start with
15953 # the line `#! .'. This would cause the generated library to
15954 # depend on `.', always an invalid library. This was fixed in
15955 # development snapshots of GCC prior to 3.0.
15957 aix4 | aix4.[01] | aix4.[01].*)
15958 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15960 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15963 can_build_shared=no
15967 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15968 # soname into executable. Probably we can add versioning support to
15969 # collect2, so additional links can be useful in future.
15970 if test "$aix_use_runtimelinking" = yes; then
15971 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15972 # instead of lib<name>.a to let people know that these are not
15973 # typical AIX shared libraries.
15974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976 # We preserve .a as extension for shared libraries through AIX4.2
15977 # and later when we are not doing run time linking.
15978 library_names_spec='${libname}${release}.a $libname.a'
15979 soname_spec='${libname}${release}${shared_ext}$major'
15981 shlibpath_var=LIBPATH
15986 library_names_spec='$libname.ixlibrary $libname.a'
15987 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15988 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'
15992 library_names_spec='${libname}${shared_ext}'
15993 dynamic_linker="$host_os ld.so"
15994 shlibpath_var=LIBRARY_PATH
16000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16001 soname_spec='${libname}${release}${shared_ext}$major'
16002 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16003 shlibpath_var=LD_LIBRARY_PATH
16004 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16005 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16006 # the default ld.so.conf also contains /usr/contrib/lib and
16007 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16008 # libtool to hard-code these into programs
16011 cygwin* | mingw* | pw32*)
16012 version_type=windows
16017 case $GCC,$host_os in
16018 yes,cygwin* | yes,mingw* | yes,pw32*)
16019 library_names_spec='$libname.dll.a'
16020 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16021 postinstall_cmds='base_file=`basename \${file}`~
16022 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16023 dldir=$destdir/`dirname \$dlpath`~
16024 test -d \$dldir || mkdir -p \$dldir~
16025 $install_prog $dir/$dlname \$dldir/$dlname~
16026 chmod a+x \$dldir/$dlname'
16027 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16028 dlpath=$dir/\$dldll~
16030 shlibpath_overrides_runpath=yes
16034 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16035 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16036 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16039 # MinGW DLLs use traditional 'lib' prefix
16040 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16041 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16042 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16043 # It is most probably a Windows format PATH printed by
16044 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16045 # path with ; separators, and with drive letters. We can handle the
16046 # drive letters (cygwin fileutils understands them), so leave them,
16047 # especially as we might pass files found there to a mingw objdump,
16048 # which wouldn't understand a cygwinified path. Ahh.
16049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16055 # pw32 DLLs use 'pw' prefix rather than 'lib'
16056 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16062 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16065 dynamic_linker='Win32 ld.exe'
16066 # FIXME: first we should search . and the directory the executable is in
16070 darwin* | rhapsody*)
16071 dynamic_linker="$host_os dyld"
16072 version_type=darwin
16075 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16076 soname_spec='${libname}${release}${major}$shared_ext'
16077 shlibpath_overrides_runpath=yes
16078 shlibpath_var=DYLD_LIBRARY_PATH
16079 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16080 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16081 if test "$GCC" = yes; then
16082 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"`
16084 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16086 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16094 soname_spec='${libname}${release}${shared_ext}$major'
16095 shlibpath_var=LD_LIBRARY_PATH
16102 freebsd* | dragonfly*)
16103 # DragonFly does not have aout. When/if they implement a new
16104 # versioning mechanism, adjust this.
16105 if test -x /usr/bin/objformat; then
16106 objformat=`/usr/bin/objformat`
16109 freebsd[123]*) objformat=aout ;;
16110 *) objformat=elf ;;
16113 version_type=freebsd-$objformat
16114 case $version_type in
16116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16121 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16125 shlibpath_var=LD_LIBRARY_PATH
16128 shlibpath_overrides_runpath=yes
16130 freebsd3.[01]* | freebsdelf3.[01]*)
16131 shlibpath_overrides_runpath=yes
16132 hardcode_into_libs=yes
16134 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16135 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16136 shlibpath_overrides_runpath=no
16137 hardcode_into_libs=yes
16139 freebsd*) # from 4.6 on
16140 shlibpath_overrides_runpath=yes
16141 hardcode_into_libs=yes
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16151 soname_spec='${libname}${release}${shared_ext}$major'
16152 shlibpath_var=LD_LIBRARY_PATH
16153 hardcode_into_libs=yes
16156 hpux9* | hpux10* | hpux11*)
16157 # Give a soname corresponding to the major version so that dld.sl refuses to
16158 # link against other versions.
16165 hardcode_into_libs=yes
16166 dynamic_linker="$host_os dld.so"
16167 shlibpath_var=LD_LIBRARY_PATH
16168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16170 soname_spec='${libname}${release}${shared_ext}$major'
16171 if test "X$HPUX_IA64_MODE" = X32; then
16172 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16174 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16176 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16180 hardcode_into_libs=yes
16181 dynamic_linker="$host_os dld.sl"
16182 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16185 soname_spec='${libname}${release}${shared_ext}$major'
16186 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16191 dynamic_linker="$host_os dld.sl"
16192 shlibpath_var=SHLIB_PATH
16193 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16195 soname_spec='${libname}${release}${shared_ext}$major'
16198 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16199 postinstall_cmds='chmod 555 $lib'
16206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16207 soname_spec='${libname}${release}${shared_ext}$major'
16208 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16209 shlibpath_var=LD_LIBRARY_PATH
16210 shlibpath_overrides_runpath=no
16211 hardcode_into_libs=yes
16214 irix5* | irix6* | nonstopux*)
16216 nonstopux*) version_type=nonstopux ;;
16218 if test "$lt_cv_prog_gnu_ld" = yes; then
16226 soname_spec='${libname}${release}${shared_ext}$major'
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16229 irix5* | nonstopux*)
16230 libsuff= shlibsuff=
16233 case $LD in # libtool.m4 will add one of these switches to LD
16234 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16235 libsuff= shlibsuff= libmagic=32-bit;;
16236 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16237 libsuff=32 shlibsuff=N32 libmagic=N32;;
16238 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16239 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16240 *) libsuff= shlibsuff= libmagic=never-match;;
16244 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16245 shlibpath_overrides_runpath=no
16246 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16247 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16248 hardcode_into_libs=yes
16251 # No shared lib support for Linux oldld, aout, or coff.
16252 linux*oldld* | linux*aout* | linux*coff*)
16256 # This must be Linux ELF.
16257 linux* | k*bsd*-gnu)
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16264 shlibpath_var=LD_LIBRARY_PATH
16265 shlibpath_overrides_runpath=no
16266 # This implies no fast_install, which is unacceptable.
16267 # Some rework will be needed to allow for fast_install
16268 # before this can be enabled.
16269 hardcode_into_libs=yes
16271 # Append ld.so.conf contents to the search path
16272 if test -f /etc/ld.so.conf; then
16273 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' ' '`
16274 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16277 # We used to test for /lib/ld.so.1 and disable shared libraries on
16278 # powerpc, because MkLinux only supported shared libraries with the
16279 # GNU dynamic linker. Since this was broken with cross compilers,
16280 # most powerpc-linux boxes support dynamic linking these days and
16281 # people can always --disable-shared, the test was removed, and we
16282 # assume the GNU/Linux dynamic linker is in use.
16283 dynamic_linker='GNU/Linux ld.so'
16290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16291 soname_spec='${libname}${release}${shared_ext}$major'
16292 shlibpath_var=LD_LIBRARY_PATH
16293 shlibpath_overrides_runpath=no
16294 hardcode_into_libs=yes
16295 dynamic_linker='NetBSD ld.elf_so'
16302 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16305 dynamic_linker='NetBSD (a.out) ld.so'
16307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16308 soname_spec='${libname}${release}${shared_ext}$major'
16309 dynamic_linker='NetBSD ld.elf_so'
16311 shlibpath_var=LD_LIBRARY_PATH
16312 shlibpath_overrides_runpath=yes
16313 hardcode_into_libs=yes
16318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16319 shlibpath_var=LD_LIBRARY_PATH
16320 shlibpath_overrides_runpath=yes
16327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16328 soname_spec='${libname}${release}${shared_ext}$major'
16329 shlibpath_var=LD_LIBRARY_PATH
16330 shlibpath_overrides_runpath=yes
16335 sys_lib_dlsearch_path_spec="/usr/lib"
16337 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16339 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16340 *) need_version=no ;;
16342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16343 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16344 shlibpath_var=LD_LIBRARY_PATH
16345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16347 openbsd2.[89] | openbsd2.[89].*)
16348 shlibpath_overrides_runpath=no
16351 shlibpath_overrides_runpath=yes
16355 shlibpath_overrides_runpath=yes
16360 libname_spec='$name'
16363 library_names_spec='$libname${shared_ext} $libname.a'
16364 dynamic_linker='OS/2 ld.exe'
16365 shlibpath_var=LIBPATH
16368 osf3* | osf4* | osf5*)
16372 soname_spec='${libname}${release}${shared_ext}$major'
16373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16374 shlibpath_var=LD_LIBRARY_PATH
16375 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16376 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16384 soname_spec='${libname}${release}${shared_ext}$major'
16385 shlibpath_var=LD_LIBRARY_PATH
16386 shlibpath_overrides_runpath=yes
16387 hardcode_into_libs=yes
16388 # ldd complains unless libraries are executable
16389 postinstall_cmds='chmod +x $lib'
16394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16395 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16396 shlibpath_var=LD_LIBRARY_PATH
16397 shlibpath_overrides_runpath=yes
16398 if test "$with_gnu_ld" = yes; then
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16407 soname_spec='${libname}${release}${shared_ext}$major'
16408 shlibpath_var=LD_LIBRARY_PATH
16409 case $host_vendor in
16411 shlibpath_overrides_runpath=no
16413 export_dynamic_flag_spec='${wl}-Blargedynsym'
16414 runpath_var=LD_RUN_PATH
16422 shlibpath_overrides_runpath=no
16423 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16429 if test -d /usr/nec ;then
16431 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16432 soname_spec='$libname${shared_ext}.$major'
16433 shlibpath_var=LD_LIBRARY_PATH
16437 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16438 version_type=freebsd-elf
16441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16442 soname_spec='${libname}${release}${shared_ext}$major'
16443 shlibpath_var=LD_LIBRARY_PATH
16444 hardcode_into_libs=yes
16445 if test "$with_gnu_ld" = yes; then
16446 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16447 shlibpath_overrides_runpath=no
16449 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16450 shlibpath_overrides_runpath=yes
16453 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16457 sys_lib_dlsearch_path_spec='/usr/lib'
16462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16463 soname_spec='${libname}${release}${shared_ext}$major'
16464 shlibpath_var=LD_LIBRARY_PATH
16471 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16472 echo "${ECHO_T}$dynamic_linker" >&6; }
16473 test "$dynamic_linker" = no && can_build_shared=no
16475 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16476 if test "$GCC" = yes; then
16477 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16480 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16481 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16482 hardcode_action_F77=
16483 if test -n "$hardcode_libdir_flag_spec_F77" || \
16484 test -n "$runpath_var_F77" || \
16485 test "X$hardcode_automatic_F77" = "Xyes" ; then
16487 # We can hardcode non-existant directories.
16488 if test "$hardcode_direct_F77" != no &&
16489 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16490 # have to relink, otherwise we might link with an installed library
16491 # when we should be linking with a yet-to-be-installed one
16492 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16493 test "$hardcode_minus_L_F77" != no; then
16494 # Linking always hardcodes the temporary library directory.
16495 hardcode_action_F77=relink
16497 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16498 hardcode_action_F77=immediate
16501 # We cannot hardcode anything, or else we can only hardcode existing
16503 hardcode_action_F77=unsupported
16505 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16506 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16508 if test "$hardcode_action_F77" = relink; then
16509 # Fast installation is not supported
16510 enable_fast_install=no
16511 elif test "$shlibpath_overrides_runpath" = yes ||
16512 test "$enable_shared" = no; then
16513 # Fast installation is not necessary
16514 enable_fast_install=needless
16518 # The else clause should only fire when bootstrapping the
16519 # libtool distribution, otherwise you forgot to ship ltmain.sh
16520 # with your package, and you will get complaints that there are
16521 # no rules to generate ltmain.sh.
16522 if test -f "$ltmain"; then
16523 # See if we are running on zsh, and set the options which allow our commands through
16524 # without removal of \ escapes.
16525 if test -n "${ZSH_VERSION+set}" ; then
16526 setopt NO_GLOB_SUBST
16528 # Now quote all the things that may contain metacharacters while being
16529 # careful not to overquote the AC_SUBSTed values. We take copies of the
16530 # variables and quote the copies for generation of the libtool script.
16531 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16533 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16534 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16535 deplibs_check_method reload_flag reload_cmds need_locks \
16536 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16537 lt_cv_sys_global_symbol_to_c_name_address \
16538 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16539 old_postinstall_cmds old_postuninstall_cmds \
16543 lt_prog_compiler_wl_F77 \
16544 lt_prog_compiler_pic_F77 \
16545 lt_prog_compiler_static_F77 \
16546 lt_prog_compiler_no_builtin_flag_F77 \
16547 export_dynamic_flag_spec_F77 \
16548 thread_safe_flag_spec_F77 \
16549 whole_archive_flag_spec_F77 \
16550 enable_shared_with_static_runtimes_F77 \
16551 old_archive_cmds_F77 \
16552 old_archive_from_new_cmds_F77 \
16553 predep_objects_F77 \
16554 postdep_objects_F77 \
16557 compiler_lib_search_path_F77 \
16559 archive_expsym_cmds_F77 \
16560 postinstall_cmds_F77 \
16561 postuninstall_cmds_F77 \
16562 old_archive_from_expsyms_cmds_F77 \
16563 allow_undefined_flag_F77 \
16564 no_undefined_flag_F77 \
16565 export_symbols_cmds_F77 \
16566 hardcode_libdir_flag_spec_F77 \
16567 hardcode_libdir_flag_spec_ld_F77 \
16568 hardcode_libdir_separator_F77 \
16569 hardcode_automatic_F77 \
16571 module_expsym_cmds_F77 \
16572 lt_cv_prog_compiler_c_o_F77 \
16573 exclude_expsyms_F77 \
16574 include_expsyms_F77; do
16577 old_archive_cmds_F77 | \
16578 old_archive_from_new_cmds_F77 | \
16579 archive_cmds_F77 | \
16580 archive_expsym_cmds_F77 | \
16581 module_cmds_F77 | \
16582 module_expsym_cmds_F77 | \
16583 old_archive_from_expsyms_cmds_F77 | \
16584 export_symbols_cmds_F77 | \
16585 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16586 postinstall_cmds | postuninstall_cmds | \
16587 old_postinstall_cmds | old_postuninstall_cmds | \
16588 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16589 # Double-quote double-evaled strings.
16590 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16593 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16599 *'\$0 --fallback-echo"')
16600 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16606 cat <<__EOF__ >> "$cfgfile"
16607 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16609 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16611 # Shell to use when invoking shell scripts.
16614 # Whether or not to build shared libraries.
16615 build_libtool_libs=$enable_shared
16617 # Whether or not to build static libraries.
16618 build_old_libs=$enable_static
16620 # Whether or not to add -lc for building shared libraries.
16621 build_libtool_need_lc=$archive_cmds_need_lc_F77
16623 # Whether or not to disallow shared libs when runtime libs are static
16624 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16626 # Whether or not to optimize for fast installation.
16627 fast_install=$enable_fast_install
16630 host_alias=$host_alias
16634 # The build system.
16635 build_alias=$build_alias
16639 # An echo program that does not interpret backslashes.
16644 AR_FLAGS=$lt_AR_FLAGS
16649 # LTCC compiler flags.
16650 LTCFLAGS=$lt_LTCFLAGS
16652 # A language-specific compiler.
16653 CC=$lt_compiler_F77
16655 # Is the compiler the GNU C compiler?
16661 # The linker used to build libraries.
16664 # Whether we need hard or soft links.
16667 # A BSD-compatible nm program.
16670 # A symbol stripping program
16673 # Used to examine libraries when file_magic_cmd begins "file"
16674 MAGIC_CMD=$MAGIC_CMD
16676 # Used on cygwin: DLL creation program.
16679 # Used on cygwin: object dumper.
16682 # Used on cygwin: assembler.
16685 # The name of the directory that contains temporary libtool files.
16688 # How to create reloadable object files.
16689 reload_flag=$lt_reload_flag
16690 reload_cmds=$lt_reload_cmds
16692 # How to pass a linker flag through the compiler.
16693 wl=$lt_lt_prog_compiler_wl_F77
16695 # Object file suffix (normally "o").
16696 objext="$ac_objext"
16698 # Old archive suffix (normally "a").
16701 # Shared library suffix (normally ".so").
16702 shrext_cmds='$shrext_cmds'
16704 # Executable file suffix (normally "").
16707 # Additional compiler flags for building library objects.
16708 pic_flag=$lt_lt_prog_compiler_pic_F77
16711 # What is the maximum length of a command?
16712 max_cmd_len=$lt_cv_sys_max_cmd_len
16714 # Does compiler simultaneously support -c and -o options?
16715 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16717 # Must we lock files when doing compilation?
16718 need_locks=$lt_need_locks
16720 # Do we need the lib prefix for modules?
16721 need_lib_prefix=$need_lib_prefix
16723 # Do we need a version for libraries?
16724 need_version=$need_version
16726 # Whether dlopen is supported.
16727 dlopen_support=$enable_dlopen
16729 # Whether dlopen of programs is supported.
16730 dlopen_self=$enable_dlopen_self
16732 # Whether dlopen of statically linked programs is supported.
16733 dlopen_self_static=$enable_dlopen_self_static
16735 # Compiler flag to prevent dynamic linking.
16736 link_static_flag=$lt_lt_prog_compiler_static_F77
16738 # Compiler flag to turn off builtin functions.
16739 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16741 # Compiler flag to allow reflexive dlopens.
16742 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16744 # Compiler flag to generate shared objects directly from archives.
16745 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16747 # Compiler flag to generate thread-safe objects.
16748 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16750 # Library versioning type.
16751 version_type=$version_type
16753 # Format of library name prefix.
16754 libname_spec=$lt_libname_spec
16756 # List of archive names. First name is the real one, the rest are links.
16757 # The last name is the one that the linker finds with -lNAME.
16758 library_names_spec=$lt_library_names_spec
16760 # The coded name of the library, if different from the real name.
16761 soname_spec=$lt_soname_spec
16763 # Commands used to build and install an old-style archive.
16765 old_archive_cmds=$lt_old_archive_cmds_F77
16766 old_postinstall_cmds=$lt_old_postinstall_cmds
16767 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16769 # Create an old-style archive from a shared archive.
16770 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16772 # Create a temporary old-style archive to link instead of a shared archive.
16773 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16775 # Commands used to build and install a shared archive.
16776 archive_cmds=$lt_archive_cmds_F77
16777 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16778 postinstall_cmds=$lt_postinstall_cmds
16779 postuninstall_cmds=$lt_postuninstall_cmds
16781 # Commands used to build a loadable module (assumed same as above if empty)
16782 module_cmds=$lt_module_cmds_F77
16783 module_expsym_cmds=$lt_module_expsym_cmds_F77
16785 # Commands to strip libraries.
16786 old_striplib=$lt_old_striplib
16787 striplib=$lt_striplib
16789 # Dependencies to place before the objects being linked to create a
16791 predep_objects=$lt_predep_objects_F77
16793 # Dependencies to place after the objects being linked to create a
16795 postdep_objects=$lt_postdep_objects_F77
16797 # Dependencies to place before the objects being linked to create a
16799 predeps=$lt_predeps_F77
16801 # Dependencies to place after the objects being linked to create a
16803 postdeps=$lt_postdeps_F77
16805 # The library search path used internally by the compiler when linking
16806 # a shared library.
16807 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16809 # Method to check whether dependent libraries are shared objects.
16810 deplibs_check_method=$lt_deplibs_check_method
16812 # Command to use when deplibs_check_method == file_magic.
16813 file_magic_cmd=$lt_file_magic_cmd
16815 # Flag that allows shared libraries with undefined symbols to be built.
16816 allow_undefined_flag=$lt_allow_undefined_flag_F77
16818 # Flag that forces no undefined symbols.
16819 no_undefined_flag=$lt_no_undefined_flag_F77
16821 # Commands used to finish a libtool library installation in a directory.
16822 finish_cmds=$lt_finish_cmds
16824 # Same as above, but a single script fragment to be evaled but not shown.
16825 finish_eval=$lt_finish_eval
16827 # Take the output of nm and produce a listing of raw symbols and C names.
16828 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16830 # Transform the output of nm in a proper C declaration
16831 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16833 # Transform the output of nm in a C name address pair
16834 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16836 # This is the shared library runtime path variable.
16837 runpath_var=$runpath_var
16839 # This is the shared library path variable.
16840 shlibpath_var=$shlibpath_var
16842 # Is shlibpath searched before the hard-coded library search path?
16843 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16845 # How to hardcode a shared library path into an executable.
16846 hardcode_action=$hardcode_action_F77
16848 # Whether we should hardcode library paths into libraries.
16849 hardcode_into_libs=$hardcode_into_libs
16851 # Flag to hardcode \$libdir into a binary during linking.
16852 # This must work even if \$libdir does not exist.
16853 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16855 # If ld is used when linking, flag to hardcode \$libdir into
16856 # a binary during linking. This must work even if \$libdir does
16858 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16860 # Whether we need a single -rpath flag with a separated argument.
16861 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16863 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16864 # resulting binary.
16865 hardcode_direct=$hardcode_direct_F77
16867 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16868 # resulting binary.
16869 hardcode_minus_L=$hardcode_minus_L_F77
16871 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16872 # the resulting binary.
16873 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16875 # Set to yes if building a shared library automatically hardcodes DIR into the library
16876 # and all subsequent libraries and executables linked against it.
16877 hardcode_automatic=$hardcode_automatic_F77
16879 # Variables whose values should be saved in libtool wrapper scripts and
16880 # restored at relink time.
16881 variables_saved_for_relink="$variables_saved_for_relink"
16883 # Whether libtool must link a program against all its dependency libraries.
16884 link_all_deplibs=$link_all_deplibs_F77
16886 # Compile-time system search path for libraries
16887 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16889 # Run-time system search path for libraries
16890 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16892 # Fix the shell variable \$srcfile for the compiler.
16893 fix_srcfile_path="$fix_srcfile_path_F77"
16895 # Set to yes if exported symbols are required.
16896 always_export_symbols=$always_export_symbols_F77
16898 # The commands to list exported symbols.
16899 export_symbols_cmds=$lt_export_symbols_cmds_F77
16901 # The commands to extract the exported symbol list from a shared archive.
16902 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16904 # Symbols that should not be listed in the preloaded symbols.
16905 exclude_expsyms=$lt_exclude_expsyms_F77
16907 # Symbols that must always be exported.
16908 include_expsyms=$lt_include_expsyms_F77
16910 # ### END LIBTOOL TAG CONFIG: $tagname
16916 # If there is no Makefile yet, we rely on a make rule to execute
16917 # `config.status --recheck' to rerun these tests and create the
16918 # libtool script then.
16919 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16920 if test -f "$ltmain_in"; then
16921 test -f Makefile && make "$ltmain"
16927 ac_cpp='$CPP $CPPFLAGS'
16928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16940 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16943 # Source file extension for Java test sources.
16946 # Object file extension for compiled Java test sources.
16950 # Code to be used in simple compile tests
16951 lt_simple_compile_test_code="class foo {}\n"
16953 # Code to be used in simple link tests
16954 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16956 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16958 # If no C compiler was specified, use CC.
16961 # If no C compiler flags were specified, use CFLAGS.
16962 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16964 # Allow CC to be a program name with arguments.
16968 # save warnings/boilerplate of simple test code
16969 ac_outfile=conftest.$ac_objext
16970 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16971 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16972 _lt_compiler_boilerplate=`cat conftest.err`
16975 ac_outfile=conftest.$ac_objext
16976 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16977 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16978 _lt_linker_boilerplate=`cat conftest.err`
16982 # Allow CC to be a program name with arguments.
16987 for cc_temp in $compiler""; do
16989 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16990 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16995 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16998 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16999 archive_cmds_need_lc_GCJ=no
17001 old_archive_cmds_GCJ=$old_archive_cmds
17004 lt_prog_compiler_no_builtin_flag_GCJ=
17006 if test "$GCC" = yes; then
17007 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17010 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17011 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
17012 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17013 echo $ECHO_N "(cached) $ECHO_C" >&6
17015 lt_cv_prog_compiler_rtti_exceptions=no
17016 ac_outfile=conftest.$ac_objext
17017 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17018 lt_compiler_flag="-fno-rtti -fno-exceptions"
17019 # Insert the option either (1) after the last *FLAGS variable, or
17020 # (2) before a word containing "conftest.", or (3) at the end.
17021 # Note that $ac_compile itself does not contain backslashes and begins
17022 # with a dollar sign (not a hyphen), so the echo should work correctly.
17023 # The option is referenced via a variable to avoid confusing sed.
17024 lt_compile=`echo "$ac_compile" | $SED \
17025 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17027 -e 's:$: $lt_compiler_flag:'`
17028 (eval echo "\"\$as_me:17028: $lt_compile\"" >&5)
17029 (eval "$lt_compile" 2>conftest.err)
17031 cat conftest.err >&5
17032 echo "$as_me:17032: \$? = $ac_status" >&5
17033 if (exit $ac_status) && test -s "$ac_outfile"; then
17034 # The compiler can only warn and ignore the option if not recognized
17035 # So say no if there are warnings other than the usual output.
17036 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17037 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17038 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17039 lt_cv_prog_compiler_rtti_exceptions=yes
17045 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17046 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17048 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17049 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17056 lt_prog_compiler_wl_GCJ=
17057 lt_prog_compiler_pic_GCJ=
17058 lt_prog_compiler_static_GCJ=
17060 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17061 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
17063 if test "$GCC" = yes; then
17064 lt_prog_compiler_wl_GCJ='-Wl,'
17065 lt_prog_compiler_static_GCJ='-static'
17069 # All AIX code is PIC.
17070 if test "$host_cpu" = ia64; then
17071 # AIX 5 now supports IA64 processor
17072 lt_prog_compiler_static_GCJ='-Bstatic'
17077 # FIXME: we need at least 68020 code to build shared libraries, but
17078 # adding the `-m68020' flag to GCC prevents building anything better,
17080 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17083 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17084 # PIC is the default for these OSes.
17087 mingw* | pw32* | os2*)
17088 # This hack is so that the source file can tell whether it is being
17089 # built for inclusion in a dll (and should export symbols for example).
17090 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17093 darwin* | rhapsody*)
17094 # PIC is the default on this platform
17095 # Common symbols not allowed in MH_DYLIB files
17096 lt_prog_compiler_pic_GCJ='-fno-common'
17100 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17101 # Instead, we relocate shared libraries at runtime.
17105 # Just because we use GCC doesn't mean we suddenly get shared libraries
17106 # on systems that don't support them.
17107 lt_prog_compiler_can_build_shared_GCJ=no
17112 if test -d /usr/nec; then
17113 lt_prog_compiler_pic_GCJ=-Kconform_pic
17118 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17119 # not for PA HP-UX.
17125 lt_prog_compiler_pic_GCJ='-fPIC'
17131 lt_prog_compiler_pic_GCJ='-fPIC'
17135 # PORTME Check for flag to pass linker flags through the system compiler.
17138 lt_prog_compiler_wl_GCJ='-Wl,'
17139 if test "$host_cpu" = ia64; then
17140 # AIX 5 now supports IA64 processor
17141 lt_prog_compiler_static_GCJ='-Bstatic'
17143 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17147 # PIC is the default on this platform
17148 # Common symbols not allowed in MH_DYLIB files
17149 case $cc_basename in
17151 lt_prog_compiler_pic_GCJ='-qnocommon'
17152 lt_prog_compiler_wl_GCJ='-Wl,'
17157 mingw* | pw32* | os2*)
17158 # This hack is so that the source file can tell whether it is being
17159 # built for inclusion in a dll (and should export symbols for example).
17160 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17163 hpux9* | hpux10* | hpux11*)
17164 lt_prog_compiler_wl_GCJ='-Wl,'
17165 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17166 # not for PA HP-UX.
17172 lt_prog_compiler_pic_GCJ='+Z'
17175 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17176 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17179 irix5* | irix6* | nonstopux*)
17180 lt_prog_compiler_wl_GCJ='-Wl,'
17181 # PIC (with -KPIC) is the default.
17182 lt_prog_compiler_static_GCJ='-non_shared'
17186 lt_prog_compiler_pic_GCJ='-KPIC'
17187 lt_prog_compiler_static_GCJ='-Bstatic'
17190 linux* | k*bsd*-gnu)
17191 case $cc_basename in
17193 lt_prog_compiler_wl_GCJ='-Wl,'
17194 lt_prog_compiler_pic_GCJ='-KPIC'
17195 lt_prog_compiler_static_GCJ='-static'
17197 pgcc* | pgf77* | pgf90* | pgf95*)
17198 # Portland Group compilers (*not* the Pentium gcc compiler,
17199 # which looks to be a dead project)
17200 lt_prog_compiler_wl_GCJ='-Wl,'
17201 lt_prog_compiler_pic_GCJ='-fpic'
17202 lt_prog_compiler_static_GCJ='-Bstatic'
17205 lt_prog_compiler_wl_GCJ='-Wl,'
17206 # All Alpha code is PIC.
17207 lt_prog_compiler_static_GCJ='-non_shared'
17212 osf3* | osf4* | osf5*)
17213 lt_prog_compiler_wl_GCJ='-Wl,'
17214 # All OSF/1 code is PIC.
17215 lt_prog_compiler_static_GCJ='-non_shared'
17219 lt_prog_compiler_pic_GCJ='-KPIC'
17220 lt_prog_compiler_static_GCJ='-Bstatic'
17221 case $cc_basename in
17222 f77* | f90* | f95*)
17223 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17225 lt_prog_compiler_wl_GCJ='-Wl,';;
17230 lt_prog_compiler_wl_GCJ='-Qoption ld '
17231 lt_prog_compiler_pic_GCJ='-PIC'
17232 lt_prog_compiler_static_GCJ='-Bstatic'
17235 sysv4 | sysv4.2uw2* | sysv4.3*)
17236 lt_prog_compiler_wl_GCJ='-Wl,'
17237 lt_prog_compiler_pic_GCJ='-KPIC'
17238 lt_prog_compiler_static_GCJ='-Bstatic'
17242 if test -d /usr/nec ;then
17243 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17244 lt_prog_compiler_static_GCJ='-Bstatic'
17248 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17249 lt_prog_compiler_wl_GCJ='-Wl,'
17250 lt_prog_compiler_pic_GCJ='-KPIC'
17251 lt_prog_compiler_static_GCJ='-Bstatic'
17255 lt_prog_compiler_wl_GCJ='-Wl,'
17256 lt_prog_compiler_can_build_shared_GCJ=no
17260 lt_prog_compiler_pic_GCJ='-pic'
17261 lt_prog_compiler_static_GCJ='-Bstatic'
17265 lt_prog_compiler_can_build_shared_GCJ=no
17270 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17271 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17274 # Check to make sure the PIC flag actually works.
17276 if test -n "$lt_prog_compiler_pic_GCJ"; then
17278 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17279 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17280 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17281 echo $ECHO_N "(cached) $ECHO_C" >&6
17283 lt_prog_compiler_pic_works_GCJ=no
17284 ac_outfile=conftest.$ac_objext
17285 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17286 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17287 # Insert the option either (1) after the last *FLAGS variable, or
17288 # (2) before a word containing "conftest.", or (3) at the end.
17289 # Note that $ac_compile itself does not contain backslashes and begins
17290 # with a dollar sign (not a hyphen), so the echo should work correctly.
17291 # The option is referenced via a variable to avoid confusing sed.
17292 lt_compile=`echo "$ac_compile" | $SED \
17293 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17294 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17295 -e 's:$: $lt_compiler_flag:'`
17296 (eval echo "\"\$as_me:17296: $lt_compile\"" >&5)
17297 (eval "$lt_compile" 2>conftest.err)
17299 cat conftest.err >&5
17300 echo "$as_me:17300: \$? = $ac_status" >&5
17301 if (exit $ac_status) && test -s "$ac_outfile"; then
17302 # The compiler can only warn and ignore the option if not recognized
17303 # So say no if there are warnings other than the usual output.
17304 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17305 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17306 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17307 lt_prog_compiler_pic_works_GCJ=yes
17313 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17314 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
17316 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17317 case $lt_prog_compiler_pic_GCJ in
17319 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17322 lt_prog_compiler_pic_GCJ=
17323 lt_prog_compiler_can_build_shared_GCJ=no
17328 # For platforms which do not support PIC, -DPIC is meaningless:
17330 lt_prog_compiler_pic_GCJ=
17333 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17338 # Check to make sure the static flag actually works.
17340 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17341 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17342 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17343 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17344 echo $ECHO_N "(cached) $ECHO_C" >&6
17346 lt_prog_compiler_static_works_GCJ=no
17347 save_LDFLAGS="$LDFLAGS"
17348 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17349 printf "$lt_simple_link_test_code" > conftest.$ac_ext
17350 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17351 # The linker can only warn and ignore the option if not recognized
17352 # So say no if there are warnings
17353 if test -s conftest.err; then
17354 # Append any errors to the config.log.
17355 cat conftest.err 1>&5
17356 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17358 if diff conftest.exp conftest.er2 >/dev/null; then
17359 lt_prog_compiler_static_works_GCJ=yes
17362 lt_prog_compiler_static_works_GCJ=yes
17366 LDFLAGS="$save_LDFLAGS"
17369 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17370 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17372 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17375 lt_prog_compiler_static_GCJ=
17379 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17380 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17381 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17382 echo $ECHO_N "(cached) $ECHO_C" >&6
17384 lt_cv_prog_compiler_c_o_GCJ=no
17385 $rm -r conftest 2>/dev/null
17389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17391 lt_compiler_flag="-o out/conftest2.$ac_objext"
17392 # Insert the option either (1) after the last *FLAGS variable, or
17393 # (2) before a word containing "conftest.", or (3) at the end.
17394 # Note that $ac_compile itself does not contain backslashes and begins
17395 # with a dollar sign (not a hyphen), so the echo should work correctly.
17396 lt_compile=`echo "$ac_compile" | $SED \
17397 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17399 -e 's:$: $lt_compiler_flag:'`
17400 (eval echo "\"\$as_me:17400: $lt_compile\"" >&5)
17401 (eval "$lt_compile" 2>out/conftest.err)
17403 cat out/conftest.err >&5
17404 echo "$as_me:17404: \$? = $ac_status" >&5
17405 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17407 # The compiler can only warn and ignore the option if not recognized
17408 # So say no if there are warnings
17409 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17410 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17411 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17412 lt_cv_prog_compiler_c_o_GCJ=yes
17417 # SGI C++ compiler will create directory out/ii_files/ for
17418 # template instantiation
17419 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17420 $rm out/* && rmdir out
17426 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17427 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17430 hard_links="nottested"
17431 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17432 # do not overwrite the value of need_locks provided by the user
17433 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17434 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17437 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17439 ln conftest.a conftest.b 2>&5 || hard_links=no
17440 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17441 { echo "$as_me:$LINENO: result: $hard_links" >&5
17442 echo "${ECHO_T}$hard_links" >&6; }
17443 if test "$hard_links" = no; then
17444 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17445 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17452 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17453 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17456 allow_undefined_flag_GCJ=
17457 enable_shared_with_static_runtimes_GCJ=no
17459 archive_expsym_cmds_GCJ=
17460 old_archive_From_new_cmds_GCJ=
17461 old_archive_from_expsyms_cmds_GCJ=
17462 export_dynamic_flag_spec_GCJ=
17463 whole_archive_flag_spec_GCJ=
17464 thread_safe_flag_spec_GCJ=
17465 hardcode_libdir_flag_spec_GCJ=
17466 hardcode_libdir_flag_spec_ld_GCJ=
17467 hardcode_libdir_separator_GCJ=
17468 hardcode_direct_GCJ=no
17469 hardcode_minus_L_GCJ=no
17470 hardcode_shlibpath_var_GCJ=unsupported
17471 link_all_deplibs_GCJ=unknown
17472 hardcode_automatic_GCJ=no
17474 module_expsym_cmds_GCJ=
17475 always_export_symbols_GCJ=no
17476 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17477 # include_expsyms should be a list of space-separated symbols to be *always*
17478 # included in the symbol list
17479 include_expsyms_GCJ=
17480 # exclude_expsyms can be an extended regexp of symbols to exclude
17481 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17482 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17483 # as well as any symbol that contains `d'.
17484 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17485 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17486 # platforms (ab)use it in PIC code, but their linkers get confused if
17487 # the symbol is explicitly referenced. Since portable code cannot
17488 # rely on this symbol name, it's probably fine to never include it in
17489 # preloaded symbol tables.
17490 extract_expsyms_cmds=
17491 # Just being paranoid about ensuring that cc_basename is set.
17492 for cc_temp in $compiler""; do
17494 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17495 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17500 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17503 cygwin* | mingw* | pw32*)
17504 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17505 # When not using gcc, we currently assume that we are using
17506 # Microsoft Visual C++.
17507 if test "$GCC" != yes; then
17512 # we just hope/assume this is gcc and not c89 (= MSVC++)
17521 if test "$with_gnu_ld" = yes; then
17522 # If archive_cmds runs LD, not CC, wlarc should be empty
17525 # Set some defaults for GNU ld with shared library support. These
17526 # are reset later if shared libraries are not supported. Putting them
17527 # here allows them to be overridden if necessary.
17528 runpath_var=LD_RUN_PATH
17529 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17530 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17531 # ancient GNU ld didn't support --whole-archive et. al.
17532 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17533 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17535 whole_archive_flag_spec_GCJ=
17537 supports_anon_versioning=no
17538 case `$LD -v 2>/dev/null` in
17539 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17540 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17541 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17542 *\ 2.11.*) ;; # other 2.11 versions
17543 *) supports_anon_versioning=yes ;;
17546 # See if GNU ld supports shared libraries.
17548 aix3* | aix4* | aix5*)
17549 # On AIX/PPC, the GNU linker is very broken
17550 if test "$host_cpu" != ia64; then
17554 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17555 *** to be unable to reliably create shared libraries on AIX.
17556 *** Therefore, libtool is disabling shared libraries support. If you
17557 *** really care for shared libraries, you may want to modify your PATH
17558 *** so that a non-GNU linker is found, and then restart.
17565 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)'
17566 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17567 hardcode_minus_L_GCJ=yes
17569 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17570 # that the semantics of dynamic libraries on AmigaOS, at least up
17571 # to version 4, is to share data among multiple programs linked
17572 # with the same dynamic library. Since this doesn't match the
17573 # behavior of shared libraries on other platforms, we can't use
17579 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17580 allow_undefined_flag_GCJ=unsupported
17581 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17582 # support --undefined. This deserves some investigation. FIXME
17583 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17589 cygwin* | mingw* | pw32*)
17590 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17591 # as there is no search path for DLLs.
17592 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17593 allow_undefined_flag_GCJ=unsupported
17594 always_export_symbols_GCJ=no
17595 enable_shared_with_static_runtimes_GCJ=yes
17596 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17598 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17599 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17600 # If the export-symbols file already is a .def file (1st line
17601 # is EXPORTS), use it as is; otherwise, prepend...
17602 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17603 cp $export_symbols $output_objdir/$soname.def;
17605 echo EXPORTS > $output_objdir/$soname.def;
17606 cat $export_symbols >> $output_objdir/$soname.def;
17608 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17615 hardcode_direct_GCJ=no
17616 hardcode_shlibpath_var_GCJ=no
17617 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17618 export_dynamic_flag_spec_GCJ='${wl}-E'
17619 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17620 # Instead, shared libraries are loaded at an image base (0x10000000 by
17621 # default) and relocated if they conflict, which is a slow very memory
17622 # consuming and fragmenting process. To avoid this, we pick a random,
17623 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17624 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17625 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17626 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17629 linux* | k*bsd*-gnu)
17630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17632 case $cc_basename,$host_cpu in
17633 pgcc*) # Portland Group C compiler
17634 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'
17635 tmp_addflag=' $pic_flag'
17637 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17638 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'
17639 tmp_addflag=' $pic_flag -Mnomain' ;;
17640 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17641 tmp_addflag=' -i_dynamic' ;;
17642 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17643 tmp_addflag=' -i_dynamic -nofor_main' ;;
17644 ifc* | ifort*) # Intel Fortran compiler
17645 tmp_addflag=' -nofor_main' ;;
17647 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17649 if test $supports_anon_versioning = yes; then
17650 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17651 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17652 $echo "local: *; };" >> $output_objdir/$libname.ver~
17653 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17655 link_all_deplibs_GCJ=no
17661 netbsd* | netbsdelf*-gnu)
17662 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17663 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17666 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17667 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17672 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17676 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17677 *** create shared libraries on Solaris systems. Therefore, libtool
17678 *** is disabling shared libraries support. We urge you to upgrade GNU
17679 *** binutils to release 2.9.1 or newer. Another option is to modify
17680 *** your PATH or compiler configuration so that the native linker is
17681 *** used, and then restart.
17684 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17685 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17686 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17692 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17693 case `$LD -v 2>&1` in
17694 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17698 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17699 *** reliably create shared libraries on SCO systems. Therefore, libtool
17700 *** is disabling shared libraries support. We urge you to upgrade GNU
17701 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17702 *** your PATH or compiler configuration so that the native linker is
17703 *** used, and then restart.
17708 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17709 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17710 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17711 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17720 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17722 hardcode_direct_GCJ=yes
17723 hardcode_shlibpath_var_GCJ=no
17727 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17728 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17729 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17736 if test "$ld_shlibs_GCJ" = no; then
17738 hardcode_libdir_flag_spec_GCJ=
17739 export_dynamic_flag_spec_GCJ=
17740 whole_archive_flag_spec_GCJ=
17743 # PORTME fill in a description of your system's linker (not GNU ld)
17746 allow_undefined_flag_GCJ=unsupported
17747 always_export_symbols_GCJ=yes
17748 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'
17749 # Note: this linker hardcodes the directories in LIBPATH if there
17750 # are no directories specified by -L.
17751 hardcode_minus_L_GCJ=yes
17752 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17753 # Neither direct hardcoding nor static linking is supported with a
17755 hardcode_direct_GCJ=unsupported
17760 if test "$host_cpu" = ia64; then
17761 # On IA64, the linker does run time linking by default, so we don't
17762 # have to do anything special.
17763 aix_use_runtimelinking=no
17764 exp_sym_flag='-Bexport'
17767 # If we're using GNU nm, then we don't want the "-C" option.
17768 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17769 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17770 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'
17772 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'
17774 aix_use_runtimelinking=no
17776 # Test if we are trying to use run time linking or normal
17777 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17778 # need to do runtime linking.
17779 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17780 for ld_flag in $LDFLAGS; do
17781 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17782 aix_use_runtimelinking=yes
17789 exp_sym_flag='-bexport'
17790 no_entry_flag='-bnoentry'
17793 # When large executables or shared objects are built, AIX ld can
17794 # have problems creating the table of contents. If linking a library
17795 # or program results in "error TOC overflow" add -mminimal-toc to
17796 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17797 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17799 archive_cmds_GCJ=''
17800 hardcode_direct_GCJ=yes
17801 hardcode_libdir_separator_GCJ=':'
17802 link_all_deplibs_GCJ=yes
17804 if test "$GCC" = yes; then
17805 case $host_os in aix4.[012]|aix4.[012].*)
17806 # We only want to do this on AIX 4.2 and lower, the check
17807 # below for broken collect2 doesn't work under 4.3+
17808 collect2name=`${CC} -print-prog-name=collect2`
17809 if test -f "$collect2name" && \
17810 strings "$collect2name" | grep resolve_lib_name >/dev/null
17812 # We have reworked collect2
17813 hardcode_direct_GCJ=yes
17815 # We have old collect2
17816 hardcode_direct_GCJ=unsupported
17817 # It fails to find uninstalled libraries when the uninstalled
17818 # path is not listed in the libpath. Setting hardcode_minus_L
17819 # to unsupported forces relinking
17820 hardcode_minus_L_GCJ=yes
17821 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17822 hardcode_libdir_separator_GCJ=
17826 shared_flag='-shared'
17827 if test "$aix_use_runtimelinking" = yes; then
17828 shared_flag="$shared_flag "'${wl}-G'
17832 if test "$host_cpu" = ia64; then
17833 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17834 # chokes on -Wl,-G. The following line is correct:
17837 if test "$aix_use_runtimelinking" = yes; then
17838 shared_flag='${wl}-G'
17840 shared_flag='${wl}-bM:SRE'
17845 # It seems that -bexpall does not export symbols beginning with
17846 # underscore (_), so it is better to generate a list of symbols to export.
17847 always_export_symbols_GCJ=yes
17848 if test "$aix_use_runtimelinking" = yes; then
17849 # Warning - without using the other runtime loading flags (-brtl),
17850 # -berok will link without error, but may produce a broken library.
17851 allow_undefined_flag_GCJ='-berok'
17852 # Determine the default libpath from the value encoded in an empty executable.
17853 cat >conftest.$ac_ext <<_ACEOF
17856 cat confdefs.h >>conftest.$ac_ext
17857 cat >>conftest.$ac_ext <<_ACEOF
17858 /* end confdefs.h. */
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (ac_try="$ac_link"
17870 case "(($ac_try" in
17871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17872 *) ac_try_echo=$ac_try;;
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_link") 2>conftest.er1
17877 grep -v '^ *+' conftest.er1 >conftest.err
17879 cat conftest.err >&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } && {
17882 test -z "$ac_c_werror_flag" ||
17883 test ! -s conftest.err
17884 } && test -s conftest$ac_exeext &&
17885 $as_test_x conftest$ac_exeext; then
17887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17889 # Check for a 64-bit object if we didn't find anything.
17890 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; }
17893 echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17900 conftest$ac_exeext conftest.$ac_ext
17901 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17903 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17904 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17906 if test "$host_cpu" = ia64; then
17907 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17908 allow_undefined_flag_GCJ="-z nodefs"
17909 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17911 # Determine the default libpath from the value encoded in an empty executable.
17912 cat >conftest.$ac_ext <<_ACEOF
17915 cat confdefs.h >>conftest.$ac_ext
17916 cat >>conftest.$ac_ext <<_ACEOF
17917 /* end confdefs.h. */
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (ac_try="$ac_link"
17929 case "(($ac_try" in
17930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931 *) ac_try_echo=$ac_try;;
17933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_link") 2>conftest.er1
17936 grep -v '^ *+' conftest.er1 >conftest.err
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } && {
17941 test -z "$ac_c_werror_flag" ||
17942 test ! -s conftest.err
17943 } && test -s conftest$ac_exeext &&
17944 $as_test_x conftest$ac_exeext; then
17946 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17948 # Check for a 64-bit object if we didn't find anything.
17949 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; }
17952 echo "$as_me: failed program was:" >&5
17953 sed 's/^/| /' conftest.$ac_ext >&5
17958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17959 conftest$ac_exeext conftest.$ac_ext
17960 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17962 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17963 # Warning - without using the other run time loading flags,
17964 # -berok will link without error, but may produce a broken library.
17965 no_undefined_flag_GCJ=' ${wl}-bernotok'
17966 allow_undefined_flag_GCJ=' ${wl}-berok'
17967 # Exported symbols can be pulled into shared objects from archives
17968 whole_archive_flag_spec_GCJ='$convenience'
17969 archive_cmds_need_lc_GCJ=yes
17970 # This is similar to how AIX traditionally builds its shared libraries.
17971 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17977 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)'
17978 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17979 hardcode_minus_L_GCJ=yes
17980 # see comment about different semantics on the GNU ld section
17985 export_dynamic_flag_spec_GCJ=-rdynamic
17988 cygwin* | mingw* | pw32*)
17989 # When not using gcc, we currently assume that we are using
17990 # Microsoft Visual C++.
17991 # hardcode_libdir_flag_spec is actually meaningless, as there is
17992 # no search path for DLLs.
17993 hardcode_libdir_flag_spec_GCJ=' '
17994 allow_undefined_flag_GCJ=unsupported
17995 # Tell ltmain to make .lib files, not .a files.
17997 # Tell ltmain to make .dll files, not .so files.
17999 # FIXME: Setting linknames here is a bad hack.
18000 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18001 # The linker will automatically build a .lib file if we build a DLL.
18002 old_archive_From_new_cmds_GCJ='true'
18003 # FIXME: Should let the user specify the lib program.
18004 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18005 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18006 enable_shared_with_static_runtimes_GCJ=yes
18009 darwin* | rhapsody*)
18011 rhapsody* | darwin1.[012])
18012 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18015 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18016 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18018 case ${MACOSX_DEPLOYMENT_TARGET} in
18020 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18023 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18029 archive_cmds_need_lc_GCJ=no
18030 hardcode_direct_GCJ=no
18031 hardcode_automatic_GCJ=yes
18032 hardcode_shlibpath_var_GCJ=unsupported
18033 whole_archive_flag_spec_GCJ=''
18034 link_all_deplibs_GCJ=yes
18035 if test "$GCC" = yes ; then
18036 output_verbose_link_cmd='echo'
18037 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18038 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18039 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18040 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}'
18041 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}'
18043 case $cc_basename in
18045 output_verbose_link_cmd='echo'
18046 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18047 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18048 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18049 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}'
18050 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}'
18060 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18061 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18062 hardcode_shlibpath_var_GCJ=no
18069 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18070 # support. Future versions do this automatically, but an explicit c++rt0.o
18071 # does not break anything, and helps significantly (at the cost of a little
18074 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18075 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18076 hardcode_direct_GCJ=yes
18077 hardcode_shlibpath_var_GCJ=no
18080 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18082 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18083 hardcode_direct_GCJ=yes
18084 hardcode_minus_L_GCJ=yes
18085 hardcode_shlibpath_var_GCJ=no
18088 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18089 freebsd* | dragonfly*)
18090 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18091 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18092 hardcode_direct_GCJ=yes
18093 hardcode_shlibpath_var_GCJ=no
18097 if test "$GCC" = yes; then
18098 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'
18100 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'
18102 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18103 hardcode_libdir_separator_GCJ=:
18104 hardcode_direct_GCJ=yes
18106 # hardcode_minus_L: Not really in the search PATH,
18107 # but as the default location of the library.
18108 hardcode_minus_L_GCJ=yes
18109 export_dynamic_flag_spec_GCJ='${wl}-E'
18113 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18114 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18116 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18118 if test "$with_gnu_ld" = no; then
18119 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18120 hardcode_libdir_separator_GCJ=:
18122 hardcode_direct_GCJ=yes
18123 export_dynamic_flag_spec_GCJ='${wl}-E'
18125 # hardcode_minus_L: Not really in the search PATH,
18126 # but as the default location of the library.
18127 hardcode_minus_L_GCJ=yes
18132 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18135 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18138 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18141 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18147 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18150 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18153 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18157 if test "$with_gnu_ld" = no; then
18158 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18159 hardcode_libdir_separator_GCJ=:
18163 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18164 hardcode_direct_GCJ=no
18165 hardcode_shlibpath_var_GCJ=no
18168 hardcode_direct_GCJ=yes
18169 export_dynamic_flag_spec_GCJ='${wl}-E'
18171 # hardcode_minus_L: Not really in the search PATH,
18172 # but as the default location of the library.
18173 hardcode_minus_L_GCJ=yes
18179 irix5* | irix6* | nonstopux*)
18180 if test "$GCC" = yes; then
18181 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'
18183 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'
18184 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18186 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18187 hardcode_libdir_separator_GCJ=:
18188 link_all_deplibs_GCJ=yes
18191 netbsd* | netbsdelf*-gnu)
18192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18193 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18195 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18197 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18198 hardcode_direct_GCJ=yes
18199 hardcode_shlibpath_var_GCJ=no
18203 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18204 hardcode_direct_GCJ=yes
18205 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18206 hardcode_libdir_separator_GCJ=:
18207 hardcode_shlibpath_var_GCJ=no
18211 hardcode_direct_GCJ=yes
18212 hardcode_shlibpath_var_GCJ=no
18213 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18214 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18215 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18216 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18217 export_dynamic_flag_spec_GCJ='${wl}-E'
18220 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18221 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18222 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18225 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18226 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18233 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18234 hardcode_minus_L_GCJ=yes
18235 allow_undefined_flag_GCJ=unsupported
18236 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'
18237 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18241 if test "$GCC" = yes; then
18242 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18243 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'
18245 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18246 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'
18248 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18249 hardcode_libdir_separator_GCJ=:
18252 osf4* | osf5*) # as osf3* with the addition of -msym flag
18253 if test "$GCC" = yes; then
18254 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18255 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'
18256 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18258 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18259 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'
18260 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~
18261 $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'
18263 # Both c and cxx compiler support -rpath directly
18264 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18266 hardcode_libdir_separator_GCJ=:
18270 no_undefined_flag_GCJ=' -z text'
18271 if test "$GCC" = yes; then
18273 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18274 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18275 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18278 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18279 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18280 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18282 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18283 hardcode_shlibpath_var_GCJ=no
18285 solaris2.[0-5] | solaris2.[0-5].*) ;;
18287 # The compiler driver will combine linker options so we
18288 # cannot just pass the convience library names through
18289 # without $wl, iff we do not link with $LD.
18290 # Luckily, gcc supports the same syntax we need for Sun Studio.
18291 # Supported since Solaris 2.6 (maybe 2.5.1?)
18294 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18296 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' ;;
18299 link_all_deplibs_GCJ=yes
18303 if test "x$host_vendor" = xsequent; then
18304 # Use $CC to link under sequent, because it throws in some extra .o
18305 # files that make .init and .fini sections work.
18306 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18308 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18310 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18311 hardcode_direct_GCJ=yes
18312 hardcode_minus_L_GCJ=yes
18313 hardcode_shlibpath_var_GCJ=no
18317 case $host_vendor in
18319 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18320 hardcode_direct_GCJ=yes # is this really true???
18323 ## LD is ld it makes a PLAMLIB
18324 ## CC just makes a GrossModule.
18325 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18326 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18327 hardcode_direct_GCJ=no
18330 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18331 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18334 runpath_var='LD_RUN_PATH'
18335 hardcode_shlibpath_var_GCJ=no
18339 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18340 hardcode_shlibpath_var_GCJ=no
18341 export_dynamic_flag_spec_GCJ='-Bexport'
18345 if test -d /usr/nec; then
18346 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18347 hardcode_shlibpath_var_GCJ=no
18348 runpath_var=LD_RUN_PATH
18349 hardcode_runpath_var=yes
18354 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18355 no_undefined_flag_GCJ='${wl}-z,text'
18356 archive_cmds_need_lc_GCJ=no
18357 hardcode_shlibpath_var_GCJ=no
18358 runpath_var='LD_RUN_PATH'
18360 if test "$GCC" = yes; then
18361 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18362 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18364 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18365 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18369 sysv5* | sco3.2v5* | sco5v6*)
18370 # Note: We can NOT use -z defs as we might desire, because we do not
18371 # link with -lc, and that would cause any symbols used from libc to
18372 # always be unresolved, which means just about no library would
18373 # ever link correctly. If we're not using GNU ld we use -z text
18374 # though, which does catch some bad symbols but isn't as heavy-handed
18376 no_undefined_flag_GCJ='${wl}-z,text'
18377 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18378 archive_cmds_need_lc_GCJ=no
18379 hardcode_shlibpath_var_GCJ=no
18380 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18381 hardcode_libdir_separator_GCJ=':'
18382 link_all_deplibs_GCJ=yes
18383 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18384 runpath_var='LD_RUN_PATH'
18386 if test "$GCC" = yes; then
18387 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18388 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18390 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18391 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18396 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18397 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18398 hardcode_shlibpath_var_GCJ=no
18407 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18408 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18409 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18412 # Do we need to explicitly link libc?
18414 case "x$archive_cmds_need_lc_GCJ" in
18416 # Assume -lc should be added
18417 archive_cmds_need_lc_GCJ=yes
18419 if test "$enable_shared" = yes && test "$GCC" = yes; then
18420 case $archive_cmds_GCJ in
18422 # FIXME: we may have to deal with multi-command sequences.
18425 # Test whether the compiler implicitly links with -lc since on some
18426 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18427 # to ld, don't add -lc before -lgcc.
18428 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18429 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18433 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18434 (eval $ac_compile) 2>&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } 2>conftest.err; then
18440 libobjs=conftest.$ac_objext
18442 wl=$lt_prog_compiler_wl_GCJ
18443 pic_flag=$lt_prog_compiler_pic_GCJ
18449 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18450 allow_undefined_flag_GCJ=
18451 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18452 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18455 (exit $ac_status); }
18457 archive_cmds_need_lc_GCJ=no
18459 archive_cmds_need_lc_GCJ=yes
18461 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18463 cat conftest.err 1>&5
18466 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18467 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18474 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18475 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18476 library_names_spec=
18477 libname_spec='lib$name'
18481 postuninstall_cmds=
18485 shlibpath_overrides_runpath=unknown
18487 dynamic_linker="$host_os ld.so"
18488 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18489 if test "$GCC" = yes; then
18490 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18491 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18492 # if the path contains ";" then we assume it to be the separator
18493 # otherwise default to the standard path separator (i.e. ":") - it is
18494 # assumed that no part of a normal pathname contains ";" but that should
18495 # okay in the real world where ";" in dirpaths is itself problematic.
18496 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18501 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18503 need_lib_prefix=unknown
18504 hardcode_into_libs=no
18506 # when you set need_version to no, make sure it does not cause -set_version
18507 # flags to be left without arguments
18508 need_version=unknown
18513 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18514 shlibpath_var=LIBPATH
18516 # AIX 3 has no versioning support, so we append a major version to the name.
18517 soname_spec='${libname}${release}${shared_ext}$major'
18524 hardcode_into_libs=yes
18525 if test "$host_cpu" = ia64; then
18526 # AIX 5 supports IA64
18527 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18528 shlibpath_var=LD_LIBRARY_PATH
18530 # With GCC up to 2.95.x, collect2 would create an import file
18531 # for dependence libraries. The import file would start with
18532 # the line `#! .'. This would cause the generated library to
18533 # depend on `.', always an invalid library. This was fixed in
18534 # development snapshots of GCC prior to 3.0.
18536 aix4 | aix4.[01] | aix4.[01].*)
18537 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18539 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18542 can_build_shared=no
18546 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18547 # soname into executable. Probably we can add versioning support to
18548 # collect2, so additional links can be useful in future.
18549 if test "$aix_use_runtimelinking" = yes; then
18550 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18551 # instead of lib<name>.a to let people know that these are not
18552 # typical AIX shared libraries.
18553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18555 # We preserve .a as extension for shared libraries through AIX4.2
18556 # and later when we are not doing run time linking.
18557 library_names_spec='${libname}${release}.a $libname.a'
18558 soname_spec='${libname}${release}${shared_ext}$major'
18560 shlibpath_var=LIBPATH
18565 library_names_spec='$libname.ixlibrary $libname.a'
18566 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18567 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'
18571 library_names_spec='${libname}${shared_ext}'
18572 dynamic_linker="$host_os ld.so"
18573 shlibpath_var=LIBRARY_PATH
18579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18580 soname_spec='${libname}${release}${shared_ext}$major'
18581 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18582 shlibpath_var=LD_LIBRARY_PATH
18583 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18584 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18585 # the default ld.so.conf also contains /usr/contrib/lib and
18586 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18587 # libtool to hard-code these into programs
18590 cygwin* | mingw* | pw32*)
18591 version_type=windows
18596 case $GCC,$host_os in
18597 yes,cygwin* | yes,mingw* | yes,pw32*)
18598 library_names_spec='$libname.dll.a'
18599 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18600 postinstall_cmds='base_file=`basename \${file}`~
18601 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18602 dldir=$destdir/`dirname \$dlpath`~
18603 test -d \$dldir || mkdir -p \$dldir~
18604 $install_prog $dir/$dlname \$dldir/$dlname~
18605 chmod a+x \$dldir/$dlname'
18606 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18607 dlpath=$dir/\$dldll~
18609 shlibpath_overrides_runpath=yes
18613 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18614 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18615 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18618 # MinGW DLLs use traditional 'lib' prefix
18619 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18620 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18621 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18622 # It is most probably a Windows format PATH printed by
18623 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18624 # path with ; separators, and with drive letters. We can handle the
18625 # drive letters (cygwin fileutils understands them), so leave them,
18626 # especially as we might pass files found there to a mingw objdump,
18627 # which wouldn't understand a cygwinified path. Ahh.
18628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18634 # pw32 DLLs use 'pw' prefix rather than 'lib'
18635 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18641 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18644 dynamic_linker='Win32 ld.exe'
18645 # FIXME: first we should search . and the directory the executable is in
18649 darwin* | rhapsody*)
18650 dynamic_linker="$host_os dyld"
18651 version_type=darwin
18654 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18655 soname_spec='${libname}${release}${major}$shared_ext'
18656 shlibpath_overrides_runpath=yes
18657 shlibpath_var=DYLD_LIBRARY_PATH
18658 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18659 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18660 if test "$GCC" = yes; then
18661 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"`
18663 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18665 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18673 soname_spec='${libname}${release}${shared_ext}$major'
18674 shlibpath_var=LD_LIBRARY_PATH
18681 freebsd* | dragonfly*)
18682 # DragonFly does not have aout. When/if they implement a new
18683 # versioning mechanism, adjust this.
18684 if test -x /usr/bin/objformat; then
18685 objformat=`/usr/bin/objformat`
18688 freebsd[123]*) objformat=aout ;;
18689 *) objformat=elf ;;
18692 version_type=freebsd-$objformat
18693 case $version_type in
18695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18700 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18704 shlibpath_var=LD_LIBRARY_PATH
18707 shlibpath_overrides_runpath=yes
18709 freebsd3.[01]* | freebsdelf3.[01]*)
18710 shlibpath_overrides_runpath=yes
18711 hardcode_into_libs=yes
18713 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18714 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18715 shlibpath_overrides_runpath=no
18716 hardcode_into_libs=yes
18718 freebsd*) # from 4.6 on
18719 shlibpath_overrides_runpath=yes
18720 hardcode_into_libs=yes
18729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18730 soname_spec='${libname}${release}${shared_ext}$major'
18731 shlibpath_var=LD_LIBRARY_PATH
18732 hardcode_into_libs=yes
18735 hpux9* | hpux10* | hpux11*)
18736 # Give a soname corresponding to the major version so that dld.sl refuses to
18737 # link against other versions.
18744 hardcode_into_libs=yes
18745 dynamic_linker="$host_os dld.so"
18746 shlibpath_var=LD_LIBRARY_PATH
18747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18749 soname_spec='${libname}${release}${shared_ext}$major'
18750 if test "X$HPUX_IA64_MODE" = X32; then
18751 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18753 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18759 hardcode_into_libs=yes
18760 dynamic_linker="$host_os dld.sl"
18761 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18764 soname_spec='${libname}${release}${shared_ext}$major'
18765 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18770 dynamic_linker="$host_os dld.sl"
18771 shlibpath_var=SHLIB_PATH
18772 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18774 soname_spec='${libname}${release}${shared_ext}$major'
18777 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18778 postinstall_cmds='chmod 555 $lib'
18785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18786 soname_spec='${libname}${release}${shared_ext}$major'
18787 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18788 shlibpath_var=LD_LIBRARY_PATH
18789 shlibpath_overrides_runpath=no
18790 hardcode_into_libs=yes
18793 irix5* | irix6* | nonstopux*)
18795 nonstopux*) version_type=nonstopux ;;
18797 if test "$lt_cv_prog_gnu_ld" = yes; then
18805 soname_spec='${libname}${release}${shared_ext}$major'
18806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18808 irix5* | nonstopux*)
18809 libsuff= shlibsuff=
18812 case $LD in # libtool.m4 will add one of these switches to LD
18813 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18814 libsuff= shlibsuff= libmagic=32-bit;;
18815 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18816 libsuff=32 shlibsuff=N32 libmagic=N32;;
18817 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18818 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18819 *) libsuff= shlibsuff= libmagic=never-match;;
18823 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18824 shlibpath_overrides_runpath=no
18825 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18826 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18827 hardcode_into_libs=yes
18830 # No shared lib support for Linux oldld, aout, or coff.
18831 linux*oldld* | linux*aout* | linux*coff*)
18835 # This must be Linux ELF.
18836 linux* | k*bsd*-gnu)
18840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18841 soname_spec='${libname}${release}${shared_ext}$major'
18842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18843 shlibpath_var=LD_LIBRARY_PATH
18844 shlibpath_overrides_runpath=no
18845 # This implies no fast_install, which is unacceptable.
18846 # Some rework will be needed to allow for fast_install
18847 # before this can be enabled.
18848 hardcode_into_libs=yes
18850 # Append ld.so.conf contents to the search path
18851 if test -f /etc/ld.so.conf; then
18852 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' ' '`
18853 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18856 # We used to test for /lib/ld.so.1 and disable shared libraries on
18857 # powerpc, because MkLinux only supported shared libraries with the
18858 # GNU dynamic linker. Since this was broken with cross compilers,
18859 # most powerpc-linux boxes support dynamic linking these days and
18860 # people can always --disable-shared, the test was removed, and we
18861 # assume the GNU/Linux dynamic linker is in use.
18862 dynamic_linker='GNU/Linux ld.so'
18869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18870 soname_spec='${libname}${release}${shared_ext}$major'
18871 shlibpath_var=LD_LIBRARY_PATH
18872 shlibpath_overrides_runpath=no
18873 hardcode_into_libs=yes
18874 dynamic_linker='NetBSD ld.elf_so'
18881 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18883 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18884 dynamic_linker='NetBSD (a.out) ld.so'
18886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18887 soname_spec='${libname}${release}${shared_ext}$major'
18888 dynamic_linker='NetBSD ld.elf_so'
18890 shlibpath_var=LD_LIBRARY_PATH
18891 shlibpath_overrides_runpath=yes
18892 hardcode_into_libs=yes
18897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18898 shlibpath_var=LD_LIBRARY_PATH
18899 shlibpath_overrides_runpath=yes
18906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18907 soname_spec='${libname}${release}${shared_ext}$major'
18908 shlibpath_var=LD_LIBRARY_PATH
18909 shlibpath_overrides_runpath=yes
18914 sys_lib_dlsearch_path_spec="/usr/lib"
18916 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18918 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18919 *) need_version=no ;;
18921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18923 shlibpath_var=LD_LIBRARY_PATH
18924 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18926 openbsd2.[89] | openbsd2.[89].*)
18927 shlibpath_overrides_runpath=no
18930 shlibpath_overrides_runpath=yes
18934 shlibpath_overrides_runpath=yes
18939 libname_spec='$name'
18942 library_names_spec='$libname${shared_ext} $libname.a'
18943 dynamic_linker='OS/2 ld.exe'
18944 shlibpath_var=LIBPATH
18947 osf3* | osf4* | osf5*)
18951 soname_spec='${libname}${release}${shared_ext}$major'
18952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18953 shlibpath_var=LD_LIBRARY_PATH
18954 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18955 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18963 soname_spec='${libname}${release}${shared_ext}$major'
18964 shlibpath_var=LD_LIBRARY_PATH
18965 shlibpath_overrides_runpath=yes
18966 hardcode_into_libs=yes
18967 # ldd complains unless libraries are executable
18968 postinstall_cmds='chmod +x $lib'
18973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18974 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18975 shlibpath_var=LD_LIBRARY_PATH
18976 shlibpath_overrides_runpath=yes
18977 if test "$with_gnu_ld" = yes; then
18985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18986 soname_spec='${libname}${release}${shared_ext}$major'
18987 shlibpath_var=LD_LIBRARY_PATH
18988 case $host_vendor in
18990 shlibpath_overrides_runpath=no
18992 export_dynamic_flag_spec='${wl}-Blargedynsym'
18993 runpath_var=LD_RUN_PATH
19001 shlibpath_overrides_runpath=no
19002 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19008 if test -d /usr/nec ;then
19010 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19011 soname_spec='$libname${shared_ext}.$major'
19012 shlibpath_var=LD_LIBRARY_PATH
19016 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19017 version_type=freebsd-elf
19020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19021 soname_spec='${libname}${release}${shared_ext}$major'
19022 shlibpath_var=LD_LIBRARY_PATH
19023 hardcode_into_libs=yes
19024 if test "$with_gnu_ld" = yes; then
19025 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19026 shlibpath_overrides_runpath=no
19028 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19029 shlibpath_overrides_runpath=yes
19032 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19036 sys_lib_dlsearch_path_spec='/usr/lib'
19041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19042 soname_spec='${libname}${release}${shared_ext}$major'
19043 shlibpath_var=LD_LIBRARY_PATH
19050 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19051 echo "${ECHO_T}$dynamic_linker" >&6; }
19052 test "$dynamic_linker" = no && can_build_shared=no
19054 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19055 if test "$GCC" = yes; then
19056 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19059 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19060 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
19061 hardcode_action_GCJ=
19062 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19063 test -n "$runpath_var_GCJ" || \
19064 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19066 # We can hardcode non-existant directories.
19067 if test "$hardcode_direct_GCJ" != no &&
19068 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19069 # have to relink, otherwise we might link with an installed library
19070 # when we should be linking with a yet-to-be-installed one
19071 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19072 test "$hardcode_minus_L_GCJ" != no; then
19073 # Linking always hardcodes the temporary library directory.
19074 hardcode_action_GCJ=relink
19076 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19077 hardcode_action_GCJ=immediate
19080 # We cannot hardcode anything, or else we can only hardcode existing
19082 hardcode_action_GCJ=unsupported
19084 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19085 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
19087 if test "$hardcode_action_GCJ" = relink; then
19088 # Fast installation is not supported
19089 enable_fast_install=no
19090 elif test "$shlibpath_overrides_runpath" = yes ||
19091 test "$enable_shared" = no; then
19092 # Fast installation is not necessary
19093 enable_fast_install=needless
19097 # The else clause should only fire when bootstrapping the
19098 # libtool distribution, otherwise you forgot to ship ltmain.sh
19099 # with your package, and you will get complaints that there are
19100 # no rules to generate ltmain.sh.
19101 if test -f "$ltmain"; then
19102 # See if we are running on zsh, and set the options which allow our commands through
19103 # without removal of \ escapes.
19104 if test -n "${ZSH_VERSION+set}" ; then
19105 setopt NO_GLOB_SUBST
19107 # Now quote all the things that may contain metacharacters while being
19108 # careful not to overquote the AC_SUBSTed values. We take copies of the
19109 # variables and quote the copies for generation of the libtool script.
19110 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19112 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19113 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19114 deplibs_check_method reload_flag reload_cmds need_locks \
19115 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19116 lt_cv_sys_global_symbol_to_c_name_address \
19117 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19118 old_postinstall_cmds old_postuninstall_cmds \
19122 lt_prog_compiler_wl_GCJ \
19123 lt_prog_compiler_pic_GCJ \
19124 lt_prog_compiler_static_GCJ \
19125 lt_prog_compiler_no_builtin_flag_GCJ \
19126 export_dynamic_flag_spec_GCJ \
19127 thread_safe_flag_spec_GCJ \
19128 whole_archive_flag_spec_GCJ \
19129 enable_shared_with_static_runtimes_GCJ \
19130 old_archive_cmds_GCJ \
19131 old_archive_from_new_cmds_GCJ \
19132 predep_objects_GCJ \
19133 postdep_objects_GCJ \
19136 compiler_lib_search_path_GCJ \
19138 archive_expsym_cmds_GCJ \
19139 postinstall_cmds_GCJ \
19140 postuninstall_cmds_GCJ \
19141 old_archive_from_expsyms_cmds_GCJ \
19142 allow_undefined_flag_GCJ \
19143 no_undefined_flag_GCJ \
19144 export_symbols_cmds_GCJ \
19145 hardcode_libdir_flag_spec_GCJ \
19146 hardcode_libdir_flag_spec_ld_GCJ \
19147 hardcode_libdir_separator_GCJ \
19148 hardcode_automatic_GCJ \
19150 module_expsym_cmds_GCJ \
19151 lt_cv_prog_compiler_c_o_GCJ \
19152 exclude_expsyms_GCJ \
19153 include_expsyms_GCJ; do
19156 old_archive_cmds_GCJ | \
19157 old_archive_from_new_cmds_GCJ | \
19158 archive_cmds_GCJ | \
19159 archive_expsym_cmds_GCJ | \
19160 module_cmds_GCJ | \
19161 module_expsym_cmds_GCJ | \
19162 old_archive_from_expsyms_cmds_GCJ | \
19163 export_symbols_cmds_GCJ | \
19164 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19165 postinstall_cmds | postuninstall_cmds | \
19166 old_postinstall_cmds | old_postuninstall_cmds | \
19167 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19168 # Double-quote double-evaled strings.
19169 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19172 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19178 *'\$0 --fallback-echo"')
19179 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19185 cat <<__EOF__ >> "$cfgfile"
19186 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19188 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19190 # Shell to use when invoking shell scripts.
19193 # Whether or not to build shared libraries.
19194 build_libtool_libs=$enable_shared
19196 # Whether or not to build static libraries.
19197 build_old_libs=$enable_static
19199 # Whether or not to add -lc for building shared libraries.
19200 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19202 # Whether or not to disallow shared libs when runtime libs are static
19203 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19205 # Whether or not to optimize for fast installation.
19206 fast_install=$enable_fast_install
19209 host_alias=$host_alias
19213 # The build system.
19214 build_alias=$build_alias
19218 # An echo program that does not interpret backslashes.
19223 AR_FLAGS=$lt_AR_FLAGS
19228 # LTCC compiler flags.
19229 LTCFLAGS=$lt_LTCFLAGS
19231 # A language-specific compiler.
19232 CC=$lt_compiler_GCJ
19234 # Is the compiler the GNU C compiler?
19240 # The linker used to build libraries.
19243 # Whether we need hard or soft links.
19246 # A BSD-compatible nm program.
19249 # A symbol stripping program
19252 # Used to examine libraries when file_magic_cmd begins "file"
19253 MAGIC_CMD=$MAGIC_CMD
19255 # Used on cygwin: DLL creation program.
19258 # Used on cygwin: object dumper.
19261 # Used on cygwin: assembler.
19264 # The name of the directory that contains temporary libtool files.
19267 # How to create reloadable object files.
19268 reload_flag=$lt_reload_flag
19269 reload_cmds=$lt_reload_cmds
19271 # How to pass a linker flag through the compiler.
19272 wl=$lt_lt_prog_compiler_wl_GCJ
19274 # Object file suffix (normally "o").
19275 objext="$ac_objext"
19277 # Old archive suffix (normally "a").
19280 # Shared library suffix (normally ".so").
19281 shrext_cmds='$shrext_cmds'
19283 # Executable file suffix (normally "").
19286 # Additional compiler flags for building library objects.
19287 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19290 # What is the maximum length of a command?
19291 max_cmd_len=$lt_cv_sys_max_cmd_len
19293 # Does compiler simultaneously support -c and -o options?
19294 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19296 # Must we lock files when doing compilation?
19297 need_locks=$lt_need_locks
19299 # Do we need the lib prefix for modules?
19300 need_lib_prefix=$need_lib_prefix
19302 # Do we need a version for libraries?
19303 need_version=$need_version
19305 # Whether dlopen is supported.
19306 dlopen_support=$enable_dlopen
19308 # Whether dlopen of programs is supported.
19309 dlopen_self=$enable_dlopen_self
19311 # Whether dlopen of statically linked programs is supported.
19312 dlopen_self_static=$enable_dlopen_self_static
19314 # Compiler flag to prevent dynamic linking.
19315 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19317 # Compiler flag to turn off builtin functions.
19318 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19320 # Compiler flag to allow reflexive dlopens.
19321 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19323 # Compiler flag to generate shared objects directly from archives.
19324 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19326 # Compiler flag to generate thread-safe objects.
19327 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19329 # Library versioning type.
19330 version_type=$version_type
19332 # Format of library name prefix.
19333 libname_spec=$lt_libname_spec
19335 # List of archive names. First name is the real one, the rest are links.
19336 # The last name is the one that the linker finds with -lNAME.
19337 library_names_spec=$lt_library_names_spec
19339 # The coded name of the library, if different from the real name.
19340 soname_spec=$lt_soname_spec
19342 # Commands used to build and install an old-style archive.
19344 old_archive_cmds=$lt_old_archive_cmds_GCJ
19345 old_postinstall_cmds=$lt_old_postinstall_cmds
19346 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19348 # Create an old-style archive from a shared archive.
19349 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19351 # Create a temporary old-style archive to link instead of a shared archive.
19352 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19354 # Commands used to build and install a shared archive.
19355 archive_cmds=$lt_archive_cmds_GCJ
19356 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19357 postinstall_cmds=$lt_postinstall_cmds
19358 postuninstall_cmds=$lt_postuninstall_cmds
19360 # Commands used to build a loadable module (assumed same as above if empty)
19361 module_cmds=$lt_module_cmds_GCJ
19362 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19364 # Commands to strip libraries.
19365 old_striplib=$lt_old_striplib
19366 striplib=$lt_striplib
19368 # Dependencies to place before the objects being linked to create a
19370 predep_objects=$lt_predep_objects_GCJ
19372 # Dependencies to place after the objects being linked to create a
19374 postdep_objects=$lt_postdep_objects_GCJ
19376 # Dependencies to place before the objects being linked to create a
19378 predeps=$lt_predeps_GCJ
19380 # Dependencies to place after the objects being linked to create a
19382 postdeps=$lt_postdeps_GCJ
19384 # The library search path used internally by the compiler when linking
19385 # a shared library.
19386 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19388 # Method to check whether dependent libraries are shared objects.
19389 deplibs_check_method=$lt_deplibs_check_method
19391 # Command to use when deplibs_check_method == file_magic.
19392 file_magic_cmd=$lt_file_magic_cmd
19394 # Flag that allows shared libraries with undefined symbols to be built.
19395 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19397 # Flag that forces no undefined symbols.
19398 no_undefined_flag=$lt_no_undefined_flag_GCJ
19400 # Commands used to finish a libtool library installation in a directory.
19401 finish_cmds=$lt_finish_cmds
19403 # Same as above, but a single script fragment to be evaled but not shown.
19404 finish_eval=$lt_finish_eval
19406 # Take the output of nm and produce a listing of raw symbols and C names.
19407 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19409 # Transform the output of nm in a proper C declaration
19410 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19412 # Transform the output of nm in a C name address pair
19413 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19415 # This is the shared library runtime path variable.
19416 runpath_var=$runpath_var
19418 # This is the shared library path variable.
19419 shlibpath_var=$shlibpath_var
19421 # Is shlibpath searched before the hard-coded library search path?
19422 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19424 # How to hardcode a shared library path into an executable.
19425 hardcode_action=$hardcode_action_GCJ
19427 # Whether we should hardcode library paths into libraries.
19428 hardcode_into_libs=$hardcode_into_libs
19430 # Flag to hardcode \$libdir into a binary during linking.
19431 # This must work even if \$libdir does not exist.
19432 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19434 # If ld is used when linking, flag to hardcode \$libdir into
19435 # a binary during linking. This must work even if \$libdir does
19437 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19439 # Whether we need a single -rpath flag with a separated argument.
19440 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19442 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19443 # resulting binary.
19444 hardcode_direct=$hardcode_direct_GCJ
19446 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19447 # resulting binary.
19448 hardcode_minus_L=$hardcode_minus_L_GCJ
19450 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19451 # the resulting binary.
19452 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19454 # Set to yes if building a shared library automatically hardcodes DIR into the library
19455 # and all subsequent libraries and executables linked against it.
19456 hardcode_automatic=$hardcode_automatic_GCJ
19458 # Variables whose values should be saved in libtool wrapper scripts and
19459 # restored at relink time.
19460 variables_saved_for_relink="$variables_saved_for_relink"
19462 # Whether libtool must link a program against all its dependency libraries.
19463 link_all_deplibs=$link_all_deplibs_GCJ
19465 # Compile-time system search path for libraries
19466 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19468 # Run-time system search path for libraries
19469 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19471 # Fix the shell variable \$srcfile for the compiler.
19472 fix_srcfile_path="$fix_srcfile_path_GCJ"
19474 # Set to yes if exported symbols are required.
19475 always_export_symbols=$always_export_symbols_GCJ
19477 # The commands to list exported symbols.
19478 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19480 # The commands to extract the exported symbol list from a shared archive.
19481 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19483 # Symbols that should not be listed in the preloaded symbols.
19484 exclude_expsyms=$lt_exclude_expsyms_GCJ
19486 # Symbols that must always be exported.
19487 include_expsyms=$lt_include_expsyms_GCJ
19489 # ### END LIBTOOL TAG CONFIG: $tagname
19495 # If there is no Makefile yet, we rely on a make rule to execute
19496 # `config.status --recheck' to rerun these tests and create the
19497 # libtool script then.
19498 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19499 if test -f "$ltmain_in"; then
19500 test -f Makefile && make "$ltmain"
19506 ac_cpp='$CPP $CPPFLAGS'
19507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19521 # Source file extension for RC test sources.
19524 # Object file extension for compiled RC test sources.
19528 # Code to be used in simple compile tests
19529 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19531 # Code to be used in simple link tests
19532 lt_simple_link_test_code="$lt_simple_compile_test_code"
19534 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19536 # If no C compiler was specified, use CC.
19539 # If no C compiler flags were specified, use CFLAGS.
19540 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19542 # Allow CC to be a program name with arguments.
19546 # save warnings/boilerplate of simple test code
19547 ac_outfile=conftest.$ac_objext
19548 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19549 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19550 _lt_compiler_boilerplate=`cat conftest.err`
19553 ac_outfile=conftest.$ac_objext
19554 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19555 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19556 _lt_linker_boilerplate=`cat conftest.err`
19560 # Allow CC to be a program name with arguments.
19565 for cc_temp in $compiler""; do
19567 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19568 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19573 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19575 lt_cv_prog_compiler_c_o_RC=yes
19577 # The else clause should only fire when bootstrapping the
19578 # libtool distribution, otherwise you forgot to ship ltmain.sh
19579 # with your package, and you will get complaints that there are
19580 # no rules to generate ltmain.sh.
19581 if test -f "$ltmain"; then
19582 # See if we are running on zsh, and set the options which allow our commands through
19583 # without removal of \ escapes.
19584 if test -n "${ZSH_VERSION+set}" ; then
19585 setopt NO_GLOB_SUBST
19587 # Now quote all the things that may contain metacharacters while being
19588 # careful not to overquote the AC_SUBSTed values. We take copies of the
19589 # variables and quote the copies for generation of the libtool script.
19590 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19592 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19593 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19594 deplibs_check_method reload_flag reload_cmds need_locks \
19595 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19596 lt_cv_sys_global_symbol_to_c_name_address \
19597 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19598 old_postinstall_cmds old_postuninstall_cmds \
19602 lt_prog_compiler_wl_RC \
19603 lt_prog_compiler_pic_RC \
19604 lt_prog_compiler_static_RC \
19605 lt_prog_compiler_no_builtin_flag_RC \
19606 export_dynamic_flag_spec_RC \
19607 thread_safe_flag_spec_RC \
19608 whole_archive_flag_spec_RC \
19609 enable_shared_with_static_runtimes_RC \
19610 old_archive_cmds_RC \
19611 old_archive_from_new_cmds_RC \
19612 predep_objects_RC \
19613 postdep_objects_RC \
19616 compiler_lib_search_path_RC \
19618 archive_expsym_cmds_RC \
19619 postinstall_cmds_RC \
19620 postuninstall_cmds_RC \
19621 old_archive_from_expsyms_cmds_RC \
19622 allow_undefined_flag_RC \
19623 no_undefined_flag_RC \
19624 export_symbols_cmds_RC \
19625 hardcode_libdir_flag_spec_RC \
19626 hardcode_libdir_flag_spec_ld_RC \
19627 hardcode_libdir_separator_RC \
19628 hardcode_automatic_RC \
19630 module_expsym_cmds_RC \
19631 lt_cv_prog_compiler_c_o_RC \
19632 exclude_expsyms_RC \
19633 include_expsyms_RC; do
19636 old_archive_cmds_RC | \
19637 old_archive_from_new_cmds_RC | \
19638 archive_cmds_RC | \
19639 archive_expsym_cmds_RC | \
19641 module_expsym_cmds_RC | \
19642 old_archive_from_expsyms_cmds_RC | \
19643 export_symbols_cmds_RC | \
19644 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19645 postinstall_cmds | postuninstall_cmds | \
19646 old_postinstall_cmds | old_postuninstall_cmds | \
19647 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19648 # Double-quote double-evaled strings.
19649 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19652 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19658 *'\$0 --fallback-echo"')
19659 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19665 cat <<__EOF__ >> "$cfgfile"
19666 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19668 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19670 # Shell to use when invoking shell scripts.
19673 # Whether or not to build shared libraries.
19674 build_libtool_libs=$enable_shared
19676 # Whether or not to build static libraries.
19677 build_old_libs=$enable_static
19679 # Whether or not to add -lc for building shared libraries.
19680 build_libtool_need_lc=$archive_cmds_need_lc_RC
19682 # Whether or not to disallow shared libs when runtime libs are static
19683 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19685 # Whether or not to optimize for fast installation.
19686 fast_install=$enable_fast_install
19689 host_alias=$host_alias
19693 # The build system.
19694 build_alias=$build_alias
19698 # An echo program that does not interpret backslashes.
19703 AR_FLAGS=$lt_AR_FLAGS
19708 # LTCC compiler flags.
19709 LTCFLAGS=$lt_LTCFLAGS
19711 # A language-specific compiler.
19714 # Is the compiler the GNU C compiler?
19720 # The linker used to build libraries.
19723 # Whether we need hard or soft links.
19726 # A BSD-compatible nm program.
19729 # A symbol stripping program
19732 # Used to examine libraries when file_magic_cmd begins "file"
19733 MAGIC_CMD=$MAGIC_CMD
19735 # Used on cygwin: DLL creation program.
19738 # Used on cygwin: object dumper.
19741 # Used on cygwin: assembler.
19744 # The name of the directory that contains temporary libtool files.
19747 # How to create reloadable object files.
19748 reload_flag=$lt_reload_flag
19749 reload_cmds=$lt_reload_cmds
19751 # How to pass a linker flag through the compiler.
19752 wl=$lt_lt_prog_compiler_wl_RC
19754 # Object file suffix (normally "o").
19755 objext="$ac_objext"
19757 # Old archive suffix (normally "a").
19760 # Shared library suffix (normally ".so").
19761 shrext_cmds='$shrext_cmds'
19763 # Executable file suffix (normally "").
19766 # Additional compiler flags for building library objects.
19767 pic_flag=$lt_lt_prog_compiler_pic_RC
19770 # What is the maximum length of a command?
19771 max_cmd_len=$lt_cv_sys_max_cmd_len
19773 # Does compiler simultaneously support -c and -o options?
19774 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19776 # Must we lock files when doing compilation?
19777 need_locks=$lt_need_locks
19779 # Do we need the lib prefix for modules?
19780 need_lib_prefix=$need_lib_prefix
19782 # Do we need a version for libraries?
19783 need_version=$need_version
19785 # Whether dlopen is supported.
19786 dlopen_support=$enable_dlopen
19788 # Whether dlopen of programs is supported.
19789 dlopen_self=$enable_dlopen_self
19791 # Whether dlopen of statically linked programs is supported.
19792 dlopen_self_static=$enable_dlopen_self_static
19794 # Compiler flag to prevent dynamic linking.
19795 link_static_flag=$lt_lt_prog_compiler_static_RC
19797 # Compiler flag to turn off builtin functions.
19798 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19800 # Compiler flag to allow reflexive dlopens.
19801 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19803 # Compiler flag to generate shared objects directly from archives.
19804 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19806 # Compiler flag to generate thread-safe objects.
19807 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19809 # Library versioning type.
19810 version_type=$version_type
19812 # Format of library name prefix.
19813 libname_spec=$lt_libname_spec
19815 # List of archive names. First name is the real one, the rest are links.
19816 # The last name is the one that the linker finds with -lNAME.
19817 library_names_spec=$lt_library_names_spec
19819 # The coded name of the library, if different from the real name.
19820 soname_spec=$lt_soname_spec
19822 # Commands used to build and install an old-style archive.
19824 old_archive_cmds=$lt_old_archive_cmds_RC
19825 old_postinstall_cmds=$lt_old_postinstall_cmds
19826 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19828 # Create an old-style archive from a shared archive.
19829 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19831 # Create a temporary old-style archive to link instead of a shared archive.
19832 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19834 # Commands used to build and install a shared archive.
19835 archive_cmds=$lt_archive_cmds_RC
19836 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19837 postinstall_cmds=$lt_postinstall_cmds
19838 postuninstall_cmds=$lt_postuninstall_cmds
19840 # Commands used to build a loadable module (assumed same as above if empty)
19841 module_cmds=$lt_module_cmds_RC
19842 module_expsym_cmds=$lt_module_expsym_cmds_RC
19844 # Commands to strip libraries.
19845 old_striplib=$lt_old_striplib
19846 striplib=$lt_striplib
19848 # Dependencies to place before the objects being linked to create a
19850 predep_objects=$lt_predep_objects_RC
19852 # Dependencies to place after the objects being linked to create a
19854 postdep_objects=$lt_postdep_objects_RC
19856 # Dependencies to place before the objects being linked to create a
19858 predeps=$lt_predeps_RC
19860 # Dependencies to place after the objects being linked to create a
19862 postdeps=$lt_postdeps_RC
19864 # The library search path used internally by the compiler when linking
19865 # a shared library.
19866 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19868 # Method to check whether dependent libraries are shared objects.
19869 deplibs_check_method=$lt_deplibs_check_method
19871 # Command to use when deplibs_check_method == file_magic.
19872 file_magic_cmd=$lt_file_magic_cmd
19874 # Flag that allows shared libraries with undefined symbols to be built.
19875 allow_undefined_flag=$lt_allow_undefined_flag_RC
19877 # Flag that forces no undefined symbols.
19878 no_undefined_flag=$lt_no_undefined_flag_RC
19880 # Commands used to finish a libtool library installation in a directory.
19881 finish_cmds=$lt_finish_cmds
19883 # Same as above, but a single script fragment to be evaled but not shown.
19884 finish_eval=$lt_finish_eval
19886 # Take the output of nm and produce a listing of raw symbols and C names.
19887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19889 # Transform the output of nm in a proper C declaration
19890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19892 # Transform the output of nm in a C name address pair
19893 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19895 # This is the shared library runtime path variable.
19896 runpath_var=$runpath_var
19898 # This is the shared library path variable.
19899 shlibpath_var=$shlibpath_var
19901 # Is shlibpath searched before the hard-coded library search path?
19902 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19904 # How to hardcode a shared library path into an executable.
19905 hardcode_action=$hardcode_action_RC
19907 # Whether we should hardcode library paths into libraries.
19908 hardcode_into_libs=$hardcode_into_libs
19910 # Flag to hardcode \$libdir into a binary during linking.
19911 # This must work even if \$libdir does not exist.
19912 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19914 # If ld is used when linking, flag to hardcode \$libdir into
19915 # a binary during linking. This must work even if \$libdir does
19917 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19919 # Whether we need a single -rpath flag with a separated argument.
19920 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19922 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19923 # resulting binary.
19924 hardcode_direct=$hardcode_direct_RC
19926 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19927 # resulting binary.
19928 hardcode_minus_L=$hardcode_minus_L_RC
19930 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19931 # the resulting binary.
19932 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19934 # Set to yes if building a shared library automatically hardcodes DIR into the library
19935 # and all subsequent libraries and executables linked against it.
19936 hardcode_automatic=$hardcode_automatic_RC
19938 # Variables whose values should be saved in libtool wrapper scripts and
19939 # restored at relink time.
19940 variables_saved_for_relink="$variables_saved_for_relink"
19942 # Whether libtool must link a program against all its dependency libraries.
19943 link_all_deplibs=$link_all_deplibs_RC
19945 # Compile-time system search path for libraries
19946 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19948 # Run-time system search path for libraries
19949 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19951 # Fix the shell variable \$srcfile for the compiler.
19952 fix_srcfile_path="$fix_srcfile_path_RC"
19954 # Set to yes if exported symbols are required.
19955 always_export_symbols=$always_export_symbols_RC
19957 # The commands to list exported symbols.
19958 export_symbols_cmds=$lt_export_symbols_cmds_RC
19960 # The commands to extract the exported symbol list from a shared archive.
19961 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19963 # Symbols that should not be listed in the preloaded symbols.
19964 exclude_expsyms=$lt_exclude_expsyms_RC
19966 # Symbols that must always be exported.
19967 include_expsyms=$lt_include_expsyms_RC
19969 # ### END LIBTOOL TAG CONFIG: $tagname
19975 # If there is no Makefile yet, we rely on a make rule to execute
19976 # `config.status --recheck' to rerun these tests and create the
19977 # libtool script then.
19978 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19979 if test -f "$ltmain_in"; then
19980 test -f Makefile && make "$ltmain"
19986 ac_cpp='$CPP $CPPFLAGS'
19987 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19988 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19989 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19996 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19997 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19998 { (exit 1); exit 1; }; }
20002 # Append the new tag name to the list of available tags.
20003 if test -n "$tagname" ; then
20004 available_tags="$available_tags $tagname"
20010 # Now substitute the updated list of available tags.
20011 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20012 mv "${ofile}T" "$ofile"
20016 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20017 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20018 { (exit 1); exit 1; }; }
20024 # This can be used to rebuild libtool when needed
20025 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20027 # Always use our own libtool.
20028 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20030 # Prevent multiple expansion
20053 ac_cpp='$CPP $CPPFLAGS'
20054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20059 # Checks for libraries.
20061 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
20062 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
20063 if test "${ac_cv_lib_apr_1_main+set}" = set; then
20064 echo $ECHO_N "(cached) $ECHO_C" >&6
20066 ac_check_lib_save_LIBS=$LIBS
20067 LIBS="-lapr-1 $LIBS"
20068 cat >conftest.$ac_ext <<_ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20084 rm -f conftest.$ac_objext conftest$ac_exeext
20085 if { (ac_try="$ac_link"
20086 case "(($ac_try" in
20087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20088 *) ac_try_echo=$ac_try;;
20090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20091 (eval "$ac_link") 2>conftest.er1
20093 grep -v '^ *+' conftest.er1 >conftest.err
20095 cat conftest.err >&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } && {
20098 test -z "$ac_c_werror_flag" ||
20099 test ! -s conftest.err
20100 } && test -s conftest$ac_exeext &&
20101 $as_test_x conftest$ac_exeext; then
20102 ac_cv_lib_apr_1_main=yes
20104 echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20107 ac_cv_lib_apr_1_main=no
20110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20111 conftest$ac_exeext conftest.$ac_ext
20112 LIBS=$ac_check_lib_save_LIBS
20114 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
20115 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
20116 if test $ac_cv_lib_apr_1_main = yes; then
20117 cat >>confdefs.h <<_ACEOF
20118 #define HAVE_LIBAPR_1 1
20121 LIBS="-lapr-1 $LIBS"
20127 # Check whether --with-apache-header was given.
20128 if test "${with_apache_header+set}" = set; then
20129 withval=$with_apache_header;
20132 #[, ACTION-IF-GIVEN[, ACTION-IF-NOT-GIVEN]])
20134 if test "x$with_apache_header" = "xyes"; then
20135 { { echo "$as_me:$LINENO: error:
20136 Please specify the --with-apache-header option. And, please specify the place of the header file.
20139 echo "$as_me: error:
20140 Please specify the --with-apache-header option. And, please specify the place of the header file.
20143 { (exit 1); exit 1; }; }
20147 # Check whether --with-apxs was given.
20148 if test "${with_apxs+set}" = set; then
20149 withval=$with_apxs;
20152 if test "x$with_apxs" = "x" ; then
20155 if test "x$with_apxs" = "xyes" ; then
20156 { { echo "$as_me:$LINENO: error:
20157 Please specify the --with-apxs option. And, please specify the place of the apxs program.
20159 echo "$as_me: error:
20160 Please specify the --with-apxs option. And, please specify the place of the apxs program.
20162 { (exit 1); exit 1; }; }
20166 # Check whether --with-apr-config was given.
20167 if test "${with_apr_config+set}" = set; then
20168 withval=$with_apr_config;
20171 if test "x$with_apr_config" = "xyes" ; then
20172 { { echo "$as_me:$LINENO: error:
20173 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20175 echo "$as_me: error:
20176 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
20178 { (exit 1); exit 1; }; }
20182 # Check whether --with-apu-config was given.
20183 if test "${with_apu_config+set}" = set; then
20184 withval=$with_apu_config;
20187 if test "x$with_apu_config" = "xyes" ; then
20188 { { echo "$as_me:$LINENO: error:
20189 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20191 echo "$as_me: error:
20192 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
20194 { (exit 1); exit 1; }; }
20197 # Check whether --enable-img-conv-f was given.
20198 if test "${enable_img_conv_f+set}" = set; then
20199 enableval=$enable_img_conv_f;
20202 if test "x$enable_img_conv_f" = "xyes"; then
20205 QDEFS="-DIMG_NOT_CONVERT_FILENAME"
20209 # Check whether --enable-memcache-cookie was given.
20210 if test "${enable_memcache_cookie+set}" = set; then
20211 enableval=$enable_memcache_cookie;
20215 # Check whether --with-apr-memcache-header was given.
20216 if test "${with_apr_memcache_header+set}" = set; then
20217 withval=$with_apr_memcache_header;
20221 # Check whether --with-apr-memcache-lib-dir was given.
20222 if test "${with_apr_memcache_lib_dir+set}" = set; then
20223 withval=$with_apr_memcache_lib_dir;
20226 if test "x$enable_memcache_cookie" = "xyes" ; then
20227 if test "x$with_apr_memcache_header" = "x" -o "x$with_apr_memcache_header" = "xyes" ; then
20228 { { echo "$as_me:$LINENO: error:
20229 Please specify the --with-apr-memcache-header And, please specify the place of the \"apr_memcache.h\" header file directory.
20231 echo "$as_me: error:
20232 Please specify the --with-apr-memcache-header And, please specify the place of the \"apr_memcache.h\" header file directory.
20234 { (exit 1); exit 1; }; }
20236 if test "x$with_apr_memcache_lib_dir" = "x" -o "x$with_apr_memcache_lib_dir" = "xyes" ; then
20237 { { echo "$as_me:$LINENO: error:
20238 Please specify the --with-apr-memcache-lib-dir And, please specify the place of apr-memcache library directory.
20240 echo "$as_me: error:
20241 Please specify the --with-apr-memcache-lib-dir And, please specify the place of apr-memcache library directory.
20243 { (exit 1); exit 1; }; }
20245 MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_apr_memcache_header}"
20246 MEMCACHE_COOKIE_LIBS="-L${with_apr_memcache_lib_dir} -lapr_memcache"
20248 MEMCACHE_COOKIE_DEFS=""
20249 MEMCACHE_COOKIE_LIBS=""
20251 # Check whether --enable-mysql-cookie was given.
20252 if test "${enable_mysql_cookie+set}" = set; then
20253 enableval=$enable_mysql_cookie;
20257 # Check whether --with-mysql-header was given.
20258 if test "${with_mysql_header+set}" = set; then
20259 withval=$with_mysql_header;
20263 # Check whether --with-mysql-lib-dir was given.
20264 if test "${with_mysql_lib_dir+set}" = set; then
20265 withval=$with_mysql_lib_dir;
20268 if test "x$enable_mysql_cookie" = "xyes"; then
20269 if test "x$with_mysql_header" = "x" -o "x$with_mysql_header" = "xyes" ; then
20270 { { echo "$as_me:$LINENO: error:
20271 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
20273 echo "$as_me: error:
20274 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
20276 { (exit 1); exit 1; }; }
20278 if test "x$with_mysql_lib_dir" = "x" -o "x$with_mysql_lib_dir" = "xyes" ; then
20279 { { echo "$as_me:$LINENO: error:
20280 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
20282 echo "$as_me: error:
20283 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
20285 { (exit 1); exit 1; }; }
20287 MYSQL_COOKIE_DEFS="-DUSE_MYSQL_COOKIE -I${with_mysql_header}"
20288 MYSQL_COOKIE_LIBS="-L${with_mysql_lib_dir} -lmysqlclient_r"
20290 MYSQL_COOKIE_DEFS=""
20291 MYSQL_COOKIE_LIBS=""
20294 # Check whether --enable-dump-log was given.
20295 if test "${enable_dump_log+set}" = set; then
20296 enableval=$enable_dump_log;
20299 if test "x$enable_dump_log" = "xyes"; then
20300 DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
20302 if test "x$enable_dump_log" != "x" ; then
20303 DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
20308 if test "x$with_apxs" = "x" ; then
20309 # Extract the first word of "apxs2", so it can be a program name with args.
20310 set dummy apxs2; ac_word=$2
20311 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20313 if test "${ac_cv_path_APXS2+set}" = set; then
20314 echo $ECHO_N "(cached) $ECHO_C" >&6
20318 ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
20321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20322 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
20323 for as_dir in $as_dummy
20326 test -z "$as_dir" && as_dir=.
20327 for ac_exec_ext in '' $ac_executable_extensions; do
20328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20329 ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
20330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20337 test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
20341 APXS2=$ac_cv_path_APXS2
20342 if test -n "$APXS2"; then
20343 { echo "$as_me:$LINENO: result: $APXS2" >&5
20344 echo "${ECHO_T}$APXS2" >&6; }
20346 { echo "$as_me:$LINENO: result: no" >&5
20347 echo "${ECHO_T}no" >&6; }
20351 if test "x$APXS2" = "xno"; then
20352 # Extract the first word of "apxs", so it can be a program name with args.
20353 set dummy apxs; ac_word=$2
20354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20356 if test "${ac_cv_path_APXS+set}" = set; then
20357 echo $ECHO_N "(cached) $ECHO_C" >&6
20361 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
20364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20365 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
20366 for as_dir in $as_dummy
20369 test -z "$as_dir" && as_dir=.
20370 for ac_exec_ext in '' $ac_executable_extensions; do
20371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20372 ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
20373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20380 test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
20384 APXS=$ac_cv_path_APXS
20385 if test -n "$APXS"; then
20386 { echo "$as_me:$LINENO: result: $APXS" >&5
20387 echo "${ECHO_T}$APXS" >&6; }
20389 { echo "$as_me:$LINENO: result: no" >&5
20390 echo "${ECHO_T}no" >&6; }
20394 if test "x$APXS" = "xno" ; then
20395 { { echo "$as_me:$LINENO: error: apxs not found." >&5
20396 echo "$as_me: error: apxs not found." >&2;}
20397 { (exit 1); exit 1; }; }
20403 if test "x$with_apxs" != "x" ; then
20407 # Extract the first word of "libtool", so it can be a program name with args.
20408 set dummy libtool; ac_word=$2
20409 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20411 if test "${ac_cv_path_LIBTOOL+set}" = set; then
20412 echo $ECHO_N "(cached) $ECHO_C" >&6
20416 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
20419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20420 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20421 for as_dir in $as_dummy
20424 test -z "$as_dir" && as_dir=.
20425 for ac_exec_ext in '' $ac_executable_extensions; do
20426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20427 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
20428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20435 test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
20439 LIBTOOL=$ac_cv_path_LIBTOOL
20440 if test -n "$LIBTOOL"; then
20441 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
20442 echo "${ECHO_T}$LIBTOOL" >&6; }
20444 { echo "$as_me:$LINENO: result: no" >&5
20445 echo "${ECHO_T}no" >&6; }
20449 if test "x$LIBTOOL" = "xno"; then
20450 { { echo "$as_me:$LINENO: error: libtool not found." >&5
20451 echo "$as_me: error: libtool not found." >&2;}
20452 { (exit 1); exit 1; }; }
20456 # Extract the first word of "Wand-config", so it can be a program name with args.
20457 set dummy Wand-config; ac_word=$2
20458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20460 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
20461 echo $ECHO_N "(cached) $ECHO_C" >&6
20463 case $WAND_CONFIG in
20465 ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
20468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20469 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20470 for as_dir in $as_dummy
20473 test -z "$as_dir" && as_dir=.
20474 for ac_exec_ext in '' $ac_executable_extensions; do
20475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20476 ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20484 test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
20488 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
20489 if test -n "$WAND_CONFIG"; then
20490 { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
20491 echo "${ECHO_T}$WAND_CONFIG" >&6; }
20493 { echo "$as_me:$LINENO: result: no" >&5
20494 echo "${ECHO_T}no" >&6; }
20498 if test "x$WAND_CONFIG" = "xno" ; then
20499 { { echo "$as_me:$LINENO: error: wand-config not found." >&5
20500 echo "$as_me: error: wand-config not found." >&2;}
20501 { (exit 1); exit 1; }; }
20505 if test "x$with_apr_config" = "x" ; then
20506 # Extract the first word of "apr-config", so it can be a program name with args.
20507 set dummy apr-config; ac_word=$2
20508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20510 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
20511 echo $ECHO_N "(cached) $ECHO_C" >&6
20513 case $APR_CONFIG in
20515 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
20518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20519 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20520 for as_dir in $as_dummy
20523 test -z "$as_dir" && as_dir=.
20524 for ac_exec_ext in '' $ac_executable_extensions; do
20525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20526 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20534 test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
20538 APR_CONFIG=$ac_cv_path_APR_CONFIG
20539 if test -n "$APR_CONFIG"; then
20540 { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
20541 echo "${ECHO_T}$APR_CONFIG" >&6; }
20543 { echo "$as_me:$LINENO: result: no" >&5
20544 echo "${ECHO_T}no" >&6; }
20548 if test "x$APR_CONFIG" = "xno" ; then
20549 # Extract the first word of "apr-1-config", so it can be a program name with args.
20550 set dummy apr-1-config; ac_word=$2
20551 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20553 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
20554 echo $ECHO_N "(cached) $ECHO_C" >&6
20556 case $APR_1_CONFIG in
20558 ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
20561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20562 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20563 for as_dir in $as_dummy
20566 test -z "$as_dir" && as_dir=.
20567 for ac_exec_ext in '' $ac_executable_extensions; do
20568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20569 ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20577 test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
20581 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
20582 if test -n "$APR_1_CONFIG"; then
20583 { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
20584 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
20586 { echo "$as_me:$LINENO: result: no" >&5
20587 echo "${ECHO_T}no" >&6; }
20591 if test "x$APR_1_CONFIG" = "xno" ; then
20592 { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
20593 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
20594 { (exit 1); exit 1; }; }
20596 APR_CONFIG="$APR_1_CONFIG"
20600 if test "x$with_apr_config" != "x" ; then
20601 APR_CONFIG=$with_apr_config
20604 if test "x$with_apu_config" = "x" ; then
20605 # Extract the first word of "apu-config", so it can be a program name with args.
20606 set dummy apu-config; ac_word=$2
20607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20609 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 case $APU_CONFIG in
20614 ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
20617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20618 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20619 for as_dir in $as_dummy
20622 test -z "$as_dir" && as_dir=.
20623 for ac_exec_ext in '' $ac_executable_extensions; do
20624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20625 ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20633 test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
20637 APU_CONFIG=$ac_cv_path_APU_CONFIG
20638 if test -n "$APU_CONFIG"; then
20639 { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
20640 echo "${ECHO_T}$APU_CONFIG" >&6; }
20642 { echo "$as_me:$LINENO: result: no" >&5
20643 echo "${ECHO_T}no" >&6; }
20647 if test "x$APU_CONFIG" = "xno" ; then
20648 # Extract the first word of "apu-1-config", so it can be a program name with args.
20649 set dummy apu-1-config; ac_word=$2
20650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20652 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 case $APU_1_CONFIG in
20657 ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
20660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20661 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20662 for as_dir in $as_dummy
20665 test -z "$as_dir" && as_dir=.
20666 for ac_exec_ext in '' $ac_executable_extensions; do
20667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20668 ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20676 test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
20680 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
20681 if test -n "$APU_1_CONFIG"; then
20682 { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
20683 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
20685 { echo "$as_me:$LINENO: result: no" >&5
20686 echo "${ECHO_T}no" >&6; }
20690 if test "x$APU_1_CONFIG" = "xno" ; then
20691 { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
20692 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
20693 { (exit 1); exit 1; }; }
20695 APU_CONFIG="$APU_1_CONFIG"
20699 if test "x$with_apu_config" != "x" ; then
20700 APU_CONFIG=$with_apu_config
20703 if test "x$with_apache_header" = "x" ; then
20704 with_apache_header=`${APXS} -q includedir`
20710 CFLAGS="${CFLAGS} -I/usr/local/include "
20717 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
20718 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
20719 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
20720 LIBS="${LIBS} ${MYSQL_COOKIE_LIBS}"
20721 LIBS="${LIBS} ${MEMCACHE_COOKIE_LIBS}"
20722 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
20723 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
20724 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
20725 CFLAGS="${CFLAGS} -I${with_apache_header}"
20726 CFLAGS="${CFLAGS} ${MYSQL_COOKIE_DEFS}"
20727 CFLAGS="${CFLAGS} ${MEMCACHE_COOKIE_DEFS}"
20728 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` "
20729 CPPFLAGS="${CPPFLAGS} -I${with_apache_header}"
20730 CPPFLAGS="${CPPFLAGS} ${MYSQL_COOKIE_DEFS}"
20731 CPPFLAGS="${CPPFLAGS} ${MEMCACHE_COOKIE_DEFS}"
20734 # Checks for header files.
20735 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20736 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20737 if test "${ac_cv_header_stdc+set}" = set; then
20738 echo $ECHO_N "(cached) $ECHO_C" >&6
20740 cat >conftest.$ac_ext <<_ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20746 #include <stdlib.h>
20747 #include <stdarg.h>
20748 #include <string.h>
20759 rm -f conftest.$ac_objext
20760 if { (ac_try="$ac_compile"
20761 case "(($ac_try" in
20762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20763 *) ac_try_echo=$ac_try;;
20765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20766 (eval "$ac_compile") 2>conftest.er1
20768 grep -v '^ *+' conftest.er1 >conftest.err
20770 cat conftest.err >&5
20771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20772 (exit $ac_status); } && {
20773 test -z "$ac_c_werror_flag" ||
20774 test ! -s conftest.err
20775 } && test -s conftest.$ac_objext; then
20776 ac_cv_header_stdc=yes
20778 echo "$as_me: failed program was:" >&5
20779 sed 's/^/| /' conftest.$ac_ext >&5
20781 ac_cv_header_stdc=no
20784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20786 if test $ac_cv_header_stdc = yes; then
20787 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20788 cat >conftest.$ac_ext <<_ACEOF
20791 cat confdefs.h >>conftest.$ac_ext
20792 cat >>conftest.$ac_ext <<_ACEOF
20793 /* end confdefs.h. */
20794 #include <string.h>
20797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20798 $EGREP "memchr" >/dev/null 2>&1; then
20801 ac_cv_header_stdc=no
20807 if test $ac_cv_header_stdc = yes; then
20808 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20809 cat >conftest.$ac_ext <<_ACEOF
20812 cat confdefs.h >>conftest.$ac_ext
20813 cat >>conftest.$ac_ext <<_ACEOF
20814 /* end confdefs.h. */
20815 #include <stdlib.h>
20818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20819 $EGREP "free" >/dev/null 2>&1; then
20822 ac_cv_header_stdc=no
20828 if test $ac_cv_header_stdc = yes; then
20829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20830 if test "$cross_compiling" = yes; then
20833 cat >conftest.$ac_ext <<_ACEOF
20836 cat confdefs.h >>conftest.$ac_ext
20837 cat >>conftest.$ac_ext <<_ACEOF
20838 /* end confdefs.h. */
20840 #include <stdlib.h>
20841 #if ((' ' & 0x0FF) == 0x020)
20842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20845 # define ISLOWER(c) \
20846 (('a' <= (c) && (c) <= 'i') \
20847 || ('j' <= (c) && (c) <= 'r') \
20848 || ('s' <= (c) && (c) <= 'z'))
20849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20857 for (i = 0; i < 256; i++)
20858 if (XOR (islower (i), ISLOWER (i))
20859 || toupper (i) != TOUPPER (i))
20864 rm -f conftest$ac_exeext
20865 if { (ac_try="$ac_link"
20866 case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_link") 2>&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20875 { (case "(($ac_try" in
20876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20877 *) ac_try_echo=$ac_try;;
20879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20880 (eval "$ac_try") 2>&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); }; }; then
20886 echo "$as_me: program exited with status $ac_status" >&5
20887 echo "$as_me: failed program was:" >&5
20888 sed 's/^/| /' conftest.$ac_ext >&5
20890 ( exit $ac_status )
20891 ac_cv_header_stdc=no
20893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20899 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20900 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20901 if test $ac_cv_header_stdc = yes; then
20903 cat >>confdefs.h <<\_ACEOF
20904 #define STDC_HEADERS 1
20917 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20926 ac_res=`eval echo '${'$as_ac_Header'}'`
20927 { echo "$as_me:$LINENO: result: $ac_res" >&5
20928 echo "${ECHO_T}$ac_res" >&6; }
20930 # Is the header compilable?
20931 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20933 cat >conftest.$ac_ext <<_ACEOF
20936 cat confdefs.h >>conftest.$ac_ext
20937 cat >>conftest.$ac_ext <<_ACEOF
20938 /* end confdefs.h. */
20939 $ac_includes_default
20940 #include <$ac_header>
20942 rm -f conftest.$ac_objext
20943 if { (ac_try="$ac_compile"
20944 case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_compile") 2>conftest.er1
20951 grep -v '^ *+' conftest.er1 >conftest.err
20953 cat conftest.err >&5
20954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20955 (exit $ac_status); } && {
20956 test -z "$ac_c_werror_flag" ||
20957 test ! -s conftest.err
20958 } && test -s conftest.$ac_objext; then
20959 ac_header_compiler=yes
20961 echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20964 ac_header_compiler=no
20967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20969 echo "${ECHO_T}$ac_header_compiler" >&6; }
20971 # Is the header present?
20972 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20973 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20974 cat >conftest.$ac_ext <<_ACEOF
20977 cat confdefs.h >>conftest.$ac_ext
20978 cat >>conftest.$ac_ext <<_ACEOF
20979 /* end confdefs.h. */
20980 #include <$ac_header>
20982 if { (ac_try="$ac_cpp conftest.$ac_ext"
20983 case "(($ac_try" in
20984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20985 *) ac_try_echo=$ac_try;;
20987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20990 grep -v '^ *+' conftest.er1 >conftest.err
20992 cat conftest.err >&5
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } >/dev/null && {
20995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20996 test ! -s conftest.err
20998 ac_header_preproc=yes
21000 echo "$as_me: failed program was:" >&5
21001 sed 's/^/| /' conftest.$ac_ext >&5
21003 ac_header_preproc=no
21006 rm -f conftest.err conftest.$ac_ext
21007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21008 echo "${ECHO_T}$ac_header_preproc" >&6; }
21010 # So? What about this header?
21011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21013 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21014 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21015 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21016 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21017 ac_header_preproc=yes
21020 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21021 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21022 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21023 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21024 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21025 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21026 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21027 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21028 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21029 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21030 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21031 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21040 eval "$as_ac_Header=\$ac_header_preproc"
21042 ac_res=`eval echo '${'$as_ac_Header'}'`
21043 { echo "$as_me:$LINENO: result: $ac_res" >&5
21044 echo "${ECHO_T}$ac_res" >&6; }
21047 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21048 cat >>confdefs.h <<_ACEOF
21049 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21056 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
21059 for ac_header in apr_shm.h apr_global_mutex.h
21061 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21066 echo $ECHO_N "(cached) $ECHO_C" >&6
21068 ac_res=`eval echo '${'$as_ac_Header'}'`
21069 { echo "$as_me:$LINENO: result: $ac_res" >&5
21070 echo "${ECHO_T}$ac_res" >&6; }
21072 # Is the header compilable?
21073 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21074 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21075 cat >conftest.$ac_ext <<_ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21081 $ac_includes_default
21082 #include <$ac_header>
21084 rm -f conftest.$ac_objext
21085 if { (ac_try="$ac_compile"
21086 case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_compile") 2>conftest.er1
21093 grep -v '^ *+' conftest.er1 >conftest.err
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21097 (exit $ac_status); } && {
21098 test -z "$ac_c_werror_flag" ||
21099 test ! -s conftest.err
21100 } && test -s conftest.$ac_objext; then
21101 ac_header_compiler=yes
21103 echo "$as_me: failed program was:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21106 ac_header_compiler=no
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21111 echo "${ECHO_T}$ac_header_compiler" >&6; }
21113 # Is the header present?
21114 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21115 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21116 cat >conftest.$ac_ext <<_ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h. */
21122 #include <$ac_header>
21124 if { (ac_try="$ac_cpp conftest.$ac_ext"
21125 case "(($ac_try" in
21126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127 *) ac_try_echo=$ac_try;;
21129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21132 grep -v '^ *+' conftest.er1 >conftest.err
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } >/dev/null && {
21137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21138 test ! -s conftest.err
21140 ac_header_preproc=yes
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 ac_header_preproc=no
21148 rm -f conftest.err conftest.$ac_ext
21149 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21150 echo "${ECHO_T}$ac_header_preproc" >&6; }
21152 # So? What about this header?
21153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21155 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21156 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21159 ac_header_preproc=yes
21162 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21163 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21164 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21165 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21166 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21167 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21168 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21169 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21170 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21172 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21173 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21180 echo $ECHO_N "(cached) $ECHO_C" >&6
21182 eval "$as_ac_Header=\$ac_header_preproc"
21184 ac_res=`eval echo '${'$as_ac_Header'}'`
21185 { echo "$as_me:$LINENO: result: $ac_res" >&5
21186 echo "${ECHO_T}$ac_res" >&6; }
21189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21190 cat >>confdefs.h <<_ACEOF
21191 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21199 for ac_header in apr.h
21201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
21208 ac_res=`eval echo '${'$as_ac_Header'}'`
21209 { echo "$as_me:$LINENO: result: $ac_res" >&5
21210 echo "${ECHO_T}$ac_res" >&6; }
21212 # Is the header compilable?
21213 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21215 cat >conftest.$ac_ext <<_ACEOF
21218 cat confdefs.h >>conftest.$ac_ext
21219 cat >>conftest.$ac_ext <<_ACEOF
21220 /* end confdefs.h. */
21221 $ac_includes_default
21222 #include <$ac_header>
21224 rm -f conftest.$ac_objext
21225 if { (ac_try="$ac_compile"
21226 case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_compile") 2>conftest.er1
21233 grep -v '^ *+' conftest.er1 >conftest.err
21235 cat conftest.err >&5
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } && {
21238 test -z "$ac_c_werror_flag" ||
21239 test ! -s conftest.err
21240 } && test -s conftest.$ac_objext; then
21241 ac_header_compiler=yes
21243 echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21246 ac_header_compiler=no
21249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21251 echo "${ECHO_T}$ac_header_compiler" >&6; }
21253 # Is the header present?
21254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21256 cat >conftest.$ac_ext <<_ACEOF
21259 cat confdefs.h >>conftest.$ac_ext
21260 cat >>conftest.$ac_ext <<_ACEOF
21261 /* end confdefs.h. */
21262 #include <$ac_header>
21264 if { (ac_try="$ac_cpp conftest.$ac_ext"
21265 case "(($ac_try" in
21266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21267 *) ac_try_echo=$ac_try;;
21269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21270 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21272 grep -v '^ *+' conftest.er1 >conftest.err
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } >/dev/null && {
21277 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21278 test ! -s conftest.err
21280 ac_header_preproc=yes
21282 echo "$as_me: failed program was:" >&5
21283 sed 's/^/| /' conftest.$ac_ext >&5
21285 ac_header_preproc=no
21288 rm -f conftest.err conftest.$ac_ext
21289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21290 echo "${ECHO_T}$ac_header_preproc" >&6; }
21292 # So? What about this header?
21293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21295 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21299 ac_header_preproc=yes
21302 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21304 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21305 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21306 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21308 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21309 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21310 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21312 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21320 echo $ECHO_N "(cached) $ECHO_C" >&6
21322 eval "$as_ac_Header=\$ac_header_preproc"
21324 ac_res=`eval echo '${'$as_ac_Header'}'`
21325 { echo "$as_me:$LINENO: result: $ac_res" >&5
21326 echo "${ECHO_T}$ac_res" >&6; }
21329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21330 cat >>confdefs.h <<_ACEOF
21331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21339 for ac_header in ap_config.h
21341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21348 ac_res=`eval echo '${'$as_ac_Header'}'`
21349 { echo "$as_me:$LINENO: result: $ac_res" >&5
21350 echo "${ECHO_T}$ac_res" >&6; }
21352 # Is the header compilable?
21353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21355 cat >conftest.$ac_ext <<_ACEOF
21358 cat confdefs.h >>conftest.$ac_ext
21359 cat >>conftest.$ac_ext <<_ACEOF
21360 /* end confdefs.h. */
21361 $ac_includes_default
21362 #include <$ac_header>
21364 rm -f conftest.$ac_objext
21365 if { (ac_try="$ac_compile"
21366 case "(($ac_try" in
21367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368 *) ac_try_echo=$ac_try;;
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371 (eval "$ac_compile") 2>conftest.er1
21373 grep -v '^ *+' conftest.er1 >conftest.err
21375 cat conftest.err >&5
21376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21377 (exit $ac_status); } && {
21378 test -z "$ac_c_werror_flag" ||
21379 test ! -s conftest.err
21380 } && test -s conftest.$ac_objext; then
21381 ac_header_compiler=yes
21383 echo "$as_me: failed program was:" >&5
21384 sed 's/^/| /' conftest.$ac_ext >&5
21386 ac_header_compiler=no
21389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21390 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21391 echo "${ECHO_T}$ac_header_compiler" >&6; }
21393 # Is the header present?
21394 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21396 cat >conftest.$ac_ext <<_ACEOF
21399 cat confdefs.h >>conftest.$ac_ext
21400 cat >>conftest.$ac_ext <<_ACEOF
21401 /* end confdefs.h. */
21402 #include <$ac_header>
21404 if { (ac_try="$ac_cpp conftest.$ac_ext"
21405 case "(($ac_try" in
21406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21407 *) ac_try_echo=$ac_try;;
21409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21412 grep -v '^ *+' conftest.er1 >conftest.err
21414 cat conftest.err >&5
21415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } >/dev/null && {
21417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21418 test ! -s conftest.err
21420 ac_header_preproc=yes
21422 echo "$as_me: failed program was:" >&5
21423 sed 's/^/| /' conftest.$ac_ext >&5
21425 ac_header_preproc=no
21428 rm -f conftest.err conftest.$ac_ext
21429 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21430 echo "${ECHO_T}$ac_header_preproc" >&6; }
21432 # So? What about this header?
21433 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21435 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21436 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21438 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21439 ac_header_preproc=yes
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21443 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21445 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21447 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21448 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21449 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21451 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21452 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21453 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21460 echo $ECHO_N "(cached) $ECHO_C" >&6
21462 eval "$as_ac_Header=\$ac_header_preproc"
21464 ac_res=`eval echo '${'$as_ac_Header'}'`
21465 { echo "$as_me:$LINENO: result: $ac_res" >&5
21466 echo "${ECHO_T}$ac_res" >&6; }
21469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21470 cat >>confdefs.h <<_ACEOF
21471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21479 for ac_header in ap_regex.h
21481 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21486 echo $ECHO_N "(cached) $ECHO_C" >&6
21488 ac_res=`eval echo '${'$as_ac_Header'}'`
21489 { echo "$as_me:$LINENO: result: $ac_res" >&5
21490 echo "${ECHO_T}$ac_res" >&6; }
21492 # Is the header compilable?
21493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21495 cat >conftest.$ac_ext <<_ACEOF
21498 cat confdefs.h >>conftest.$ac_ext
21499 cat >>conftest.$ac_ext <<_ACEOF
21500 /* end confdefs.h. */
21501 $ac_includes_default
21502 #include <$ac_header>
21504 rm -f conftest.$ac_objext
21505 if { (ac_try="$ac_compile"
21506 case "(($ac_try" in
21507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21508 *) ac_try_echo=$ac_try;;
21510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21511 (eval "$ac_compile") 2>conftest.er1
21513 grep -v '^ *+' conftest.er1 >conftest.err
21515 cat conftest.err >&5
21516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517 (exit $ac_status); } && {
21518 test -z "$ac_c_werror_flag" ||
21519 test ! -s conftest.err
21520 } && test -s conftest.$ac_objext; then
21521 ac_header_compiler=yes
21523 echo "$as_me: failed program was:" >&5
21524 sed 's/^/| /' conftest.$ac_ext >&5
21526 ac_header_compiler=no
21529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21531 echo "${ECHO_T}$ac_header_compiler" >&6; }
21533 # Is the header present?
21534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21536 cat >conftest.$ac_ext <<_ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 #include <$ac_header>
21544 if { (ac_try="$ac_cpp conftest.$ac_ext"
21545 case "(($ac_try" in
21546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21547 *) ac_try_echo=$ac_try;;
21549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21552 grep -v '^ *+' conftest.er1 >conftest.err
21554 cat conftest.err >&5
21555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21556 (exit $ac_status); } >/dev/null && {
21557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21558 test ! -s conftest.err
21560 ac_header_preproc=yes
21562 echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21565 ac_header_preproc=no
21568 rm -f conftest.err conftest.$ac_ext
21569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21570 echo "${ECHO_T}$ac_header_preproc" >&6; }
21572 # So? What about this header?
21573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21579 ac_header_preproc=yes
21582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21600 echo $ECHO_N "(cached) $ECHO_C" >&6
21602 eval "$as_ac_Header=\$ac_header_preproc"
21604 ac_res=`eval echo '${'$as_ac_Header'}'`
21605 { echo "$as_me:$LINENO: result: $ac_res" >&5
21606 echo "${ECHO_T}$ac_res" >&6; }
21609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21610 cat >>confdefs.h <<_ACEOF
21611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21615 use_pcre_flag="yes"
21620 if test "x$use_pcre_flag" = "xyes" ; then
21621 if test "x$with_pcre_config" = "x" ; then
21622 # Extract the first word of "pcre-config", so it can be a program name with args.
21623 set dummy pcre-config; ac_word=$2
21624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21626 if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
21627 echo $ECHO_N "(cached) $ECHO_C" >&6
21629 case $PCRE_CONFIG in
21631 ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
21634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21635 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21636 for as_dir in $as_dummy
21639 test -z "$as_dir" && as_dir=.
21640 for ac_exec_ext in '' $ac_executable_extensions; do
21641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21642 ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21650 test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
21654 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
21655 if test -n "$PCRE_CONFIG"; then
21656 { echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
21657 echo "${ECHO_T}$PCRE_CONFIG" >&6; }
21659 { echo "$as_me:$LINENO: result: no" >&5
21660 echo "${ECHO_T}no" >&6; }
21664 if test "x$PCRE_CONFIG" = "xno" ; then
21665 # Extract the first word of "pcre-1-config", so it can be a program name with args.
21666 set dummy pcre-1-config; ac_word=$2
21667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21669 if test "${ac_cv_path_PCRE_1_CONFIG+set}" = set; then
21670 echo $ECHO_N "(cached) $ECHO_C" >&6
21672 case $PCRE_1_CONFIG in
21674 ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
21677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21678 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21679 for as_dir in $as_dummy
21682 test -z "$as_dir" && as_dir=.
21683 for ac_exec_ext in '' $ac_executable_extensions; do
21684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21685 ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21693 test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
21697 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
21698 if test -n "$PCRE_1_CONFIG"; then
21699 { echo "$as_me:$LINENO: result: $PCRE_1_CONFIG" >&5
21700 echo "${ECHO_T}$PCRE_1_CONFIG" >&6; }
21702 { echo "$as_me:$LINENO: result: no" >&5
21703 echo "${ECHO_T}no" >&6; }
21707 if test "x$PCRE_1_CONFIG" = "xno" ; then
21708 { { echo "$as_me:$LINENO: error: pcre-config and pcre-1-config not found." >&5
21709 echo "$as_me: error: pcre-config and pcre-1-config not found." >&2;}
21710 { (exit 1); exit 1; }; }
21712 PCRE_CONFIG="$PCRE_1_CONFIG"
21716 if test "x$with_pcre_config" != "x" ; then
21717 PCRE_CONFIG=$with_pcre_config
21719 CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
21722 cat >>confdefs.h <<\_ACEOF
21723 #define HAVE_AP_REGEX_H
21728 # Checks for typedefs, structures, and compiler characteristics.
21729 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21730 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21731 if test "${ac_cv_c_const+set}" = set; then
21732 echo $ECHO_N "(cached) $ECHO_C" >&6
21734 cat >conftest.$ac_ext <<_ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h. */
21744 /* FIXME: Include the comments suggested by Paul. */
21745 #ifndef __cplusplus
21746 /* Ultrix mips cc rejects this. */
21747 typedef int charset[2];
21749 /* SunOS 4.1.1 cc rejects this. */
21750 char const *const *pcpcc;
21752 /* NEC SVR4.0.2 mips cc rejects this. */
21753 struct point {int x, y;};
21754 static struct point const zero = {0,0};
21755 /* AIX XL C 1.02.0.0 rejects this.
21756 It does not let you subtract one const X* pointer from another in
21757 an arm of an if-expression whose if-part is not a constant
21759 const char *g = "string";
21760 pcpcc = &g + (g ? g-g : 0);
21761 /* HPUX 7.0 cc rejects these. */
21763 ppc = (char**) pcpcc;
21764 pcpcc = (char const *const *) ppc;
21765 { /* SCO 3.2v4 cc rejects this. */
21767 char const *s = 0 ? (char *) 0 : (char const *) 0;
21772 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21773 int x[] = {25, 17};
21774 const int *foo = &x[0];
21777 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21778 typedef const int *iptr;
21782 { /* AIX XL C 1.02.0.0 rejects this saying
21783 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21784 struct s { int j; const int *ap[3]; };
21785 struct s *b; b->j = 5;
21787 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21788 const int foo = 10;
21789 if (!foo) return 0;
21791 return !cs[0] && !zero.x;
21798 rm -f conftest.$ac_objext
21799 if { (ac_try="$ac_compile"
21800 case "(($ac_try" in
21801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21802 *) ac_try_echo=$ac_try;;
21804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21805 (eval "$ac_compile") 2>conftest.er1
21807 grep -v '^ *+' conftest.er1 >conftest.err
21809 cat conftest.err >&5
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } && {
21812 test -z "$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21814 } && test -s conftest.$ac_objext; then
21817 echo "$as_me: failed program was:" >&5
21818 sed 's/^/| /' conftest.$ac_ext >&5
21823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21826 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21827 if test $ac_cv_c_const = no; then
21829 cat >>confdefs.h <<\_ACEOF
21836 # Checks for library functions.
21838 for ac_header in stdlib.h
21840 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21845 echo $ECHO_N "(cached) $ECHO_C" >&6
21847 ac_res=`eval echo '${'$as_ac_Header'}'`
21848 { echo "$as_me:$LINENO: result: $ac_res" >&5
21849 echo "${ECHO_T}$ac_res" >&6; }
21851 # Is the header compilable?
21852 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21853 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21854 cat >conftest.$ac_ext <<_ACEOF
21857 cat confdefs.h >>conftest.$ac_ext
21858 cat >>conftest.$ac_ext <<_ACEOF
21859 /* end confdefs.h. */
21860 $ac_includes_default
21861 #include <$ac_header>
21863 rm -f conftest.$ac_objext
21864 if { (ac_try="$ac_compile"
21865 case "(($ac_try" in
21866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867 *) ac_try_echo=$ac_try;;
21869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870 (eval "$ac_compile") 2>conftest.er1
21872 grep -v '^ *+' conftest.er1 >conftest.err
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } && {
21877 test -z "$ac_c_werror_flag" ||
21878 test ! -s conftest.err
21879 } && test -s conftest.$ac_objext; then
21880 ac_header_compiler=yes
21882 echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21885 ac_header_compiler=no
21888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21890 echo "${ECHO_T}$ac_header_compiler" >&6; }
21892 # Is the header present?
21893 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21894 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21895 cat >conftest.$ac_ext <<_ACEOF
21898 cat confdefs.h >>conftest.$ac_ext
21899 cat >>conftest.$ac_ext <<_ACEOF
21900 /* end confdefs.h. */
21901 #include <$ac_header>
21903 if { (ac_try="$ac_cpp conftest.$ac_ext"
21904 case "(($ac_try" in
21905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21906 *) ac_try_echo=$ac_try;;
21908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21911 grep -v '^ *+' conftest.er1 >conftest.err
21913 cat conftest.err >&5
21914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21915 (exit $ac_status); } >/dev/null && {
21916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21917 test ! -s conftest.err
21919 ac_header_preproc=yes
21921 echo "$as_me: failed program was:" >&5
21922 sed 's/^/| /' conftest.$ac_ext >&5
21924 ac_header_preproc=no
21927 rm -f conftest.err conftest.$ac_ext
21928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21929 echo "${ECHO_T}$ac_header_preproc" >&6; }
21931 # So? What about this header?
21932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21935 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21937 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21938 ac_header_preproc=yes
21941 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21942 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21943 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21944 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21945 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21946 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21947 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21948 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21949 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21950 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21951 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21952 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21959 echo $ECHO_N "(cached) $ECHO_C" >&6
21961 eval "$as_ac_Header=\$ac_header_preproc"
21963 ac_res=`eval echo '${'$as_ac_Header'}'`
21964 { echo "$as_me:$LINENO: result: $ac_res" >&5
21965 echo "${ECHO_T}$ac_res" >&6; }
21968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21969 cat >>confdefs.h <<_ACEOF
21970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21977 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21978 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21979 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21980 echo $ECHO_N "(cached) $ECHO_C" >&6
21982 if test "$cross_compiling" = yes; then
21983 ac_cv_func_malloc_0_nonnull=no
21985 cat >conftest.$ac_ext <<_ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21991 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21992 # include <stdlib.h>
22000 return ! malloc (0);
22005 rm -f conftest$ac_exeext
22006 if { (ac_try="$ac_link"
22007 case "(($ac_try" in
22008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22009 *) ac_try_echo=$ac_try;;
22011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22012 (eval "$ac_link") 2>&5
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22016 { (case "(($ac_try" in
22017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22018 *) ac_try_echo=$ac_try;;
22020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22021 (eval "$ac_try") 2>&5
22023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); }; }; then
22025 ac_cv_func_malloc_0_nonnull=yes
22027 echo "$as_me: program exited with status $ac_status" >&5
22028 echo "$as_me: failed program was:" >&5
22029 sed 's/^/| /' conftest.$ac_ext >&5
22031 ( exit $ac_status )
22032 ac_cv_func_malloc_0_nonnull=no
22034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22039 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22040 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
22041 if test $ac_cv_func_malloc_0_nonnull = yes; then
22043 cat >>confdefs.h <<\_ACEOF
22044 #define HAVE_MALLOC 1
22048 cat >>confdefs.h <<\_ACEOF
22049 #define HAVE_MALLOC 0
22052 case " $LIBOBJS " in
22053 *" malloc.$ac_objext "* ) ;;
22054 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
22059 cat >>confdefs.h <<\_ACEOF
22060 #define malloc rpl_malloc
22075 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
22077 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22081 echo $ECHO_N "(cached) $ECHO_C" >&6
22083 cat >conftest.$ac_ext <<_ACEOF
22086 cat confdefs.h >>conftest.$ac_ext
22087 cat >>conftest.$ac_ext <<_ACEOF
22088 /* end confdefs.h. */
22089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22091 #define $ac_func innocuous_$ac_func
22093 /* System header to define __stub macros and hopefully few prototypes,
22094 which can conflict with char $ac_func (); below.
22095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22096 <limits.h> exists even on freestanding compilers. */
22099 # include <limits.h>
22101 # include <assert.h>
22106 /* Override any GCC internal prototype to avoid an error.
22107 Use char because int might match the return type of a GCC
22108 builtin and then its argument prototype would still apply. */
22113 /* The GNU C library defines this for functions which it implements
22114 to always fail with ENOSYS. Some functions are actually named
22115 something starting with __ and the normal name is an alias. */
22116 #if defined __stub_$ac_func || defined __stub___$ac_func
22123 return $ac_func ();
22128 rm -f conftest.$ac_objext conftest$ac_exeext
22129 if { (ac_try="$ac_link"
22130 case "(($ac_try" in
22131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22132 *) ac_try_echo=$ac_try;;
22134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22135 (eval "$ac_link") 2>conftest.er1
22137 grep -v '^ *+' conftest.er1 >conftest.err
22139 cat conftest.err >&5
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); } && {
22142 test -z "$ac_c_werror_flag" ||
22143 test ! -s conftest.err
22144 } && test -s conftest$ac_exeext &&
22145 $as_test_x conftest$ac_exeext; then
22146 eval "$as_ac_var=yes"
22148 echo "$as_me: failed program was:" >&5
22149 sed 's/^/| /' conftest.$ac_ext >&5
22151 eval "$as_ac_var=no"
22154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22155 conftest$ac_exeext conftest.$ac_ext
22157 ac_res=`eval echo '${'$as_ac_var'}'`
22158 { echo "$as_me:$LINENO: result: $ac_res" >&5
22159 echo "${ECHO_T}$ac_res" >&6; }
22160 if test `eval echo '${'$as_ac_var'}'` = yes; then
22161 cat >>confdefs.h <<_ACEOF
22162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22177 ac_config_files="$ac_config_files Makefile src/Makefile"
22179 cat >confcache <<\_ACEOF
22180 # This file is a shell script that caches the results of configure
22181 # tests run on this system so they can be shared between configure
22182 # scripts and configure runs, see configure's option --config-cache.
22183 # It is not useful on other systems. If it contains results you don't
22184 # want to keep, you may remove or edit it.
22186 # config.status only pays attention to the cache file if you give it
22187 # the --recheck option to rerun configure.
22189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22191 # following values.
22195 # The following way of writing the cache mishandles newlines in values,
22196 # but we know of no workaround that is simple, portable, and efficient.
22197 # So, we kill variables containing newlines.
22198 # Ultrix sh set writes to stderr and can't be redirected directly,
22199 # and sets the high bit in the cache file unless we assign to the vars.
22201 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22202 eval ac_val=\$$ac_var
22206 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22207 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22210 _ | IFS | as_nl) ;; #(
22211 *) $as_unset $ac_var ;;
22217 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22218 *${as_nl}ac_space=\ *)
22219 # `set' does not quote correctly, so add quotes (double-quote
22220 # substitution turns \\\\ into \\, and sed turns \\ into \).
22223 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22226 # `set' quotes correctly as required by POSIX, so do not add quotes.
22227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22236 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22238 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22240 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22241 if test -w "$cache_file"; then
22242 test "x$cache_file" != "x/dev/null" &&
22243 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22244 echo "$as_me: updating cache $cache_file" >&6;}
22245 cat confcache >$cache_file
22247 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22248 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22253 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22254 # Let make expand exec_prefix.
22255 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22257 DEFS=-DHAVE_CONFIG_H
22261 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22262 # 1. Remove the extension, and $U if already installed.
22263 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22264 ac_i=`echo "$ac_i" | sed "$ac_script"`
22265 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22266 # will be set to the directory where LIBOBJS objects are built.
22267 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22268 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22270 LIBOBJS=$ac_libobjs
22272 LTLIBOBJS=$ac_ltlibobjs
22275 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22276 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22277 Usually this means the macro was only invoked conditionally." >&5
22278 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22279 Usually this means the macro was only invoked conditionally." >&2;}
22280 { (exit 1); exit 1; }; }
22282 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22283 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22284 Usually this means the macro was only invoked conditionally." >&5
22285 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22286 Usually this means the macro was only invoked conditionally." >&2;}
22287 { (exit 1); exit 1; }; }
22289 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22290 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22291 Usually this means the macro was only invoked conditionally." >&5
22292 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22293 Usually this means the macro was only invoked conditionally." >&2;}
22294 { (exit 1); exit 1; }; }
22296 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22297 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22298 Usually this means the macro was only invoked conditionally." >&5
22299 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22300 Usually this means the macro was only invoked conditionally." >&2;}
22301 { (exit 1); exit 1; }; }
22304 : ${CONFIG_STATUS=./config.status}
22305 ac_clean_files_save=$ac_clean_files
22306 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22307 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22308 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22309 cat >$CONFIG_STATUS <<_ACEOF
22311 # Generated by $as_me.
22312 # Run this file to recreate the current configuration.
22313 # Compiler output produced by configure, useful for debugging
22314 # configure, is in config.log if it exists.
22317 ac_cs_recheck=false
22319 SHELL=\${CONFIG_SHELL-$SHELL}
22322 cat >>$CONFIG_STATUS <<\_ACEOF
22323 ## --------------------- ##
22324 ## M4sh Initialization. ##
22325 ## --------------------- ##
22327 # Be more Bourne compatible
22328 DUALCASE=1; export DUALCASE # for MKS sh
22329 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22332 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22333 # is contrary to our usage. Disable this feature.
22334 alias -g '${1+"$@"}'='"$@"'
22335 setopt NO_GLOB_SUBST
22337 case `(set -o) 2>/dev/null` in
22338 *posix*) set -o posix ;;
22347 # Avoid depending upon Character Ranges.
22348 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22349 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22350 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22351 as_cr_digits='0123456789'
22352 as_cr_alnum=$as_cr_Letters$as_cr_digits
22354 # The user is always right.
22355 if test "${PATH_SEPARATOR+set}" != set; then
22356 echo "#! /bin/sh" >conf$$.sh
22357 echo "exit 0" >>conf$$.sh
22359 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22367 # Support unset when possible.
22368 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22376 # We need space, tab and new line, in precisely that order. Quoting is
22377 # there to prevent editors from complaining about space-tab.
22378 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22379 # splitting by setting IFS to empty value.)
22384 # Find who we are. Look in the path if we contain no directory separator.
22386 *[\\/]* ) as_myself=$0 ;;
22387 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22388 for as_dir in $PATH
22391 test -z "$as_dir" && as_dir=.
22392 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22398 # We did not find ourselves, most probably we were run as `sh COMMAND'
22399 # in which case we are not to be found in the path.
22400 if test "x$as_myself" = x; then
22403 if test ! -f "$as_myself"; then
22404 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22405 { (exit 1); exit 1; }
22408 # Work around bugs in pre-3.0 UWIN ksh.
22409 for as_var in ENV MAIL MAILPATH
22410 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22418 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22419 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22420 LC_TELEPHONE LC_TIME
22422 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22423 eval $as_var=C; export $as_var
22425 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
22429 # Required to use basename.
22430 if expr a : '\(a\)' >/dev/null 2>&1 &&
22431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22438 as_basename=basename
22444 # Name of the executable.
22445 as_me=`$as_basename -- "$0" ||
22446 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22447 X"$0" : 'X\(//\)$' \| \
22448 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22450 sed '/^.*\/\([^/][^/]*\)\/*$/{
22469 as_lineno_1=$LINENO
22470 as_lineno_2=$LINENO
22471 test "x$as_lineno_1" != "x$as_lineno_2" &&
22472 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
22474 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22475 # uniformly replaced by the line number. The first 'sed' inserts a
22476 # line-number line after each line using $LINENO; the second 'sed'
22477 # does the real work. The second script uses 'N' to pair each
22478 # line-number line with the line containing $LINENO, and appends
22479 # trailing '-' during substitution so that $LINENO is not a special
22480 # case at line end.
22481 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22482 # scripts with optimization help from Paolo Bonzini. Blame Lee
22483 # E. McMahon (1931-1989) for sed's syntax. :-)
22495 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
22498 ' >$as_me.lineno &&
22499 chmod +x "$as_me.lineno" ||
22500 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
22501 { (exit 1); exit 1; }; }
22503 # Don't try to exec as it changes $[0], causing all sort of problems
22504 # (the dirname of $[0] is not the place where we might find the
22505 # original and so on. Autoconf is especially sensitive to this).
22506 . "./$as_me.lineno"
22507 # Exit status is that of the last command.
22512 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22518 ECHO_C= ECHO_N= ECHO_T=
22519 case `echo -n x` in
22521 case `echo 'x\c'` in
22522 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22529 if expr a : '\(a\)' >/dev/null 2>&1 &&
22530 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22536 rm -f conf$$ conf$$.exe conf$$.file
22537 if test -d conf$$.dir; then
22538 rm -f conf$$.dir/conf$$.file
22544 if ln -s conf$$.file conf$$ 2>/dev/null; then
22546 # ... but there are two gotchas:
22547 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22548 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22549 # In both cases, we have to default to `cp -p'.
22550 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22552 elif ln conf$$.file conf$$ 2>/dev/null; then
22557 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22558 rmdir conf$$.dir 2>/dev/null
22560 if mkdir -p . 2>/dev/null; then
22563 test -d ./-p && rmdir ./-p
22567 if test -x / >/dev/null 2>&1; then
22568 as_test_x='test -x'
22570 if ls -dL / >/dev/null 2>&1; then
22577 if test -d "$1"; then
22583 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
22584 ???[sx]*):;;*)false;;esac;fi
22588 as_executable_p=$as_test_x
22590 # Sed expression to map a string onto a valid CPP name.
22591 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22593 # Sed expression to map a string onto a valid variable name.
22594 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22599 # Save the log message, to keep $[0] and so on meaningful, and to
22600 # report actual input values of CONFIG_FILES etc. instead of their
22601 # values after options handling.
22603 This file was extended by mod_chxj $as_me 1.0.0, which was
22604 generated by GNU Autoconf 2.61. Invocation command line was
22606 CONFIG_FILES = $CONFIG_FILES
22607 CONFIG_HEADERS = $CONFIG_HEADERS
22608 CONFIG_LINKS = $CONFIG_LINKS
22609 CONFIG_COMMANDS = $CONFIG_COMMANDS
22612 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22617 cat >>$CONFIG_STATUS <<_ACEOF
22618 # Files that config.status was made for.
22619 config_files="$ac_config_files"
22620 config_headers="$ac_config_headers"
22621 config_commands="$ac_config_commands"
22625 cat >>$CONFIG_STATUS <<\_ACEOF
22627 \`$as_me' instantiates files from templates according to the
22628 current configuration.
22630 Usage: $0 [OPTIONS] [FILE]...
22632 -h, --help print this help, then exit
22633 -V, --version print version number and configuration settings, then exit
22634 -q, --quiet do not print progress messages
22635 -d, --debug don't remove temporary files
22636 --recheck update $as_me by reconfiguring in the same conditions
22637 --file=FILE[:TEMPLATE]
22638 instantiate the configuration file FILE
22639 --header=FILE[:TEMPLATE]
22640 instantiate the configuration header FILE
22642 Configuration files:
22645 Configuration headers:
22648 Configuration commands:
22651 Report bugs to <bug-autoconf@gnu.org>."
22654 cat >>$CONFIG_STATUS <<_ACEOF
22656 mod_chxj config.status 1.0.0
22657 configured by $0, generated by GNU Autoconf 2.61,
22658 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22660 Copyright (C) 2006 Free Software Foundation, Inc.
22661 This config.status script is free software; the Free Software Foundation
22662 gives unlimited permission to copy, distribute and modify it."
22670 cat >>$CONFIG_STATUS <<\_ACEOF
22671 # If no file are specified by the user, then we need to provide default
22672 # value. By we need to know if files were specified by the user.
22678 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22679 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22690 # Handling of the options.
22691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22693 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22694 echo "$ac_cs_version"; exit ;;
22695 --debug | --debu | --deb | --de | --d | -d )
22697 --file | --fil | --fi | --f )
22699 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22700 ac_need_defaults=false;;
22701 --header | --heade | --head | --hea )
22703 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22704 ac_need_defaults=false;;
22706 # Conflict between --help and --header
22707 { echo "$as_me: error: ambiguous option: $1
22708 Try \`$0 --help' for more information." >&2
22709 { (exit 1); exit 1; }; };;
22710 --help | --hel | -h )
22711 echo "$ac_cs_usage"; exit ;;
22712 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22713 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22716 # This is an error.
22717 -*) { echo "$as_me: error: unrecognized option: $1
22718 Try \`$0 --help' for more information." >&2
22719 { (exit 1); exit 1; }; } ;;
22721 *) ac_config_targets="$ac_config_targets $1"
22722 ac_need_defaults=false ;;
22728 ac_configure_extra_args=
22730 if $ac_cs_silent; then
22732 ac_configure_extra_args="$ac_configure_extra_args --silent"
22736 cat >>$CONFIG_STATUS <<_ACEOF
22737 if \$ac_cs_recheck; then
22738 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22739 CONFIG_SHELL=$SHELL
22740 export CONFIG_SHELL
22741 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22745 cat >>$CONFIG_STATUS <<\_ACEOF
22749 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22750 ## Running $as_me. ##
22756 cat >>$CONFIG_STATUS <<_ACEOF
22760 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22764 cat >>$CONFIG_STATUS <<\_ACEOF
22766 # Handling of arguments.
22767 for ac_config_target in $ac_config_targets
22769 case $ac_config_target in
22770 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22771 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22772 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22773 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22775 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22776 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22777 { (exit 1); exit 1; }; };;
22782 # If the user did not use the arguments to specify the items to instantiate,
22783 # then the envvar interface is used. Set only those that are not.
22784 # We use the long form for the default assignment because of an extremely
22785 # bizarre bug on SunOS 4.1.3.
22786 if $ac_need_defaults; then
22787 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22788 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22789 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22792 # Have a temporary directory for convenience. Make it in the build tree
22793 # simply because there is no reason against having it here, and in addition,
22794 # creating and moving files from /tmp can sometimes cause problems.
22795 # Hook for its removal unless debugging.
22796 # Note that there is a small window in which the directory will not be cleaned:
22797 # after its creation but before its name has been assigned to `$tmp'.
22801 trap 'exit_status=$?
22802 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22804 trap '{ (exit 1); exit 1; }' 1 2 13 15
22806 # Create a (secure) tmp directory for tmp files.
22809 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22810 test -n "$tmp" && test -d "$tmp"
22813 tmp=./conf$$-$RANDOM
22814 (umask 077 && mkdir "$tmp")
22817 echo "$me: cannot create a temporary directory in ." >&2
22818 { (exit 1); exit 1; }
22822 # Set up the sed scripts for CONFIG_FILES section.
22825 # No need to generate the scripts if there are no CONFIG_FILES.
22826 # This happens for instance when ./config.status config.h
22827 if test -n "$CONFIG_FILES"; then
22834 for ac_last_try in false false false false false :; do
22835 cat >conf$$subs.sed <<_ACEOF
22836 SHELL!$SHELL$ac_delim
22837 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22838 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22839 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22840 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22841 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22842 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22843 exec_prefix!$exec_prefix$ac_delim
22844 prefix!$prefix$ac_delim
22845 program_transform_name!$program_transform_name$ac_delim
22846 bindir!$bindir$ac_delim
22847 sbindir!$sbindir$ac_delim
22848 libexecdir!$libexecdir$ac_delim
22849 datarootdir!$datarootdir$ac_delim
22850 datadir!$datadir$ac_delim
22851 sysconfdir!$sysconfdir$ac_delim
22852 sharedstatedir!$sharedstatedir$ac_delim
22853 localstatedir!$localstatedir$ac_delim
22854 includedir!$includedir$ac_delim
22855 oldincludedir!$oldincludedir$ac_delim
22856 docdir!$docdir$ac_delim
22857 infodir!$infodir$ac_delim
22858 htmldir!$htmldir$ac_delim
22859 dvidir!$dvidir$ac_delim
22860 pdfdir!$pdfdir$ac_delim
22861 psdir!$psdir$ac_delim
22862 libdir!$libdir$ac_delim
22863 localedir!$localedir$ac_delim
22864 mandir!$mandir$ac_delim
22865 DEFS!$DEFS$ac_delim
22866 ECHO_C!$ECHO_C$ac_delim
22867 ECHO_N!$ECHO_N$ac_delim
22868 ECHO_T!$ECHO_T$ac_delim
22869 LIBS!$LIBS$ac_delim
22870 build_alias!$build_alias$ac_delim
22871 host_alias!$host_alias$ac_delim
22872 target_alias!$target_alias$ac_delim
22873 build!$build$ac_delim
22874 build_cpu!$build_cpu$ac_delim
22875 build_vendor!$build_vendor$ac_delim
22876 build_os!$build_os$ac_delim
22877 host!$host$ac_delim
22878 host_cpu!$host_cpu$ac_delim
22879 host_vendor!$host_vendor$ac_delim
22880 host_os!$host_os$ac_delim
22881 target!$target$ac_delim
22882 target_cpu!$target_cpu$ac_delim
22883 target_vendor!$target_vendor$ac_delim
22884 target_os!$target_os$ac_delim
22885 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22886 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22887 INSTALL_DATA!$INSTALL_DATA$ac_delim
22888 am__isrc!$am__isrc$ac_delim
22889 CYGPATH_W!$CYGPATH_W$ac_delim
22890 PACKAGE!$PACKAGE$ac_delim
22891 VERSION!$VERSION$ac_delim
22892 ACLOCAL!$ACLOCAL$ac_delim
22893 AUTOCONF!$AUTOCONF$ac_delim
22894 AUTOMAKE!$AUTOMAKE$ac_delim
22895 AUTOHEADER!$AUTOHEADER$ac_delim
22896 MAKEINFO!$MAKEINFO$ac_delim
22897 install_sh!$install_sh$ac_delim
22898 STRIP!$STRIP$ac_delim
22899 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22900 mkdir_p!$mkdir_p$ac_delim
22902 SET_MAKE!$SET_MAKE$ac_delim
22903 am__leading_dot!$am__leading_dot$ac_delim
22904 AMTAR!$AMTAR$ac_delim
22905 am__tar!$am__tar$ac_delim
22906 am__untar!$am__untar$ac_delim
22908 CFLAGS!$CFLAGS$ac_delim
22909 LDFLAGS!$LDFLAGS$ac_delim
22910 CPPFLAGS!$CPPFLAGS$ac_delim
22911 ac_ct_CC!$ac_ct_CC$ac_delim
22912 EXEEXT!$EXEEXT$ac_delim
22913 OBJEXT!$OBJEXT$ac_delim
22914 DEPDIR!$DEPDIR$ac_delim
22915 am__include!$am__include$ac_delim
22916 am__quote!$am__quote$ac_delim
22917 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22918 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22919 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22920 CCDEPMODE!$CCDEPMODE$ac_delim
22921 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22922 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22924 GREP!$GREP$ac_delim
22925 EGREP!$EGREP$ac_delim
22926 LN_S!$LN_S$ac_delim
22927 ECHO!$ECHO$ac_delim
22929 RANLIB!$RANLIB$ac_delim
22931 CXXFLAGS!$CXXFLAGS$ac_delim
22932 ac_ct_CXX!$ac_ct_CXX$ac_delim
22935 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22937 elif $ac_last_try; then
22938 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22939 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22940 { (exit 1); exit 1; }; }
22942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22946 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22947 if test -n "$ac_eof"; then
22948 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22949 ac_eof=`expr $ac_eof + 1`
22952 cat >>$CONFIG_STATUS <<_ACEOF
22953 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22954 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22957 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22958 s/^/s,@/; s/!/@,|#_!!_#|/
22961 s/'"$ac_delim"'$/,g/; t
22963 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22964 ' >>$CONFIG_STATUS <conf$$subs.sed
22965 rm -f conf$$subs.sed
22966 cat >>$CONFIG_STATUS <<_ACEOF
22972 for ac_last_try in false false false false false :; do
22973 cat >conf$$subs.sed <<_ACEOF
22974 CXXDEPMODE!$CXXDEPMODE$ac_delim
22975 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22976 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22977 CXXCPP!$CXXCPP$ac_delim
22979 FFLAGS!$FFLAGS$ac_delim
22980 ac_ct_F77!$ac_ct_F77$ac_delim
22981 LIBTOOL!$LIBTOOL$ac_delim
22982 APXS2!$APXS2$ac_delim
22983 APXS!$APXS$ac_delim
22984 WAND_CONFIG!$WAND_CONFIG$ac_delim
22985 APR_CONFIG!$APR_CONFIG$ac_delim
22986 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22987 APU_CONFIG!$APU_CONFIG$ac_delim
22988 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22989 with_apache_header!$with_apache_header$ac_delim
22990 PCRE_CONFIG!$PCRE_CONFIG$ac_delim
22991 PCRE_1_CONFIG!$PCRE_1_CONFIG$ac_delim
22992 LIBOBJS!$LIBOBJS$ac_delim
22993 QDEFS!$QDEFS$ac_delim
22994 DDEFS!$DDEFS$ac_delim
22995 LTLIBOBJS!$LTLIBOBJS$ac_delim
22998 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
23000 elif $ac_last_try; then
23001 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23002 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23003 { (exit 1); exit 1; }; }
23005 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23009 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23010 if test -n "$ac_eof"; then
23011 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23012 ac_eof=`expr $ac_eof + 1`
23015 cat >>$CONFIG_STATUS <<_ACEOF
23016 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23017 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23020 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23021 s/^/s,@/; s/!/@,|#_!!_#|/
23024 s/'"$ac_delim"'$/,g/; t
23026 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23027 ' >>$CONFIG_STATUS <conf$$subs.sed
23028 rm -f conf$$subs.sed
23029 cat >>$CONFIG_STATUS <<_ACEOF
23036 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23037 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23038 # trailing colons and then remove the whole line if VPATH becomes empty
23039 # (actually we leave an empty line to preserve line numbers).
23040 if test "x$srcdir" = x.; then
23041 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23042 s/:*\$(srcdir):*/:/
23043 s/:*\${srcdir}:*/:/
23045 s/^\([^=]*=[ ]*\):*/\1/
23051 cat >>$CONFIG_STATUS <<\_ACEOF
23052 fi # test -n "$CONFIG_FILES"
23055 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23058 :[FHLC]) ac_mode=$ac_tag; continue;;
23060 case $ac_mode$ac_tag in
23062 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23063 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23064 { (exit 1); exit 1; }; };;
23065 :[FH]-) ac_tag=-:-;;
23066 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23083 -) ac_f="$tmp/stdin";;
23084 *) # Look for the file first in the build tree, then in the source tree
23085 # (if the path is not absolute). The absolute path cannot be DOS-style,
23086 # because $ac_f cannot contain `:'.
23090 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23092 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23093 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23094 { (exit 1); exit 1; }; };;
23096 ac_file_inputs="$ac_file_inputs $ac_f"
23099 # Let's still pretend it is `configure' which instantiates (i.e., don't
23100 # use $as_me), people would be surprised to read:
23101 # /* config.h. Generated by config.status. */
23102 configure_input="Generated from "`IFS=:
23103 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23104 if test x"$ac_file" != x-; then
23105 configure_input="$ac_file. $configure_input"
23106 { echo "$as_me:$LINENO: creating $ac_file" >&5
23107 echo "$as_me: creating $ac_file" >&6;}
23111 *:-:* | *:-) cat >"$tmp/stdin";;
23116 ac_dir=`$as_dirname -- "$ac_file" ||
23117 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23118 X"$ac_file" : 'X\(//\)[^/]' \| \
23119 X"$ac_file" : 'X\(//\)$' \| \
23120 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23126 /^X\(\/\/\)[^/].*/{
23141 -*) as_dir=./$as_dir;;
23143 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23147 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23148 *) as_qdir=$as_dir;;
23150 as_dirs="'$as_qdir' $as_dirs"
23151 as_dir=`$as_dirname -- "$as_dir" ||
23152 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23153 X"$as_dir" : 'X\(//\)[^/]' \| \
23154 X"$as_dir" : 'X\(//\)$' \| \
23155 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23161 /^X\(\/\/\)[^/].*/{
23174 test -d "$as_dir" && break
23176 test -z "$as_dirs" || eval "mkdir $as_dirs"
23177 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23178 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23179 { (exit 1); exit 1; }; }; }
23183 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23185 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23186 # A ".." for each directory in $ac_dir_suffix.
23187 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23188 case $ac_top_builddir_sub in
23189 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23190 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23193 ac_abs_top_builddir=$ac_pwd
23194 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23195 # for backward compatibility:
23196 ac_top_builddir=$ac_top_build_prefix
23199 .) # We are building in place.
23201 ac_top_srcdir=$ac_top_builddir_sub
23202 ac_abs_top_srcdir=$ac_pwd ;;
23203 [\\/]* | ?:[\\/]* ) # Absolute name.
23204 ac_srcdir=$srcdir$ac_dir_suffix;
23205 ac_top_srcdir=$srcdir
23206 ac_abs_top_srcdir=$srcdir ;;
23207 *) # Relative name.
23208 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23209 ac_top_srcdir=$ac_top_build_prefix$srcdir
23210 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23212 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23222 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23223 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23225 ac_MKDIR_P=$MKDIR_P
23227 [\\/$]* | ?:[\\/]* ) ;;
23228 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23232 cat >>$CONFIG_STATUS <<\_ACEOF
23233 # If the template does not know about datarootdir, expand it.
23234 # FIXME: This hack should be removed a few years after 2.60.
23235 ac_datarootdir_hack=; ac_datarootdir_seen=
23237 case `sed -n '/datarootdir/ {
23246 ' $ac_file_inputs` in
23247 *datarootdir*) ac_datarootdir_seen=yes;;
23248 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23249 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23250 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23252 cat >>$CONFIG_STATUS <<_ACEOF
23253 ac_datarootdir_hack='
23254 s&@datadir@&$datadir&g
23255 s&@docdir@&$docdir&g
23256 s&@infodir@&$infodir&g
23257 s&@localedir@&$localedir&g
23258 s&@mandir@&$mandir&g
23259 s&\\\${datarootdir}&$datarootdir&g' ;;
23263 # Neutralize VPATH when `$srcdir' = `.'.
23264 # Shell code in configure.ac might set extrasub.
23265 # FIXME: do we really want to maintain this feature?
23266 cat >>$CONFIG_STATUS <<_ACEOF
23270 cat >>$CONFIG_STATUS <<\_ACEOF
23272 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23273 s&@configure_input@&$configure_input&;t t
23274 s&@top_builddir@&$ac_top_builddir_sub&;t t
23275 s&@srcdir@&$ac_srcdir&;t t
23276 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23277 s&@top_srcdir@&$ac_top_srcdir&;t t
23278 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23279 s&@builddir@&$ac_builddir&;t t
23280 s&@abs_builddir@&$ac_abs_builddir&;t t
23281 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23282 s&@INSTALL@&$ac_INSTALL&;t t
23283 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23284 $ac_datarootdir_hack
23285 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23287 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23288 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23289 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23290 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23291 which seems to be undefined. Please make sure it is defined." >&5
23292 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23293 which seems to be undefined. Please make sure it is defined." >&2;}
23297 -) cat "$tmp/out"; rm -f "$tmp/out";;
23298 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23307 # Transform confdefs.h into a sed script `conftest.defines', that
23308 # substitutes the proper values into config.h.in to produce config.h.
23309 rm -f conftest.defines conftest.tail
23310 # First, append a space to every undef/define line, to ease matching.
23311 echo 's/$/ /' >conftest.defines
23312 # Then, protect against being on the right side of a sed subst, or in
23313 # an unquoted here document, in config.status. If some macros were
23314 # called several times there might be several #defines for the same
23315 # symbol, which is useless. But do not sort them, since the last
23316 # AC_DEFINE must be honored.
23317 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23318 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23319 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23320 # PARAMS is the parameter list in the macro definition--in most cases, it's
23321 # just an empty string.
23322 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23323 ac_dB='\\)[ (].*,\\1define\\2'
23331 s/^[ ]*#[ ]*define[ ][ ]*//
23336 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23337 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23338 ' >>conftest.defines
23340 # Remove the space that was appended to ease matching.
23341 # Then replace #undef with comments. This is necessary, for
23342 # example, in the case of _POSIX_SOURCE, which is predefined and required
23343 # on some systems where configure will not decide to define it.
23344 # (The regexp can be short, since the line contains either #define or #undef.)
23346 s,^[ #]*u.*,/* & */,' >>conftest.defines
23348 # Break up conftest.defines:
23349 ac_max_sed_lines=50
23351 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23352 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23353 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23355 ac_in='$ac_file_inputs'
23356 ac_out='"$tmp/out1"'
23357 ac_nxt='"$tmp/out2"'
23361 # Write a here document:
23362 cat >>$CONFIG_STATUS <<_ACEOF
23363 # First, check the format of the line:
23364 cat >"\$tmp/defines.sed" <<\\CEOF
23365 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23366 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23370 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23372 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23373 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
23374 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
23375 grep . conftest.tail >/dev/null || break
23376 rm -f conftest.defines
23377 mv conftest.tail conftest.defines
23379 rm -f conftest.defines conftest.tail
23381 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23382 cat >>$CONFIG_STATUS <<\_ACEOF
23383 if test x"$ac_file" != x-; then
23384 echo "/* $configure_input */" >"$tmp/config.h"
23385 cat "$ac_result" >>"$tmp/config.h"
23386 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
23387 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23388 echo "$as_me: $ac_file is unchanged" >&6;}
23391 mv "$tmp/config.h" $ac_file
23394 echo "/* $configure_input */"
23398 # Compute $ac_file's index in $config_headers.
23400 for _am_header in $config_headers :; do
23401 case $_am_header in
23402 $ac_file | $ac_file:* )
23405 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23408 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
23409 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23410 X$ac_file : 'X\(//\)[^/]' \| \
23411 X$ac_file : 'X\(//\)$' \| \
23412 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
23414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23418 /^X\(\/\/\)[^/].*/{
23430 s/.*/./; q'`/stamp-h$_am_stamp_count
23433 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23434 echo "$as_me: executing $ac_file commands" >&6;}
23439 case $ac_file$ac_mode in
23440 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23441 # Strip MF so we end up with the name of the file.
23442 mf=`echo "$mf" | sed -e 's/:.*$//'`
23443 # Check whether this is an Automake generated Makefile or not.
23444 # We used to match only the files named `Makefile.in', but
23445 # some people rename them; so instead we look at the file content.
23446 # Grep'ing the first line is not enough: some people post-process
23447 # each Makefile.in and add a new line on top of each file to say so.
23448 # Grep'ing the whole file is not good either: AIX grep has a line
23449 # limit of 2048, but all sed's we know have understand at least 4000.
23450 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
23451 dirpart=`$as_dirname -- "$mf" ||
23452 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23453 X"$mf" : 'X\(//\)[^/]' \| \
23454 X"$mf" : 'X\(//\)$' \| \
23455 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23461 /^X\(\/\/\)[^/].*/{
23477 # Extract the definition of DEPDIR, am__include, and am__quote
23478 # from the Makefile without running `make'.
23479 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23480 test -z "$DEPDIR" && continue
23481 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23482 test -z "am__include" && continue
23483 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23484 # When using ansi2knr, U may be empty or an underscore; expand it
23485 U=`sed -n 's/^U = //p' < "$mf"`
23486 # Find all dependency output files, they are included files with
23487 # $(DEPDIR) in their names. We invoke sed twice because it is the
23488 # simplest approach to changing $(DEPDIR) to its actual value in the
23490 for file in `sed -n "
23491 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23492 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23493 # Make sure the directory exists.
23494 test -f "$dirpart/$file" && continue
23495 fdir=`$as_dirname -- "$file" ||
23496 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23497 X"$file" : 'X\(//\)[^/]' \| \
23498 X"$file" : 'X\(//\)$' \| \
23499 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23505 /^X\(\/\/\)[^/].*/{
23518 { as_dir=$dirpart/$fdir
23520 -*) as_dir=./$as_dir;;
23522 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23526 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23527 *) as_qdir=$as_dir;;
23529 as_dirs="'$as_qdir' $as_dirs"
23530 as_dir=`$as_dirname -- "$as_dir" ||
23531 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23532 X"$as_dir" : 'X\(//\)[^/]' \| \
23533 X"$as_dir" : 'X\(//\)$' \| \
23534 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23536 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23540 /^X\(\/\/\)[^/].*/{
23553 test -d "$as_dir" && break
23555 test -z "$as_dirs" || eval "mkdir $as_dirs"
23556 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23557 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23558 { (exit 1); exit 1; }; }; }
23559 # echo "creating $dirpart/$file"
23560 echo '# dummy' > "$dirpart/$file"
23569 { (exit 0); exit 0; }
23571 chmod +x $CONFIG_STATUS
23572 ac_clean_files=$ac_clean_files_save
23575 # configure is writing to config.log, and then calls config.status.
23576 # config.status does its own redirection, appending to config.log.
23577 # Unfortunately, on DOS this fails, as config.log is still kept open
23578 # by configure, so config.status won't be able to write to it; its
23579 # output is simply discarded. So we exec the FD to /dev/null,
23580 # effectively closing config.log, so it can be properly (re)opened and
23581 # appended to by config.status. When coming back to configure, we
23582 # need to make the FD available again.
23583 if test "$no_create" != yes; then
23585 ac_config_status_args=
23586 test "$silent" = yes &&
23587 ac_config_status_args="$ac_config_status_args --quiet"
23589 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23591 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23592 # would make configure fail if this is the last instruction.
23593 $ac_cs_success || { (exit 1); exit 1; }