2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for mod_chxj 0.10.2-1.
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='0.10.2-1'
730 PACKAGE_STRING='mod_chxj 0.10.2-1'
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
891 ac_precious_vars='build_alias
908 # Initialize some variables set by options.
910 ac_init_version=false
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
920 program_transform_name=s,x,x,
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir='${exec_prefix}/bin'
935 sbindir='${exec_prefix}/sbin'
936 libexecdir='${exec_prefix}/libexec'
937 datarootdir='${prefix}/share'
938 datadir='${datarootdir}'
939 sysconfdir='${prefix}/etc'
940 sharedstatedir='${prefix}/com'
941 localstatedir='${prefix}/var'
942 includedir='${prefix}/include'
943 oldincludedir='/usr/include'
944 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
945 infodir='${datarootdir}/info'
950 libdir='${exec_prefix}/lib'
951 localedir='${datarootdir}/locale'
952 mandir='${datarootdir}/man'
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
960 eval $ac_prev=\$ac_option
966 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
970 # Accept the important Cygnus configure options, so we can diagnose typos.
972 case $ac_dashdash$ac_option in
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
994 cache_file=config.cache ;;
996 -datadir | --datadir | --datadi | --datad)
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1008 -disable-* | --disable-*)
1009 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1012 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1013 { (exit 1); exit 1; }; }
1014 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1015 eval enable_$ac_feature=no ;;
1017 -docdir | --docdir | --docdi | --doc | --do)
1019 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1020 docdir=$ac_optarg ;;
1022 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1024 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1025 dvidir=$ac_optarg ;;
1027 -enable-* | --enable-*)
1028 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1029 # Reject names that are not valid shell variable names.
1030 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1031 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1032 { (exit 1); exit 1; }; }
1033 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1034 eval enable_$ac_feature=\$ac_optarg ;;
1036 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1037 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1038 | --exec | --exe | --ex)
1039 ac_prev=exec_prefix ;;
1040 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1041 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1042 | --exec=* | --exe=* | --ex=*)
1043 exec_prefix=$ac_optarg ;;
1045 -gas | --gas | --ga | --g)
1046 # Obsolete; use --with-gas.
1049 -help | --help | --hel | --he | -h)
1050 ac_init_help=long ;;
1051 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1052 ac_init_help=recursive ;;
1053 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1054 ac_init_help=short ;;
1056 -host | --host | --hos | --ho)
1057 ac_prev=host_alias ;;
1058 -host=* | --host=* | --hos=* | --ho=*)
1059 host_alias=$ac_optarg ;;
1061 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1063 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1065 htmldir=$ac_optarg ;;
1067 -includedir | --includedir | --includedi | --included | --include \
1068 | --includ | --inclu | --incl | --inc)
1069 ac_prev=includedir ;;
1070 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1071 | --includ=* | --inclu=* | --incl=* | --inc=*)
1072 includedir=$ac_optarg ;;
1074 -infodir | --infodir | --infodi | --infod | --info | --inf)
1076 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1077 infodir=$ac_optarg ;;
1079 -libdir | --libdir | --libdi | --libd)
1081 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1082 libdir=$ac_optarg ;;
1084 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1085 | --libexe | --libex | --libe)
1086 ac_prev=libexecdir ;;
1087 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1088 | --libexe=* | --libex=* | --libe=*)
1089 libexecdir=$ac_optarg ;;
1091 -localedir | --localedir | --localedi | --localed | --locale)
1092 ac_prev=localedir ;;
1093 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1094 localedir=$ac_optarg ;;
1096 -localstatedir | --localstatedir | --localstatedi | --localstated \
1097 | --localstate | --localstat | --localsta | --localst | --locals)
1098 ac_prev=localstatedir ;;
1099 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1100 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1101 localstatedir=$ac_optarg ;;
1103 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1105 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1106 mandir=$ac_optarg ;;
1108 -nfp | --nfp | --nf)
1109 # Obsolete; use --without-fp.
1112 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1113 | --no-cr | --no-c | -n)
1116 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1117 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1120 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1121 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1122 | --oldin | --oldi | --old | --ol | --o)
1123 ac_prev=oldincludedir ;;
1124 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1125 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1126 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1127 oldincludedir=$ac_optarg ;;
1129 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1131 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1132 prefix=$ac_optarg ;;
1134 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1135 | --program-pre | --program-pr | --program-p)
1136 ac_prev=program_prefix ;;
1137 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1138 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1139 program_prefix=$ac_optarg ;;
1141 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1142 | --program-suf | --program-su | --program-s)
1143 ac_prev=program_suffix ;;
1144 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1145 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1146 program_suffix=$ac_optarg ;;
1148 -program-transform-name | --program-transform-name \
1149 | --program-transform-nam | --program-transform-na \
1150 | --program-transform-n | --program-transform- \
1151 | --program-transform | --program-transfor \
1152 | --program-transfo | --program-transf \
1153 | --program-trans | --program-tran \
1154 | --progr-tra | --program-tr | --program-t)
1155 ac_prev=program_transform_name ;;
1156 -program-transform-name=* | --program-transform-name=* \
1157 | --program-transform-nam=* | --program-transform-na=* \
1158 | --program-transform-n=* | --program-transform-=* \
1159 | --program-transform=* | --program-transfor=* \
1160 | --program-transfo=* | --program-transf=* \
1161 | --program-trans=* | --program-tran=* \
1162 | --progr-tra=* | --program-tr=* | --program-t=*)
1163 program_transform_name=$ac_optarg ;;
1165 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1167 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1168 pdfdir=$ac_optarg ;;
1170 -psdir | --psdir | --psdi | --psd | --ps)
1172 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1176 | -silent | --silent | --silen | --sile | --sil)
1179 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1181 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1183 sbindir=$ac_optarg ;;
1185 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1186 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1187 | --sharedst | --shareds | --shared | --share | --shar \
1189 ac_prev=sharedstatedir ;;
1190 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1191 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1192 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1194 sharedstatedir=$ac_optarg ;;
1196 -site | --site | --sit)
1198 -site=* | --site=* | --sit=*)
1201 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1203 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1204 srcdir=$ac_optarg ;;
1206 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1207 | --syscon | --sysco | --sysc | --sys | --sy)
1208 ac_prev=sysconfdir ;;
1209 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1210 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1211 sysconfdir=$ac_optarg ;;
1213 -target | --target | --targe | --targ | --tar | --ta | --t)
1214 ac_prev=target_alias ;;
1215 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1216 target_alias=$ac_optarg ;;
1218 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221 -version | --version | --versio | --versi | --vers | -V)
1222 ac_init_version=: ;;
1225 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1228 { echo "$as_me: error: invalid package name: $ac_package" >&2
1229 { (exit 1); exit 1; }; }
1230 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1231 eval with_$ac_package=\$ac_optarg ;;
1233 -without-* | --without-*)
1234 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1235 # Reject names that are not valid shell variable names.
1236 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 { echo "$as_me: error: invalid package name: $ac_package" >&2
1238 { (exit 1); exit 1; }; }
1239 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240 eval with_$ac_package=no ;;
1243 # Obsolete; use --with-x.
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1260 -*) { echo "$as_me: error: unrecognized option: $ac_option
1261 Try \`$0 --help' for more information." >&2
1262 { (exit 1); exit 1; }; }
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1269 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1270 { (exit 1); exit 1; }; }
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1275 # FIXME: should be removed in autoconf 3.0.
1276 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1285 if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 { echo "$as_me: error: missing argument to $ac_option" >&2
1288 { (exit 1); exit 1; }; }
1291 # Be sure to have absolute directory names.
1292 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 datadir sysconfdir sharedstatedir localstatedir includedir \
1294 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1295 libdir localedir mandir
1297 eval ac_val=\$$ac_var
1299 [\\/$]* | ?:[\\/]* ) continue;;
1300 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1303 { (exit 1); exit 1; }; }
1306 # There might be people who depend on the old broken behavior: `$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1311 target=$target_alias
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1318 If a cross compiler is detected then cross compile mode will be used." >&2
1319 elif test "x$build_alias" != "x$host_alias"; then
1325 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1327 test "$silent" = yes && exec 6>/dev/null
1330 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1331 ac_ls_di=`ls -di .` &&
1332 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1333 { echo "$as_me: error: Working directory cannot be determined" >&2
1334 { (exit 1); exit 1; }; }
1335 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1336 { echo "$as_me: error: pwd does not report name of working directory" >&2
1337 { (exit 1); exit 1; }; }
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342 ac_srcdir_defaulted=yes
1343 # Try the directory containing this script, then the parent directory.
1344 ac_confdir=`$as_dirname -- "$0" ||
1345 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346 X"$0" : 'X\(//\)[^/]' \| \
1347 X"$0" : 'X\(//\)$' \| \
1348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1372 ac_srcdir_defaulted=no
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1377 { (exit 1); exit 1; }; }
1379 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1381 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1382 { (exit 1); exit 1; }; }
1384 # When building in place, set srcdir=.
1385 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 # Remove unnecessary trailing slashes from srcdir.
1389 # Double slashes in file names in object file debugging info
1390 # mess up M-x gdb in Emacs.
1392 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1394 for ac_var in $ac_precious_vars; do
1395 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_env_${ac_var}_value=\$${ac_var}
1397 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1402 # Report the --help message.
1404 if test "$ac_init_help" = "long"; then
1405 # Omit some internal or obsolete options to make the list less imposing.
1406 # This message is too long to be a string in the A/UX 3.1 sh.
1408 \`configure' configures mod_chxj 0.10.2-1 to adapt to many kinds of systems.
1410 Usage: $0 [OPTION]... [VAR=VALUE]...
1412 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1413 VAR=VALUE. See below for descriptions of some of the useful variables.
1415 Defaults for the options are specified in brackets.
1418 -h, --help display this help and exit
1419 --help=short display options specific to this package
1420 --help=recursive display the short help of all the included packages
1421 -V, --version display version information and exit
1422 -q, --quiet, --silent do not print \`checking...' messages
1423 --cache-file=FILE cache test results in FILE [disabled]
1424 -C, --config-cache alias for \`--cache-file=config.cache'
1425 -n, --no-create do not create output files
1426 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1428 Installation directories:
1429 --prefix=PREFIX install architecture-independent files in PREFIX
1430 [$ac_default_prefix]
1431 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1434 By default, \`make install' will install all the files in
1435 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1436 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1437 for instance \`--prefix=\$HOME'.
1439 For better control, use the options below.
1441 Fine tuning of the installation directories:
1442 --bindir=DIR user executables [EPREFIX/bin]
1443 --sbindir=DIR system admin executables [EPREFIX/sbin]
1444 --libexecdir=DIR program executables [EPREFIX/libexec]
1445 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1446 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1447 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1448 --libdir=DIR object code libraries [EPREFIX/lib]
1449 --includedir=DIR C header files [PREFIX/include]
1450 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1451 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1452 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1453 --infodir=DIR info documentation [DATAROOTDIR/info]
1454 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1455 --mandir=DIR man documentation [DATAROOTDIR/man]
1456 --docdir=DIR documentation root [DATAROOTDIR/doc/mod_chxj]
1457 --htmldir=DIR html documentation [DOCDIR]
1458 --dvidir=DIR dvi documentation [DOCDIR]
1459 --pdfdir=DIR pdf documentation [DOCDIR]
1460 --psdir=DIR ps documentation [DOCDIR]
1466 --program-prefix=PREFIX prepend PREFIX to installed program names
1467 --program-suffix=SUFFIX append SUFFIX to installed program names
1468 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1471 --build=BUILD configure for building on BUILD [guessed]
1472 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1473 --target=TARGET configure for building compilers for TARGET [HOST]
1477 if test -n "$ac_init_help"; then
1478 case $ac_init_help in
1479 short | recursive ) echo "Configuration of mod_chxj 0.10.2-1:";;
1484 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486 --disable-dependency-tracking speeds up one-time build
1487 --enable-dependency-tracking do not reject slow dependency extractors
1488 --enable-shared[=PKGS] build shared libraries [default=yes]
1489 --enable-static[=PKGS] build static libraries [default=yes]
1490 --enable-fast-install[=PKGS]
1491 optimize for fast installation [default=yes]
1492 --disable-libtool-lock avoid locking (might break parallel builds)
1493 --enable-img-conv-f Please specify it when you change the file name of the image being written in the
1494 source by the automatic operation.
1495 --enable-memcache-cookie Please specify it when you save Cookie in memcached.
1496 --enable-mysql-cookie Please specify it when you save Cookie in MySQL.
1497 --enable-dump-log When the log of conversion is output, it specifies it with the output file.
1500 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1501 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1503 --with-pic try to use only PIC/non-PIC objects [default=use
1505 --with-tags[=TAGS] include additional configurations [automatic]
1506 --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1507 --with-apxs=ARG Path of apxs program file.
1508 --with-apr-config=ARG Path of apr-config program file.
1509 --with-apu-config=ARG Path of apu-config program file.
1510 --with-pcre-config=ARG Path of pcre-config program file.
1511 --with-apr-memcache-header Path of "apr_memcache.h"
1512 --with-apr-memcache-lib-dir Path of "libapr_memcache.so"
1513 --with-mysql-header=ARG Path of "mysql.h"
1514 --with-mysql-lib-dir=ARG Path of libmysqlclient
1516 Some influential environment variables:
1517 CC C compiler command
1518 CFLAGS C compiler flags
1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1520 nonstandard directory <lib dir>
1521 LIBS libraries to pass to the linker, e.g. -l<library>
1522 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1523 you have headers in a nonstandard directory <include dir>
1525 CXX C++ compiler command
1526 CXXFLAGS C++ compiler flags
1527 CXXCPP C++ preprocessor
1528 F77 Fortran 77 compiler command
1529 FFLAGS Fortran 77 compiler flags
1531 Use these variables to override the choices made by `configure' or to help
1532 it to find libraries and programs with nonstandard names/locations.
1538 if test "$ac_init_help" = "recursive"; then
1539 # If there are subdirs, report their specific --help.
1540 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1541 test -d "$ac_dir" || continue
1545 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1548 # A ".." for each directory in $ac_dir_suffix.
1549 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1550 case $ac_top_builddir_sub in
1551 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1555 ac_abs_top_builddir=$ac_pwd
1556 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1557 # for backward compatibility:
1558 ac_top_builddir=$ac_top_build_prefix
1561 .) # We are building in place.
1563 ac_top_srcdir=$ac_top_builddir_sub
1564 ac_abs_top_srcdir=$ac_pwd ;;
1565 [\\/]* | ?:[\\/]* ) # Absolute name.
1566 ac_srcdir=$srcdir$ac_dir_suffix;
1567 ac_top_srcdir=$srcdir
1568 ac_abs_top_srcdir=$srcdir ;;
1570 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1571 ac_top_srcdir=$ac_top_build_prefix$srcdir
1572 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1574 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1576 cd "$ac_dir" || { ac_status=$?; continue; }
1577 # Check for guested configure.
1578 if test -f "$ac_srcdir/configure.gnu"; then
1580 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1581 elif test -f "$ac_srcdir/configure"; then
1583 $SHELL "$ac_srcdir/configure" --help=recursive
1585 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1587 cd "$ac_pwd" || { ac_status=$?; break; }
1591 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then
1594 mod_chxj configure 0.10.2-1
1595 generated by GNU Autoconf 2.61
1597 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1598 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1599 This configure script is free software; the Free Software Foundation
1600 gives unlimited permission to copy, distribute and modify it.
1604 cat >config.log <<_ACEOF
1605 This file contains any messages produced by compilers while
1606 running configure, to aid debugging if configure makes a mistake.
1608 It was created by mod_chxj $as_me 0.10.2-1, which was
1609 generated by GNU Autoconf 2.61. Invocation command line was
1621 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1622 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1623 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1624 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1625 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1627 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1628 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1630 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1631 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1632 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1633 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1634 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1635 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1636 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1644 test -z "$as_dir" && as_dir=.
1645 echo "PATH: $as_dir"
1661 # Keep a trace of the command line.
1662 # Strip out --no-create and --no-recursion so they do not pile up.
1663 # Strip out --silent because we don't want to record it for future runs.
1664 # Also quote any args containing shell meta-characters.
1665 # Make two passes to allow for proper duplicate-argument suppression.
1669 ac_must_keep_next=false
1675 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1676 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1677 | -silent | --silent | --silen | --sile | --sil)
1680 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1683 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1685 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1686 if test $ac_must_keep_next = true; then
1687 ac_must_keep_next=false # Got value, back to normal.
1690 *=* | --config-cache | -C | -disable-* | --disable-* \
1691 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1692 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1693 | -with-* | --with-* | -without-* | --without-* | --x)
1694 case "$ac_configure_args0 " in
1695 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1698 -* ) ac_must_keep_next=true ;;
1701 ac_configure_args="$ac_configure_args '$ac_arg'"
1706 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1707 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1709 # When interrupted or exit'd, cleanup temporary files, and complete
1710 # config.log. We remove comments because anyway the quotes in there
1711 # would cause problems or look ugly.
1712 # WARNING: Use '\'' to represent an apostrophe within the trap.
1713 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1714 trap 'exit_status=$?
1715 # Save into config.log some information that might help in debugging.
1720 ## ---------------- ##
1721 ## Cache variables. ##
1722 ## ---------------- ##
1725 # The following way of writing the cache mishandles newlines in values,
1727 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1728 eval ac_val=\$$ac_var
1732 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1733 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1736 _ | IFS | as_nl) ;; #(
1737 *) $as_unset $ac_var ;;
1742 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1743 *${as_nl}ac_space=\ *)
1745 "s/'\''/'\''\\\\'\'''\''/g;
1746 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1749 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1757 ## ----------------- ##
1758 ## Output variables. ##
1759 ## ----------------- ##
1762 for ac_var in $ac_subst_vars
1764 eval ac_val=\$$ac_var
1766 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1768 echo "$ac_var='\''$ac_val'\''"
1772 if test -n "$ac_subst_files"; then
1774 ## ------------------- ##
1775 ## File substitutions. ##
1776 ## ------------------- ##
1779 for ac_var in $ac_subst_files
1781 eval ac_val=\$$ac_var
1783 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1785 echo "$ac_var='\''$ac_val'\''"
1790 if test -s confdefs.h; then
1800 test "$ac_signal" != 0 &&
1801 echo "$as_me: caught signal $ac_signal"
1802 echo "$as_me: exit $exit_status"
1804 rm -f core *.core core.conftest.* &&
1805 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1808 for ac_signal in 1 2 13 15; do
1809 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1814 rm -f -r conftest* confdefs.h
1816 # Predefined preprocessor variables.
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_NAME "$PACKAGE_NAME"
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1833 cat >>confdefs.h <<_ACEOF
1834 #define PACKAGE_STRING "$PACKAGE_STRING"
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1843 # Let the site file select an alternate cache file if it wants to.
1844 # Prefer explicitly selected file to automatically selected ones.
1845 if test -n "$CONFIG_SITE"; then
1846 set x "$CONFIG_SITE"
1847 elif test "x$prefix" != xNONE; then
1848 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1850 set x "$ac_default_prefix/share/config.site" \
1851 "$ac_default_prefix/etc/config.site"
1856 if test -r "$ac_site_file"; then
1857 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1858 echo "$as_me: loading site script $ac_site_file" >&6;}
1859 sed 's/^/| /' "$ac_site_file" >&5
1864 if test -r "$cache_file"; then
1865 # Some versions of bash will fail to source /dev/null (special
1866 # files actually), so we avoid doing that.
1867 if test -f "$cache_file"; then
1868 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1869 echo "$as_me: loading cache $cache_file" >&6;}
1871 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1872 *) . "./$cache_file";;
1876 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1877 echo "$as_me: creating cache $cache_file" >&6;}
1881 # Check that the precious variables saved in the cache have kept the same
1883 ac_cache_corrupted=false
1884 for ac_var in $ac_precious_vars; do
1885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1886 eval ac_new_set=\$ac_env_${ac_var}_set
1887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1888 eval ac_new_val=\$ac_env_${ac_var}_value
1889 case $ac_old_set,$ac_new_set in
1891 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1892 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1893 ac_cache_corrupted=: ;;
1895 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1896 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1900 if test "x$ac_old_val" != "x$ac_new_val"; then
1901 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1902 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1903 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1904 echo "$as_me: former value: $ac_old_val" >&2;}
1905 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1906 echo "$as_me: current value: $ac_new_val" >&2;}
1907 ac_cache_corrupted=:
1910 # Pass precious variables to config.status.
1911 if test "$ac_new_set" = set; then
1913 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1914 *) ac_arg=$ac_var=$ac_new_val ;;
1916 case " $ac_configure_args " in
1917 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1918 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1922 if $ac_cache_corrupted; then
1923 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1924 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1925 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1926 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1927 { (exit 1); exit 1; }; }
1955 ac_cpp='$CPP $CPPFLAGS'
1956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1964 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1965 if test -f "$ac_dir/install-sh"; then
1967 ac_install_sh="$ac_aux_dir/install-sh -c"
1969 elif test -f "$ac_dir/install.sh"; then
1971 ac_install_sh="$ac_aux_dir/install.sh -c"
1973 elif test -f "$ac_dir/shtool"; then
1975 ac_install_sh="$ac_aux_dir/shtool install -c"
1979 if test -z "$ac_aux_dir"; then
1980 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1981 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1982 { (exit 1); exit 1; }; }
1985 # These three variables are undocumented and unsupported,
1986 # and are intended to be withdrawn in a future Autoconf release.
1987 # They can cause serious problems if a builder's source tree is in a directory
1988 # whose full name contains unusual characters.
1989 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1990 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1991 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1994 # Make sure we can run config.sub.
1995 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1996 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1997 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1998 { (exit 1); exit 1; }; }
2000 { echo "$as_me:$LINENO: checking build system type" >&5
2001 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2002 if test "${ac_cv_build+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2005 ac_build_alias=$build_alias
2006 test "x$ac_build_alias" = x &&
2007 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2008 test "x$ac_build_alias" = x &&
2009 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2010 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2011 { (exit 1); exit 1; }; }
2012 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2013 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2014 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2015 { (exit 1); exit 1; }; }
2018 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2019 echo "${ECHO_T}$ac_cv_build" >&6; }
2020 case $ac_cv_build in
2022 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2023 echo "$as_me: error: invalid value of canonical build" >&2;}
2024 { (exit 1); exit 1; }; };;
2027 ac_save_IFS=$IFS; IFS='-'
2033 # Remember, the first character of IFS is used to create $*,
2034 # except with old shells:
2037 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2040 { echo "$as_me:$LINENO: checking host system type" >&5
2041 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2042 if test "${ac_cv_host+set}" = set; then
2043 echo $ECHO_N "(cached) $ECHO_C" >&6
2045 if test "x$host_alias" = x; then
2046 ac_cv_host=$ac_cv_build
2048 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2049 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2050 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2051 { (exit 1); exit 1; }; }
2055 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2056 echo "${ECHO_T}$ac_cv_host" >&6; }
2059 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2060 echo "$as_me: error: invalid value of canonical host" >&2;}
2061 { (exit 1); exit 1; }; };;
2064 ac_save_IFS=$IFS; IFS='-'
2070 # Remember, the first character of IFS is used to create $*,
2071 # except with old shells:
2074 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2077 { echo "$as_me:$LINENO: checking target system type" >&5
2078 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2079 if test "${ac_cv_target+set}" = set; then
2080 echo $ECHO_N "(cached) $ECHO_C" >&6
2082 if test "x$target_alias" = x; then
2083 ac_cv_target=$ac_cv_host
2085 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2086 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2087 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2088 { (exit 1); exit 1; }; }
2092 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2093 echo "${ECHO_T}$ac_cv_target" >&6; }
2094 case $ac_cv_target in
2096 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2097 echo "$as_me: error: invalid value of canonical target" >&2;}
2098 { (exit 1); exit 1; }; };;
2100 target=$ac_cv_target
2101 ac_save_IFS=$IFS; IFS='-'
2107 # Remember, the first character of IFS is used to create $*,
2108 # except with old shells:
2111 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2114 # The aliases save the names the user supplied, while $host etc.
2115 # will get canonicalized.
2116 test -n "$target_alias" &&
2117 test "$program_prefix$program_suffix$program_transform_name" = \
2119 program_prefix=${target_alias}-
2120 am__api_version='1.10'
2122 # Find a good install program. We prefer a C program (faster),
2123 # so one script is as good as another. But avoid the broken or
2124 # incompatible versions:
2125 # SysV /etc/install, /usr/sbin/install
2126 # SunOS /usr/etc/install
2127 # IRIX /sbin/install
2129 # AmigaOS /C/install, which installs bootblocks on floppy discs
2130 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2131 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2132 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2133 # OS/2's system install, which has a completely different semantic
2134 # ./install, which can be erroneously created by make from ./install.sh.
2135 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2136 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2137 if test -z "$INSTALL"; then
2138 if test "${ac_cv_path_install+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 test -z "$as_dir" && as_dir=.
2146 # Account for people who put trailing slashes in PATH elements.
2148 ./ | .// | /cC/* | \
2149 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2150 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2153 # OSF1 and SCO ODT 3.0 have their own names for install.
2154 # Don't use installbsd from OSF since it installs stuff as root
2156 for ac_prog in ginstall scoinst install; do
2157 for ac_exec_ext in '' $ac_executable_extensions; do
2158 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2159 if test $ac_prog = install &&
2160 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2161 # AIX install. It has an incompatible calling convention.
2163 elif test $ac_prog = install &&
2164 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165 # program-specific install script used by HP pwplus--don't use.
2168 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2181 if test "${ac_cv_path_install+set}" = set; then
2182 INSTALL=$ac_cv_path_install
2184 # As a last resort, use the slow shell script. Don't cache a
2185 # value for INSTALL within a source directory, because that will
2186 # break other packages using the cache if that directory is
2187 # removed, or if the value is a relative name.
2188 INSTALL=$ac_install_sh
2191 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2192 echo "${ECHO_T}$INSTALL" >&6; }
2194 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2195 # It thinks the first close brace ends the variable substitution.
2196 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2198 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2200 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2202 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2203 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2206 echo timestamp > conftest.file
2207 # Do `set' in a subshell so we don't clobber the current shell's
2208 # arguments. Must try -L first in case configure is actually a
2209 # symlink; some systems play weird games with the mod time of symlinks
2210 # (eg FreeBSD returns the mod time of the symlink's containing
2213 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2214 if test "$*" = "X"; then
2216 set X `ls -t $srcdir/configure conftest.file`
2219 if test "$*" != "X $srcdir/configure conftest.file" \
2220 && test "$*" != "X conftest.file $srcdir/configure"; then
2222 # If neither matched, then we have a broken ls. This can happen
2223 # if, for instance, CONFIG_SHELL is bash and it inherits a
2224 # broken ls alias from the environment. This has actually
2225 # happened. Such a system could not be considered "sane".
2226 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2227 alias in your environment" >&5
2228 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2229 alias in your environment" >&2;}
2230 { (exit 1); exit 1; }; }
2233 test "$2" = conftest.file
2239 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2240 Check your system clock" >&5
2241 echo "$as_me: error: newly created file is older than distributed files!
2242 Check your system clock" >&2;}
2243 { (exit 1); exit 1; }; }
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2247 test "$program_prefix" != NONE &&
2248 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2249 # Use a double $ so make ignores it.
2250 test "$program_suffix" != NONE &&
2251 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2252 # Double any \ or $. echo might interpret backslashes.
2253 # By default was `s,x,x', remove it if useless.
2254 cat <<\_ACEOF >conftest.sed
2255 s/[\\$]/&&/g;s/;s,x,x,$//
2257 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2260 # expand $ac_aux_dir to an absolute path
2261 am_aux_dir=`cd $ac_aux_dir && pwd`
2263 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2264 # Use eval to expand $SHELL
2265 if eval "$MISSING --run true"; then
2266 am_missing_run="$MISSING --run "
2269 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2270 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2273 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2274 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2275 if test -z "$MKDIR_P"; then
2276 if test "${ac_cv_path_mkdir+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2283 test -z "$as_dir" && as_dir=.
2284 for ac_prog in mkdir gmkdir; do
2285 for ac_exec_ext in '' $ac_executable_extensions; do
2286 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2287 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2288 'mkdir (GNU coreutils) '* | \
2289 'mkdir (coreutils) '* | \
2290 'mkdir (fileutils) '4.1*)
2291 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2301 if test "${ac_cv_path_mkdir+set}" = set; then
2302 MKDIR_P="$ac_cv_path_mkdir -p"
2304 # As a last resort, use the slow shell script. Don't cache a
2305 # value for MKDIR_P within a source directory, because that will
2306 # break other packages using the cache if that directory is
2307 # removed, or if the value is a relative name.
2308 test -d ./--version && rmdir ./--version
2309 MKDIR_P="$ac_install_sh -d"
2312 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2313 echo "${ECHO_T}$MKDIR_P" >&6; }
2317 [\\/$]* | ?:[\\/]*) ;;
2318 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2321 for ac_prog in gawk mawk nawk awk
2323 # Extract the first word of "$ac_prog", so it can be a program name with args.
2324 set dummy $ac_prog; ac_word=$2
2325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2327 if test "${ac_cv_prog_AWK+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 if test -n "$AWK"; then
2331 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2340 ac_cv_prog_AWK="$ac_prog"
2341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2351 if test -n "$AWK"; then
2352 { echo "$as_me:$LINENO: result: $AWK" >&5
2353 echo "${ECHO_T}$AWK" >&6; }
2355 { echo "$as_me:$LINENO: result: no" >&5
2356 echo "${ECHO_T}no" >&6; }
2360 test -n "$AWK" && break
2363 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2364 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2365 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2366 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 cat >conftest.make <<\_ACEOF
2372 @echo '@@@%%%=$(MAKE)=@@@%%%'
2374 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2375 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2377 eval ac_cv_prog_make_${ac_make}_set=yes;;
2379 eval ac_cv_prog_make_${ac_make}_set=no;;
2383 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2384 { echo "$as_me:$LINENO: result: yes" >&5
2385 echo "${ECHO_T}yes" >&6; }
2388 { echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6; }
2390 SET_MAKE="MAKE=${MAKE-make}"
2393 rm -rf .tst 2>/dev/null
2394 mkdir .tst 2>/dev/null
2395 if test -d .tst; then
2400 rmdir .tst 2>/dev/null
2402 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2403 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2404 # is not polluted with repeated "-I."
2405 am__isrc=' -I$(srcdir)'
2406 # test to see if srcdir already configured
2407 if test -f $srcdir/config.status; then
2408 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2409 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2410 { (exit 1); exit 1; }; }
2414 # test whether we have cygpath
2415 if test -z "$CYGPATH_W"; then
2416 if (cygpath --version) >/dev/null 2>/dev/null; then
2417 CYGPATH_W='cygpath -w'
2424 # Define the identity of the package.
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE "$PACKAGE"
2434 cat >>confdefs.h <<_ACEOF
2435 #define VERSION "$VERSION"
2438 # Some tools Automake needs.
2440 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2443 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2446 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2449 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2452 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2454 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2456 # Installed binaries are usually stripped using `strip' when the user
2457 # run `make install-strip'. However `strip' might not be the right
2458 # tool to use in cross-compilation environments, therefore Automake
2459 # will honor the `STRIP' environment variable to overrule this program.
2460 if test "$cross_compiling" != no; then
2461 if test -n "$ac_tool_prefix"; then
2462 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2463 set dummy ${ac_tool_prefix}strip; ac_word=$2
2464 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2466 if test "${ac_cv_prog_STRIP+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2469 if test -n "$STRIP"; then
2470 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2479 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 STRIP=$ac_cv_prog_STRIP
2490 if test -n "$STRIP"; then
2491 { echo "$as_me:$LINENO: result: $STRIP" >&5
2492 echo "${ECHO_T}$STRIP" >&6; }
2494 { echo "$as_me:$LINENO: result: no" >&5
2495 echo "${ECHO_T}no" >&6; }
2500 if test -z "$ac_cv_prog_STRIP"; then
2502 # Extract the first word of "strip", so it can be a program name with args.
2503 set dummy strip; ac_word=$2
2504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2506 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2507 echo $ECHO_N "(cached) $ECHO_C" >&6
2509 if test -n "$ac_ct_STRIP"; then
2510 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 test -z "$as_dir" && as_dir=.
2517 for ac_exec_ext in '' $ac_executable_extensions; do
2518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2519 ac_cv_prog_ac_ct_STRIP="strip"
2520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2529 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2530 if test -n "$ac_ct_STRIP"; then
2531 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2532 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2534 { echo "$as_me:$LINENO: result: no" >&5
2535 echo "${ECHO_T}no" >&6; }
2538 if test "x$ac_ct_STRIP" = x; then
2541 case $cross_compiling:$ac_tool_warned in
2543 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2544 whose name does not start with the host triplet. If you think this
2545 configuration is useful to you, please write to autoconf@gnu.org." >&5
2546 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2547 whose name does not start with the host triplet. If you think this
2548 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2549 ac_tool_warned=yes ;;
2554 STRIP="$ac_cv_prog_STRIP"
2558 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2560 # We need awk for the "check" target. The system "awk" is bad on
2562 # Always define AMTAR for backward compatibility.
2564 AMTAR=${AMTAR-"${am_missing_run}tar"}
2566 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2572 ac_config_headers="$ac_config_headers include/config.h"
2576 # Checks for programs.
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582 if test -n "$ac_tool_prefix"; then
2583 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_CC+set}" = set; then
2588 echo $ECHO_N "(cached) $ECHO_C" >&6
2590 if test -n "$CC"; then
2591 ac_cv_prog_CC="$CC" # Let the user override the test.
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597 test -z "$as_dir" && as_dir=.
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 if test -n "$CC"; then
2612 { echo "$as_me:$LINENO: result: $CC" >&5
2613 echo "${ECHO_T}$CC" >&6; }
2615 { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2621 if test -z "$ac_cv_prog_CC"; then
2623 # Extract the first word of "gcc", so it can be a program name with args.
2624 set dummy gcc; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2630 if test -n "$ac_ct_CC"; then
2631 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_ac_ct_CC="gcc"
2641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2651 if test -n "$ac_ct_CC"; then
2652 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2653 echo "${ECHO_T}$ac_ct_CC" >&6; }
2655 { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2659 if test "x$ac_ct_CC" = x; then
2662 case $cross_compiling:$ac_tool_warned in
2664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet. If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&5
2667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2668 whose name does not start with the host triplet. If you think this
2669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2670 ac_tool_warned=yes ;;
2678 if test -z "$CC"; then
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}cc; ac_word=$2
2682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_CC+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_CC="${ac_tool_prefix}cc"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 if test -n "$CC"; then
2709 { echo "$as_me:$LINENO: result: $CC" >&5
2710 echo "${ECHO_T}$CC" >&6; }
2712 { echo "$as_me:$LINENO: result: no" >&5
2713 echo "${ECHO_T}no" >&6; }
2719 if test -z "$CC"; then
2720 # Extract the first word of "cc", so it can be a program name with args.
2721 set dummy cc; ac_word=$2
2722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2724 if test "${ac_cv_prog_CC+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 if test -n "$CC"; then
2728 ac_cv_prog_CC="$CC" # Let the user override the test.
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2739 ac_prog_rejected=yes
2743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 if test $ac_prog_rejected = yes; then
2751 # We found a bogon in the path, so make sure we never use it.
2752 set dummy $ac_cv_prog_CC
2754 if test $# != 0; then
2755 # We chose a different compiler from the bogus one.
2756 # However, it has the same basename, so the bogon will be chosen
2757 # first if we set CC to just the basename; use the full file name.
2759 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2765 if test -n "$CC"; then
2766 { echo "$as_me:$LINENO: result: $CC" >&5
2767 echo "${ECHO_T}$CC" >&6; }
2769 { echo "$as_me:$LINENO: result: no" >&5
2770 echo "${ECHO_T}no" >&6; }
2775 if test -z "$CC"; then
2776 if test -n "$ac_tool_prefix"; then
2777 for ac_prog in cl.exe
2779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2781 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2783 if test "${ac_cv_prog_CC+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 if test -n "$CC"; then
2808 { echo "$as_me:$LINENO: result: $CC" >&5
2809 echo "${ECHO_T}$CC" >&6; }
2811 { echo "$as_me:$LINENO: result: no" >&5
2812 echo "${ECHO_T}no" >&6; }
2816 test -n "$CC" && break
2819 if test -z "$CC"; then
2821 for ac_prog in cl.exe
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2827 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2828 echo $ECHO_N "(cached) $ECHO_C" >&6
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2840 ac_cv_prog_ac_ct_CC="$ac_prog"
2841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851 if test -n "$ac_ct_CC"; then
2852 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2853 echo "${ECHO_T}$ac_ct_CC" >&6; }
2855 { echo "$as_me:$LINENO: result: no" >&5
2856 echo "${ECHO_T}no" >&6; }
2860 test -n "$ac_ct_CC" && break
2863 if test "x$ac_ct_CC" = x; then
2866 case $cross_compiling:$ac_tool_warned in
2868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2869 whose name does not start with the host triplet. If you think this
2870 configuration is useful to you, please write to autoconf@gnu.org." >&5
2871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2872 whose name does not start with the host triplet. If you think this
2873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2874 ac_tool_warned=yes ;;
2883 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2884 See \`config.log' for more details." >&5
2885 echo "$as_me: error: no acceptable C compiler found in \$PATH
2886 See \`config.log' for more details." >&2;}
2887 { (exit 1); exit 1; }; }
2889 # Provide some information about the compiler.
2890 echo "$as_me:$LINENO: checking for C compiler version" >&5
2891 ac_compiler=`set X $ac_compile; echo $2`
2892 { (ac_try="$ac_compiler --version >&5"
2894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2895 *) ac_try_echo=$ac_try;;
2897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2898 (eval "$ac_compiler --version >&5") 2>&5
2900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2901 (exit $ac_status); }
2902 { (ac_try="$ac_compiler -v >&5"
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compiler -v >&5") 2>&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }
2912 { (ac_try="$ac_compiler -V >&5"
2914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2915 *) ac_try_echo=$ac_try;;
2917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2918 (eval "$ac_compiler -V >&5") 2>&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); }
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2938 ac_clean_files_save=$ac_clean_files
2939 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2940 # Try to create an executable without -o first, disregard a.out.
2941 # It will help us diagnose broken compilers, and finding out an intuition
2943 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2944 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2945 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2947 # List of possible output files, starting from the most likely.
2948 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2949 # only as a last resort. b.out is created by i960 compilers.
2950 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2952 # The IRIX 6 linker writes into existing files which may not be
2953 # executable, retaining their permissions. Remove them first so a
2954 # subsequent execution test works.
2956 for ac_file in $ac_files
2959 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2960 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2965 if { (ac_try="$ac_link_default"
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_link_default") 2>&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; then
2975 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2976 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2977 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2978 # so that the user can short-circuit this test for compilers unknown to
2980 for ac_file in $ac_files ''
2982 test -f "$ac_file" || continue
2984 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2987 # We found the default executable, but exeext='' is most
2991 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2993 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2995 # We set ac_cv_exeext here because the later test for it is not
2996 # safe: cross compilers may not add the suffix if given an `-o'
2997 # argument, so we may need to know it at that point already.
2998 # Even if this section looks crufty: it has the advantage of
3005 test "$ac_cv_exeext" = no && ac_cv_exeext=
3011 { echo "$as_me:$LINENO: result: $ac_file" >&5
3012 echo "${ECHO_T}$ac_file" >&6; }
3013 if test -z "$ac_file"; then
3014 echo "$as_me: failed program was:" >&5
3015 sed 's/^/| /' conftest.$ac_ext >&5
3017 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3018 See \`config.log' for more details." >&5
3019 echo "$as_me: error: C compiler cannot create executables
3020 See \`config.log' for more details." >&2;}
3021 { (exit 77); exit 77; }; }
3024 ac_exeext=$ac_cv_exeext
3026 # Check that the compiler produces executables we can run. If not, either
3027 # the compiler is broken, or we cross compile.
3028 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3029 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3030 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3031 # If not cross compiling, check that we can run a simple program.
3032 if test "$cross_compiling" != yes; then
3033 if { ac_try='./$ac_file'
3034 { (case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3039 (eval "$ac_try") 2>&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3045 if test "$cross_compiling" = maybe; then
3048 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3049 If you meant to cross compile, use \`--host'.
3050 See \`config.log' for more details." >&5
3051 echo "$as_me: error: cannot run C compiled programs.
3052 If you meant to cross compile, use \`--host'.
3053 See \`config.log' for more details." >&2;}
3054 { (exit 1); exit 1; }; }
3058 { echo "$as_me:$LINENO: result: yes" >&5
3059 echo "${ECHO_T}yes" >&6; }
3061 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3062 ac_clean_files=$ac_clean_files_save
3063 # Check that the compiler produces executables we can run. If not, either
3064 # the compiler is broken, or we cross compile.
3065 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3066 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3067 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3068 echo "${ECHO_T}$cross_compiling" >&6; }
3070 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3071 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3072 if { (ac_try="$ac_link"
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_link") 2>&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; then
3082 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3083 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3084 # work properly (i.e., refer to `conftest.exe'), while it won't with
3086 for ac_file in conftest.exe conftest conftest.*; do
3087 test -f "$ac_file" || continue
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3090 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3096 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3097 See \`config.log' for more details." >&5
3098 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3099 See \`config.log' for more details." >&2;}
3100 { (exit 1); exit 1; }; }
3103 rm -f conftest$ac_cv_exeext
3104 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3105 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3107 rm -f conftest.$ac_ext
3108 EXEEXT=$ac_cv_exeext
3110 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3111 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3112 if test "${ac_cv_objext+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3115 cat >conftest.$ac_ext <<_ACEOF
3118 cat confdefs.h >>conftest.$ac_ext
3119 cat >>conftest.$ac_ext <<_ACEOF
3120 /* end confdefs.h. */
3130 rm -f conftest.o conftest.obj
3131 if { (ac_try="$ac_compile"
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); }; then
3141 for ac_file in conftest.o conftest.obj conftest.*; do
3142 test -f "$ac_file" || continue;
3144 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3145 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3150 echo "$as_me: failed program was:" >&5
3151 sed 's/^/| /' conftest.$ac_ext >&5
3153 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3154 See \`config.log' for more details." >&5
3155 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3156 See \`config.log' for more details." >&2;}
3157 { (exit 1); exit 1; }; }
3160 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3162 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3163 echo "${ECHO_T}$ac_cv_objext" >&6; }
3164 OBJEXT=$ac_cv_objext
3166 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3167 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3168 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 cat >conftest.$ac_ext <<_ACEOF
3174 cat confdefs.h >>conftest.$ac_ext
3175 cat >>conftest.$ac_ext <<_ACEOF
3176 /* end confdefs.h. */
3189 rm -f conftest.$ac_objext
3190 if { (ac_try="$ac_compile"
3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193 *) ac_try_echo=$ac_try;;
3195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3196 (eval "$ac_compile") 2>conftest.er1
3198 grep -v '^ *+' conftest.er1 >conftest.err
3200 cat conftest.err >&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); } && {
3203 test -z "$ac_c_werror_flag" ||
3204 test ! -s conftest.err
3205 } && test -s conftest.$ac_objext; then
3208 echo "$as_me: failed program was:" >&5
3209 sed 's/^/| /' conftest.$ac_ext >&5
3214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3215 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3218 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3219 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3220 GCC=`test $ac_compiler_gnu = yes && echo yes`
3221 ac_test_CFLAGS=${CFLAGS+set}
3222 ac_save_CFLAGS=$CFLAGS
3223 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3224 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3225 if test "${ac_cv_prog_cc_g+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 ac_save_c_werror_flag=$ac_c_werror_flag
3229 ac_c_werror_flag=yes
3232 cat >conftest.$ac_ext <<_ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h. */
3247 rm -f conftest.$ac_objext
3248 if { (ac_try="$ac_compile"
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_compile") 2>conftest.er1
3256 grep -v '^ *+' conftest.er1 >conftest.err
3258 cat conftest.err >&5
3259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260 (exit $ac_status); } && {
3261 test -z "$ac_c_werror_flag" ||
3262 test ! -s conftest.err
3263 } && test -s conftest.$ac_objext; then
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3270 cat >conftest.$ac_ext <<_ACEOF
3273 cat confdefs.h >>conftest.$ac_ext
3274 cat >>conftest.$ac_ext <<_ACEOF
3275 /* end confdefs.h. */
3285 rm -f conftest.$ac_objext
3286 if { (ac_try="$ac_compile"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_compile") 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } && {
3299 test -z "$ac_c_werror_flag" ||
3300 test ! -s conftest.err
3301 } && test -s conftest.$ac_objext; then
3304 echo "$as_me: failed program was:" >&5
3305 sed 's/^/| /' conftest.$ac_ext >&5
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3309 cat >conftest.$ac_ext <<_ACEOF
3312 cat confdefs.h >>conftest.$ac_ext
3313 cat >>conftest.$ac_ext <<_ACEOF
3314 /* end confdefs.h. */
3324 rm -f conftest.$ac_objext
3325 if { (ac_try="$ac_compile"
3327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3328 *) ac_try_echo=$ac_try;;
3330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3331 (eval "$ac_compile") 2>conftest.er1
3333 grep -v '^ *+' conftest.er1 >conftest.err
3335 cat conftest.err >&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); } && {
3338 test -z "$ac_c_werror_flag" ||
3339 test ! -s conftest.err
3340 } && test -s conftest.$ac_objext; then
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 ac_c_werror_flag=$ac_save_c_werror_flag
3358 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3359 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3360 if test "$ac_test_CFLAGS" = set; then
3361 CFLAGS=$ac_save_CFLAGS
3362 elif test $ac_cv_prog_cc_g = yes; then
3363 if test "$GCC" = yes; then
3369 if test "$GCC" = yes; then
3375 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3376 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3377 if test "${ac_cv_prog_cc_c89+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3380 ac_cv_prog_cc_c89=no
3382 cat >conftest.$ac_ext <<_ACEOF
3385 cat confdefs.h >>conftest.$ac_ext
3386 cat >>conftest.$ac_ext <<_ACEOF
3387 /* end confdefs.h. */
3390 #include <sys/types.h>
3391 #include <sys/stat.h>
3392 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3393 struct buf { int x; };
3394 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3395 static char *e (p, i)
3401 static char *f (char * (*g) (char **, int), char **p, ...)
3406 s = g (p, va_arg (v,int));
3411 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3412 function prototypes and stuff, but not '\xHH' hex character constants.
3413 These don't provoke an error unfortunately, instead are silently treated
3414 as 'x'. The following induces an error, until -std is added to get
3415 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3416 array size at least. It's necessary to write '\x00'==0 to get something
3417 that's true only with -std. */
3418 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3420 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3421 inside strings and character constants. */
3423 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3425 int test (int i, double x);
3426 struct s1 {int (*f) (int a);};
3427 struct s2 {int (*f) (double a);};
3428 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3434 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3439 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3440 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3442 CC="$ac_save_CC $ac_arg"
3443 rm -f conftest.$ac_objext
3444 if { (ac_try="$ac_compile"
3446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3447 *) ac_try_echo=$ac_try;;
3449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3450 (eval "$ac_compile") 2>conftest.er1
3452 grep -v '^ *+' conftest.er1 >conftest.err
3454 cat conftest.err >&5
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); } && {
3457 test -z "$ac_c_werror_flag" ||
3458 test ! -s conftest.err
3459 } && test -s conftest.$ac_objext; then
3460 ac_cv_prog_cc_c89=$ac_arg
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3468 rm -f core conftest.err conftest.$ac_objext
3469 test "x$ac_cv_prog_cc_c89" != "xno" && break
3471 rm -f conftest.$ac_ext
3476 case "x$ac_cv_prog_cc_c89" in
3478 { echo "$as_me:$LINENO: result: none needed" >&5
3479 echo "${ECHO_T}none needed" >&6; } ;;
3481 { echo "$as_me:$LINENO: result: unsupported" >&5
3482 echo "${ECHO_T}unsupported" >&6; } ;;
3484 CC="$CC $ac_cv_prog_cc_c89"
3485 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3486 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3491 ac_cpp='$CPP $CPPFLAGS'
3492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3495 DEPDIR="${am__leading_dot}deps"
3497 ac_config_commands="$ac_config_commands depfiles"
3500 am_make=${MAKE-make}
3501 cat > confinc << 'END'
3506 # If we don't find an include directive, just comment out the code.
3507 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3508 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3512 # First try GNU make style include.
3513 echo "include confinc" > confmf
3514 # We grep out `Entering directory' and `Leaving directory'
3515 # messages which can occur if `w' ends up in MAKEFLAGS.
3516 # In particular we don't look at `^make:' because GNU make might
3517 # be invoked under some other name (usually "gmake"), in which
3518 # case it prints its new name instead of `make'.
3519 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3524 # Now try BSD make style include.
3525 if test "$am__include" = "#"; then
3526 echo '.include "confinc"' > confmf
3527 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3528 am__include=.include
3535 { echo "$as_me:$LINENO: result: $_am_result" >&5
3536 echo "${ECHO_T}$_am_result" >&6; }
3537 rm -f confinc confmf
3539 # Check whether --enable-dependency-tracking was given.
3540 if test "${enable_dependency_tracking+set}" = set; then
3541 enableval=$enable_dependency_tracking;
3544 if test "x$enable_dependency_tracking" != xno; then
3545 am_depcomp="$ac_aux_dir/depcomp"
3548 if test "x$enable_dependency_tracking" != xno; then
3558 depcc="$CC" am_compiler_list=
3560 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3561 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3562 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3563 echo $ECHO_N "(cached) $ECHO_C" >&6
3565 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3566 # We make a subdir and do the tests there. Otherwise we can end up
3567 # making bogus files that we don't know about and never remove. For
3568 # instance it was reported that on HP-UX the gcc test will end up
3569 # making a dummy file named `D' -- because `-MD' means `put the output
3572 # Copy depcomp to subdir because otherwise we won't find it if we're
3573 # using a relative directory.
3574 cp "$am_depcomp" conftest.dir
3576 # We will build objects and dependencies in a subdirectory because
3577 # it helps to detect inapplicable dependency modes. For instance
3578 # both Tru64's cc and ICC support -MD to output dependencies as a
3579 # side effect of compilation, but ICC will put the dependencies in
3580 # the current directory while Tru64 will put them in the object
3584 am_cv_CC_dependencies_compiler_type=none
3585 if test "$am_compiler_list" = ""; then
3586 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3588 for depmode in $am_compiler_list; do
3589 # Setup a source with many dependencies, because some compilers
3590 # like to wrap large dependency lists on column 80 (with \), and
3591 # we should not choose a depcomp mode which is confused by this.
3593 # We need to recreate these files for each test, as the compiler may
3594 # overwrite some of them when testing with obscure command lines.
3595 # This happens at least with the AIX C compiler.
3597 for i in 1 2 3 4 5 6; do
3598 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3599 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3600 # Solaris 8's {/usr,}/bin/sh.
3601 touch sub/conftst$i.h
3603 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3607 # after this tag, mechanisms are not by side-effect, so they'll
3608 # only be used when explicitly requested
3609 if test "x$enable_dependency_tracking" = xyes; then
3617 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3618 # mode. It turns out that the SunPro C++ compiler does not properly
3619 # handle `-M -o', and we need to detect this.
3620 if depmode=$depmode \
3621 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3622 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3623 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3624 >/dev/null 2>conftest.err &&
3625 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3626 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3627 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3628 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3629 # icc doesn't choke on unknown options, it will just issue warnings
3630 # or remarks (even with -Werror). So we grep stderr for any message
3631 # that says an option was ignored or not supported.
3632 # When given -MP, icc 7.0 and 7.1 complain thusly:
3633 # icc: Command line warning: ignoring option '-M'; no argument required
3634 # The diagnosis changed in icc 8.0:
3635 # icc: Command line remark: option '-MP' not supported
3636 if (grep 'ignoring option' conftest.err ||
3637 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3638 am_cv_CC_dependencies_compiler_type=$depmode
3647 am_cv_CC_dependencies_compiler_type=none
3651 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3652 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3653 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3656 test "x$enable_dependency_tracking" != xno \
3657 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3659 am__fastdepCC_FALSE='#'
3661 am__fastdepCC_TRUE='#'
3662 am__fastdepCC_FALSE=
3666 # Find a good install program. We prefer a C program (faster),
3667 # so one script is as good as another. But avoid the broken or
3668 # incompatible versions:
3669 # SysV /etc/install, /usr/sbin/install
3670 # SunOS /usr/etc/install
3671 # IRIX /sbin/install
3673 # AmigaOS /C/install, which installs bootblocks on floppy discs
3674 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3675 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3676 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3677 # OS/2's system install, which has a completely different semantic
3678 # ./install, which can be erroneously created by make from ./install.sh.
3679 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3680 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3681 if test -z "$INSTALL"; then
3682 if test "${ac_cv_path_install+set}" = set; then
3683 echo $ECHO_N "(cached) $ECHO_C" >&6
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3689 test -z "$as_dir" && as_dir=.
3690 # Account for people who put trailing slashes in PATH elements.
3692 ./ | .// | /cC/* | \
3693 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3694 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3697 # OSF1 and SCO ODT 3.0 have their own names for install.
3698 # Don't use installbsd from OSF since it installs stuff as root
3700 for ac_prog in ginstall scoinst install; do
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3703 if test $ac_prog = install &&
3704 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3705 # AIX install. It has an incompatible calling convention.
3707 elif test $ac_prog = install &&
3708 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3709 # program-specific install script used by HP pwplus--don't use.
3712 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3725 if test "${ac_cv_path_install+set}" = set; then
3726 INSTALL=$ac_cv_path_install
3728 # As a last resort, use the slow shell script. Don't cache a
3729 # value for INSTALL within a source directory, because that will
3730 # break other packages using the cache if that directory is
3731 # removed, or if the value is a relative name.
3732 INSTALL=$ac_install_sh
3735 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3736 echo "${ECHO_T}$INSTALL" >&6; }
3738 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3739 # It thinks the first close brace ends the variable substitution.
3740 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3742 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3744 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3748 # Check whether --enable-shared was given.
3749 if test "${enable_shared+set}" = set; then
3750 enableval=$enable_shared; p=${PACKAGE-default}
3752 yes) enable_shared=yes ;;
3753 no) enable_shared=no ;;
3756 # Look at the argument we got. We use all the common list separators.
3757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3758 for pkg in $enableval; do
3760 if test "X$pkg" = "X$p"; then
3772 # Check whether --enable-static was given.
3773 if test "${enable_static+set}" = set; then
3774 enableval=$enable_static; p=${PACKAGE-default}
3776 yes) enable_static=yes ;;
3777 no) enable_static=no ;;
3780 # Look at the argument we got. We use all the common list separators.
3781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3782 for pkg in $enableval; do
3784 if test "X$pkg" = "X$p"; then
3796 # Check whether --enable-fast-install was given.
3797 if test "${enable_fast_install+set}" = set; then
3798 enableval=$enable_fast_install; p=${PACKAGE-default}
3800 yes) enable_fast_install=yes ;;
3801 no) enable_fast_install=no ;;
3803 enable_fast_install=no
3804 # Look at the argument we got. We use all the common list separators.
3805 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3806 for pkg in $enableval; do
3808 if test "X$pkg" = "X$p"; then
3809 enable_fast_install=yes
3816 enable_fast_install=yes
3820 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3821 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3822 if test "${lt_cv_path_SED+set}" = set; then
3823 echo $ECHO_N "(cached) $ECHO_C" >&6
3825 # Loop through the user's path and test for sed and gsed.
3826 # Then use that list of sed's as ones to test for truncation.
3827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3831 test -z "$as_dir" && as_dir=.
3832 for lt_ac_prog in sed gsed; do
3833 for ac_exec_ext in '' $ac_executable_extensions; do
3834 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3835 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3842 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3843 # along with /bin/sed that truncates output.
3844 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3845 test ! -f $lt_ac_sed && continue
3846 cat /dev/null > conftest.in
3848 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3849 # Check for GNU sed and select it if it is found.
3850 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3851 lt_cv_path_SED=$lt_ac_sed
3855 cat conftest.in conftest.in >conftest.tmp
3856 mv conftest.tmp conftest.in
3857 cp conftest.in conftest.nl
3859 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3860 cmp -s conftest.out conftest.nl || break
3861 # 10000 chars as input seems more than enough
3862 test $lt_ac_count -gt 10 && break
3863 lt_ac_count=`expr $lt_ac_count + 1`
3864 if test $lt_ac_count -gt $lt_ac_max; then
3865 lt_ac_max=$lt_ac_count
3866 lt_cv_path_SED=$lt_ac_sed
3874 { echo "$as_me:$LINENO: result: $SED" >&5
3875 echo "${ECHO_T}$SED" >&6; }
3877 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3878 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3879 if test "${ac_cv_path_GREP+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3882 # Extract the first word of "grep ggrep" to use in msg output
3883 if test -z "$GREP"; then
3884 set dummy grep ggrep; ac_prog_name=$2
3885 if test "${ac_cv_path_GREP+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 ac_path_GREP_found=false
3889 # Loop through the user's path and test for each of PROGNAME-LIST
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3894 test -z "$as_dir" && as_dir=.
3895 for ac_prog in grep ggrep; do
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3898 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3899 # Check for GNU ac_path_GREP and select it if it is found.
3900 # Check for GNU $ac_path_GREP
3901 case `"$ac_path_GREP" --version 2>&1` in
3903 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3906 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3909 cat "conftest.in" "conftest.in" >"conftest.tmp"
3910 mv "conftest.tmp" "conftest.in"
3911 cp "conftest.in" "conftest.nl"
3912 echo 'GREP' >> "conftest.nl"
3913 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3914 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3915 ac_count=`expr $ac_count + 1`
3916 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3917 # Best one so far, save it but keep looking for a better one
3918 ac_cv_path_GREP="$ac_path_GREP"
3919 ac_path_GREP_max=$ac_count
3921 # 10*(2^10) chars as input seems more than enough
3922 test $ac_count -gt 10 && break
3924 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3928 $ac_path_GREP_found && break 3
3938 GREP="$ac_cv_path_GREP"
3939 if test -z "$GREP"; then
3940 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3941 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3942 { (exit 1); exit 1; }; }
3946 ac_cv_path_GREP=$GREP
3951 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3952 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3953 GREP="$ac_cv_path_GREP"
3956 { echo "$as_me:$LINENO: checking for egrep" >&5
3957 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3958 if test "${ac_cv_path_EGREP+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3961 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3962 then ac_cv_path_EGREP="$GREP -E"
3964 # Extract the first word of "egrep" to use in msg output
3965 if test -z "$EGREP"; then
3966 set dummy egrep; ac_prog_name=$2
3967 if test "${ac_cv_path_EGREP+set}" = set; then
3968 echo $ECHO_N "(cached) $ECHO_C" >&6
3970 ac_path_EGREP_found=false
3971 # Loop through the user's path and test for each of PROGNAME-LIST
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976 test -z "$as_dir" && as_dir=.
3977 for ac_prog in egrep; do
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3980 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3981 # Check for GNU ac_path_EGREP and select it if it is found.
3982 # Check for GNU $ac_path_EGREP
3983 case `"$ac_path_EGREP" --version 2>&1` in
3985 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3988 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991 cat "conftest.in" "conftest.in" >"conftest.tmp"
3992 mv "conftest.tmp" "conftest.in"
3993 cp "conftest.in" "conftest.nl"
3994 echo 'EGREP' >> "conftest.nl"
3995 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997 ac_count=`expr $ac_count + 1`
3998 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3999 # Best one so far, save it but keep looking for a better one
4000 ac_cv_path_EGREP="$ac_path_EGREP"
4001 ac_path_EGREP_max=$ac_count
4003 # 10*(2^10) chars as input seems more than enough
4004 test $ac_count -gt 10 && break
4006 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010 $ac_path_EGREP_found && break 3
4020 EGREP="$ac_cv_path_EGREP"
4021 if test -z "$EGREP"; then
4022 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024 { (exit 1); exit 1; }; }
4028 ac_cv_path_EGREP=$EGREP
4034 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4035 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4036 EGREP="$ac_cv_path_EGREP"
4040 # Check whether --with-gnu-ld was given.
4041 if test "${with_gnu_ld+set}" = set; then
4042 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4048 if test "$GCC" = yes; then
4049 # Check if gcc -print-prog-name=ld gives a path.
4050 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4051 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4054 # gcc leaves a trailing carriage return which upsets mingw
4055 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4057 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4060 # Accept absolute paths.
4062 re_direlt='/[^/][^/]*/\.\./'
4063 # Canonicalize the pathname of ld
4064 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4065 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4066 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4068 test -z "$LD" && LD="$ac_prog"
4071 # If it fails, then pretend we aren't using GCC.
4075 # If it is relative, then search for the first ld in PATH.
4079 elif test "$with_gnu_ld" = yes; then
4080 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4081 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4083 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4084 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4086 if test "${lt_cv_path_LD+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 if test -z "$LD"; then
4090 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4091 for ac_dir in $PATH; do
4093 test -z "$ac_dir" && ac_dir=.
4094 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4095 lt_cv_path_LD="$ac_dir/$ac_prog"
4096 # Check to see if the program is GNU ld. I'd rather use --version,
4097 # but apparently some variants of GNU ld only accept -v.
4098 # Break only if it was the GNU/non-GNU ld that we prefer.
4099 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4100 *GNU* | *'with BFD'*)
4101 test "$with_gnu_ld" != no && break
4104 test "$with_gnu_ld" != yes && break
4111 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4116 if test -n "$LD"; then
4117 { echo "$as_me:$LINENO: result: $LD" >&5
4118 echo "${ECHO_T}$LD" >&6; }
4120 { echo "$as_me:$LINENO: result: no" >&5
4121 echo "${ECHO_T}no" >&6; }
4123 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4124 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4125 { (exit 1); exit 1; }; }
4126 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4127 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4128 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4132 case `$LD -v 2>&1 </dev/null` in
4133 *GNU* | *'with BFD'*)
4134 lt_cv_prog_gnu_ld=yes
4137 lt_cv_prog_gnu_ld=no
4141 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4142 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4143 with_gnu_ld=$lt_cv_prog_gnu_ld
4146 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4147 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4148 if test "${lt_cv_ld_reload_flag+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 lt_cv_ld_reload_flag='-r'
4153 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4154 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4155 reload_flag=$lt_cv_ld_reload_flag
4156 case $reload_flag in
4158 *) reload_flag=" $reload_flag" ;;
4160 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4163 if test "$GCC" = yes; then
4164 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4166 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4171 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4172 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4173 if test "${lt_cv_path_NM+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4176 if test -n "$NM"; then
4177 # Let the user override the test.
4180 lt_nm_to_check="${ac_tool_prefix}nm"
4181 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4182 lt_nm_to_check="$lt_nm_to_check nm"
4184 for lt_tmp_nm in $lt_nm_to_check; do
4185 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4186 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4188 test -z "$ac_dir" && ac_dir=.
4189 tmp_nm="$ac_dir/$lt_tmp_nm"
4190 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4191 # Check to see if the nm accepts a BSD-compat flag.
4192 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4193 # nm: unknown option "B" ignored
4194 # Tru64's nm complains that /dev/null is an invalid object file
4195 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4196 */dev/null* | *'Invalid file or object type'*)
4197 lt_cv_path_NM="$tmp_nm -B"
4201 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4203 lt_cv_path_NM="$tmp_nm -p"
4207 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4208 continue # so that we can try to find one that supports BSD flags
4217 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4220 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4221 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4224 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4225 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4227 if test "$LN_S" = "ln -s"; then
4228 { echo "$as_me:$LINENO: result: yes" >&5
4229 echo "${ECHO_T}yes" >&6; }
4231 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4232 echo "${ECHO_T}no, using $LN_S" >&6; }
4235 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4236 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4237 if test "${lt_cv_deplibs_check_method+set}" = set; then
4238 echo $ECHO_N "(cached) $ECHO_C" >&6
4240 lt_cv_file_magic_cmd='$MAGIC_CMD'
4241 lt_cv_file_magic_test_file=
4242 lt_cv_deplibs_check_method='unknown'
4243 # Need to set the preceding variable on all platforms that support
4244 # interlibrary dependencies.
4245 # 'none' -- dependencies not supported.
4246 # `unknown' -- same as none, but documents that we really don't know.
4247 # 'pass_all' -- all dependencies passed with no checks.
4248 # 'test_compile' -- check by making test program.
4249 # 'file_magic [[regex]]' -- check by looking for files in library path
4250 # which responds to the $file_magic_cmd with a given extended regex.
4251 # If you have `file' or equivalent on your system and you're not sure
4252 # whether `pass_all' will *always* work, you probably want this one.
4256 lt_cv_deplibs_check_method=pass_all
4260 lt_cv_deplibs_check_method=pass_all
4264 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4265 lt_cv_file_magic_cmd='/usr/bin/file -L'
4266 lt_cv_file_magic_test_file=/shlib/libc.so
4270 # func_win32_libid is a shell function defined in ltmain.sh
4271 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4272 lt_cv_file_magic_cmd='func_win32_libid'
4276 # Base MSYS/MinGW do not provide the 'file' command needed by
4277 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4278 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4279 lt_cv_file_magic_cmd='$OBJDUMP -f'
4282 darwin* | rhapsody*)
4283 lt_cv_deplibs_check_method=pass_all
4286 freebsd* | dragonfly*)
4287 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4290 # Not sure whether the presence of OpenBSD here was a mistake.
4291 # Let's accept both of them until this is cleared up.
4292 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4293 lt_cv_file_magic_cmd=/usr/bin/file
4294 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4298 lt_cv_deplibs_check_method=pass_all
4303 lt_cv_deplibs_check_method=pass_all
4306 hpux10.20* | hpux11*)
4307 lt_cv_file_magic_cmd=/usr/bin/file
4310 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4311 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4314 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]'
4315 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4318 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4319 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4325 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4329 irix5* | irix6* | nonstopux*)
4331 *-32|*"-32 ") libmagic=32-bit;;
4332 *-n32|*"-n32 ") libmagic=N32;;
4333 *-64|*"-64 ") libmagic=64-bit;;
4334 *) libmagic=never-match;;
4336 lt_cv_deplibs_check_method=pass_all
4339 # This must be Linux ELF.
4340 linux* | k*bsd*-gnu)
4341 lt_cv_deplibs_check_method=pass_all
4344 netbsd* | netbsdelf*-gnu)
4345 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4346 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4348 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4353 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4354 lt_cv_file_magic_cmd=/usr/bin/file
4355 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4359 lt_cv_deplibs_check_method=unknown
4363 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4364 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4366 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4370 osf3* | osf4* | osf5*)
4371 lt_cv_deplibs_check_method=pass_all
4375 lt_cv_deplibs_check_method=pass_all
4379 case $host_vendor in
4381 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]'
4382 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4385 lt_cv_deplibs_check_method=pass_all
4388 lt_cv_file_magic_cmd='/bin/file'
4389 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4392 lt_cv_file_magic_cmd='/bin/file'
4393 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4394 lt_cv_file_magic_test_file=/lib/libc.so
4397 lt_cv_deplibs_check_method=pass_all
4400 lt_cv_deplibs_check_method=pass_all
4405 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4406 lt_cv_deplibs_check_method=pass_all
4411 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4412 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4413 file_magic_cmd=$lt_cv_file_magic_cmd
4414 deplibs_check_method=$lt_cv_deplibs_check_method
4415 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4420 # If no C compiler was specified, use CC.
4423 # If no C compiler flags were specified, use CFLAGS.
4424 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4426 # Allow CC to be a program name with arguments.
4430 # Check whether --enable-libtool-lock was given.
4431 if test "${enable_libtool_lock+set}" = set; then
4432 enableval=$enable_libtool_lock;
4435 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4437 # Some flags need to be propagated to the compiler or linker for good
4441 # Find out which ABI we are using.
4442 echo 'int i;' > conftest.$ac_ext
4443 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4444 (eval $ac_compile) 2>&5
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; then
4448 case `/usr/bin/file conftest.$ac_objext` in
4460 # Find out which ABI we are using.
4461 echo '#line 4461 "configure"' > conftest.$ac_ext
4462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4463 (eval $ac_compile) 2>&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); }; then
4467 if test "$lt_cv_prog_gnu_ld" = yes; then
4468 case `/usr/bin/file conftest.$ac_objext` in
4470 LD="${LD-ld} -melf32bsmip"
4473 LD="${LD-ld} -melf32bmipn32"
4476 LD="${LD-ld} -melf64bmip"
4480 case `/usr/bin/file conftest.$ac_objext` in
4496 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4497 # Find out which ABI we are using.
4498 echo 'int i;' > conftest.$ac_ext
4499 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4500 (eval $ac_compile) 2>&5
4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4503 (exit $ac_status); }; then
4504 case `/usr/bin/file conftest.o` in
4508 LD="${LD-ld} -m elf_i386"
4510 ppc64-*linux*|powerpc64-*linux*)
4511 LD="${LD-ld} -m elf32ppclinux"
4514 LD="${LD-ld} -m elf_s390"
4517 LD="${LD-ld} -m elf32_sparc"
4524 LD="${LD-ld} -m elf_x86_64"
4526 ppc*-*linux*|powerpc*-*linux*)
4527 LD="${LD-ld} -m elf64ppc"
4530 LD="${LD-ld} -m elf64_s390"
4533 LD="${LD-ld} -m elf64_sparc"
4543 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4544 SAVE_CFLAGS="$CFLAGS"
4545 CFLAGS="$CFLAGS -belf"
4546 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4547 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4548 if test "${lt_cv_cc_needs_belf+set}" = set; then
4549 echo $ECHO_N "(cached) $ECHO_C" >&6
4552 ac_cpp='$CPP $CPPFLAGS'
4553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4557 cat >conftest.$ac_ext <<_ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4572 rm -f conftest.$ac_objext conftest$ac_exeext
4573 if { (ac_try="$ac_link"
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_link") 2>conftest.er1
4581 grep -v '^ *+' conftest.er1 >conftest.err
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } && {
4586 test -z "$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4588 } && test -s conftest$ac_exeext &&
4589 $as_test_x conftest$ac_exeext; then
4590 lt_cv_cc_needs_belf=yes
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4595 lt_cv_cc_needs_belf=no
4598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4599 conftest$ac_exeext conftest.$ac_ext
4601 ac_cpp='$CPP $CPPFLAGS'
4602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4607 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4608 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4609 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4610 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4611 CFLAGS="$SAVE_CFLAGS"
4615 # Find out which ABI we are using.
4616 echo 'int i;' > conftest.$ac_ext
4617 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4618 (eval $ac_compile) 2>&5
4620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621 (exit $ac_status); }; then
4622 case `/usr/bin/file conftest.o` in
4624 case $lt_cv_prog_gnu_ld in
4625 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4626 *) LD="${LD-ld} -64" ;;
4637 need_locks="$enable_libtool_lock"
4641 ac_cpp='$CPP $CPPFLAGS'
4642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4645 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4646 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4647 # On Suns, sometimes $CPP names a directory.
4648 if test -n "$CPP" && test -d "$CPP"; then
4651 if test -z "$CPP"; then
4652 if test "${ac_cv_prog_CPP+set}" = set; then
4653 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 # Double quotes because CPP needs to be expanded
4656 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4659 for ac_c_preproc_warn_flag in '' yes
4661 # Use a header file that comes with gcc, so configuring glibc
4662 # with a fresh cross-compiler works.
4663 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4664 # <limits.h> exists even on freestanding compilers.
4665 # On the NeXT, cc -E runs the code through the compiler's parser,
4666 # not just through cpp. "Syntax error" is here to catch this case.
4667 cat >conftest.$ac_ext <<_ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h. */
4674 # include <limits.h>
4676 # include <assert.h>
4680 if { (ac_try="$ac_cpp conftest.$ac_ext"
4682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4683 *) ac_try_echo=$ac_try;;
4685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4688 grep -v '^ *+' conftest.er1 >conftest.err
4690 cat conftest.err >&5
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); } >/dev/null && {
4693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4694 test ! -s conftest.err
4698 echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4701 # Broken: fails on valid input.
4705 rm -f conftest.err conftest.$ac_ext
4707 # OK, works on sane cases. Now check whether nonexistent headers
4708 # can be detected and how.
4709 cat >conftest.$ac_ext <<_ACEOF
4712 cat confdefs.h >>conftest.$ac_ext
4713 cat >>conftest.$ac_ext <<_ACEOF
4714 /* end confdefs.h. */
4715 #include <ac_nonexistent.h>
4717 if { (ac_try="$ac_cpp conftest.$ac_ext"
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4725 grep -v '^ *+' conftest.er1 >conftest.err
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } >/dev/null && {
4730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4731 test ! -s conftest.err
4733 # Broken: success on invalid input.
4736 echo "$as_me: failed program was:" >&5
4737 sed 's/^/| /' conftest.$ac_ext >&5
4739 # Passes both tests.
4744 rm -f conftest.err conftest.$ac_ext
4747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4748 rm -f conftest.err conftest.$ac_ext
4749 if $ac_preproc_ok; then
4761 { echo "$as_me:$LINENO: result: $CPP" >&5
4762 echo "${ECHO_T}$CPP" >&6; }
4764 for ac_c_preproc_warn_flag in '' yes
4766 # Use a header file that comes with gcc, so configuring glibc
4767 # with a fresh cross-compiler works.
4768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4769 # <limits.h> exists even on freestanding compilers.
4770 # On the NeXT, cc -E runs the code through the compiler's parser,
4771 # not just through cpp. "Syntax error" is here to catch this case.
4772 cat >conftest.$ac_ext <<_ACEOF
4775 cat confdefs.h >>conftest.$ac_ext
4776 cat >>conftest.$ac_ext <<_ACEOF
4777 /* end confdefs.h. */
4779 # include <limits.h>
4781 # include <assert.h>
4785 if { (ac_try="$ac_cpp conftest.$ac_ext"
4787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788 *) ac_try_echo=$ac_try;;
4790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4791 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4793 grep -v '^ *+' conftest.er1 >conftest.err
4795 cat conftest.err >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); } >/dev/null && {
4798 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4799 test ! -s conftest.err
4803 echo "$as_me: failed program was:" >&5
4804 sed 's/^/| /' conftest.$ac_ext >&5
4806 # Broken: fails on valid input.
4810 rm -f conftest.err conftest.$ac_ext
4812 # OK, works on sane cases. Now check whether nonexistent headers
4813 # can be detected and how.
4814 cat >conftest.$ac_ext <<_ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4820 #include <ac_nonexistent.h>
4822 if { (ac_try="$ac_cpp conftest.$ac_ext"
4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4830 grep -v '^ *+' conftest.er1 >conftest.err
4832 cat conftest.err >&5
4833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4834 (exit $ac_status); } >/dev/null && {
4835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4836 test ! -s conftest.err
4838 # Broken: success on invalid input.
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4844 # Passes both tests.
4849 rm -f conftest.err conftest.$ac_ext
4852 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4853 rm -f conftest.err conftest.$ac_ext
4854 if $ac_preproc_ok; then
4857 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4858 See \`config.log' for more details." >&5
4859 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4860 See \`config.log' for more details." >&2;}
4861 { (exit 1); exit 1; }; }
4865 ac_cpp='$CPP $CPPFLAGS'
4866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4871 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4872 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4873 if test "${ac_cv_header_stdc+set}" = set; then
4874 echo $ECHO_N "(cached) $ECHO_C" >&6
4876 cat >conftest.$ac_ext <<_ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h. */
4895 rm -f conftest.$ac_objext
4896 if { (ac_try="$ac_compile"
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_compile") 2>conftest.er1
4904 grep -v '^ *+' conftest.er1 >conftest.err
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } && {
4909 test -z "$ac_c_werror_flag" ||
4910 test ! -s conftest.err
4911 } && test -s conftest.$ac_objext; then
4912 ac_cv_header_stdc=yes
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4917 ac_cv_header_stdc=no
4920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4922 if test $ac_cv_header_stdc = yes; then
4923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4924 cat >conftest.$ac_ext <<_ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4934 $EGREP "memchr" >/dev/null 2>&1; then
4937 ac_cv_header_stdc=no
4943 if test $ac_cv_header_stdc = yes; then
4944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4945 cat >conftest.$ac_ext <<_ACEOF
4948 cat confdefs.h >>conftest.$ac_ext
4949 cat >>conftest.$ac_ext <<_ACEOF
4950 /* end confdefs.h. */
4954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4955 $EGREP "free" >/dev/null 2>&1; then
4958 ac_cv_header_stdc=no
4964 if test $ac_cv_header_stdc = yes; then
4965 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4966 if test "$cross_compiling" = yes; then
4969 cat >conftest.$ac_ext <<_ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4977 #if ((' ' & 0x0FF) == 0x020)
4978 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4979 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4981 # define ISLOWER(c) \
4982 (('a' <= (c) && (c) <= 'i') \
4983 || ('j' <= (c) && (c) <= 'r') \
4984 || ('s' <= (c) && (c) <= 'z'))
4985 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4988 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4993 for (i = 0; i < 256; i++)
4994 if (XOR (islower (i), ISLOWER (i))
4995 || toupper (i) != TOUPPER (i))
5000 rm -f conftest$ac_exeext
5001 if { (ac_try="$ac_link"
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_link") 2>&5
5009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5011 { (case "(($ac_try" in
5012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5013 *) ac_try_echo=$ac_try;;
5015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5016 (eval "$ac_try") 2>&5
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; }; then
5022 echo "$as_me: program exited with status $ac_status" >&5
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5027 ac_cv_header_stdc=no
5029 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5035 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5036 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5037 if test $ac_cv_header_stdc = yes; then
5039 cat >>confdefs.h <<\_ACEOF
5040 #define STDC_HEADERS 1
5045 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5055 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5056 inttypes.h stdint.h unistd.h
5058 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5059 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5060 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 cat >conftest.$ac_ext <<_ACEOF
5067 cat confdefs.h >>conftest.$ac_ext
5068 cat >>conftest.$ac_ext <<_ACEOF
5069 /* end confdefs.h. */
5070 $ac_includes_default
5072 #include <$ac_header>
5074 rm -f conftest.$ac_objext
5075 if { (ac_try="$ac_compile"
5077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5078 *) ac_try_echo=$ac_try;;
5080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5081 (eval "$ac_compile") 2>conftest.er1
5083 grep -v '^ *+' conftest.er1 >conftest.err
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } && {
5088 test -z "$ac_c_werror_flag" ||
5089 test ! -s conftest.err
5090 } && test -s conftest.$ac_objext; then
5091 eval "$as_ac_Header=yes"
5093 echo "$as_me: failed program was:" >&5
5094 sed 's/^/| /' conftest.$ac_ext >&5
5096 eval "$as_ac_Header=no"
5099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101 ac_res=`eval echo '${'$as_ac_Header'}'`
5102 { echo "$as_me:$LINENO: result: $ac_res" >&5
5103 echo "${ECHO_T}$ac_res" >&6; }
5104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5105 cat >>confdefs.h <<_ACEOF
5106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5115 for ac_header in dlfcn.h
5117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 ac_res=`eval echo '${'$as_ac_Header'}'`
5125 { echo "$as_me:$LINENO: result: $ac_res" >&5
5126 echo "${ECHO_T}$ac_res" >&6; }
5128 # Is the header compilable?
5129 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5131 cat >conftest.$ac_ext <<_ACEOF
5134 cat confdefs.h >>conftest.$ac_ext
5135 cat >>conftest.$ac_ext <<_ACEOF
5136 /* end confdefs.h. */
5137 $ac_includes_default
5138 #include <$ac_header>
5140 rm -f conftest.$ac_objext
5141 if { (ac_try="$ac_compile"
5143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5144 *) ac_try_echo=$ac_try;;
5146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5147 (eval "$ac_compile") 2>conftest.er1
5149 grep -v '^ *+' conftest.er1 >conftest.err
5151 cat conftest.err >&5
5152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5153 (exit $ac_status); } && {
5154 test -z "$ac_c_werror_flag" ||
5155 test ! -s conftest.err
5156 } && test -s conftest.$ac_objext; then
5157 ac_header_compiler=yes
5159 echo "$as_me: failed program was:" >&5
5160 sed 's/^/| /' conftest.$ac_ext >&5
5162 ac_header_compiler=no
5165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5167 echo "${ECHO_T}$ac_header_compiler" >&6; }
5169 # Is the header present?
5170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5172 cat >conftest.$ac_ext <<_ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5178 #include <$ac_header>
5180 if { (ac_try="$ac_cpp conftest.$ac_ext"
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5188 grep -v '^ *+' conftest.er1 >conftest.err
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev/null && {
5193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5196 ac_header_preproc=yes
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5201 ac_header_preproc=no
5204 rm -f conftest.err conftest.$ac_ext
5205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5206 echo "${ECHO_T}$ac_header_preproc" >&6; }
5208 # So? What about this header?
5209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5215 ac_header_preproc=yes
5218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 eval "$as_ac_Header=\$ac_header_preproc"
5240 ac_res=`eval echo '${'$as_ac_Header'}'`
5241 { echo "$as_me:$LINENO: result: $ac_res" >&5
5242 echo "${ECHO_T}$ac_res" >&6; }
5245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5246 cat >>confdefs.h <<_ACEOF
5247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5255 ac_cpp='$CXXCPP $CPPFLAGS'
5256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5259 if test -z "$CXX"; then
5260 if test -n "$CCC"; then
5263 if test -n "$ac_tool_prefix"; then
5264 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5267 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5270 if test "${ac_cv_prog_CXX+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5273 if test -n "$CXX"; then
5274 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 test -z "$as_dir" && as_dir=.
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5283 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 if test -n "$CXX"; then
5295 { echo "$as_me:$LINENO: result: $CXX" >&5
5296 echo "${ECHO_T}$CXX" >&6; }
5298 { echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6; }
5303 test -n "$CXX" && break
5306 if test -z "$CXX"; then
5308 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5310 # Extract the first word of "$ac_prog", so it can be a program name with args.
5311 set dummy $ac_prog; ac_word=$2
5312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5314 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 if test -n "$ac_ct_CXX"; then
5318 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327 ac_cv_prog_ac_ct_CXX="$ac_prog"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5337 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5338 if test -n "$ac_ct_CXX"; then
5339 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5340 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5342 { echo "$as_me:$LINENO: result: no" >&5
5343 echo "${ECHO_T}no" >&6; }
5347 test -n "$ac_ct_CXX" && break
5350 if test "x$ac_ct_CXX" = x; then
5353 case $cross_compiling:$ac_tool_warned in
5355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5356 whose name does not start with the host triplet. If you think this
5357 configuration is useful to you, please write to autoconf@gnu.org." >&5
5358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5359 whose name does not start with the host triplet. If you think this
5360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5361 ac_tool_warned=yes ;;
5369 # Provide some information about the compiler.
5370 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5371 ac_compiler=`set X $ac_compile; echo $2`
5372 { (ac_try="$ac_compiler --version >&5"
5374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5375 *) ac_try_echo=$ac_try;;
5377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5378 (eval "$ac_compiler --version >&5") 2>&5
5380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381 (exit $ac_status); }
5382 { (ac_try="$ac_compiler -v >&5"
5384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5385 *) ac_try_echo=$ac_try;;
5387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5388 (eval "$ac_compiler -v >&5") 2>&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); }
5392 { (ac_try="$ac_compiler -V >&5"
5394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5395 *) ac_try_echo=$ac_try;;
5397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5398 (eval "$ac_compiler -V >&5") 2>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); }
5403 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5404 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5405 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5406 echo $ECHO_N "(cached) $ECHO_C" >&6
5408 cat >conftest.$ac_ext <<_ACEOF
5411 cat confdefs.h >>conftest.$ac_ext
5412 cat >>conftest.$ac_ext <<_ACEOF
5413 /* end confdefs.h. */
5426 rm -f conftest.$ac_objext
5427 if { (ac_try="$ac_compile"
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_compile") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1 >conftest.err
5437 cat conftest.err >&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } && {
5440 test -z "$ac_cxx_werror_flag" ||
5441 test ! -s conftest.err
5442 } && test -s conftest.$ac_objext; then
5445 echo "$as_me: failed program was:" >&5
5446 sed 's/^/| /' conftest.$ac_ext >&5
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5455 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5456 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5457 GXX=`test $ac_compiler_gnu = yes && echo yes`
5458 ac_test_CXXFLAGS=${CXXFLAGS+set}
5459 ac_save_CXXFLAGS=$CXXFLAGS
5460 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5461 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5462 if test "${ac_cv_prog_cxx_g+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5465 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5466 ac_cxx_werror_flag=yes
5469 cat >conftest.$ac_ext <<_ACEOF
5472 cat confdefs.h >>conftest.$ac_ext
5473 cat >>conftest.$ac_ext <<_ACEOF
5474 /* end confdefs.h. */
5484 rm -f conftest.$ac_objext
5485 if { (ac_try="$ac_compile"
5487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5488 *) ac_try_echo=$ac_try;;
5490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5491 (eval "$ac_compile") 2>conftest.er1
5493 grep -v '^ *+' conftest.er1 >conftest.err
5495 cat conftest.err >&5
5496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497 (exit $ac_status); } && {
5498 test -z "$ac_cxx_werror_flag" ||
5499 test ! -s conftest.err
5500 } && test -s conftest.$ac_objext; then
5501 ac_cv_prog_cxx_g=yes
5503 echo "$as_me: failed program was:" >&5
5504 sed 's/^/| /' conftest.$ac_ext >&5
5507 cat >conftest.$ac_ext <<_ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5522 rm -f conftest.$ac_objext
5523 if { (ac_try="$ac_compile"
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529 (eval "$ac_compile") 2>conftest.er1
5531 grep -v '^ *+' conftest.er1 >conftest.err
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } && {
5536 test -z "$ac_cxx_werror_flag" ||
5537 test ! -s conftest.err
5538 } && test -s conftest.$ac_objext; then
5541 echo "$as_me: failed program was:" >&5
5542 sed 's/^/| /' conftest.$ac_ext >&5
5544 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5561 rm -f conftest.$ac_objext
5562 if { (ac_try="$ac_compile"
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568 (eval "$ac_compile") 2>conftest.er1
5570 grep -v '^ *+' conftest.er1 >conftest.err
5572 cat conftest.err >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } && {
5575 test -z "$ac_cxx_werror_flag" ||
5576 test ! -s conftest.err
5577 } && test -s conftest.$ac_objext; then
5578 ac_cv_prog_cxx_g=yes
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5593 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5595 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5596 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5597 if test "$ac_test_CXXFLAGS" = set; then
5598 CXXFLAGS=$ac_save_CXXFLAGS
5599 elif test $ac_cv_prog_cxx_g = yes; then
5600 if test "$GXX" = yes; then
5606 if test "$GXX" = yes; then
5613 ac_cpp='$CXXCPP $CPPFLAGS'
5614 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5615 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5616 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5618 depcc="$CXX" am_compiler_list=
5620 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5621 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5622 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5623 echo $ECHO_N "(cached) $ECHO_C" >&6
5625 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5626 # We make a subdir and do the tests there. Otherwise we can end up
5627 # making bogus files that we don't know about and never remove. For
5628 # instance it was reported that on HP-UX the gcc test will end up
5629 # making a dummy file named `D' -- because `-MD' means `put the output
5632 # Copy depcomp to subdir because otherwise we won't find it if we're
5633 # using a relative directory.
5634 cp "$am_depcomp" conftest.dir
5636 # We will build objects and dependencies in a subdirectory because
5637 # it helps to detect inapplicable dependency modes. For instance
5638 # both Tru64's cc and ICC support -MD to output dependencies as a
5639 # side effect of compilation, but ICC will put the dependencies in
5640 # the current directory while Tru64 will put them in the object
5644 am_cv_CXX_dependencies_compiler_type=none
5645 if test "$am_compiler_list" = ""; then
5646 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5648 for depmode in $am_compiler_list; do
5649 # Setup a source with many dependencies, because some compilers
5650 # like to wrap large dependency lists on column 80 (with \), and
5651 # we should not choose a depcomp mode which is confused by this.
5653 # We need to recreate these files for each test, as the compiler may
5654 # overwrite some of them when testing with obscure command lines.
5655 # This happens at least with the AIX C compiler.
5657 for i in 1 2 3 4 5 6; do
5658 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5659 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5660 # Solaris 8's {/usr,}/bin/sh.
5661 touch sub/conftst$i.h
5663 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5667 # after this tag, mechanisms are not by side-effect, so they'll
5668 # only be used when explicitly requested
5669 if test "x$enable_dependency_tracking" = xyes; then
5677 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5678 # mode. It turns out that the SunPro C++ compiler does not properly
5679 # handle `-M -o', and we need to detect this.
5680 if depmode=$depmode \
5681 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5682 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5683 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5684 >/dev/null 2>conftest.err &&
5685 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5686 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5687 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5688 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5689 # icc doesn't choke on unknown options, it will just issue warnings
5690 # or remarks (even with -Werror). So we grep stderr for any message
5691 # that says an option was ignored or not supported.
5692 # When given -MP, icc 7.0 and 7.1 complain thusly:
5693 # icc: Command line warning: ignoring option '-M'; no argument required
5694 # The diagnosis changed in icc 8.0:
5695 # icc: Command line remark: option '-MP' not supported
5696 if (grep 'ignoring option' conftest.err ||
5697 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5698 am_cv_CXX_dependencies_compiler_type=$depmode
5707 am_cv_CXX_dependencies_compiler_type=none
5711 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5712 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5713 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5716 test "x$enable_dependency_tracking" != xno \
5717 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5718 am__fastdepCXX_TRUE=
5719 am__fastdepCXX_FALSE='#'
5721 am__fastdepCXX_TRUE='#'
5722 am__fastdepCXX_FALSE=
5728 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5729 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5730 (test "X$CXX" != "Xg++"))) ; then
5732 ac_cpp='$CXXCPP $CPPFLAGS'
5733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5736 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5737 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5738 if test -z "$CXXCPP"; then
5739 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5740 echo $ECHO_N "(cached) $ECHO_C" >&6
5742 # Double quotes because CXXCPP needs to be expanded
5743 for CXXCPP in "$CXX -E" "/lib/cpp"
5746 for ac_cxx_preproc_warn_flag in '' yes
5748 # Use a header file that comes with gcc, so configuring glibc
5749 # with a fresh cross-compiler works.
5750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5751 # <limits.h> exists even on freestanding compilers.
5752 # On the NeXT, cc -E runs the code through the compiler's parser,
5753 # not just through cpp. "Syntax error" is here to catch this case.
5754 cat >conftest.$ac_ext <<_ACEOF
5757 cat confdefs.h >>conftest.$ac_ext
5758 cat >>conftest.$ac_ext <<_ACEOF
5759 /* end confdefs.h. */
5761 # include <limits.h>
5763 # include <assert.h>
5767 if { (ac_try="$ac_cpp conftest.$ac_ext"
5769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5770 *) ac_try_echo=$ac_try;;
5772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5775 grep -v '^ *+' conftest.er1 >conftest.err
5777 cat conftest.err >&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); } >/dev/null && {
5780 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5781 test ! -s conftest.err
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5788 # Broken: fails on valid input.
5792 rm -f conftest.err conftest.$ac_ext
5794 # OK, works on sane cases. Now check whether nonexistent headers
5795 # can be detected and how.
5796 cat >conftest.$ac_ext <<_ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5802 #include <ac_nonexistent.h>
5804 if { (ac_try="$ac_cpp conftest.$ac_ext"
5806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5807 *) ac_try_echo=$ac_try;;
5809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5812 grep -v '^ *+' conftest.er1 >conftest.err
5814 cat conftest.err >&5
5815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5816 (exit $ac_status); } >/dev/null && {
5817 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5818 test ! -s conftest.err
5820 # Broken: success on invalid input.
5823 echo "$as_me: failed program was:" >&5
5824 sed 's/^/| /' conftest.$ac_ext >&5
5826 # Passes both tests.
5831 rm -f conftest.err conftest.$ac_ext
5834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5835 rm -f conftest.err conftest.$ac_ext
5836 if $ac_preproc_ok; then
5841 ac_cv_prog_CXXCPP=$CXXCPP
5844 CXXCPP=$ac_cv_prog_CXXCPP
5846 ac_cv_prog_CXXCPP=$CXXCPP
5848 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5849 echo "${ECHO_T}$CXXCPP" >&6; }
5851 for ac_cxx_preproc_warn_flag in '' yes
5853 # Use a header file that comes with gcc, so configuring glibc
5854 # with a fresh cross-compiler works.
5855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5856 # <limits.h> exists even on freestanding compilers.
5857 # On the NeXT, cc -E runs the code through the compiler's parser,
5858 # not just through cpp. "Syntax error" is here to catch this case.
5859 cat >conftest.$ac_ext <<_ACEOF
5862 cat confdefs.h >>conftest.$ac_ext
5863 cat >>conftest.$ac_ext <<_ACEOF
5864 /* end confdefs.h. */
5866 # include <limits.h>
5868 # include <assert.h>
5872 if { (ac_try="$ac_cpp conftest.$ac_ext"
5874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5875 *) ac_try_echo=$ac_try;;
5877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5880 grep -v '^ *+' conftest.er1 >conftest.err
5882 cat conftest.err >&5
5883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5884 (exit $ac_status); } >/dev/null && {
5885 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5886 test ! -s conftest.err
5890 echo "$as_me: failed program was:" >&5
5891 sed 's/^/| /' conftest.$ac_ext >&5
5893 # Broken: fails on valid input.
5897 rm -f conftest.err conftest.$ac_ext
5899 # OK, works on sane cases. Now check whether nonexistent headers
5900 # can be detected and how.
5901 cat >conftest.$ac_ext <<_ACEOF
5904 cat confdefs.h >>conftest.$ac_ext
5905 cat >>conftest.$ac_ext <<_ACEOF
5906 /* end confdefs.h. */
5907 #include <ac_nonexistent.h>
5909 if { (ac_try="$ac_cpp conftest.$ac_ext"
5911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5912 *) ac_try_echo=$ac_try;;
5914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5917 grep -v '^ *+' conftest.er1 >conftest.err
5919 cat conftest.err >&5
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); } >/dev/null && {
5922 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5923 test ! -s conftest.err
5925 # Broken: success on invalid input.
5928 echo "$as_me: failed program was:" >&5
5929 sed 's/^/| /' conftest.$ac_ext >&5
5931 # Passes both tests.
5936 rm -f conftest.err conftest.$ac_ext
5939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5940 rm -f conftest.err conftest.$ac_ext
5941 if $ac_preproc_ok; then
5944 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5945 See \`config.log' for more details." >&5
5946 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5947 See \`config.log' for more details." >&2;}
5948 { (exit 1); exit 1; }; }
5952 ac_cpp='$CXXCPP $CPPFLAGS'
5953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5961 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5962 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5963 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5964 if test -n "$ac_tool_prefix"; then
5965 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
5967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5968 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5969 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5971 if test "${ac_cv_prog_F77+set}" = set; then
5972 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 if test -n "$F77"; then
5975 ac_cv_prog_F77="$F77" # Let the user override the test.
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 if test -n "$F77"; then
5996 { echo "$as_me:$LINENO: result: $F77" >&5
5997 echo "${ECHO_T}$F77" >&6; }
5999 { echo "$as_me:$LINENO: result: no" >&5
6000 echo "${ECHO_T}no" >&6; }
6004 test -n "$F77" && break
6007 if test -z "$F77"; then
6009 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
6011 # Extract the first word of "$ac_prog", so it can be a program name with args.
6012 set dummy $ac_prog; ac_word=$2
6013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6015 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6016 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 if test -n "$ac_ct_F77"; then
6019 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6028 ac_cv_prog_ac_ct_F77="$ac_prog"
6029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6039 if test -n "$ac_ct_F77"; then
6040 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6041 echo "${ECHO_T}$ac_ct_F77" >&6; }
6043 { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6048 test -n "$ac_ct_F77" && break
6051 if test "x$ac_ct_F77" = x; then
6054 case $cross_compiling:$ac_tool_warned in
6056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6057 whose name does not start with the host triplet. If you think this
6058 configuration is useful to you, please write to autoconf@gnu.org." >&5
6059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6060 whose name does not start with the host triplet. If you think this
6061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6062 ac_tool_warned=yes ;;
6069 # Provide some information about the compiler.
6070 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6071 ac_compiler=`set X $ac_compile; echo $2`
6072 { (ac_try="$ac_compiler --version >&5"
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_compiler --version >&5") 2>&5
6080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6081 (exit $ac_status); }
6082 { (ac_try="$ac_compiler -v >&5"
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_compiler -v >&5") 2>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }
6092 { (ac_try="$ac_compiler -V >&5"
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_compiler -V >&5") 2>&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }
6104 # If we don't use `.F' as extension, the preprocessor is not run on the
6105 # input file. (Note that this only needs to work for GNU compilers.)
6108 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6109 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6110 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6111 echo $ECHO_N "(cached) $ECHO_C" >&6
6113 cat >conftest.$ac_ext <<_ACEOF
6121 rm -f conftest.$ac_objext
6122 if { (ac_try="$ac_compile"
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_compile") 2>conftest.er1
6130 grep -v '^ *+' conftest.er1 >conftest.err
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } && {
6135 test -z "$ac_f77_werror_flag" ||
6136 test ! -s conftest.err
6137 } && test -s conftest.$ac_objext; then
6140 echo "$as_me: failed program was:" >&5
6141 sed 's/^/| /' conftest.$ac_ext >&5
6146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6150 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6151 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6153 ac_test_FFLAGS=${FFLAGS+set}
6154 ac_save_FFLAGS=$FFLAGS
6156 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6157 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6158 if test "${ac_cv_prog_f77_g+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6162 cat >conftest.$ac_ext <<_ACEOF
6167 rm -f conftest.$ac_objext
6168 if { (ac_try="$ac_compile"
6170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6171 *) ac_try_echo=$ac_try;;
6173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6174 (eval "$ac_compile") 2>conftest.er1
6176 grep -v '^ *+' conftest.er1 >conftest.err
6178 cat conftest.err >&5
6179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6180 (exit $ac_status); } && {
6181 test -z "$ac_f77_werror_flag" ||
6182 test ! -s conftest.err
6183 } && test -s conftest.$ac_objext; then
6184 ac_cv_prog_f77_g=yes
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6195 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6196 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6197 if test "$ac_test_FFLAGS" = set; then
6198 FFLAGS=$ac_save_FFLAGS
6199 elif test $ac_cv_prog_f77_g = yes; then
6200 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6206 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6213 G77=`test $ac_compiler_gnu = yes && echo yes`
6215 ac_cpp='$CPP $CPPFLAGS'
6216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6222 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6224 # find the maximum length of command line arguments
6225 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6226 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6227 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6235 # On DJGPP, this test can blow up pretty badly due to problems in libc
6236 # (any single argument exceeding 2000 bytes causes a buffer overrun
6237 # during glob expansion). Even if it were fixed, the result of this
6238 # check would be larger than it should be.
6239 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6243 # Under GNU Hurd, this test is not required because there is
6244 # no limit to the length of command line arguments.
6245 # Libtool will interpret -1 as no limit whatsoever
6246 lt_cv_sys_max_cmd_len=-1;
6250 # On Win9x/ME, this test blows up -- it succeeds, but takes
6251 # about 5 minutes as the teststring grows exponentially.
6252 # Worse, since 9x/ME are not pre-emptively multitasking,
6253 # you end up with a "frozen" computer, even though with patience
6254 # the test eventually succeeds (with a max line length of 256k).
6255 # Instead, let's just punt: use the minimum linelength reported by
6256 # all of the supported platforms: 8192 (on NT/2K/XP).
6257 lt_cv_sys_max_cmd_len=8192;
6261 # On AmigaOS with pdksh, this test takes hours, literally.
6262 # So we just punt and use a minimum line length of 8192.
6263 lt_cv_sys_max_cmd_len=8192;
6266 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6267 # This has been around since 386BSD, at least. Likely further.
6268 if test -x /sbin/sysctl; then
6269 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6270 elif test -x /usr/sbin/sysctl; then
6271 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6273 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6275 # And add a safety zone
6276 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6281 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6282 lt_cv_sys_max_cmd_len=196608
6286 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6287 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6288 # nice to cause kernel panics so lets avoid the loop below.
6289 # First set a reasonable default.
6290 lt_cv_sys_max_cmd_len=16384
6292 if test -x /sbin/sysconfig; then
6293 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6294 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6299 lt_cv_sys_max_cmd_len=102400
6301 sysv5* | sco5v6* | sysv4.2uw2*)
6302 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6303 if test -n "$kargmax"; then
6304 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6306 lt_cv_sys_max_cmd_len=32768
6310 # If test is not a shell built-in, we'll probably end up computing a
6311 # maximum length that is only half of the actual maximum length, but
6313 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6314 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6315 = "XX$teststring") >/dev/null 2>&1 &&
6316 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6317 lt_cv_sys_max_cmd_len=$new_result &&
6318 test $i != 17 # 1/2 MB should be enough
6321 teststring=$teststring$teststring
6324 # Add a significant safety factor because C++ compilers can tack on massive
6325 # amounts of additional arguments before passing them to the linker.
6326 # It appears as though 1/2 is a usable value.
6327 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6333 if test -n $lt_cv_sys_max_cmd_len ; then
6334 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6335 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6337 { echo "$as_me:$LINENO: result: none" >&5
6338 echo "${ECHO_T}none" >&6; }
6344 # Check for command to grab the raw symbol name followed by C symbol from nm.
6345 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6346 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6347 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6348 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 # These are sane defaults that work on at least a few old systems.
6352 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6354 # Character class describing NM global symbol codes.
6355 symcode='[BCDEGRST]'
6357 # Regexp to match symbols that can be accessed directly from C.
6358 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6360 # Transform an extracted symbol line into a proper C declaration
6361 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6363 # Transform an extracted symbol line into symbol name and symbol address
6364 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'"
6366 # Define system-specific variables.
6371 cygwin* | mingw* | pw32*)
6372 symcode='[ABCDGISTW]'
6374 hpux*) # Its linker distinguishes data from code symbols
6375 if test "$host_cpu" = ia64; then
6376 symcode='[ABCDEGRST]'
6378 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6379 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'"
6381 linux* | k*bsd*-gnu)
6382 if test "$host_cpu" = ia64; then
6383 symcode='[ABCDGIRSTW]'
6384 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6385 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'"
6389 symcode='[BCDEGRST]'
6392 symcode='[BCDEGQRST]'
6403 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6411 # Handle CRLF in mingw tool chain
6415 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6419 # If we're using GNU nm, then use its standard symbol codes.
6420 case `$NM -V 2>&1` in
6421 *GNU* | *'with BFD'*)
6422 symcode='[ABCDGIRSTW]' ;;
6425 # Try without a prefix undercore, then with it.
6426 for ac_symprfx in "" "_"; do
6428 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6429 symxfrm="\\1 $ac_symprfx\\2 \\2"
6431 # Write the raw and C identifiers.
6432 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6434 # Check to see that the pipe works correctly.
6438 cat > conftest.$ac_ext <<EOF
6443 void nm_test_func(){}
6447 int main(){nm_test_var='a';nm_test_func();return(0);}
6450 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6451 (eval $ac_compile) 2>&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); }; then
6455 # Now try to grab the symbols.
6457 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6458 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6461 (exit $ac_status); } && test -s "$nlist"; then
6462 # Try sorting and uniquifying the output.
6463 if sort "$nlist" | uniq > "$nlist"T; then
6464 mv -f "$nlist"T "$nlist"
6469 # Make sure that we snagged all the symbols we need.
6470 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6471 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6472 cat <<EOF > conftest.$ac_ext
6478 # Now generate the symbol file.
6479 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6481 cat <<EOF >> conftest.$ac_ext
6482 #if defined (__STDC__) && __STDC__
6483 # define lt_ptr_t void *
6485 # define lt_ptr_t char *
6489 /* The mapping between symbol names and symbols. */
6494 lt_preloaded_symbols[] =
6497 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6498 cat <<\EOF >> conftest.$ac_ext
6506 # Now try linking the two files.
6507 mv conftest.$ac_objext conftstm.$ac_objext
6508 lt_save_LIBS="$LIBS"
6509 lt_save_CFLAGS="$CFLAGS"
6510 LIBS="conftstm.$ac_objext"
6511 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6513 (eval $ac_link) 2>&5
6515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6516 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6519 LIBS="$lt_save_LIBS"
6520 CFLAGS="$lt_save_CFLAGS"
6522 echo "cannot find nm_test_func in $nlist" >&5
6525 echo "cannot find nm_test_var in $nlist" >&5
6528 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6531 echo "$progname: failed program was:" >&5
6532 cat conftest.$ac_ext >&5
6534 rm -f conftest* conftst*
6536 # Do not use the global_symbol_pipe unless it works.
6537 if test "$pipe_works" = yes; then
6540 lt_cv_sys_global_symbol_pipe=
6546 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6547 lt_cv_sys_global_symbol_to_cdecl=
6549 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6550 { echo "$as_me:$LINENO: result: failed" >&5
6551 echo "${ECHO_T}failed" >&6; }
6553 { echo "$as_me:$LINENO: result: ok" >&5
6554 echo "${ECHO_T}ok" >&6; }
6557 { echo "$as_me:$LINENO: checking for objdir" >&5
6558 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6559 if test "${lt_cv_objdir+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6562 rm -f .libs 2>/dev/null
6563 mkdir .libs 2>/dev/null
6564 if test -d .libs; then
6567 # MS-DOS does not allow filenames that begin with a dot.
6570 rmdir .libs 2>/dev/null
6572 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6573 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6574 objdir=$lt_cv_objdir
6582 # AIX sometimes has problems with the GCC collect2 program. For some
6583 # reason, if we set the COLLECT_NAMES environment variable, the problems
6584 # vanish in a puff of smoke.
6585 if test "X${COLLECT_NAMES+set}" != Xset; then
6587 export COLLECT_NAMES
6592 # Sed substitution that helps us do robust quoting. It backslashifies
6593 # metacharacters that are still active within double-quoted strings.
6594 Xsed='sed -e 1s/^X//'
6595 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6597 # Same as above, but do not quote variable references.
6598 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6600 # Sed substitution to delay expansion of an escaped shell variable in a
6601 # double_quote_subst'ed string.
6602 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6604 # Sed substitution to avoid accidental globbing in evaled expressions
6605 no_glob_subst='s/\*/\\\*/g'
6611 default_ofile=libtool
6612 can_build_shared=yes
6614 # All known linkers require a `.a' archive for static linking (except MSVC,
6615 # which needs '.lib').
6617 ltmain="$ac_aux_dir/ltmain.sh"
6618 ofile="$default_ofile"
6619 with_gnu_ld="$lt_cv_prog_gnu_ld"
6621 if test -n "$ac_tool_prefix"; then
6622 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}ar; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_prog_AR+set}" = set; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6629 if test -n "$AR"; then
6630 ac_cv_prog_AR="$AR" # Let the user override the test.
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639 ac_cv_prog_AR="${ac_tool_prefix}ar"
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 if test -n "$AR"; then
6651 { echo "$as_me:$LINENO: result: $AR" >&5
6652 echo "${ECHO_T}$AR" >&6; }
6654 { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6660 if test -z "$ac_cv_prog_AR"; then
6662 # Extract the first word of "ar", so it can be a program name with args.
6663 set dummy ar; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 if test -n "$ac_ct_AR"; then
6670 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir=.
6677 for ac_exec_ext in '' $ac_executable_extensions; do
6678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679 ac_cv_prog_ac_ct_AR="ar"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6690 if test -n "$ac_ct_AR"; then
6691 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6692 echo "${ECHO_T}$ac_ct_AR" >&6; }
6694 { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6698 if test "x$ac_ct_AR" = x; then
6701 case $cross_compiling:$ac_tool_warned in
6703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6704 whose name does not start with the host triplet. If you think this
6705 configuration is useful to you, please write to autoconf@gnu.org." >&5
6706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6707 whose name does not start with the host triplet. If you think this
6708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6709 ac_tool_warned=yes ;;
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_RANLIB+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 if test -n "$RANLIB"; then
6726 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 test -z "$as_dir" && as_dir=.
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 RANLIB=$ac_cv_prog_RANLIB
6746 if test -n "$RANLIB"; then
6747 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6748 echo "${ECHO_T}$RANLIB" >&6; }
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6756 if test -z "$ac_cv_prog_RANLIB"; then
6757 ac_ct_RANLIB=$RANLIB
6758 # Extract the first word of "ranlib", so it can be a program name with args.
6759 set dummy ranlib; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 if test -n "$ac_ct_RANLIB"; then
6766 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 test -z "$as_dir" && as_dir=.
6773 for ac_exec_ext in '' $ac_executable_extensions; do
6774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775 ac_cv_prog_ac_ct_RANLIB="ranlib"
6776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6785 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6786 if test -n "$ac_ct_RANLIB"; then
6787 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6788 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6790 { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6794 if test "x$ac_ct_RANLIB" = x; then
6797 case $cross_compiling:$ac_tool_warned in
6799 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6800 whose name does not start with the host triplet. If you think this
6801 configuration is useful to you, please write to autoconf@gnu.org." >&5
6802 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet. If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6805 ac_tool_warned=yes ;;
6807 RANLIB=$ac_ct_RANLIB
6810 RANLIB="$ac_cv_prog_RANLIB"
6813 if test -n "$ac_tool_prefix"; then
6814 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}strip; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_STRIP+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6821 if test -n "$STRIP"; then
6822 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6828 test -z "$as_dir" && as_dir=.
6829 for ac_exec_ext in '' $ac_executable_extensions; do
6830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6841 STRIP=$ac_cv_prog_STRIP
6842 if test -n "$STRIP"; then
6843 { echo "$as_me:$LINENO: result: $STRIP" >&5
6844 echo "${ECHO_T}$STRIP" >&6; }
6846 { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6852 if test -z "$ac_cv_prog_STRIP"; then
6854 # Extract the first word of "strip", so it can be a program name with args.
6855 set dummy strip; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 if test -n "$ac_ct_STRIP"; then
6862 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6868 test -z "$as_dir" && as_dir=.
6869 for ac_exec_ext in '' $ac_executable_extensions; do
6870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871 ac_cv_prog_ac_ct_STRIP="strip"
6872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6882 if test -n "$ac_ct_STRIP"; then
6883 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6884 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6886 { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6890 if test "x$ac_ct_STRIP" = x; then
6893 case $cross_compiling:$ac_tool_warned in
6895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6896 whose name does not start with the host triplet. If you think this
6897 configuration is useful to you, please write to autoconf@gnu.org." >&5
6898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6899 whose name does not start with the host triplet. If you think this
6900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6901 ac_tool_warned=yes ;;
6906 STRIP="$ac_cv_prog_STRIP"
6911 old_CFLAGS="$CFLAGS"
6913 # Set sane defaults for various variables
6914 test -z "$AR" && AR=ar
6915 test -z "$AR_FLAGS" && AR_FLAGS=cru
6916 test -z "$AS" && AS=as
6917 test -z "$CC" && CC=cc
6918 test -z "$LTCC" && LTCC=$CC
6919 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6920 test -z "$DLLTOOL" && DLLTOOL=dlltool
6921 test -z "$LD" && LD=ld
6922 test -z "$LN_S" && LN_S="ln -s"
6923 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6924 test -z "$NM" && NM=nm
6925 test -z "$SED" && SED=sed
6926 test -z "$OBJDUMP" && OBJDUMP=objdump
6927 test -z "$RANLIB" && RANLIB=:
6928 test -z "$STRIP" && STRIP=:
6929 test -z "$ac_objext" && ac_objext=o
6931 # Determine commands to create old-style static archives.
6932 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6933 old_postinstall_cmds='chmod 644 $oldlib'
6934 old_postuninstall_cmds=
6936 if test -n "$RANLIB"; then
6939 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6942 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6945 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6948 for cc_temp in $compiler""; do
6950 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6951 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6956 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6959 # Only perform the check for file, if the check method requires it
6960 case $deplibs_check_method in
6962 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6963 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6964 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6965 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6970 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6973 lt_save_MAGIC_CMD="$MAGIC_CMD"
6974 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6975 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6976 for ac_dir in $ac_dummy; do
6978 test -z "$ac_dir" && ac_dir=.
6979 if test -f $ac_dir/${ac_tool_prefix}file; then
6980 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6981 if test -n "$file_magic_test_file"; then
6982 case $deplibs_check_method in
6984 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6986 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6987 $EGREP "$file_magic_regex" > /dev/null; then
6992 *** Warning: the command libtool uses to detect shared libraries,
6993 *** $file_magic_cmd, produces output that libtool cannot recognize.
6994 *** The result is that libtool may fail to recognize shared libraries
6995 *** as such. This will affect the creation of libtool libraries that
6996 *** depend on shared libraries, but programs linked with such libtool
6997 *** libraries will work regardless of this problem. Nevertheless, you
6998 *** may want to report the problem to your system manager and/or to
6999 *** bug-libtool@gnu.org
7009 MAGIC_CMD="$lt_save_MAGIC_CMD"
7014 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7015 if test -n "$MAGIC_CMD"; then
7016 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7017 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7019 { echo "$as_me:$LINENO: result: no" >&5
7020 echo "${ECHO_T}no" >&6; }
7023 if test -z "$lt_cv_path_MAGIC_CMD"; then
7024 if test -n "$ac_tool_prefix"; then
7025 { echo "$as_me:$LINENO: checking for file" >&5
7026 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7027 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7035 lt_save_MAGIC_CMD="$MAGIC_CMD"
7036 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7037 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7038 for ac_dir in $ac_dummy; do
7040 test -z "$ac_dir" && ac_dir=.
7041 if test -f $ac_dir/file; then
7042 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7043 if test -n "$file_magic_test_file"; then
7044 case $deplibs_check_method in
7046 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7047 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7048 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7049 $EGREP "$file_magic_regex" > /dev/null; then
7054 *** Warning: the command libtool uses to detect shared libraries,
7055 *** $file_magic_cmd, produces output that libtool cannot recognize.
7056 *** The result is that libtool may fail to recognize shared libraries
7057 *** as such. This will affect the creation of libtool libraries that
7058 *** depend on shared libraries, but programs linked with such libtool
7059 *** libraries will work regardless of this problem. Nevertheless, you
7060 *** may want to report the problem to your system manager and/or to
7061 *** bug-libtool@gnu.org
7071 MAGIC_CMD="$lt_save_MAGIC_CMD"
7076 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7077 if test -n "$MAGIC_CMD"; then
7078 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7079 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7081 { echo "$as_me:$LINENO: result: no" >&5
7082 echo "${ECHO_T}no" >&6; }
7097 # Check whether --enable-libtool-lock was given.
7098 if test "${enable_libtool_lock+set}" = set; then
7099 enableval=$enable_libtool_lock;
7102 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7105 # Check whether --with-pic was given.
7106 if test "${with_pic+set}" = set; then
7107 withval=$with_pic; pic_mode="$withval"
7112 test -z "$pic_mode" && pic_mode=default
7114 # Use C for the default configuration in the libtool script
7118 ac_cpp='$CPP $CPPFLAGS'
7119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7124 # Source file extension for C test sources.
7127 # Object file extension for compiled C test sources.
7131 # Code to be used in simple compile tests
7132 lt_simple_compile_test_code="int some_variable = 0;\n"
7134 # Code to be used in simple link tests
7135 lt_simple_link_test_code='int main(){return(0);}\n'
7138 # If no C compiler was specified, use CC.
7141 # If no C compiler flags were specified, use CFLAGS.
7142 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7144 # Allow CC to be a program name with arguments.
7148 # save warnings/boilerplate of simple test code
7149 ac_outfile=conftest.$ac_objext
7150 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7151 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7152 _lt_compiler_boilerplate=`cat conftest.err`
7155 ac_outfile=conftest.$ac_objext
7156 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7157 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7158 _lt_linker_boilerplate=`cat conftest.err`
7163 lt_prog_compiler_no_builtin_flag=
7165 if test "$GCC" = yes; then
7166 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7169 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7170 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7171 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7172 echo $ECHO_N "(cached) $ECHO_C" >&6
7174 lt_cv_prog_compiler_rtti_exceptions=no
7175 ac_outfile=conftest.$ac_objext
7176 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7177 lt_compiler_flag="-fno-rtti -fno-exceptions"
7178 # Insert the option either (1) after the last *FLAGS variable, or
7179 # (2) before a word containing "conftest.", or (3) at the end.
7180 # Note that $ac_compile itself does not contain backslashes and begins
7181 # with a dollar sign (not a hyphen), so the echo should work correctly.
7182 # The option is referenced via a variable to avoid confusing sed.
7183 lt_compile=`echo "$ac_compile" | $SED \
7184 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7185 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7186 -e 's:$: $lt_compiler_flag:'`
7187 (eval echo "\"\$as_me:7187: $lt_compile\"" >&5)
7188 (eval "$lt_compile" 2>conftest.err)
7190 cat conftest.err >&5
7191 echo "$as_me:7191: \$? = $ac_status" >&5
7192 if (exit $ac_status) && test -s "$ac_outfile"; then
7193 # The compiler can only warn and ignore the option if not recognized
7194 # So say no if there are warnings other than the usual output.
7195 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7196 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7197 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7198 lt_cv_prog_compiler_rtti_exceptions=yes
7204 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7205 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7207 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7208 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7215 lt_prog_compiler_wl=
7216 lt_prog_compiler_pic=
7217 lt_prog_compiler_static=
7219 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7220 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7222 if test "$GCC" = yes; then
7223 lt_prog_compiler_wl='-Wl,'
7224 lt_prog_compiler_static='-static'
7228 # All AIX code is PIC.
7229 if test "$host_cpu" = ia64; then
7230 # AIX 5 now supports IA64 processor
7231 lt_prog_compiler_static='-Bstatic'
7236 # FIXME: we need at least 68020 code to build shared libraries, but
7237 # adding the `-m68020' flag to GCC prevents building anything better,
7239 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7242 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7243 # PIC is the default for these OSes.
7246 mingw* | pw32* | os2*)
7247 # This hack is so that the source file can tell whether it is being
7248 # built for inclusion in a dll (and should export symbols for example).
7249 lt_prog_compiler_pic='-DDLL_EXPORT'
7252 darwin* | rhapsody*)
7253 # PIC is the default on this platform
7254 # Common symbols not allowed in MH_DYLIB files
7255 lt_prog_compiler_pic='-fno-common'
7259 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7260 # Instead, we relocate shared libraries at runtime.
7264 # Just because we use GCC doesn't mean we suddenly get shared libraries
7265 # on systems that don't support them.
7266 lt_prog_compiler_can_build_shared=no
7271 if test -d /usr/nec; then
7272 lt_prog_compiler_pic=-Kconform_pic
7277 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7284 lt_prog_compiler_pic='-fPIC'
7290 lt_prog_compiler_pic='-fPIC'
7294 # PORTME Check for flag to pass linker flags through the system compiler.
7297 lt_prog_compiler_wl='-Wl,'
7298 if test "$host_cpu" = ia64; then
7299 # AIX 5 now supports IA64 processor
7300 lt_prog_compiler_static='-Bstatic'
7302 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7306 # PIC is the default on this platform
7307 # Common symbols not allowed in MH_DYLIB files
7308 case $cc_basename in
7310 lt_prog_compiler_pic='-qnocommon'
7311 lt_prog_compiler_wl='-Wl,'
7316 mingw* | pw32* | os2*)
7317 # This hack is so that the source file can tell whether it is being
7318 # built for inclusion in a dll (and should export symbols for example).
7319 lt_prog_compiler_pic='-DDLL_EXPORT'
7322 hpux9* | hpux10* | hpux11*)
7323 lt_prog_compiler_wl='-Wl,'
7324 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7331 lt_prog_compiler_pic='+Z'
7334 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7335 lt_prog_compiler_static='${wl}-a ${wl}archive'
7338 irix5* | irix6* | nonstopux*)
7339 lt_prog_compiler_wl='-Wl,'
7340 # PIC (with -KPIC) is the default.
7341 lt_prog_compiler_static='-non_shared'
7345 lt_prog_compiler_pic='-KPIC'
7346 lt_prog_compiler_static='-Bstatic'
7349 linux* | k*bsd*-gnu)
7350 case $cc_basename in
7352 lt_prog_compiler_wl='-Wl,'
7353 lt_prog_compiler_pic='-KPIC'
7354 lt_prog_compiler_static='-static'
7356 pgcc* | pgf77* | pgf90* | pgf95*)
7357 # Portland Group compilers (*not* the Pentium gcc compiler,
7358 # which looks to be a dead project)
7359 lt_prog_compiler_wl='-Wl,'
7360 lt_prog_compiler_pic='-fpic'
7361 lt_prog_compiler_static='-Bstatic'
7364 lt_prog_compiler_wl='-Wl,'
7365 # All Alpha code is PIC.
7366 lt_prog_compiler_static='-non_shared'
7371 osf3* | osf4* | osf5*)
7372 lt_prog_compiler_wl='-Wl,'
7373 # All OSF/1 code is PIC.
7374 lt_prog_compiler_static='-non_shared'
7378 lt_prog_compiler_pic='-KPIC'
7379 lt_prog_compiler_static='-Bstatic'
7380 case $cc_basename in
7382 lt_prog_compiler_wl='-Qoption ld ';;
7384 lt_prog_compiler_wl='-Wl,';;
7389 lt_prog_compiler_wl='-Qoption ld '
7390 lt_prog_compiler_pic='-PIC'
7391 lt_prog_compiler_static='-Bstatic'
7394 sysv4 | sysv4.2uw2* | sysv4.3*)
7395 lt_prog_compiler_wl='-Wl,'
7396 lt_prog_compiler_pic='-KPIC'
7397 lt_prog_compiler_static='-Bstatic'
7401 if test -d /usr/nec ;then
7402 lt_prog_compiler_pic='-Kconform_pic'
7403 lt_prog_compiler_static='-Bstatic'
7407 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7408 lt_prog_compiler_wl='-Wl,'
7409 lt_prog_compiler_pic='-KPIC'
7410 lt_prog_compiler_static='-Bstatic'
7414 lt_prog_compiler_wl='-Wl,'
7415 lt_prog_compiler_can_build_shared=no
7419 lt_prog_compiler_pic='-pic'
7420 lt_prog_compiler_static='-Bstatic'
7424 lt_prog_compiler_can_build_shared=no
7429 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7430 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7433 # Check to make sure the PIC flag actually works.
7435 if test -n "$lt_prog_compiler_pic"; then
7437 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7438 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7439 if test "${lt_prog_compiler_pic_works+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 lt_prog_compiler_pic_works=no
7443 ac_outfile=conftest.$ac_objext
7444 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7445 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7446 # Insert the option either (1) after the last *FLAGS variable, or
7447 # (2) before a word containing "conftest.", or (3) at the end.
7448 # Note that $ac_compile itself does not contain backslashes and begins
7449 # with a dollar sign (not a hyphen), so the echo should work correctly.
7450 # The option is referenced via a variable to avoid confusing sed.
7451 lt_compile=`echo "$ac_compile" | $SED \
7452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7454 -e 's:$: $lt_compiler_flag:'`
7455 (eval echo "\"\$as_me:7455: $lt_compile\"" >&5)
7456 (eval "$lt_compile" 2>conftest.err)
7458 cat conftest.err >&5
7459 echo "$as_me:7459: \$? = $ac_status" >&5
7460 if (exit $ac_status) && test -s "$ac_outfile"; then
7461 # The compiler can only warn and ignore the option if not recognized
7462 # So say no if there are warnings other than the usual output.
7463 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7464 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7465 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7466 lt_prog_compiler_pic_works=yes
7472 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7473 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7475 if test x"$lt_prog_compiler_pic_works" = xyes; then
7476 case $lt_prog_compiler_pic in
7478 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7481 lt_prog_compiler_pic=
7482 lt_prog_compiler_can_build_shared=no
7487 # For platforms which do not support PIC, -DPIC is meaningless:
7489 lt_prog_compiler_pic=
7492 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7497 # Check to make sure the static flag actually works.
7499 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7500 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7501 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7502 if test "${lt_prog_compiler_static_works+set}" = set; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7505 lt_prog_compiler_static_works=no
7506 save_LDFLAGS="$LDFLAGS"
7507 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7508 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7509 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7510 # The linker can only warn and ignore the option if not recognized
7511 # So say no if there are warnings
7512 if test -s conftest.err; then
7513 # Append any errors to the config.log.
7514 cat conftest.err 1>&5
7515 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7517 if diff conftest.exp conftest.er2 >/dev/null; then
7518 lt_prog_compiler_static_works=yes
7521 lt_prog_compiler_static_works=yes
7525 LDFLAGS="$save_LDFLAGS"
7528 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7529 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7531 if test x"$lt_prog_compiler_static_works" = xyes; then
7534 lt_prog_compiler_static=
7538 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7539 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7540 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7543 lt_cv_prog_compiler_c_o=no
7544 $rm -r conftest 2>/dev/null
7548 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7550 lt_compiler_flag="-o out/conftest2.$ac_objext"
7551 # Insert the option either (1) after the last *FLAGS variable, or
7552 # (2) before a word containing "conftest.", or (3) at the end.
7553 # Note that $ac_compile itself does not contain backslashes and begins
7554 # with a dollar sign (not a hyphen), so the echo should work correctly.
7555 lt_compile=`echo "$ac_compile" | $SED \
7556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7558 -e 's:$: $lt_compiler_flag:'`
7559 (eval echo "\"\$as_me:7559: $lt_compile\"" >&5)
7560 (eval "$lt_compile" 2>out/conftest.err)
7562 cat out/conftest.err >&5
7563 echo "$as_me:7563: \$? = $ac_status" >&5
7564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7566 # The compiler can only warn and ignore the option if not recognized
7567 # So say no if there are warnings
7568 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7571 lt_cv_prog_compiler_c_o=yes
7576 # SGI C++ compiler will create directory out/ii_files/ for
7577 # template instantiation
7578 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7579 $rm out/* && rmdir out
7585 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7586 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7589 hard_links="nottested"
7590 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7591 # do not overwrite the value of need_locks provided by the user
7592 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7593 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7596 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7598 ln conftest.a conftest.b 2>&5 || hard_links=no
7599 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7600 { echo "$as_me:$LINENO: result: $hard_links" >&5
7601 echo "${ECHO_T}$hard_links" >&6; }
7602 if test "$hard_links" = no; then
7603 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7604 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7611 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7612 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7615 allow_undefined_flag=
7616 enable_shared_with_static_runtimes=no
7618 archive_expsym_cmds=
7619 old_archive_From_new_cmds=
7620 old_archive_from_expsyms_cmds=
7621 export_dynamic_flag_spec=
7622 whole_archive_flag_spec=
7623 thread_safe_flag_spec=
7624 hardcode_libdir_flag_spec=
7625 hardcode_libdir_flag_spec_ld=
7626 hardcode_libdir_separator=
7629 hardcode_shlibpath_var=unsupported
7630 link_all_deplibs=unknown
7631 hardcode_automatic=no
7634 always_export_symbols=no
7635 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7636 # include_expsyms should be a list of space-separated symbols to be *always*
7637 # included in the symbol list
7639 # exclude_expsyms can be an extended regexp of symbols to exclude
7640 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7641 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7642 # as well as any symbol that contains `d'.
7643 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7644 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7645 # platforms (ab)use it in PIC code, but their linkers get confused if
7646 # the symbol is explicitly referenced. Since portable code cannot
7647 # rely on this symbol name, it's probably fine to never include it in
7648 # preloaded symbol tables.
7649 extract_expsyms_cmds=
7650 # Just being paranoid about ensuring that cc_basename is set.
7651 for cc_temp in $compiler""; do
7653 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7654 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7659 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7662 cygwin* | mingw* | pw32*)
7663 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7664 # When not using gcc, we currently assume that we are using
7665 # Microsoft Visual C++.
7666 if test "$GCC" != yes; then
7671 # we just hope/assume this is gcc and not c89 (= MSVC++)
7680 if test "$with_gnu_ld" = yes; then
7681 # If archive_cmds runs LD, not CC, wlarc should be empty
7684 # Set some defaults for GNU ld with shared library support. These
7685 # are reset later if shared libraries are not supported. Putting them
7686 # here allows them to be overridden if necessary.
7687 runpath_var=LD_RUN_PATH
7688 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7689 export_dynamic_flag_spec='${wl}--export-dynamic'
7690 # ancient GNU ld didn't support --whole-archive et. al.
7691 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7692 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7694 whole_archive_flag_spec=
7696 supports_anon_versioning=no
7697 case `$LD -v 2>/dev/null` in
7698 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7699 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7700 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7701 *\ 2.11.*) ;; # other 2.11 versions
7702 *) supports_anon_versioning=yes ;;
7705 # See if GNU ld supports shared libraries.
7707 aix3* | aix4* | aix5*)
7708 # On AIX/PPC, the GNU linker is very broken
7709 if test "$host_cpu" != ia64; then
7713 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7714 *** to be unable to reliably create shared libraries on AIX.
7715 *** Therefore, libtool is disabling shared libraries support. If you
7716 *** really care for shared libraries, you may want to modify your PATH
7717 *** so that a non-GNU linker is found, and then restart.
7724 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)'
7725 hardcode_libdir_flag_spec='-L$libdir'
7726 hardcode_minus_L=yes
7728 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7729 # that the semantics of dynamic libraries on AmigaOS, at least up
7730 # to version 4, is to share data among multiple programs linked
7731 # with the same dynamic library. Since this doesn't match the
7732 # behavior of shared libraries on other platforms, we can't use
7738 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7739 allow_undefined_flag=unsupported
7740 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7741 # support --undefined. This deserves some investigation. FIXME
7742 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7748 cygwin* | mingw* | pw32*)
7749 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7750 # as there is no search path for DLLs.
7751 hardcode_libdir_flag_spec='-L$libdir'
7752 allow_undefined_flag=unsupported
7753 always_export_symbols=no
7754 enable_shared_with_static_runtimes=yes
7755 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7757 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7758 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7759 # If the export-symbols file already is a .def file (1st line
7760 # is EXPORTS), use it as is; otherwise, prepend...
7761 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7762 cp $export_symbols $output_objdir/$soname.def;
7764 echo EXPORTS > $output_objdir/$soname.def;
7765 cat $export_symbols >> $output_objdir/$soname.def;
7767 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7775 hardcode_shlibpath_var=no
7776 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7777 export_dynamic_flag_spec='${wl}-E'
7778 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7779 # Instead, shared libraries are loaded at an image base (0x10000000 by
7780 # default) and relocated if they conflict, which is a slow very memory
7781 # consuming and fragmenting process. To avoid this, we pick a random,
7782 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7783 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7784 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7785 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'
7788 linux* | k*bsd*-gnu)
7789 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7791 case $cc_basename,$host_cpu in
7792 pgcc*) # Portland Group C compiler
7793 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'
7794 tmp_addflag=' $pic_flag'
7796 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7797 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'
7798 tmp_addflag=' $pic_flag -Mnomain' ;;
7799 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7800 tmp_addflag=' -i_dynamic' ;;
7801 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7802 tmp_addflag=' -i_dynamic -nofor_main' ;;
7803 ifc* | ifort*) # Intel Fortran compiler
7804 tmp_addflag=' -nofor_main' ;;
7806 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7808 if test $supports_anon_versioning = yes; then
7809 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7810 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7811 $echo "local: *; };" >> $output_objdir/$libname.ver~
7812 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7820 netbsd* | netbsdelf*-gnu)
7821 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7822 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7825 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7826 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7831 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7835 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7836 *** create shared libraries on Solaris systems. Therefore, libtool
7837 *** is disabling shared libraries support. We urge you to upgrade GNU
7838 *** binutils to release 2.9.1 or newer. Another option is to modify
7839 *** your PATH or compiler configuration so that the native linker is
7840 *** used, and then restart.
7843 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7852 case `$LD -v 2>&1` in
7853 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7857 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7858 *** reliably create shared libraries on SCO systems. Therefore, libtool
7859 *** is disabling shared libraries support. We urge you to upgrade GNU
7860 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7861 *** your PATH or compiler configuration so that the native linker is
7862 *** used, and then restart.
7867 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7868 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7869 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7870 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7879 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7882 hardcode_shlibpath_var=no
7886 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7888 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7895 if test "$ld_shlibs" = no; then
7897 hardcode_libdir_flag_spec=
7898 export_dynamic_flag_spec=
7899 whole_archive_flag_spec=
7902 # PORTME fill in a description of your system's linker (not GNU ld)
7905 allow_undefined_flag=unsupported
7906 always_export_symbols=yes
7907 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'
7908 # Note: this linker hardcodes the directories in LIBPATH if there
7909 # are no directories specified by -L.
7910 hardcode_minus_L=yes
7911 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7912 # Neither direct hardcoding nor static linking is supported with a
7914 hardcode_direct=unsupported
7919 if test "$host_cpu" = ia64; then
7920 # On IA64, the linker does run time linking by default, so we don't
7921 # have to do anything special.
7922 aix_use_runtimelinking=no
7923 exp_sym_flag='-Bexport'
7926 # If we're using GNU nm, then we don't want the "-C" option.
7927 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7928 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7929 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'
7931 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'
7933 aix_use_runtimelinking=no
7935 # Test if we are trying to use run time linking or normal
7936 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7937 # need to do runtime linking.
7938 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7939 for ld_flag in $LDFLAGS; do
7940 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7941 aix_use_runtimelinking=yes
7948 exp_sym_flag='-bexport'
7949 no_entry_flag='-bnoentry'
7952 # When large executables or shared objects are built, AIX ld can
7953 # have problems creating the table of contents. If linking a library
7954 # or program results in "error TOC overflow" add -mminimal-toc to
7955 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7956 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7960 hardcode_libdir_separator=':'
7961 link_all_deplibs=yes
7963 if test "$GCC" = yes; then
7964 case $host_os in aix4.[012]|aix4.[012].*)
7965 # We only want to do this on AIX 4.2 and lower, the check
7966 # below for broken collect2 doesn't work under 4.3+
7967 collect2name=`${CC} -print-prog-name=collect2`
7968 if test -f "$collect2name" && \
7969 strings "$collect2name" | grep resolve_lib_name >/dev/null
7971 # We have reworked collect2
7974 # We have old collect2
7975 hardcode_direct=unsupported
7976 # It fails to find uninstalled libraries when the uninstalled
7977 # path is not listed in the libpath. Setting hardcode_minus_L
7978 # to unsupported forces relinking
7979 hardcode_minus_L=yes
7980 hardcode_libdir_flag_spec='-L$libdir'
7981 hardcode_libdir_separator=
7985 shared_flag='-shared'
7986 if test "$aix_use_runtimelinking" = yes; then
7987 shared_flag="$shared_flag "'${wl}-G'
7991 if test "$host_cpu" = ia64; then
7992 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7993 # chokes on -Wl,-G. The following line is correct:
7996 if test "$aix_use_runtimelinking" = yes; then
7997 shared_flag='${wl}-G'
7999 shared_flag='${wl}-bM:SRE'
8004 # It seems that -bexpall does not export symbols beginning with
8005 # underscore (_), so it is better to generate a list of symbols to export.
8006 always_export_symbols=yes
8007 if test "$aix_use_runtimelinking" = yes; then
8008 # Warning - without using the other runtime loading flags (-brtl),
8009 # -berok will link without error, but may produce a broken library.
8010 allow_undefined_flag='-berok'
8011 # Determine the default libpath from the value encoded in an empty executable.
8012 cat >conftest.$ac_ext <<_ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8027 rm -f conftest.$ac_objext conftest$ac_exeext
8028 if { (ac_try="$ac_link"
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_link") 2>conftest.er1
8036 grep -v '^ *+' conftest.er1 >conftest.err
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } && {
8041 test -z "$ac_c_werror_flag" ||
8042 test ! -s conftest.err
8043 } && test -s conftest$ac_exeext &&
8044 $as_test_x conftest$ac_exeext; then
8046 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8048 # Check for a 64-bit object if we didn't find anything.
8049 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; }
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8059 conftest$ac_exeext conftest.$ac_ext
8060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8062 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8063 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"
8065 if test "$host_cpu" = ia64; then
8066 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8067 allow_undefined_flag="-z nodefs"
8068 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"
8070 # Determine the default libpath from the value encoded in an empty executable.
8071 cat >conftest.$ac_ext <<_ACEOF
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8086 rm -f conftest.$ac_objext conftest$ac_exeext
8087 if { (ac_try="$ac_link"
8089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8090 *) ac_try_echo=$ac_try;;
8092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8093 (eval "$ac_link") 2>conftest.er1
8095 grep -v '^ *+' conftest.er1 >conftest.err
8097 cat conftest.err >&5
8098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8099 (exit $ac_status); } && {
8100 test -z "$ac_c_werror_flag" ||
8101 test ! -s conftest.err
8102 } && test -s conftest$ac_exeext &&
8103 $as_test_x conftest$ac_exeext; then
8105 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8107 # Check for a 64-bit object if we didn't find anything.
8108 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; }
8111 echo "$as_me: failed program was:" >&5
8112 sed 's/^/| /' conftest.$ac_ext >&5
8117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8118 conftest$ac_exeext conftest.$ac_ext
8119 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8121 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8122 # Warning - without using the other run time loading flags,
8123 # -berok will link without error, but may produce a broken library.
8124 no_undefined_flag=' ${wl}-bernotok'
8125 allow_undefined_flag=' ${wl}-berok'
8126 # Exported symbols can be pulled into shared objects from archives
8127 whole_archive_flag_spec='$convenience'
8128 archive_cmds_need_lc=yes
8129 # This is similar to how AIX traditionally builds its shared libraries.
8130 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'
8136 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)'
8137 hardcode_libdir_flag_spec='-L$libdir'
8138 hardcode_minus_L=yes
8139 # see comment about different semantics on the GNU ld section
8144 export_dynamic_flag_spec=-rdynamic
8147 cygwin* | mingw* | pw32*)
8148 # When not using gcc, we currently assume that we are using
8149 # Microsoft Visual C++.
8150 # hardcode_libdir_flag_spec is actually meaningless, as there is
8151 # no search path for DLLs.
8152 hardcode_libdir_flag_spec=' '
8153 allow_undefined_flag=unsupported
8154 # Tell ltmain to make .lib files, not .a files.
8156 # Tell ltmain to make .dll files, not .so files.
8158 # FIXME: Setting linknames here is a bad hack.
8159 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8160 # The linker will automatically build a .lib file if we build a DLL.
8161 old_archive_From_new_cmds='true'
8162 # FIXME: Should let the user specify the lib program.
8163 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8164 fix_srcfile_path='`cygpath -w "$srcfile"`'
8165 enable_shared_with_static_runtimes=yes
8168 darwin* | rhapsody*)
8170 rhapsody* | darwin1.[012])
8171 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8174 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8175 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8177 case ${MACOSX_DEPLOYMENT_TARGET} in
8179 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8182 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8188 archive_cmds_need_lc=no
8190 hardcode_automatic=yes
8191 hardcode_shlibpath_var=unsupported
8192 whole_archive_flag_spec=''
8193 link_all_deplibs=yes
8194 if test "$GCC" = yes ; then
8195 output_verbose_link_cmd='echo'
8196 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8197 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8198 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8199 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}'
8200 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}'
8202 case $cc_basename in
8204 output_verbose_link_cmd='echo'
8205 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8206 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8207 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8208 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}'
8209 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}'
8219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8220 hardcode_libdir_flag_spec='-L$libdir'
8221 hardcode_shlibpath_var=no
8228 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8229 # support. Future versions do this automatically, but an explicit c++rt0.o
8230 # does not break anything, and helps significantly (at the cost of a little
8233 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8234 hardcode_libdir_flag_spec='-R$libdir'
8236 hardcode_shlibpath_var=no
8239 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8241 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8243 hardcode_minus_L=yes
8244 hardcode_shlibpath_var=no
8247 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8248 freebsd* | dragonfly*)
8249 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8250 hardcode_libdir_flag_spec='-R$libdir'
8252 hardcode_shlibpath_var=no
8256 if test "$GCC" = yes; then
8257 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'
8259 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'
8261 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8262 hardcode_libdir_separator=:
8265 # hardcode_minus_L: Not really in the search PATH,
8266 # but as the default location of the library.
8267 hardcode_minus_L=yes
8268 export_dynamic_flag_spec='${wl}-E'
8272 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8273 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8275 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8277 if test "$with_gnu_ld" = no; then
8278 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8279 hardcode_libdir_separator=:
8282 export_dynamic_flag_spec='${wl}-E'
8284 # hardcode_minus_L: Not really in the search PATH,
8285 # but as the default location of the library.
8286 hardcode_minus_L=yes
8291 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8294 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8297 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8300 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8306 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8309 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8312 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8316 if test "$with_gnu_ld" = no; then
8317 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8318 hardcode_libdir_separator=:
8322 hardcode_libdir_flag_spec_ld='+b $libdir'
8324 hardcode_shlibpath_var=no
8328 export_dynamic_flag_spec='${wl}-E'
8330 # hardcode_minus_L: Not really in the search PATH,
8331 # but as the default location of the library.
8332 hardcode_minus_L=yes
8338 irix5* | irix6* | nonstopux*)
8339 if test "$GCC" = yes; then
8340 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'
8342 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'
8343 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8346 hardcode_libdir_separator=:
8347 link_all_deplibs=yes
8350 netbsd* | netbsdelf*-gnu)
8351 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8354 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8356 hardcode_libdir_flag_spec='-R$libdir'
8358 hardcode_shlibpath_var=no
8362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8364 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8365 hardcode_libdir_separator=:
8366 hardcode_shlibpath_var=no
8371 hardcode_shlibpath_var=no
8372 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8373 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8374 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8375 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8376 export_dynamic_flag_spec='${wl}-E'
8379 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8380 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8381 hardcode_libdir_flag_spec='-R$libdir'
8384 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8385 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8392 hardcode_libdir_flag_spec='-L$libdir'
8393 hardcode_minus_L=yes
8394 allow_undefined_flag=unsupported
8395 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'
8396 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8400 if test "$GCC" = yes; then
8401 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8402 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'
8404 allow_undefined_flag=' -expect_unresolved \*'
8405 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'
8407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8408 hardcode_libdir_separator=:
8411 osf4* | osf5*) # as osf3* with the addition of -msym flag
8412 if test "$GCC" = yes; then
8413 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8414 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'
8415 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8417 allow_undefined_flag=' -expect_unresolved \*'
8418 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'
8419 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8420 $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'
8422 # Both c and cxx compiler support -rpath directly
8423 hardcode_libdir_flag_spec='-rpath $libdir'
8425 hardcode_libdir_separator=:
8429 no_undefined_flag=' -z text'
8430 if test "$GCC" = yes; then
8432 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8433 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8434 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8437 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8438 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8439 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8441 hardcode_libdir_flag_spec='-R$libdir'
8442 hardcode_shlibpath_var=no
8444 solaris2.[0-5] | solaris2.[0-5].*) ;;
8446 # The compiler driver will combine linker options so we
8447 # cannot just pass the convience library names through
8448 # without $wl, iff we do not link with $LD.
8449 # Luckily, gcc supports the same syntax we need for Sun Studio.
8450 # Supported since Solaris 2.6 (maybe 2.5.1?)
8453 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8455 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' ;;
8458 link_all_deplibs=yes
8462 if test "x$host_vendor" = xsequent; then
8463 # Use $CC to link under sequent, because it throws in some extra .o
8464 # files that make .init and .fini sections work.
8465 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8467 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8469 hardcode_libdir_flag_spec='-L$libdir'
8471 hardcode_minus_L=yes
8472 hardcode_shlibpath_var=no
8476 case $host_vendor in
8478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479 hardcode_direct=yes # is this really true???
8482 ## LD is ld it makes a PLAMLIB
8483 ## CC just makes a GrossModule.
8484 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8485 reload_cmds='$CC -r -o $output$reload_objs'
8489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8490 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8493 runpath_var='LD_RUN_PATH'
8494 hardcode_shlibpath_var=no
8498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8499 hardcode_shlibpath_var=no
8500 export_dynamic_flag_spec='-Bexport'
8504 if test -d /usr/nec; then
8505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8506 hardcode_shlibpath_var=no
8507 runpath_var=LD_RUN_PATH
8508 hardcode_runpath_var=yes
8513 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8514 no_undefined_flag='${wl}-z,text'
8515 archive_cmds_need_lc=no
8516 hardcode_shlibpath_var=no
8517 runpath_var='LD_RUN_PATH'
8519 if test "$GCC" = yes; then
8520 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8521 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8523 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8524 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8528 sysv5* | sco3.2v5* | sco5v6*)
8529 # Note: We can NOT use -z defs as we might desire, because we do not
8530 # link with -lc, and that would cause any symbols used from libc to
8531 # always be unresolved, which means just about no library would
8532 # ever link correctly. If we're not using GNU ld we use -z text
8533 # though, which does catch some bad symbols but isn't as heavy-handed
8535 no_undefined_flag='${wl}-z,text'
8536 allow_undefined_flag='${wl}-z,nodefs'
8537 archive_cmds_need_lc=no
8538 hardcode_shlibpath_var=no
8539 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8540 hardcode_libdir_separator=':'
8541 link_all_deplibs=yes
8542 export_dynamic_flag_spec='${wl}-Bexport'
8543 runpath_var='LD_RUN_PATH'
8545 if test "$GCC" = yes; then
8546 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8547 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8549 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8550 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8556 hardcode_libdir_flag_spec='-L$libdir'
8557 hardcode_shlibpath_var=no
8566 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8567 echo "${ECHO_T}$ld_shlibs" >&6; }
8568 test "$ld_shlibs" = no && can_build_shared=no
8571 # Do we need to explicitly link libc?
8573 case "x$archive_cmds_need_lc" in
8575 # Assume -lc should be added
8576 archive_cmds_need_lc=yes
8578 if test "$enable_shared" = yes && test "$GCC" = yes; then
8579 case $archive_cmds in
8581 # FIXME: we may have to deal with multi-command sequences.
8584 # Test whether the compiler implicitly links with -lc since on some
8585 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8586 # to ld, don't add -lc before -lgcc.
8587 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8588 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8590 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8593 (eval $ac_compile) 2>&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } 2>conftest.err; then
8599 libobjs=conftest.$ac_objext
8601 wl=$lt_prog_compiler_wl
8602 pic_flag=$lt_prog_compiler_pic
8608 lt_save_allow_undefined_flag=$allow_undefined_flag
8609 allow_undefined_flag=
8610 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8611 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }
8616 archive_cmds_need_lc=no
8618 archive_cmds_need_lc=yes
8620 allow_undefined_flag=$lt_save_allow_undefined_flag
8622 cat conftest.err 1>&5
8625 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8626 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8633 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8634 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8636 libname_spec='lib$name'
8644 shlibpath_overrides_runpath=unknown
8646 dynamic_linker="$host_os ld.so"
8647 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8648 if test "$GCC" = yes; then
8649 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8650 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8651 # if the path contains ";" then we assume it to be the separator
8652 # otherwise default to the standard path separator (i.e. ":") - it is
8653 # assumed that no part of a normal pathname contains ";" but that should
8654 # okay in the real world where ";" in dirpaths is itself problematic.
8655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8660 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8662 need_lib_prefix=unknown
8663 hardcode_into_libs=no
8665 # when you set need_version to no, make sure it does not cause -set_version
8666 # flags to be left without arguments
8667 need_version=unknown
8672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8673 shlibpath_var=LIBPATH
8675 # AIX 3 has no versioning support, so we append a major version to the name.
8676 soname_spec='${libname}${release}${shared_ext}$major'
8683 hardcode_into_libs=yes
8684 if test "$host_cpu" = ia64; then
8685 # AIX 5 supports IA64
8686 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8687 shlibpath_var=LD_LIBRARY_PATH
8689 # With GCC up to 2.95.x, collect2 would create an import file
8690 # for dependence libraries. The import file would start with
8691 # the line `#! .'. This would cause the generated library to
8692 # depend on `.', always an invalid library. This was fixed in
8693 # development snapshots of GCC prior to 3.0.
8695 aix4 | aix4.[01] | aix4.[01].*)
8696 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8698 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8705 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8706 # soname into executable. Probably we can add versioning support to
8707 # collect2, so additional links can be useful in future.
8708 if test "$aix_use_runtimelinking" = yes; then
8709 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8710 # instead of lib<name>.a to let people know that these are not
8711 # typical AIX shared libraries.
8712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8714 # We preserve .a as extension for shared libraries through AIX4.2
8715 # and later when we are not doing run time linking.
8716 library_names_spec='${libname}${release}.a $libname.a'
8717 soname_spec='${libname}${release}${shared_ext}$major'
8719 shlibpath_var=LIBPATH
8724 library_names_spec='$libname.ixlibrary $libname.a'
8725 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8726 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'
8730 library_names_spec='${libname}${shared_ext}'
8731 dynamic_linker="$host_os ld.so"
8732 shlibpath_var=LIBRARY_PATH
8738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8739 soname_spec='${libname}${release}${shared_ext}$major'
8740 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8741 shlibpath_var=LD_LIBRARY_PATH
8742 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8743 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8744 # the default ld.so.conf also contains /usr/contrib/lib and
8745 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8746 # libtool to hard-code these into programs
8749 cygwin* | mingw* | pw32*)
8750 version_type=windows
8755 case $GCC,$host_os in
8756 yes,cygwin* | yes,mingw* | yes,pw32*)
8757 library_names_spec='$libname.dll.a'
8758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8759 postinstall_cmds='base_file=`basename \${file}`~
8760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8761 dldir=$destdir/`dirname \$dlpath`~
8762 test -d \$dldir || mkdir -p \$dldir~
8763 $install_prog $dir/$dlname \$dldir/$dlname~
8764 chmod a+x \$dldir/$dlname'
8765 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8766 dlpath=$dir/\$dldll~
8768 shlibpath_overrides_runpath=yes
8772 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8773 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8774 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8777 # MinGW DLLs use traditional 'lib' prefix
8778 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8779 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8780 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8781 # It is most probably a Windows format PATH printed by
8782 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8783 # path with ; separators, and with drive letters. We can handle the
8784 # drive letters (cygwin fileutils understands them), so leave them,
8785 # especially as we might pass files found there to a mingw objdump,
8786 # which wouldn't understand a cygwinified path. Ahh.
8787 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8789 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8793 # pw32 DLLs use 'pw' prefix rather than 'lib'
8794 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8800 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8803 dynamic_linker='Win32 ld.exe'
8804 # FIXME: first we should search . and the directory the executable is in
8808 darwin* | rhapsody*)
8809 dynamic_linker="$host_os dyld"
8813 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8814 soname_spec='${libname}${release}${major}$shared_ext'
8815 shlibpath_overrides_runpath=yes
8816 shlibpath_var=DYLD_LIBRARY_PATH
8817 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8818 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8819 if test "$GCC" = yes; then
8820 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"`
8822 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8824 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8832 soname_spec='${libname}${release}${shared_ext}$major'
8833 shlibpath_var=LD_LIBRARY_PATH
8840 freebsd* | dragonfly*)
8841 # DragonFly does not have aout. When/if they implement a new
8842 # versioning mechanism, adjust this.
8843 if test -x /usr/bin/objformat; then
8844 objformat=`/usr/bin/objformat`
8847 freebsd[123]*) objformat=aout ;;
8851 version_type=freebsd-$objformat
8852 case $version_type in
8854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8859 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8863 shlibpath_var=LD_LIBRARY_PATH
8866 shlibpath_overrides_runpath=yes
8868 freebsd3.[01]* | freebsdelf3.[01]*)
8869 shlibpath_overrides_runpath=yes
8870 hardcode_into_libs=yes
8872 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8873 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8874 shlibpath_overrides_runpath=no
8875 hardcode_into_libs=yes
8877 freebsd*) # from 4.6 on
8878 shlibpath_overrides_runpath=yes
8879 hardcode_into_libs=yes
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8889 soname_spec='${libname}${release}${shared_ext}$major'
8890 shlibpath_var=LD_LIBRARY_PATH
8891 hardcode_into_libs=yes
8894 hpux9* | hpux10* | hpux11*)
8895 # Give a soname corresponding to the major version so that dld.sl refuses to
8896 # link against other versions.
8903 hardcode_into_libs=yes
8904 dynamic_linker="$host_os dld.so"
8905 shlibpath_var=LD_LIBRARY_PATH
8906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 if test "X$HPUX_IA64_MODE" = X32; then
8910 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8912 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8914 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8918 hardcode_into_libs=yes
8919 dynamic_linker="$host_os dld.sl"
8920 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8923 soname_spec='${libname}${release}${shared_ext}$major'
8924 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8925 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8929 dynamic_linker="$host_os dld.sl"
8930 shlibpath_var=SHLIB_PATH
8931 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8933 soname_spec='${libname}${release}${shared_ext}$major'
8936 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8937 postinstall_cmds='chmod 555 $lib'
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8947 shlibpath_var=LD_LIBRARY_PATH
8948 shlibpath_overrides_runpath=no
8949 hardcode_into_libs=yes
8952 irix5* | irix6* | nonstopux*)
8954 nonstopux*) version_type=nonstopux ;;
8956 if test "$lt_cv_prog_gnu_ld" = yes; then
8964 soname_spec='${libname}${release}${shared_ext}$major'
8965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8967 irix5* | nonstopux*)
8971 case $LD in # libtool.m4 will add one of these switches to LD
8972 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8973 libsuff= shlibsuff= libmagic=32-bit;;
8974 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8975 libsuff=32 shlibsuff=N32 libmagic=N32;;
8976 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8977 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8978 *) libsuff= shlibsuff= libmagic=never-match;;
8982 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8983 shlibpath_overrides_runpath=no
8984 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8985 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8986 hardcode_into_libs=yes
8989 # No shared lib support for Linux oldld, aout, or coff.
8990 linux*oldld* | linux*aout* | linux*coff*)
8994 # This must be Linux ELF.
8995 linux* | k*bsd*-gnu)
8999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9000 soname_spec='${libname}${release}${shared_ext}$major'
9001 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=no
9004 # This implies no fast_install, which is unacceptable.
9005 # Some rework will be needed to allow for fast_install
9006 # before this can be enabled.
9007 hardcode_into_libs=yes
9009 # Append ld.so.conf contents to the search path
9010 if test -f /etc/ld.so.conf; then
9011 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' ' '`
9012 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9015 # We used to test for /lib/ld.so.1 and disable shared libraries on
9016 # powerpc, because MkLinux only supported shared libraries with the
9017 # GNU dynamic linker. Since this was broken with cross compilers,
9018 # most powerpc-linux boxes support dynamic linking these days and
9019 # people can always --disable-shared, the test was removed, and we
9020 # assume the GNU/Linux dynamic linker is in use.
9021 dynamic_linker='GNU/Linux ld.so'
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9029 soname_spec='${libname}${release}${shared_ext}$major'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 shlibpath_overrides_runpath=no
9032 hardcode_into_libs=yes
9033 dynamic_linker='NetBSD ld.elf_so'
9040 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9042 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9043 dynamic_linker='NetBSD (a.out) ld.so'
9045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9046 soname_spec='${libname}${release}${shared_ext}$major'
9047 dynamic_linker='NetBSD ld.elf_so'
9049 shlibpath_var=LD_LIBRARY_PATH
9050 shlibpath_overrides_runpath=yes
9051 hardcode_into_libs=yes
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9057 shlibpath_var=LD_LIBRARY_PATH
9058 shlibpath_overrides_runpath=yes
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066 soname_spec='${libname}${release}${shared_ext}$major'
9067 shlibpath_var=LD_LIBRARY_PATH
9068 shlibpath_overrides_runpath=yes
9073 sys_lib_dlsearch_path_spec="/usr/lib"
9075 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9077 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9078 *) need_version=no ;;
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9085 openbsd2.[89] | openbsd2.[89].*)
9086 shlibpath_overrides_runpath=no
9089 shlibpath_overrides_runpath=yes
9093 shlibpath_overrides_runpath=yes
9098 libname_spec='$name'
9101 library_names_spec='$libname${shared_ext} $libname.a'
9102 dynamic_linker='OS/2 ld.exe'
9103 shlibpath_var=LIBPATH
9106 osf3* | osf4* | osf5*)
9110 soname_spec='${libname}${release}${shared_ext}$major'
9111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9112 shlibpath_var=LD_LIBRARY_PATH
9113 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9114 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 soname_spec='${libname}${release}${shared_ext}$major'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 shlibpath_overrides_runpath=yes
9125 hardcode_into_libs=yes
9126 # ldd complains unless libraries are executable
9127 postinstall_cmds='chmod +x $lib'
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9133 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 shlibpath_overrides_runpath=yes
9136 if test "$with_gnu_ld" = yes; then
9144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9145 soname_spec='${libname}${release}${shared_ext}$major'
9146 shlibpath_var=LD_LIBRARY_PATH
9147 case $host_vendor in
9149 shlibpath_overrides_runpath=no
9151 export_dynamic_flag_spec='${wl}-Blargedynsym'
9152 runpath_var=LD_RUN_PATH
9160 shlibpath_overrides_runpath=no
9161 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9167 if test -d /usr/nec ;then
9169 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9170 soname_spec='$libname${shared_ext}.$major'
9171 shlibpath_var=LD_LIBRARY_PATH
9175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9176 version_type=freebsd-elf
9179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9180 soname_spec='${libname}${release}${shared_ext}$major'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 hardcode_into_libs=yes
9183 if test "$with_gnu_ld" = yes; then
9184 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9185 shlibpath_overrides_runpath=no
9187 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9188 shlibpath_overrides_runpath=yes
9191 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9195 sys_lib_dlsearch_path_spec='/usr/lib'
9200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9201 soname_spec='${libname}${release}${shared_ext}$major'
9202 shlibpath_var=LD_LIBRARY_PATH
9209 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9210 echo "${ECHO_T}$dynamic_linker" >&6; }
9211 test "$dynamic_linker" = no && can_build_shared=no
9213 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9214 if test "$GCC" = yes; then
9215 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9218 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9219 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9221 if test -n "$hardcode_libdir_flag_spec" || \
9222 test -n "$runpath_var" || \
9223 test "X$hardcode_automatic" = "Xyes" ; then
9225 # We can hardcode non-existant directories.
9226 if test "$hardcode_direct" != no &&
9227 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9228 # have to relink, otherwise we might link with an installed library
9229 # when we should be linking with a yet-to-be-installed one
9230 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9231 test "$hardcode_minus_L" != no; then
9232 # Linking always hardcodes the temporary library directory.
9233 hardcode_action=relink
9235 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9236 hardcode_action=immediate
9239 # We cannot hardcode anything, or else we can only hardcode existing
9241 hardcode_action=unsupported
9243 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9244 echo "${ECHO_T}$hardcode_action" >&6; }
9246 if test "$hardcode_action" = relink; then
9247 # Fast installation is not supported
9248 enable_fast_install=no
9249 elif test "$shlibpath_overrides_runpath" = yes ||
9250 test "$enable_shared" = no; then
9251 # Fast installation is not necessary
9252 enable_fast_install=needless
9257 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9258 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9259 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9260 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9261 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9262 { echo "$as_me:$LINENO: result: yes" >&5
9263 echo "${ECHO_T}yes" >&6; }
9265 # FIXME - insert some real tests, host_os isn't really good enough
9268 if test -n "$STRIP" ; then
9269 striplib="$STRIP -x"
9270 { echo "$as_me:$LINENO: result: yes" >&5
9271 echo "${ECHO_T}yes" >&6; }
9273 { echo "$as_me:$LINENO: result: no" >&5
9274 echo "${ECHO_T}no" >&6; }
9278 { echo "$as_me:$LINENO: result: no" >&5
9279 echo "${ECHO_T}no" >&6; }
9284 if test "x$enable_dlopen" != xyes; then
9285 enable_dlopen=unknown
9286 enable_dlopen_self=unknown
9287 enable_dlopen_self_static=unknown
9294 lt_cv_dlopen="load_add_on"
9296 lt_cv_dlopen_self=yes
9300 lt_cv_dlopen="LoadLibrary"
9305 lt_cv_dlopen="dlopen"
9310 # if libdl is installed we need to link against it
9311 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9312 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9313 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9314 echo $ECHO_N "(cached) $ECHO_C" >&6
9316 ac_check_lib_save_LIBS=$LIBS
9318 cat >conftest.$ac_ext <<_ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9325 /* Override any GCC internal prototype to avoid an error.
9326 Use char because int might match the return type of a GCC
9327 builtin and then its argument prototype would still apply. */
9340 rm -f conftest.$ac_objext conftest$ac_exeext
9341 if { (ac_try="$ac_link"
9343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9344 *) ac_try_echo=$ac_try;;
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_link") 2>conftest.er1
9349 grep -v '^ *+' conftest.er1 >conftest.err
9351 cat conftest.err >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } && {
9354 test -z "$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9356 } && test -s conftest$ac_exeext &&
9357 $as_test_x conftest$ac_exeext; then
9358 ac_cv_lib_dl_dlopen=yes
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.$ac_ext >&5
9363 ac_cv_lib_dl_dlopen=no
9366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9367 conftest$ac_exeext conftest.$ac_ext
9368 LIBS=$ac_check_lib_save_LIBS
9370 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9371 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9372 if test $ac_cv_lib_dl_dlopen = yes; then
9373 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9378 lt_cv_dlopen_self=yes
9385 { echo "$as_me:$LINENO: checking for shl_load" >&5
9386 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9387 if test "${ac_cv_func_shl_load+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 cat >conftest.$ac_ext <<_ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9398 #define shl_load innocuous_shl_load
9400 /* System header to define __stub macros and hopefully few prototypes,
9401 which can conflict with char shl_load (); below.
9402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9403 <limits.h> exists even on freestanding compilers. */
9406 # include <limits.h>
9408 # include <assert.h>
9413 /* Override any GCC internal prototype to avoid an error.
9414 Use char because int might match the return type of a GCC
9415 builtin and then its argument prototype would still apply. */
9420 /* The GNU C library defines this for functions which it implements
9421 to always fail with ENOSYS. Some functions are actually named
9422 something starting with __ and the normal name is an alias. */
9423 #if defined __stub_shl_load || defined __stub___shl_load
9435 rm -f conftest.$ac_objext conftest$ac_exeext
9436 if { (ac_try="$ac_link"
9438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9439 *) ac_try_echo=$ac_try;;
9441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9442 (eval "$ac_link") 2>conftest.er1
9444 grep -v '^ *+' conftest.er1 >conftest.err
9446 cat conftest.err >&5
9447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9448 (exit $ac_status); } && {
9449 test -z "$ac_c_werror_flag" ||
9450 test ! -s conftest.err
9451 } && test -s conftest$ac_exeext &&
9452 $as_test_x conftest$ac_exeext; then
9453 ac_cv_func_shl_load=yes
9455 echo "$as_me: failed program was:" >&5
9456 sed 's/^/| /' conftest.$ac_ext >&5
9458 ac_cv_func_shl_load=no
9461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9462 conftest$ac_exeext conftest.$ac_ext
9464 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9465 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9466 if test $ac_cv_func_shl_load = yes; then
9467 lt_cv_dlopen="shl_load"
9469 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9470 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9471 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9472 echo $ECHO_N "(cached) $ECHO_C" >&6
9474 ac_check_lib_save_LIBS=$LIBS
9476 cat >conftest.$ac_ext <<_ACEOF
9479 cat confdefs.h >>conftest.$ac_ext
9480 cat >>conftest.$ac_ext <<_ACEOF
9481 /* end confdefs.h. */
9483 /* Override any GCC internal prototype to avoid an error.
9484 Use char because int might match the return type of a GCC
9485 builtin and then its argument prototype would still apply. */
9498 rm -f conftest.$ac_objext conftest$ac_exeext
9499 if { (ac_try="$ac_link"
9501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9502 *) ac_try_echo=$ac_try;;
9504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9505 (eval "$ac_link") 2>conftest.er1
9507 grep -v '^ *+' conftest.er1 >conftest.err
9509 cat conftest.err >&5
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); } && {
9512 test -z "$ac_c_werror_flag" ||
9513 test ! -s conftest.err
9514 } && test -s conftest$ac_exeext &&
9515 $as_test_x conftest$ac_exeext; then
9516 ac_cv_lib_dld_shl_load=yes
9518 echo "$as_me: failed program was:" >&5
9519 sed 's/^/| /' conftest.$ac_ext >&5
9521 ac_cv_lib_dld_shl_load=no
9524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9525 conftest$ac_exeext conftest.$ac_ext
9526 LIBS=$ac_check_lib_save_LIBS
9528 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9529 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9530 if test $ac_cv_lib_dld_shl_load = yes; then
9531 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9533 { echo "$as_me:$LINENO: checking for dlopen" >&5
9534 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9535 if test "${ac_cv_func_dlopen+set}" = set; then
9536 echo $ECHO_N "(cached) $ECHO_C" >&6
9538 cat >conftest.$ac_ext <<_ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9546 #define dlopen innocuous_dlopen
9548 /* System header to define __stub macros and hopefully few prototypes,
9549 which can conflict with char dlopen (); below.
9550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9551 <limits.h> exists even on freestanding compilers. */
9554 # include <limits.h>
9556 # include <assert.h>
9561 /* Override any GCC internal prototype to avoid an error.
9562 Use char because int might match the return type of a GCC
9563 builtin and then its argument prototype would still apply. */
9568 /* The GNU C library defines this for functions which it implements
9569 to always fail with ENOSYS. Some functions are actually named
9570 something starting with __ and the normal name is an alias. */
9571 #if defined __stub_dlopen || defined __stub___dlopen
9583 rm -f conftest.$ac_objext conftest$ac_exeext
9584 if { (ac_try="$ac_link"
9586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9587 *) ac_try_echo=$ac_try;;
9589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9590 (eval "$ac_link") 2>conftest.er1
9592 grep -v '^ *+' conftest.er1 >conftest.err
9594 cat conftest.err >&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); } && {
9597 test -z "$ac_c_werror_flag" ||
9598 test ! -s conftest.err
9599 } && test -s conftest$ac_exeext &&
9600 $as_test_x conftest$ac_exeext; then
9601 ac_cv_func_dlopen=yes
9603 echo "$as_me: failed program was:" >&5
9604 sed 's/^/| /' conftest.$ac_ext >&5
9606 ac_cv_func_dlopen=no
9609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9610 conftest$ac_exeext conftest.$ac_ext
9612 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9613 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9614 if test $ac_cv_func_dlopen = yes; then
9615 lt_cv_dlopen="dlopen"
9617 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9618 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9619 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9620 echo $ECHO_N "(cached) $ECHO_C" >&6
9622 ac_check_lib_save_LIBS=$LIBS
9624 cat >conftest.$ac_ext <<_ACEOF
9627 cat confdefs.h >>conftest.$ac_ext
9628 cat >>conftest.$ac_ext <<_ACEOF
9629 /* end confdefs.h. */
9631 /* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9646 rm -f conftest.$ac_objext conftest$ac_exeext
9647 if { (ac_try="$ac_link"
9649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9650 *) ac_try_echo=$ac_try;;
9652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9653 (eval "$ac_link") 2>conftest.er1
9655 grep -v '^ *+' conftest.er1 >conftest.err
9657 cat conftest.err >&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); } && {
9660 test -z "$ac_c_werror_flag" ||
9661 test ! -s conftest.err
9662 } && test -s conftest$ac_exeext &&
9663 $as_test_x conftest$ac_exeext; then
9664 ac_cv_lib_dl_dlopen=yes
9666 echo "$as_me: failed program was:" >&5
9667 sed 's/^/| /' conftest.$ac_ext >&5
9669 ac_cv_lib_dl_dlopen=no
9672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9673 conftest$ac_exeext conftest.$ac_ext
9674 LIBS=$ac_check_lib_save_LIBS
9676 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9677 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9678 if test $ac_cv_lib_dl_dlopen = yes; then
9679 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9681 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9682 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9683 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 ac_check_lib_save_LIBS=$LIBS
9688 cat >conftest.$ac_ext <<_ACEOF
9691 cat confdefs.h >>conftest.$ac_ext
9692 cat >>conftest.$ac_ext <<_ACEOF
9693 /* end confdefs.h. */
9695 /* Override any GCC internal prototype to avoid an error.
9696 Use char because int might match the return type of a GCC
9697 builtin and then its argument prototype would still apply. */
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (ac_try="$ac_link"
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_link") 2>conftest.er1
9719 grep -v '^ *+' conftest.er1 >conftest.err
9721 cat conftest.err >&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest$ac_exeext &&
9727 $as_test_x conftest$ac_exeext; then
9728 ac_cv_lib_svld_dlopen=yes
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.$ac_ext >&5
9733 ac_cv_lib_svld_dlopen=no
9736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9737 conftest$ac_exeext conftest.$ac_ext
9738 LIBS=$ac_check_lib_save_LIBS
9740 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9741 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9742 if test $ac_cv_lib_svld_dlopen = yes; then
9743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9745 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9746 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9747 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 ac_check_lib_save_LIBS=$LIBS
9752 cat >conftest.$ac_ext <<_ACEOF
9755 cat confdefs.h >>conftest.$ac_ext
9756 cat >>conftest.$ac_ext <<_ACEOF
9757 /* end confdefs.h. */
9759 /* Override any GCC internal prototype to avoid an error.
9760 Use char because int might match the return type of a GCC
9761 builtin and then its argument prototype would still apply. */
9774 rm -f conftest.$ac_objext conftest$ac_exeext
9775 if { (ac_try="$ac_link"
9777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9778 *) ac_try_echo=$ac_try;;
9780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9781 (eval "$ac_link") 2>conftest.er1
9783 grep -v '^ *+' conftest.er1 >conftest.err
9785 cat conftest.err >&5
9786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9787 (exit $ac_status); } && {
9788 test -z "$ac_c_werror_flag" ||
9789 test ! -s conftest.err
9790 } && test -s conftest$ac_exeext &&
9791 $as_test_x conftest$ac_exeext; then
9792 ac_cv_lib_dld_dld_link=yes
9794 echo "$as_me: failed program was:" >&5
9795 sed 's/^/| /' conftest.$ac_ext >&5
9797 ac_cv_lib_dld_dld_link=no
9800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9801 conftest$ac_exeext conftest.$ac_ext
9802 LIBS=$ac_check_lib_save_LIBS
9804 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9805 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9806 if test $ac_cv_lib_dld_dld_link = yes; then
9807 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9828 if test "x$lt_cv_dlopen" != xno; then
9834 case $lt_cv_dlopen in
9836 save_CPPFLAGS="$CPPFLAGS"
9837 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9839 save_LDFLAGS="$LDFLAGS"
9840 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9843 LIBS="$lt_cv_dlopen_libs $LIBS"
9845 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9846 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9847 if test "${lt_cv_dlopen_self+set}" = set; then
9848 echo $ECHO_N "(cached) $ECHO_C" >&6
9850 if test "$cross_compiling" = yes; then :
9851 lt_cv_dlopen_self=cross
9853 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9854 lt_status=$lt_dlunknown
9855 cat > conftest.$ac_ext <<EOF
9856 #line 9856 "configure"
9857 #include "confdefs.h"
9866 # define LT_DLGLOBAL RTLD_GLOBAL
9869 # define LT_DLGLOBAL DL_GLOBAL
9871 # define LT_DLGLOBAL 0
9875 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9876 find out it does not work in some platform. */
9877 #ifndef LT_DLLAZY_OR_NOW
9879 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9882 # define LT_DLLAZY_OR_NOW DL_LAZY
9885 # define LT_DLLAZY_OR_NOW RTLD_NOW
9888 # define LT_DLLAZY_OR_NOW DL_NOW
9890 # define LT_DLLAZY_OR_NOW 0
9898 extern "C" void exit (int);
9901 void fnord() { int i=42;}
9904 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9905 int status = $lt_dlunknown;
9909 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9910 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9911 /* dlclose (self); */
9919 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9920 (eval $ac_link) 2>&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9924 (./conftest; exit; ) >&5 2>/dev/null
9927 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9928 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9929 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9932 # compilation failed
9933 lt_cv_dlopen_self=no
9940 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9941 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9943 if test "x$lt_cv_dlopen_self" = xyes; then
9944 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9945 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9946 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9947 if test "${lt_cv_dlopen_self_static+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 if test "$cross_compiling" = yes; then :
9951 lt_cv_dlopen_self_static=cross
9953 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9954 lt_status=$lt_dlunknown
9955 cat > conftest.$ac_ext <<EOF
9956 #line 9956 "configure"
9957 #include "confdefs.h"
9966 # define LT_DLGLOBAL RTLD_GLOBAL
9969 # define LT_DLGLOBAL DL_GLOBAL
9971 # define LT_DLGLOBAL 0
9975 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9976 find out it does not work in some platform. */
9977 #ifndef LT_DLLAZY_OR_NOW
9979 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9982 # define LT_DLLAZY_OR_NOW DL_LAZY
9985 # define LT_DLLAZY_OR_NOW RTLD_NOW
9988 # define LT_DLLAZY_OR_NOW DL_NOW
9990 # define LT_DLLAZY_OR_NOW 0
9998 extern "C" void exit (int);
10001 void fnord() { int i=42;}
10004 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10005 int status = $lt_dlunknown;
10009 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10010 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10011 /* dlclose (self); */
10019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020 (eval $ac_link) 2>&5
10022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10023 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10024 (./conftest; exit; ) >&5 2>/dev/null
10026 case x$lt_status in
10027 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10028 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10029 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10032 # compilation failed
10033 lt_cv_dlopen_self_static=no
10040 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10041 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10044 CPPFLAGS="$save_CPPFLAGS"
10045 LDFLAGS="$save_LDFLAGS"
10050 case $lt_cv_dlopen_self in
10051 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10052 *) enable_dlopen_self=unknown ;;
10055 case $lt_cv_dlopen_self_static in
10056 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10057 *) enable_dlopen_self_static=unknown ;;
10062 # Report which library types will actually be built
10063 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10064 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10065 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10066 echo "${ECHO_T}$can_build_shared" >&6; }
10068 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10069 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10070 test "$can_build_shared" = "no" && enable_shared=no
10072 # On AIX, shared libraries and static libraries use the same namespace, and
10073 # are all built from PIC.
10076 test "$enable_shared" = yes && enable_static=no
10077 if test -n "$RANLIB"; then
10078 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10079 postinstall_cmds='$RANLIB $lib'
10084 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10085 test "$enable_shared" = yes && enable_static=no
10089 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10090 echo "${ECHO_T}$enable_shared" >&6; }
10092 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10093 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10094 # Make sure either enable_shared or enable_static is yes.
10095 test "$enable_shared" = yes || enable_static=yes
10096 { echo "$as_me:$LINENO: result: $enable_static" >&5
10097 echo "${ECHO_T}$enable_static" >&6; }
10099 # The else clause should only fire when bootstrapping the
10100 # libtool distribution, otherwise you forgot to ship ltmain.sh
10101 # with your package, and you will get complaints that there are
10102 # no rules to generate ltmain.sh.
10103 if test -f "$ltmain"; then
10104 # See if we are running on zsh, and set the options which allow our commands through
10105 # without removal of \ escapes.
10106 if test -n "${ZSH_VERSION+set}" ; then
10107 setopt NO_GLOB_SUBST
10109 # Now quote all the things that may contain metacharacters while being
10110 # careful not to overquote the AC_SUBSTed values. We take copies of the
10111 # variables and quote the copies for generation of the libtool script.
10112 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10114 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10115 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10116 deplibs_check_method reload_flag reload_cmds need_locks \
10117 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10118 lt_cv_sys_global_symbol_to_c_name_address \
10119 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10120 old_postinstall_cmds old_postuninstall_cmds \
10124 lt_prog_compiler_wl \
10125 lt_prog_compiler_pic \
10126 lt_prog_compiler_static \
10127 lt_prog_compiler_no_builtin_flag \
10128 export_dynamic_flag_spec \
10129 thread_safe_flag_spec \
10130 whole_archive_flag_spec \
10131 enable_shared_with_static_runtimes \
10133 old_archive_from_new_cmds \
10138 compiler_lib_search_path \
10140 archive_expsym_cmds \
10142 postuninstall_cmds \
10143 old_archive_from_expsyms_cmds \
10144 allow_undefined_flag \
10145 no_undefined_flag \
10146 export_symbols_cmds \
10147 hardcode_libdir_flag_spec \
10148 hardcode_libdir_flag_spec_ld \
10149 hardcode_libdir_separator \
10150 hardcode_automatic \
10152 module_expsym_cmds \
10153 lt_cv_prog_compiler_c_o \
10155 include_expsyms; do
10158 old_archive_cmds | \
10159 old_archive_from_new_cmds | \
10161 archive_expsym_cmds | \
10163 module_expsym_cmds | \
10164 old_archive_from_expsyms_cmds | \
10165 export_symbols_cmds | \
10166 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10167 postinstall_cmds | postuninstall_cmds | \
10168 old_postinstall_cmds | old_postuninstall_cmds | \
10169 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10170 # Double-quote double-evaled strings.
10171 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10174 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10180 *'\$0 --fallback-echo"')
10181 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10185 cfgfile="${ofile}T"
10186 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10188 { echo "$as_me:$LINENO: creating $ofile" >&5
10189 echo "$as_me: creating $ofile" >&6;}
10191 cat <<__EOF__ >> "$cfgfile"
10194 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10195 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10196 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10198 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10199 # Free Software Foundation, Inc.
10201 # This file is part of GNU Libtool:
10202 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10204 # This program is free software; you can redistribute it and/or modify
10205 # it under the terms of the GNU General Public License as published by
10206 # the Free Software Foundation; either version 2 of the License, or
10207 # (at your option) any later version.
10209 # This program is distributed in the hope that it will be useful, but
10210 # WITHOUT ANY WARRANTY; without even the implied warranty of
10211 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10212 # General Public License for more details.
10214 # You should have received a copy of the GNU General Public License
10215 # along with this program; if not, write to the Free Software
10216 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10218 # As a special exception to the GNU General Public License, if you
10219 # distribute this file as part of a program that contains a
10220 # configuration script generated by Autoconf, you may include it under
10221 # the same distribution terms that you use for the rest of that program.
10223 # A sed program that does not truncate output.
10226 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10227 Xsed="$SED -e 1s/^X//"
10229 # The HP-UX ksh and POSIX shell print the target directory to stdout
10230 # if CDPATH is set.
10231 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10233 # The names of the tagged configurations supported by this script.
10236 # ### BEGIN LIBTOOL CONFIG
10238 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10240 # Shell to use when invoking shell scripts.
10243 # Whether or not to build shared libraries.
10244 build_libtool_libs=$enable_shared
10246 # Whether or not to build static libraries.
10247 build_old_libs=$enable_static
10249 # Whether or not to add -lc for building shared libraries.
10250 build_libtool_need_lc=$archive_cmds_need_lc
10252 # Whether or not to disallow shared libs when runtime libs are static
10253 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10255 # Whether or not to optimize for fast installation.
10256 fast_install=$enable_fast_install
10259 host_alias=$host_alias
10263 # The build system.
10264 build_alias=$build_alias
10268 # An echo program that does not interpret backslashes.
10273 AR_FLAGS=$lt_AR_FLAGS
10278 # LTCC compiler flags.
10279 LTCFLAGS=$lt_LTCFLAGS
10281 # A language-specific compiler.
10284 # Is the compiler the GNU C compiler?
10290 # The linker used to build libraries.
10293 # Whether we need hard or soft links.
10296 # A BSD-compatible nm program.
10299 # A symbol stripping program
10302 # Used to examine libraries when file_magic_cmd begins "file"
10303 MAGIC_CMD=$MAGIC_CMD
10305 # Used on cygwin: DLL creation program.
10308 # Used on cygwin: object dumper.
10311 # Used on cygwin: assembler.
10314 # The name of the directory that contains temporary libtool files.
10317 # How to create reloadable object files.
10318 reload_flag=$lt_reload_flag
10319 reload_cmds=$lt_reload_cmds
10321 # How to pass a linker flag through the compiler.
10322 wl=$lt_lt_prog_compiler_wl
10324 # Object file suffix (normally "o").
10325 objext="$ac_objext"
10327 # Old archive suffix (normally "a").
10330 # Shared library suffix (normally ".so").
10331 shrext_cmds='$shrext_cmds'
10333 # Executable file suffix (normally "").
10336 # Additional compiler flags for building library objects.
10337 pic_flag=$lt_lt_prog_compiler_pic
10340 # What is the maximum length of a command?
10341 max_cmd_len=$lt_cv_sys_max_cmd_len
10343 # Does compiler simultaneously support -c and -o options?
10344 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10346 # Must we lock files when doing compilation?
10347 need_locks=$lt_need_locks
10349 # Do we need the lib prefix for modules?
10350 need_lib_prefix=$need_lib_prefix
10352 # Do we need a version for libraries?
10353 need_version=$need_version
10355 # Whether dlopen is supported.
10356 dlopen_support=$enable_dlopen
10358 # Whether dlopen of programs is supported.
10359 dlopen_self=$enable_dlopen_self
10361 # Whether dlopen of statically linked programs is supported.
10362 dlopen_self_static=$enable_dlopen_self_static
10364 # Compiler flag to prevent dynamic linking.
10365 link_static_flag=$lt_lt_prog_compiler_static
10367 # Compiler flag to turn off builtin functions.
10368 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10370 # Compiler flag to allow reflexive dlopens.
10371 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10373 # Compiler flag to generate shared objects directly from archives.
10374 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10376 # Compiler flag to generate thread-safe objects.
10377 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10379 # Library versioning type.
10380 version_type=$version_type
10382 # Format of library name prefix.
10383 libname_spec=$lt_libname_spec
10385 # List of archive names. First name is the real one, the rest are links.
10386 # The last name is the one that the linker finds with -lNAME.
10387 library_names_spec=$lt_library_names_spec
10389 # The coded name of the library, if different from the real name.
10390 soname_spec=$lt_soname_spec
10392 # Commands used to build and install an old-style archive.
10394 old_archive_cmds=$lt_old_archive_cmds
10395 old_postinstall_cmds=$lt_old_postinstall_cmds
10396 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10398 # Create an old-style archive from a shared archive.
10399 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10401 # Create a temporary old-style archive to link instead of a shared archive.
10402 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10404 # Commands used to build and install a shared archive.
10405 archive_cmds=$lt_archive_cmds
10406 archive_expsym_cmds=$lt_archive_expsym_cmds
10407 postinstall_cmds=$lt_postinstall_cmds
10408 postuninstall_cmds=$lt_postuninstall_cmds
10410 # Commands used to build a loadable module (assumed same as above if empty)
10411 module_cmds=$lt_module_cmds
10412 module_expsym_cmds=$lt_module_expsym_cmds
10414 # Commands to strip libraries.
10415 old_striplib=$lt_old_striplib
10416 striplib=$lt_striplib
10418 # Dependencies to place before the objects being linked to create a
10420 predep_objects=$lt_predep_objects
10422 # Dependencies to place after the objects being linked to create a
10424 postdep_objects=$lt_postdep_objects
10426 # Dependencies to place before the objects being linked to create a
10428 predeps=$lt_predeps
10430 # Dependencies to place after the objects being linked to create a
10432 postdeps=$lt_postdeps
10434 # The library search path used internally by the compiler when linking
10435 # a shared library.
10436 compiler_lib_search_path=$lt_compiler_lib_search_path
10438 # Method to check whether dependent libraries are shared objects.
10439 deplibs_check_method=$lt_deplibs_check_method
10441 # Command to use when deplibs_check_method == file_magic.
10442 file_magic_cmd=$lt_file_magic_cmd
10444 # Flag that allows shared libraries with undefined symbols to be built.
10445 allow_undefined_flag=$lt_allow_undefined_flag
10447 # Flag that forces no undefined symbols.
10448 no_undefined_flag=$lt_no_undefined_flag
10450 # Commands used to finish a libtool library installation in a directory.
10451 finish_cmds=$lt_finish_cmds
10453 # Same as above, but a single script fragment to be evaled but not shown.
10454 finish_eval=$lt_finish_eval
10456 # Take the output of nm and produce a listing of raw symbols and C names.
10457 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10459 # Transform the output of nm in a proper C declaration
10460 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10462 # Transform the output of nm in a C name address pair
10463 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10465 # This is the shared library runtime path variable.
10466 runpath_var=$runpath_var
10468 # This is the shared library path variable.
10469 shlibpath_var=$shlibpath_var
10471 # Is shlibpath searched before the hard-coded library search path?
10472 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10474 # How to hardcode a shared library path into an executable.
10475 hardcode_action=$hardcode_action
10477 # Whether we should hardcode library paths into libraries.
10478 hardcode_into_libs=$hardcode_into_libs
10480 # Flag to hardcode \$libdir into a binary during linking.
10481 # This must work even if \$libdir does not exist.
10482 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10484 # If ld is used when linking, flag to hardcode \$libdir into
10485 # a binary during linking. This must work even if \$libdir does
10487 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10489 # Whether we need a single -rpath flag with a separated argument.
10490 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10492 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10493 # resulting binary.
10494 hardcode_direct=$hardcode_direct
10496 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10497 # resulting binary.
10498 hardcode_minus_L=$hardcode_minus_L
10500 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10501 # the resulting binary.
10502 hardcode_shlibpath_var=$hardcode_shlibpath_var
10504 # Set to yes if building a shared library automatically hardcodes DIR into the library
10505 # and all subsequent libraries and executables linked against it.
10506 hardcode_automatic=$hardcode_automatic
10508 # Variables whose values should be saved in libtool wrapper scripts and
10509 # restored at relink time.
10510 variables_saved_for_relink="$variables_saved_for_relink"
10512 # Whether libtool must link a program against all its dependency libraries.
10513 link_all_deplibs=$link_all_deplibs
10515 # Compile-time system search path for libraries
10516 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10518 # Run-time system search path for libraries
10519 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10521 # Fix the shell variable \$srcfile for the compiler.
10522 fix_srcfile_path="$fix_srcfile_path"
10524 # Set to yes if exported symbols are required.
10525 always_export_symbols=$always_export_symbols
10527 # The commands to list exported symbols.
10528 export_symbols_cmds=$lt_export_symbols_cmds
10530 # The commands to extract the exported symbol list from a shared archive.
10531 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10533 # Symbols that should not be listed in the preloaded symbols.
10534 exclude_expsyms=$lt_exclude_expsyms
10536 # Symbols that must always be exported.
10537 include_expsyms=$lt_include_expsyms
10539 # ### END LIBTOOL CONFIG
10546 cat <<\EOF >> "$cfgfile"
10548 # AIX sometimes has problems with the GCC collect2 program. For some
10549 # reason, if we set the COLLECT_NAMES environment variable, the problems
10550 # vanish in a puff of smoke.
10551 if test "X${COLLECT_NAMES+set}" != Xset; then
10553 export COLLECT_NAMES
10559 # We use sed instead of cat because bash on DJGPP gets confused if
10560 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10561 # text mode, it properly converts lines to CR/LF. This bash problem
10562 # is reportedly fixed, but why not run on old versions too?
10563 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10565 mv -f "$cfgfile" "$ofile" || \
10566 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10570 # If there is no Makefile yet, we rely on a make rule to execute
10571 # `config.status --recheck' to rerun these tests and create the
10572 # libtool script then.
10573 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10574 if test -f "$ltmain_in"; then
10575 test -f Makefile && make "$ltmain"
10581 ac_cpp='$CPP $CPPFLAGS'
10582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10589 # Check whether --with-tags was given.
10590 if test "${with_tags+set}" = set; then
10591 withval=$with_tags; tagnames="$withval"
10595 if test -f "$ltmain" && test -n "$tagnames"; then
10596 if test ! -f "${ofile}"; then
10597 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10598 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10601 if test -z "$LTCC"; then
10602 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10603 if test -z "$LTCC"; then
10604 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10605 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10607 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10608 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10611 if test -z "$LTCFLAGS"; then
10612 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10615 # Extract list of available tagged configurations in $ofile.
10616 # Note that this assumes the entire list is on one line.
10617 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10620 for tagname in $tagnames; do
10622 # Check whether tagname contains only valid characters
10623 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10625 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10626 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10627 { (exit 1); exit 1; }; }
10631 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10633 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10634 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10635 { (exit 1); exit 1; }; }
10638 # Update the list of available tags.
10639 if test -n "$tagname"; then
10640 echo appending configuration tag \"$tagname\" to $ofile
10644 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10645 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10646 (test "X$CXX" != "Xg++"))) ; then
10648 ac_cpp='$CXXCPP $CPPFLAGS'
10649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10656 archive_cmds_need_lc_CXX=no
10657 allow_undefined_flag_CXX=
10658 always_export_symbols_CXX=no
10659 archive_expsym_cmds_CXX=
10660 export_dynamic_flag_spec_CXX=
10661 hardcode_direct_CXX=no
10662 hardcode_libdir_flag_spec_CXX=
10663 hardcode_libdir_flag_spec_ld_CXX=
10664 hardcode_libdir_separator_CXX=
10665 hardcode_minus_L_CXX=no
10666 hardcode_shlibpath_var_CXX=unsupported
10667 hardcode_automatic_CXX=no
10669 module_expsym_cmds_CXX=
10670 link_all_deplibs_CXX=unknown
10671 old_archive_cmds_CXX=$old_archive_cmds
10672 no_undefined_flag_CXX=
10673 whole_archive_flag_spec_CXX=
10674 enable_shared_with_static_runtimes_CXX=no
10676 # Dependencies to place before and after the object being linked:
10677 predep_objects_CXX=
10678 postdep_objects_CXX=
10681 compiler_lib_search_path_CXX=
10683 # Source file extension for C++ test sources.
10686 # Object file extension for compiled C++ test sources.
10690 # Code to be used in simple compile tests
10691 lt_simple_compile_test_code="int some_variable = 0;\n"
10693 # Code to be used in simple link tests
10694 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10696 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10698 # If no C compiler was specified, use CC.
10701 # If no C compiler flags were specified, use CFLAGS.
10702 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10704 # Allow CC to be a program name with arguments.
10708 # save warnings/boilerplate of simple test code
10709 ac_outfile=conftest.$ac_objext
10710 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10711 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10712 _lt_compiler_boilerplate=`cat conftest.err`
10715 ac_outfile=conftest.$ac_objext
10716 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10717 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10718 _lt_linker_boilerplate=`cat conftest.err`
10722 # Allow CC to be a program name with arguments.
10727 lt_save_with_gnu_ld=$with_gnu_ld
10728 lt_save_path_LD=$lt_cv_path_LD
10729 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10730 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10732 $as_unset lt_cv_prog_gnu_ld
10734 if test -n "${lt_cv_path_LDCXX+set}"; then
10735 lt_cv_path_LD=$lt_cv_path_LDCXX
10737 $as_unset lt_cv_path_LD
10739 test -z "${LDCXX+set}" || LD=$LDCXX
10743 for cc_temp in $compiler""; do
10745 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10746 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10751 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10754 # We don't want -fno-exception wen compiling C++ code, so set the
10755 # no_builtin_flag separately
10756 if test "$GXX" = yes; then
10757 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10759 lt_prog_compiler_no_builtin_flag_CXX=
10762 if test "$GXX" = yes; then
10763 # Set up default GNU C++ configuration
10766 # Check whether --with-gnu-ld was given.
10767 if test "${with_gnu_ld+set}" = set; then
10768 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10774 if test "$GCC" = yes; then
10775 # Check if gcc -print-prog-name=ld gives a path.
10776 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10777 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10780 # gcc leaves a trailing carriage return which upsets mingw
10781 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10783 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10786 # Accept absolute paths.
10788 re_direlt='/[^/][^/]*/\.\./'
10789 # Canonicalize the pathname of ld
10790 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10791 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10792 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10794 test -z "$LD" && LD="$ac_prog"
10797 # If it fails, then pretend we aren't using GCC.
10801 # If it is relative, then search for the first ld in PATH.
10802 with_gnu_ld=unknown
10805 elif test "$with_gnu_ld" = yes; then
10806 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10807 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10809 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10810 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10812 if test "${lt_cv_path_LD+set}" = set; then
10813 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 if test -z "$LD"; then
10816 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10817 for ac_dir in $PATH; do
10819 test -z "$ac_dir" && ac_dir=.
10820 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10821 lt_cv_path_LD="$ac_dir/$ac_prog"
10822 # Check to see if the program is GNU ld. I'd rather use --version,
10823 # but apparently some variants of GNU ld only accept -v.
10824 # Break only if it was the GNU/non-GNU ld that we prefer.
10825 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10826 *GNU* | *'with BFD'*)
10827 test "$with_gnu_ld" != no && break
10830 test "$with_gnu_ld" != yes && break
10837 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10841 LD="$lt_cv_path_LD"
10842 if test -n "$LD"; then
10843 { echo "$as_me:$LINENO: result: $LD" >&5
10844 echo "${ECHO_T}$LD" >&6; }
10846 { echo "$as_me:$LINENO: result: no" >&5
10847 echo "${ECHO_T}no" >&6; }
10849 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10850 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10851 { (exit 1); exit 1; }; }
10852 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10853 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10854 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10855 echo $ECHO_N "(cached) $ECHO_C" >&6
10857 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10858 case `$LD -v 2>&1 </dev/null` in
10859 *GNU* | *'with BFD'*)
10860 lt_cv_prog_gnu_ld=yes
10863 lt_cv_prog_gnu_ld=no
10867 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10868 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10869 with_gnu_ld=$lt_cv_prog_gnu_ld
10873 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10874 # archiving commands below assume that GNU ld is being used.
10875 if test "$with_gnu_ld" = yes; then
10876 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10877 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'
10879 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10880 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10882 # If archive_cmds runs LD, not CC, wlarc should be empty
10883 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10884 # investigate it a little bit more. (MM)
10887 # ancient GNU ld didn't support --whole-archive et. al.
10888 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10889 grep 'no-whole-archive' > /dev/null; then
10890 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10892 whole_archive_flag_spec_CXX=
10898 # A generic and very simple default shared library creation
10899 # command for GNU C++ for the case where it uses the native
10900 # linker, instead of GNU ld. If possible, this setting should
10901 # overridden to take advantage of the native linker features on
10902 # the platform it is being used on.
10903 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10906 # Commands to make compiler produce verbose output that lists
10907 # what "hidden" libraries, object files and flags are used when
10908 # linking a shared library.
10909 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10917 # PORTME: fill in a description of your system's C++ link characteristics
10918 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10919 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10923 # FIXME: insert proper C++ library support
10927 if test "$host_cpu" = ia64; then
10928 # On IA64, the linker does run time linking by default, so we don't
10929 # have to do anything special.
10930 aix_use_runtimelinking=no
10931 exp_sym_flag='-Bexport'
10934 aix_use_runtimelinking=no
10936 # Test if we are trying to use run time linking or normal
10937 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10938 # need to do runtime linking.
10939 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10940 for ld_flag in $LDFLAGS; do
10943 aix_use_runtimelinking=yes
10951 exp_sym_flag='-bexport'
10952 no_entry_flag='-bnoentry'
10955 # When large executables or shared objects are built, AIX ld can
10956 # have problems creating the table of contents. If linking a library
10957 # or program results in "error TOC overflow" add -mminimal-toc to
10958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10961 archive_cmds_CXX=''
10962 hardcode_direct_CXX=yes
10963 hardcode_libdir_separator_CXX=':'
10964 link_all_deplibs_CXX=yes
10966 if test "$GXX" = yes; then
10967 case $host_os in aix4.[012]|aix4.[012].*)
10968 # We only want to do this on AIX 4.2 and lower, the check
10969 # below for broken collect2 doesn't work under 4.3+
10970 collect2name=`${CC} -print-prog-name=collect2`
10971 if test -f "$collect2name" && \
10972 strings "$collect2name" | grep resolve_lib_name >/dev/null
10974 # We have reworked collect2
10975 hardcode_direct_CXX=yes
10977 # We have old collect2
10978 hardcode_direct_CXX=unsupported
10979 # It fails to find uninstalled libraries when the uninstalled
10980 # path is not listed in the libpath. Setting hardcode_minus_L
10981 # to unsupported forces relinking
10982 hardcode_minus_L_CXX=yes
10983 hardcode_libdir_flag_spec_CXX='-L$libdir'
10984 hardcode_libdir_separator_CXX=
10988 shared_flag='-shared'
10989 if test "$aix_use_runtimelinking" = yes; then
10990 shared_flag="$shared_flag "'${wl}-G'
10994 if test "$host_cpu" = ia64; then
10995 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10996 # chokes on -Wl,-G. The following line is correct:
10999 if test "$aix_use_runtimelinking" = yes; then
11000 shared_flag='${wl}-G'
11002 shared_flag='${wl}-bM:SRE'
11007 # It seems that -bexpall does not export symbols beginning with
11008 # underscore (_), so it is better to generate a list of symbols to export.
11009 always_export_symbols_CXX=yes
11010 if test "$aix_use_runtimelinking" = yes; then
11011 # Warning - without using the other runtime loading flags (-brtl),
11012 # -berok will link without error, but may produce a broken library.
11013 allow_undefined_flag_CXX='-berok'
11014 # Determine the default libpath from the value encoded in an empty executable.
11015 cat >conftest.$ac_ext <<_ACEOF
11018 cat confdefs.h >>conftest.$ac_ext
11019 cat >>conftest.$ac_ext <<_ACEOF
11020 /* end confdefs.h. */
11030 rm -f conftest.$ac_objext conftest$ac_exeext
11031 if { (ac_try="$ac_link"
11032 case "(($ac_try" in
11033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11034 *) ac_try_echo=$ac_try;;
11036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11037 (eval "$ac_link") 2>conftest.er1
11039 grep -v '^ *+' conftest.er1 >conftest.err
11041 cat conftest.err >&5
11042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043 (exit $ac_status); } && {
11044 test -z "$ac_cxx_werror_flag" ||
11045 test ! -s conftest.err
11046 } && test -s conftest$ac_exeext &&
11047 $as_test_x conftest$ac_exeext; then
11049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11051 # Check for a 64-bit object if we didn't find anything.
11052 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; }
11055 echo "$as_me: failed program was:" >&5
11056 sed 's/^/| /' conftest.$ac_ext >&5
11061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11062 conftest$ac_exeext conftest.$ac_ext
11063 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11065 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11067 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"
11069 if test "$host_cpu" = ia64; then
11070 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11071 allow_undefined_flag_CXX="-z nodefs"
11072 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"
11074 # Determine the default libpath from the value encoded in an empty executable.
11075 cat >conftest.$ac_ext <<_ACEOF
11078 cat confdefs.h >>conftest.$ac_ext
11079 cat >>conftest.$ac_ext <<_ACEOF
11080 /* end confdefs.h. */
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (ac_try="$ac_link"
11092 case "(($ac_try" in
11093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11094 *) ac_try_echo=$ac_try;;
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_link") 2>conftest.er1
11099 grep -v '^ *+' conftest.er1 >conftest.err
11101 cat conftest.err >&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } && {
11104 test -z "$ac_cxx_werror_flag" ||
11105 test ! -s conftest.err
11106 } && test -s conftest$ac_exeext &&
11107 $as_test_x conftest$ac_exeext; then
11109 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11111 # Check for a 64-bit object if we didn't find anything.
11112 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; }
11115 echo "$as_me: failed program was:" >&5
11116 sed 's/^/| /' conftest.$ac_ext >&5
11121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11122 conftest$ac_exeext conftest.$ac_ext
11123 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11125 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11126 # Warning - without using the other run time loading flags,
11127 # -berok will link without error, but may produce a broken library.
11128 no_undefined_flag_CXX=' ${wl}-bernotok'
11129 allow_undefined_flag_CXX=' ${wl}-berok'
11130 # Exported symbols can be pulled into shared objects from archives
11131 whole_archive_flag_spec_CXX='$convenience'
11132 archive_cmds_need_lc_CXX=yes
11133 # This is similar to how AIX traditionally builds its shared libraries.
11134 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'
11140 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11141 allow_undefined_flag_CXX=unsupported
11142 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11143 # support --undefined. This deserves some investigation. FIXME
11144 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11151 case $cc_basename in
11153 # FIXME: insert proper C++ library support
11159 cygwin* | mingw* | pw32*)
11160 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11161 # as there is no search path for DLLs.
11162 hardcode_libdir_flag_spec_CXX='-L$libdir'
11163 allow_undefined_flag_CXX=unsupported
11164 always_export_symbols_CXX=no
11165 enable_shared_with_static_runtimes_CXX=yes
11167 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11168 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'
11169 # If the export-symbols file already is a .def file (1st line
11170 # is EXPORTS), use it as is; otherwise, prepend...
11171 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11172 cp $export_symbols $output_objdir/$soname.def;
11174 echo EXPORTS > $output_objdir/$soname.def;
11175 cat $export_symbols >> $output_objdir/$soname.def;
11177 $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'
11182 darwin* | rhapsody*)
11184 rhapsody* | darwin1.[012])
11185 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11188 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11189 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11191 case ${MACOSX_DEPLOYMENT_TARGET} in
11193 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11196 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11202 archive_cmds_need_lc_CXX=no
11203 hardcode_direct_CXX=no
11204 hardcode_automatic_CXX=yes
11205 hardcode_shlibpath_var_CXX=unsupported
11206 whole_archive_flag_spec_CXX=''
11207 link_all_deplibs_CXX=yes
11209 if test "$GXX" = yes ; then
11210 lt_int_apple_cc_single_mod=no
11211 output_verbose_link_cmd='echo'
11212 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11213 lt_int_apple_cc_single_mod=yes
11215 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11216 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11218 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'
11220 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11221 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11222 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11223 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}'
11225 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}'
11227 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}'
11229 case $cc_basename in
11231 output_verbose_link_cmd='echo'
11232 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'
11233 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11234 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11235 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}'
11236 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}'
11246 case $cc_basename in
11248 # FIXME: insert proper C++ library support
11252 # Green Hills C++ Compiler
11253 # FIXME: insert proper C++ library support
11257 # FIXME: insert proper C++ library support
11263 # C++ shared libraries reported to be fairly broken before switch to ELF
11267 archive_cmds_need_lc_CXX=no
11269 freebsd* | dragonfly*)
11270 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11277 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11278 hardcode_libdir_separator_CXX=:
11279 export_dynamic_flag_spec_CXX='${wl}-E'
11280 hardcode_direct_CXX=yes
11281 hardcode_minus_L_CXX=yes # Not in the search PATH,
11282 # but as the default
11283 # location of the library.
11285 case $cc_basename in
11287 # FIXME: insert proper C++ library support
11291 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'
11292 # Commands to make compiler produce verbose output that lists
11293 # what "hidden" libraries, object files and flags are used when
11294 # linking a shared library.
11296 # There doesn't appear to be a way to prevent this compiler from
11297 # explicitly linking system object files so we need to strip them
11298 # from the output so that they don't get included in the library
11300 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'
11303 if test "$GXX" = yes; then
11304 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'
11306 # FIXME: insert proper C++ library support
11313 if test $with_gnu_ld = no; then
11314 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11315 hardcode_libdir_separator_CXX=:
11319 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11322 export_dynamic_flag_spec_CXX='${wl}-E'
11328 hardcode_direct_CXX=no
11329 hardcode_shlibpath_var_CXX=no
11332 hardcode_direct_CXX=yes
11333 hardcode_minus_L_CXX=yes # Not in the search PATH,
11334 # but as the default
11335 # location of the library.
11339 case $cc_basename in
11341 # FIXME: insert proper C++ library support
11347 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11350 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11353 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11356 # Commands to make compiler produce verbose output that lists
11357 # what "hidden" libraries, object files and flags are used when
11358 # linking a shared library.
11360 # There doesn't appear to be a way to prevent this compiler from
11361 # explicitly linking system object files so we need to strip them
11362 # from the output so that they don't get included in the library
11364 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'
11367 if test "$GXX" = yes; then
11368 if test $with_gnu_ld = no; then
11371 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11374 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11377 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'
11382 # FIXME: insert proper C++ library support
11389 hardcode_direct_CXX=no
11390 hardcode_shlibpath_var_CXX=no
11391 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11392 export_dynamic_flag_spec_CXX='${wl}-E'
11393 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11394 # Instead, shared libraries are loaded at an image base (0x10000000 by
11395 # default) and relocated if they conflict, which is a slow very memory
11396 # consuming and fragmenting process. To avoid this, we pick a random,
11397 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11398 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11399 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'
11400 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'
11403 case $cc_basename in
11406 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'
11408 # Archives containing C++ object files must be created using
11409 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11410 # necessary to make sure instantiated templates are included
11412 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11415 if test "$GXX" = yes; then
11416 if test "$with_gnu_ld" = no; then
11417 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'
11419 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'
11422 link_all_deplibs_CXX=yes
11425 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11426 hardcode_libdir_separator_CXX=:
11428 linux* | k*bsd*-gnu)
11429 case $cc_basename in
11431 # Kuck and Associates, Inc. (KAI) C++ Compiler
11433 # KCC will only create a shared library if the output file
11434 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11435 # to its proper name (with version) after linking.
11436 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'
11437 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'
11438 # Commands to make compiler produce verbose output that lists
11439 # what "hidden" libraries, object files and flags are used when
11440 # linking a shared library.
11442 # There doesn't appear to be a way to prevent this compiler from
11443 # explicitly linking system object files so we need to strip them
11444 # from the output so that they don't get included in the library
11446 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'
11448 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11449 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11451 # Archives containing C++ object files must be created using
11452 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11453 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11458 # version 8.0 and above of icpc choke on multiply defined symbols
11459 # if we add $predep_objects and $postdep_objects, however 7.1 and
11460 # earlier do not add the objects themselves.
11461 case `$CC -V 2>&1` in
11463 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11464 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'
11466 *) # Version 8.0 or newer
11469 ia64*) tmp_idyn=' -i_dynamic';;
11471 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11472 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'
11475 archive_cmds_need_lc_CXX=no
11476 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11477 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11478 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11481 # Portland Group C++ compiler
11482 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11483 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'
11485 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11486 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11487 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'
11491 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11492 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'
11494 runpath_var=LD_RUN_PATH
11495 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11496 hardcode_libdir_separator_CXX=:
11498 # Commands to make compiler produce verbose output that lists
11499 # what "hidden" libraries, object files and flags are used when
11500 # linking a shared library.
11502 # There doesn't appear to be a way to prevent this compiler from
11503 # explicitly linking system object files so we need to strip them
11504 # from the output so that they don't get included in the library
11506 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'
11511 # FIXME: insert proper C++ library support
11515 # FIXME: insert proper C++ library support
11519 case $cc_basename in
11521 # FIXME: insert proper C++ library support
11525 # FIXME: insert proper C++ library support
11530 netbsd* | netbsdelf*-gnu)
11531 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11532 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11534 hardcode_libdir_flag_spec_CXX='-R$libdir'
11535 hardcode_direct_CXX=yes
11536 hardcode_shlibpath_var_CXX=no
11538 # Workaround some broken pre-1.5 toolchains
11539 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11542 # C++ shared libraries are fairly broken
11546 hardcode_direct_CXX=yes
11547 hardcode_shlibpath_var_CXX=no
11548 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11549 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11550 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11551 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11552 export_dynamic_flag_spec_CXX='${wl}-E'
11553 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11555 output_verbose_link_cmd='echo'
11558 case $cc_basename in
11560 # Kuck and Associates, Inc. (KAI) C++ Compiler
11562 # KCC will only create a shared library if the output file
11563 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11564 # to its proper name (with version) after linking.
11565 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'
11567 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11568 hardcode_libdir_separator_CXX=:
11570 # Archives containing C++ object files must be created using
11571 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11572 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11576 # Rational C++ 2.4.1
11577 # FIXME: insert proper C++ library support
11581 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11582 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'
11584 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11585 hardcode_libdir_separator_CXX=:
11587 # Commands to make compiler produce verbose output that lists
11588 # what "hidden" libraries, object files and flags are used when
11589 # linking a shared library.
11591 # There doesn't appear to be a way to prevent this compiler from
11592 # explicitly linking system object files so we need to strip them
11593 # from the output so that they don't get included in the library
11595 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'
11598 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11599 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11600 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'
11602 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11603 hardcode_libdir_separator_CXX=:
11605 # Commands to make compiler produce verbose output that lists
11606 # what "hidden" libraries, object files and flags are used when
11607 # linking a shared library.
11608 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11611 # FIXME: insert proper C++ library support
11618 case $cc_basename in
11620 # Kuck and Associates, Inc. (KAI) C++ Compiler
11622 # KCC will only create a shared library if the output file
11623 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11624 # to its proper name (with version) after linking.
11625 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'
11627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11628 hardcode_libdir_separator_CXX=:
11630 # Archives containing C++ object files must be created using
11631 # the KAI C++ compiler.
11632 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11635 # Rational C++ 2.4.1
11636 # FIXME: insert proper C++ library support
11640 allow_undefined_flag_CXX=' -expect_unresolved \*'
11641 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'
11642 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11643 echo "-hidden">> $lib.exp~
11644 $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~
11647 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11648 hardcode_libdir_separator_CXX=:
11650 # Commands to make compiler produce verbose output that lists
11651 # what "hidden" libraries, object files and flags are used when
11652 # linking a shared library.
11654 # There doesn't appear to be a way to prevent this compiler from
11655 # explicitly linking system object files so we need to strip them
11656 # from the output so that they don't get included in the library
11658 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'
11661 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11662 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11663 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'
11665 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11666 hardcode_libdir_separator_CXX=:
11668 # Commands to make compiler produce verbose output that lists
11669 # what "hidden" libraries, object files and flags are used when
11670 # linking a shared library.
11671 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11674 # FIXME: insert proper C++ library support
11681 # FIXME: insert proper C++ library support
11685 case $cc_basename in
11688 # FIXME: insert proper C++ library support
11693 # FIXME: insert proper C++ library support
11697 # FIXME: insert proper C++ library support
11703 case $cc_basename in
11705 # Sun C++ 4.2, 5.x and Centerline C++
11706 archive_cmds_need_lc_CXX=yes
11707 no_undefined_flag_CXX=' -zdefs'
11708 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11709 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11710 $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'
11712 hardcode_libdir_flag_spec_CXX='-R$libdir'
11713 hardcode_shlibpath_var_CXX=no
11715 solaris2.[0-5] | solaris2.[0-5].*) ;;
11717 # The C++ compiler is used as linker so we must use $wl
11718 # flag to pass the commands to the underlying system
11719 # linker. We must also pass each convience library through
11720 # to the system linker between allextract/defaultextract.
11721 # The C++ compiler will combine linker options so we
11722 # cannot just pass the convience library names through
11724 # Supported since Solaris 2.6 (maybe 2.5.1?)
11725 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'
11728 link_all_deplibs_CXX=yes
11730 output_verbose_link_cmd='echo'
11732 # Archives containing C++ object files must be created using
11733 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11734 # necessary to make sure instantiated templates are included
11736 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11739 # Green Hills C++ Compiler
11740 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11742 # The C++ compiler must be used to create the archive.
11743 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11746 # GNU C++ compiler with Solaris linker
11747 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11748 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11749 if $CC --version | grep -v '^2\.7' > /dev/null; then
11750 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11751 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11752 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11754 # Commands to make compiler produce verbose output that lists
11755 # what "hidden" libraries, object files and flags are used when
11756 # linking a shared library.
11757 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11759 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11761 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11762 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11763 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11765 # Commands to make compiler produce verbose output that lists
11766 # what "hidden" libraries, object files and flags are used when
11767 # linking a shared library.
11768 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11771 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11776 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11777 no_undefined_flag_CXX='${wl}-z,text'
11778 archive_cmds_need_lc_CXX=no
11779 hardcode_shlibpath_var_CXX=no
11780 runpath_var='LD_RUN_PATH'
11782 case $cc_basename in
11784 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11785 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11788 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11789 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11793 sysv5* | sco3.2v5* | sco5v6*)
11794 # Note: We can NOT use -z defs as we might desire, because we do not
11795 # link with -lc, and that would cause any symbols used from libc to
11796 # always be unresolved, which means just about no library would
11797 # ever link correctly. If we're not using GNU ld we use -z text
11798 # though, which does catch some bad symbols but isn't as heavy-handed
11800 # For security reasons, it is highly recommended that you always
11801 # use absolute paths for naming shared libraries, and exclude the
11802 # DT_RUNPATH tag from executables and libraries. But doing so
11803 # requires that you compile everything twice, which is a pain.
11804 # So that behaviour is only enabled if SCOABSPATH is set to a
11805 # non-empty value in the environment. Most likely only useful for
11806 # creating official distributions of packages.
11807 # This is a hack until libtool officially supports absolute path
11808 # names for shared libraries.
11809 no_undefined_flag_CXX='${wl}-z,text'
11810 allow_undefined_flag_CXX='${wl}-z,nodefs'
11811 archive_cmds_need_lc_CXX=no
11812 hardcode_shlibpath_var_CXX=no
11813 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11814 hardcode_libdir_separator_CXX=':'
11815 link_all_deplibs_CXX=yes
11816 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11817 runpath_var='LD_RUN_PATH'
11819 case $cc_basename in
11821 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11822 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11825 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11826 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11831 case $cc_basename in
11833 # NonStop-UX NCC 3.20
11834 # FIXME: insert proper C++ library support
11838 # FIXME: insert proper C++ library support
11844 # FIXME: insert proper C++ library support
11848 # FIXME: insert proper C++ library support
11852 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11853 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11854 test "$ld_shlibs_CXX" = no && can_build_shared=no
11860 cat > conftest.$ac_ext <<EOF
11864 Foo (void) { a = 0; }
11870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11871 (eval $ac_compile) 2>&5
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; then
11875 # Parse the compiler output and extract the necessary
11876 # objects, libraries and library flags.
11878 # Sentinel used to keep track of whether or not we are before
11879 # the conftest object file.
11880 pre_test_object_deps_done=no
11882 # The `*' in the case matches for architectures that use `case' in
11883 # $output_verbose_cmd can trigger glob expansion during the loop
11884 # eval without this substitution.
11885 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11887 for p in `eval $output_verbose_link_cmd`; do
11891 # Some compilers place space between "-{L,R}" and the path.
11892 # Remove the space.
11893 if test $p = "-L" \
11894 || test $p = "-R"; then
11901 if test "$pre_test_object_deps_done" = no; then
11904 # Internal compiler library paths should come after those
11905 # provided the user. The postdeps already come after the
11906 # user supplied libs so there is no need to process them.
11907 if test -z "$compiler_lib_search_path_CXX"; then
11908 compiler_lib_search_path_CXX="${prev}${p}"
11910 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11913 # The "-l" case would never come before the object being
11914 # linked, so don't bother handling this case.
11917 if test -z "$postdeps_CXX"; then
11918 postdeps_CXX="${prev}${p}"
11920 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11926 # This assumes that the test object file only shows up
11927 # once in the compiler output.
11928 if test "$p" = "conftest.$objext"; then
11929 pre_test_object_deps_done=yes
11933 if test "$pre_test_object_deps_done" = no; then
11934 if test -z "$predep_objects_CXX"; then
11935 predep_objects_CXX="$p"
11937 predep_objects_CXX="$predep_objects_CXX $p"
11940 if test -z "$postdep_objects_CXX"; then
11941 postdep_objects_CXX="$p"
11943 postdep_objects_CXX="$postdep_objects_CXX $p"
11948 *) ;; # Ignore the rest.
11956 echo "libtool.m4: error: problem compiling CXX test program"
11959 $rm -f confest.$objext
11961 # PORTME: override above test on systems where it is broken
11964 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11965 # hack all around it, let's just trust "g++" to DTRT.
11966 predep_objects_CXX=
11967 postdep_objects_CXX=
11972 case $cc_basename in
11974 # Adding this requires a known-good setup of shared libraries for
11975 # Sun compiler versions before 5.6, else PIC objects from an old
11976 # archive will be linked into the output, leading to subtle bugs.
11977 postdeps_CXX='-lCstd -lCrun'
11984 case " $postdeps_CXX " in
11985 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11988 lt_prog_compiler_wl_CXX=
11989 lt_prog_compiler_pic_CXX=
11990 lt_prog_compiler_static_CXX=
11992 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11993 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11995 # C++ specific cases for pic, static, wl, etc.
11996 if test "$GXX" = yes; then
11997 lt_prog_compiler_wl_CXX='-Wl,'
11998 lt_prog_compiler_static_CXX='-static'
12002 # All AIX code is PIC.
12003 if test "$host_cpu" = ia64; then
12004 # AIX 5 now supports IA64 processor
12005 lt_prog_compiler_static_CXX='-Bstatic'
12009 # FIXME: we need at least 68020 code to build shared libraries, but
12010 # adding the `-m68020' flag to GCC prevents building anything better,
12012 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12014 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12015 # PIC is the default for these OSes.
12017 mingw* | os2* | pw32*)
12018 # This hack is so that the source file can tell whether it is being
12019 # built for inclusion in a dll (and should export symbols for example).
12020 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12022 darwin* | rhapsody*)
12023 # PIC is the default on this platform
12024 # Common symbols not allowed in MH_DYLIB files
12025 lt_prog_compiler_pic_CXX='-fno-common'
12028 # DJGPP does not support shared libraries at all
12029 lt_prog_compiler_pic_CXX=
12032 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12033 # Instead, we relocate shared libraries at runtime.
12036 if test -d /usr/nec; then
12037 lt_prog_compiler_pic_CXX=-Kconform_pic
12041 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12042 # not for PA HP-UX.
12047 lt_prog_compiler_pic_CXX='-fPIC'
12052 lt_prog_compiler_pic_CXX='-fPIC'
12058 # All AIX code is PIC.
12059 if test "$host_cpu" = ia64; then
12060 # AIX 5 now supports IA64 processor
12061 lt_prog_compiler_static_CXX='-Bstatic'
12063 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12067 case $cc_basename in
12069 # Green Hills C++ Compiler
12070 # _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"
12075 # PIC is the default on this platform
12076 # Common symbols not allowed in MH_DYLIB files
12077 case $cc_basename in
12079 lt_prog_compiler_pic_CXX='-qnocommon'
12080 lt_prog_compiler_wl_CXX='-Wl,'
12085 case $cc_basename in
12087 lt_prog_compiler_pic_CXX='-KPIC'
12090 # Green Hills C++ Compiler
12091 lt_prog_compiler_pic_CXX='-pic'
12097 freebsd* | dragonfly*)
12098 # FreeBSD uses GNU C++
12100 hpux9* | hpux10* | hpux11*)
12101 case $cc_basename in
12103 lt_prog_compiler_wl_CXX='-Wl,'
12104 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12105 if test "$host_cpu" != ia64; then
12106 lt_prog_compiler_pic_CXX='+Z'
12110 lt_prog_compiler_wl_CXX='-Wl,'
12111 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12117 lt_prog_compiler_pic_CXX='+Z'
12126 # This is c89, which is MS Visual C++ (no shared libs)
12127 # Anyone wants to do a port?
12129 irix5* | irix6* | nonstopux*)
12130 case $cc_basename in
12132 lt_prog_compiler_wl_CXX='-Wl,'
12133 lt_prog_compiler_static_CXX='-non_shared'
12134 # CC pic flag -KPIC is the default.
12140 linux* | k*bsd*-gnu)
12141 case $cc_basename in
12144 lt_prog_compiler_wl_CXX='--backend -Wl,'
12145 lt_prog_compiler_pic_CXX='-fPIC'
12149 lt_prog_compiler_wl_CXX='-Wl,'
12150 lt_prog_compiler_pic_CXX='-KPIC'
12151 lt_prog_compiler_static_CXX='-static'
12154 # Portland Group C++ compiler.
12155 lt_prog_compiler_wl_CXX='-Wl,'
12156 lt_prog_compiler_pic_CXX='-fpic'
12157 lt_prog_compiler_static_CXX='-Bstatic'
12161 # Make sure the PIC flag is empty. It appears that all Alpha
12162 # Linux and Compaq Tru64 Unix objects are PIC.
12163 lt_prog_compiler_pic_CXX=
12164 lt_prog_compiler_static_CXX='-non_shared'
12175 case $cc_basename in
12177 lt_prog_compiler_pic_CXX='-W c,exportall'
12183 netbsd* | netbsdelf*-gnu)
12185 osf3* | osf4* | osf5*)
12186 case $cc_basename in
12188 lt_prog_compiler_wl_CXX='--backend -Wl,'
12191 # Rational C++ 2.4.1
12192 lt_prog_compiler_pic_CXX='-pic'
12195 # Digital/Compaq C++
12196 lt_prog_compiler_wl_CXX='-Wl,'
12197 # Make sure the PIC flag is empty. It appears that all Alpha
12198 # Linux and Compaq Tru64 Unix objects are PIC.
12199 lt_prog_compiler_pic_CXX=
12200 lt_prog_compiler_static_CXX='-non_shared'
12209 case $cc_basename in
12211 # Sun C++ 4.2, 5.x and Centerline C++
12212 lt_prog_compiler_pic_CXX='-KPIC'
12213 lt_prog_compiler_static_CXX='-Bstatic'
12214 lt_prog_compiler_wl_CXX='-Qoption ld '
12217 # Green Hills C++ Compiler
12218 lt_prog_compiler_pic_CXX='-PIC'
12225 case $cc_basename in
12228 lt_prog_compiler_pic_CXX='-pic'
12229 lt_prog_compiler_static_CXX='-Bstatic'
12233 lt_prog_compiler_pic_CXX='-pic'
12240 case $cc_basename in
12242 # NonStop-UX NCC 3.20
12243 lt_prog_compiler_pic_CXX='-KPIC'
12249 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12250 case $cc_basename in
12252 lt_prog_compiler_wl_CXX='-Wl,'
12253 lt_prog_compiler_pic_CXX='-KPIC'
12254 lt_prog_compiler_static_CXX='-Bstatic'
12261 lt_prog_compiler_can_build_shared_CXX=no
12266 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12267 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12270 # Check to make sure the PIC flag actually works.
12272 if test -n "$lt_prog_compiler_pic_CXX"; then
12274 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12275 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12276 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 lt_prog_compiler_pic_works_CXX=no
12280 ac_outfile=conftest.$ac_objext
12281 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12282 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12283 # Insert the option either (1) after the last *FLAGS variable, or
12284 # (2) before a word containing "conftest.", or (3) at the end.
12285 # Note that $ac_compile itself does not contain backslashes and begins
12286 # with a dollar sign (not a hyphen), so the echo should work correctly.
12287 # The option is referenced via a variable to avoid confusing sed.
12288 lt_compile=`echo "$ac_compile" | $SED \
12289 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12290 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12291 -e 's:$: $lt_compiler_flag:'`
12292 (eval echo "\"\$as_me:12292: $lt_compile\"" >&5)
12293 (eval "$lt_compile" 2>conftest.err)
12295 cat conftest.err >&5
12296 echo "$as_me:12296: \$? = $ac_status" >&5
12297 if (exit $ac_status) && test -s "$ac_outfile"; then
12298 # The compiler can only warn and ignore the option if not recognized
12299 # So say no if there are warnings other than the usual output.
12300 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12301 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12302 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12303 lt_prog_compiler_pic_works_CXX=yes
12309 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12310 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12312 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12313 case $lt_prog_compiler_pic_CXX in
12315 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12318 lt_prog_compiler_pic_CXX=
12319 lt_prog_compiler_can_build_shared_CXX=no
12324 # For platforms which do not support PIC, -DPIC is meaningless:
12326 lt_prog_compiler_pic_CXX=
12329 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12334 # Check to make sure the static flag actually works.
12336 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12337 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12338 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12339 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12340 echo $ECHO_N "(cached) $ECHO_C" >&6
12342 lt_prog_compiler_static_works_CXX=no
12343 save_LDFLAGS="$LDFLAGS"
12344 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12345 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12347 # The linker can only warn and ignore the option if not recognized
12348 # So say no if there are warnings
12349 if test -s conftest.err; then
12350 # Append any errors to the config.log.
12351 cat conftest.err 1>&5
12352 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12354 if diff conftest.exp conftest.er2 >/dev/null; then
12355 lt_prog_compiler_static_works_CXX=yes
12358 lt_prog_compiler_static_works_CXX=yes
12362 LDFLAGS="$save_LDFLAGS"
12365 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12366 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12368 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12371 lt_prog_compiler_static_CXX=
12375 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12376 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12377 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12378 echo $ECHO_N "(cached) $ECHO_C" >&6
12380 lt_cv_prog_compiler_c_o_CXX=no
12381 $rm -r conftest 2>/dev/null
12385 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12387 lt_compiler_flag="-o out/conftest2.$ac_objext"
12388 # Insert the option either (1) after the last *FLAGS variable, or
12389 # (2) before a word containing "conftest.", or (3) at the end.
12390 # Note that $ac_compile itself does not contain backslashes and begins
12391 # with a dollar sign (not a hyphen), so the echo should work correctly.
12392 lt_compile=`echo "$ac_compile" | $SED \
12393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12395 -e 's:$: $lt_compiler_flag:'`
12396 (eval echo "\"\$as_me:12396: $lt_compile\"" >&5)
12397 (eval "$lt_compile" 2>out/conftest.err)
12399 cat out/conftest.err >&5
12400 echo "$as_me:12400: \$? = $ac_status" >&5
12401 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12403 # The compiler can only warn and ignore the option if not recognized
12404 # So say no if there are warnings
12405 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12406 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12407 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12408 lt_cv_prog_compiler_c_o_CXX=yes
12413 # SGI C++ compiler will create directory out/ii_files/ for
12414 # template instantiation
12415 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12416 $rm out/* && rmdir out
12422 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12423 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12426 hard_links="nottested"
12427 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12428 # do not overwrite the value of need_locks provided by the user
12429 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12430 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12435 ln conftest.a conftest.b 2>&5 || hard_links=no
12436 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12437 { echo "$as_me:$LINENO: result: $hard_links" >&5
12438 echo "${ECHO_T}$hard_links" >&6; }
12439 if test "$hard_links" = no; then
12440 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12441 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12448 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12449 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12451 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12454 # If we're using GNU nm, then we don't want the "-C" option.
12455 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12456 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12457 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'
12459 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'
12463 export_symbols_cmds_CXX="$ltdll_cmds"
12466 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'
12468 linux* | k*bsd*-gnu)
12469 link_all_deplibs_CXX=no
12472 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12476 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12477 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12478 test "$ld_shlibs_CXX" = no && can_build_shared=no
12481 # Do we need to explicitly link libc?
12483 case "x$archive_cmds_need_lc_CXX" in
12485 # Assume -lc should be added
12486 archive_cmds_need_lc_CXX=yes
12488 if test "$enable_shared" = yes && test "$GCC" = yes; then
12489 case $archive_cmds_CXX in
12491 # FIXME: we may have to deal with multi-command sequences.
12494 # Test whether the compiler implicitly links with -lc since on some
12495 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12496 # to ld, don't add -lc before -lgcc.
12497 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12498 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12503 (eval $ac_compile) 2>&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } 2>conftest.err; then
12509 libobjs=conftest.$ac_objext
12511 wl=$lt_prog_compiler_wl_CXX
12512 pic_flag=$lt_prog_compiler_pic_CXX
12518 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12519 allow_undefined_flag_CXX=
12520 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12521 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12524 (exit $ac_status); }
12526 archive_cmds_need_lc_CXX=no
12528 archive_cmds_need_lc_CXX=yes
12530 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12532 cat conftest.err 1>&5
12535 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12536 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12543 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12544 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12545 library_names_spec=
12546 libname_spec='lib$name'
12550 postuninstall_cmds=
12554 shlibpath_overrides_runpath=unknown
12556 dynamic_linker="$host_os ld.so"
12557 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12558 if test "$GCC" = yes; then
12559 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12560 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12561 # if the path contains ";" then we assume it to be the separator
12562 # otherwise default to the standard path separator (i.e. ":") - it is
12563 # assumed that no part of a normal pathname contains ";" but that should
12564 # okay in the real world where ";" in dirpaths is itself problematic.
12565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12570 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12572 need_lib_prefix=unknown
12573 hardcode_into_libs=no
12575 # when you set need_version to no, make sure it does not cause -set_version
12576 # flags to be left without arguments
12577 need_version=unknown
12582 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12583 shlibpath_var=LIBPATH
12585 # AIX 3 has no versioning support, so we append a major version to the name.
12586 soname_spec='${libname}${release}${shared_ext}$major'
12593 hardcode_into_libs=yes
12594 if test "$host_cpu" = ia64; then
12595 # AIX 5 supports IA64
12596 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12597 shlibpath_var=LD_LIBRARY_PATH
12599 # With GCC up to 2.95.x, collect2 would create an import file
12600 # for dependence libraries. The import file would start with
12601 # the line `#! .'. This would cause the generated library to
12602 # depend on `.', always an invalid library. This was fixed in
12603 # development snapshots of GCC prior to 3.0.
12605 aix4 | aix4.[01] | aix4.[01].*)
12606 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12608 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12611 can_build_shared=no
12615 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12616 # soname into executable. Probably we can add versioning support to
12617 # collect2, so additional links can be useful in future.
12618 if test "$aix_use_runtimelinking" = yes; then
12619 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12620 # instead of lib<name>.a to let people know that these are not
12621 # typical AIX shared libraries.
12622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12624 # We preserve .a as extension for shared libraries through AIX4.2
12625 # and later when we are not doing run time linking.
12626 library_names_spec='${libname}${release}.a $libname.a'
12627 soname_spec='${libname}${release}${shared_ext}$major'
12629 shlibpath_var=LIBPATH
12634 library_names_spec='$libname.ixlibrary $libname.a'
12635 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12636 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'
12640 library_names_spec='${libname}${shared_ext}'
12641 dynamic_linker="$host_os ld.so"
12642 shlibpath_var=LIBRARY_PATH
12648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12649 soname_spec='${libname}${release}${shared_ext}$major'
12650 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12651 shlibpath_var=LD_LIBRARY_PATH
12652 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12653 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12654 # the default ld.so.conf also contains /usr/contrib/lib and
12655 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12656 # libtool to hard-code these into programs
12659 cygwin* | mingw* | pw32*)
12660 version_type=windows
12665 case $GCC,$host_os in
12666 yes,cygwin* | yes,mingw* | yes,pw32*)
12667 library_names_spec='$libname.dll.a'
12668 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12669 postinstall_cmds='base_file=`basename \${file}`~
12670 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12671 dldir=$destdir/`dirname \$dlpath`~
12672 test -d \$dldir || mkdir -p \$dldir~
12673 $install_prog $dir/$dlname \$dldir/$dlname~
12674 chmod a+x \$dldir/$dlname'
12675 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12676 dlpath=$dir/\$dldll~
12678 shlibpath_overrides_runpath=yes
12682 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12683 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12684 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12687 # MinGW DLLs use traditional 'lib' prefix
12688 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12690 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12691 # It is most probably a Windows format PATH printed by
12692 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12693 # path with ; separators, and with drive letters. We can handle the
12694 # drive letters (cygwin fileutils understands them), so leave them,
12695 # especially as we might pass files found there to a mingw objdump,
12696 # which wouldn't understand a cygwinified path. Ahh.
12697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12703 # pw32 DLLs use 'pw' prefix rather than 'lib'
12704 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12713 dynamic_linker='Win32 ld.exe'
12714 # FIXME: first we should search . and the directory the executable is in
12718 darwin* | rhapsody*)
12719 dynamic_linker="$host_os dyld"
12720 version_type=darwin
12723 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12724 soname_spec='${libname}${release}${major}$shared_ext'
12725 shlibpath_overrides_runpath=yes
12726 shlibpath_var=DYLD_LIBRARY_PATH
12727 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12728 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12729 if test "$GCC" = yes; then
12730 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"`
12732 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12734 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12742 soname_spec='${libname}${release}${shared_ext}$major'
12743 shlibpath_var=LD_LIBRARY_PATH
12750 freebsd* | dragonfly*)
12751 # DragonFly does not have aout. When/if they implement a new
12752 # versioning mechanism, adjust this.
12753 if test -x /usr/bin/objformat; then
12754 objformat=`/usr/bin/objformat`
12757 freebsd[123]*) objformat=aout ;;
12758 *) objformat=elf ;;
12761 version_type=freebsd-$objformat
12762 case $version_type in
12764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12769 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12773 shlibpath_var=LD_LIBRARY_PATH
12776 shlibpath_overrides_runpath=yes
12778 freebsd3.[01]* | freebsdelf3.[01]*)
12779 shlibpath_overrides_runpath=yes
12780 hardcode_into_libs=yes
12782 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12783 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12784 shlibpath_overrides_runpath=no
12785 hardcode_into_libs=yes
12787 freebsd*) # from 4.6 on
12788 shlibpath_overrides_runpath=yes
12789 hardcode_into_libs=yes
12798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12799 soname_spec='${libname}${release}${shared_ext}$major'
12800 shlibpath_var=LD_LIBRARY_PATH
12801 hardcode_into_libs=yes
12804 hpux9* | hpux10* | hpux11*)
12805 # Give a soname corresponding to the major version so that dld.sl refuses to
12806 # link against other versions.
12813 hardcode_into_libs=yes
12814 dynamic_linker="$host_os dld.so"
12815 shlibpath_var=LD_LIBRARY_PATH
12816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12818 soname_spec='${libname}${release}${shared_ext}$major'
12819 if test "X$HPUX_IA64_MODE" = X32; then
12820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12822 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12828 hardcode_into_libs=yes
12829 dynamic_linker="$host_os dld.sl"
12830 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12833 soname_spec='${libname}${release}${shared_ext}$major'
12834 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12839 dynamic_linker="$host_os dld.sl"
12840 shlibpath_var=SHLIB_PATH
12841 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12843 soname_spec='${libname}${release}${shared_ext}$major'
12846 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12847 postinstall_cmds='chmod 555 $lib'
12854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12855 soname_spec='${libname}${release}${shared_ext}$major'
12856 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12857 shlibpath_var=LD_LIBRARY_PATH
12858 shlibpath_overrides_runpath=no
12859 hardcode_into_libs=yes
12862 irix5* | irix6* | nonstopux*)
12864 nonstopux*) version_type=nonstopux ;;
12866 if test "$lt_cv_prog_gnu_ld" = yes; then
12874 soname_spec='${libname}${release}${shared_ext}$major'
12875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12877 irix5* | nonstopux*)
12878 libsuff= shlibsuff=
12881 case $LD in # libtool.m4 will add one of these switches to LD
12882 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12883 libsuff= shlibsuff= libmagic=32-bit;;
12884 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12885 libsuff=32 shlibsuff=N32 libmagic=N32;;
12886 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12887 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12888 *) libsuff= shlibsuff= libmagic=never-match;;
12892 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12893 shlibpath_overrides_runpath=no
12894 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12895 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12896 hardcode_into_libs=yes
12899 # No shared lib support for Linux oldld, aout, or coff.
12900 linux*oldld* | linux*aout* | linux*coff*)
12904 # This must be Linux ELF.
12905 linux* | k*bsd*-gnu)
12909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12910 soname_spec='${libname}${release}${shared_ext}$major'
12911 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12912 shlibpath_var=LD_LIBRARY_PATH
12913 shlibpath_overrides_runpath=no
12914 # This implies no fast_install, which is unacceptable.
12915 # Some rework will be needed to allow for fast_install
12916 # before this can be enabled.
12917 hardcode_into_libs=yes
12919 # Append ld.so.conf contents to the search path
12920 if test -f /etc/ld.so.conf; then
12921 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' ' '`
12922 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12925 # We used to test for /lib/ld.so.1 and disable shared libraries on
12926 # powerpc, because MkLinux only supported shared libraries with the
12927 # GNU dynamic linker. Since this was broken with cross compilers,
12928 # most powerpc-linux boxes support dynamic linking these days and
12929 # people can always --disable-shared, the test was removed, and we
12930 # assume the GNU/Linux dynamic linker is in use.
12931 dynamic_linker='GNU/Linux ld.so'
12938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12939 soname_spec='${libname}${release}${shared_ext}$major'
12940 shlibpath_var=LD_LIBRARY_PATH
12941 shlibpath_overrides_runpath=no
12942 hardcode_into_libs=yes
12943 dynamic_linker='NetBSD ld.elf_so'
12950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12953 dynamic_linker='NetBSD (a.out) ld.so'
12955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12956 soname_spec='${libname}${release}${shared_ext}$major'
12957 dynamic_linker='NetBSD ld.elf_so'
12959 shlibpath_var=LD_LIBRARY_PATH
12960 shlibpath_overrides_runpath=yes
12961 hardcode_into_libs=yes
12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12967 shlibpath_var=LD_LIBRARY_PATH
12968 shlibpath_overrides_runpath=yes
12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976 soname_spec='${libname}${release}${shared_ext}$major'
12977 shlibpath_var=LD_LIBRARY_PATH
12978 shlibpath_overrides_runpath=yes
12983 sys_lib_dlsearch_path_spec="/usr/lib"
12985 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12987 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12988 *) need_version=no ;;
12990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12992 shlibpath_var=LD_LIBRARY_PATH
12993 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12995 openbsd2.[89] | openbsd2.[89].*)
12996 shlibpath_overrides_runpath=no
12999 shlibpath_overrides_runpath=yes
13003 shlibpath_overrides_runpath=yes
13008 libname_spec='$name'
13011 library_names_spec='$libname${shared_ext} $libname.a'
13012 dynamic_linker='OS/2 ld.exe'
13013 shlibpath_var=LIBPATH
13016 osf3* | osf4* | osf5*)
13020 soname_spec='${libname}${release}${shared_ext}$major'
13021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13022 shlibpath_var=LD_LIBRARY_PATH
13023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13024 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13032 soname_spec='${libname}${release}${shared_ext}$major'
13033 shlibpath_var=LD_LIBRARY_PATH
13034 shlibpath_overrides_runpath=yes
13035 hardcode_into_libs=yes
13036 # ldd complains unless libraries are executable
13037 postinstall_cmds='chmod +x $lib'
13042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13043 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13044 shlibpath_var=LD_LIBRARY_PATH
13045 shlibpath_overrides_runpath=yes
13046 if test "$with_gnu_ld" = yes; then
13054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13055 soname_spec='${libname}${release}${shared_ext}$major'
13056 shlibpath_var=LD_LIBRARY_PATH
13057 case $host_vendor in
13059 shlibpath_overrides_runpath=no
13061 export_dynamic_flag_spec='${wl}-Blargedynsym'
13062 runpath_var=LD_RUN_PATH
13070 shlibpath_overrides_runpath=no
13071 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13077 if test -d /usr/nec ;then
13079 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13080 soname_spec='$libname${shared_ext}.$major'
13081 shlibpath_var=LD_LIBRARY_PATH
13085 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13086 version_type=freebsd-elf
13089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13090 soname_spec='${libname}${release}${shared_ext}$major'
13091 shlibpath_var=LD_LIBRARY_PATH
13092 hardcode_into_libs=yes
13093 if test "$with_gnu_ld" = yes; then
13094 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13095 shlibpath_overrides_runpath=no
13097 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13098 shlibpath_overrides_runpath=yes
13101 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13105 sys_lib_dlsearch_path_spec='/usr/lib'
13110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13111 soname_spec='${libname}${release}${shared_ext}$major'
13112 shlibpath_var=LD_LIBRARY_PATH
13119 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13120 echo "${ECHO_T}$dynamic_linker" >&6; }
13121 test "$dynamic_linker" = no && can_build_shared=no
13123 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13124 if test "$GCC" = yes; then
13125 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13128 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13129 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13130 hardcode_action_CXX=
13131 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13132 test -n "$runpath_var_CXX" || \
13133 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13135 # We can hardcode non-existant directories.
13136 if test "$hardcode_direct_CXX" != no &&
13137 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13138 # have to relink, otherwise we might link with an installed library
13139 # when we should be linking with a yet-to-be-installed one
13140 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13141 test "$hardcode_minus_L_CXX" != no; then
13142 # Linking always hardcodes the temporary library directory.
13143 hardcode_action_CXX=relink
13145 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13146 hardcode_action_CXX=immediate
13149 # We cannot hardcode anything, or else we can only hardcode existing
13151 hardcode_action_CXX=unsupported
13153 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13154 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13156 if test "$hardcode_action_CXX" = relink; then
13157 # Fast installation is not supported
13158 enable_fast_install=no
13159 elif test "$shlibpath_overrides_runpath" = yes ||
13160 test "$enable_shared" = no; then
13161 # Fast installation is not necessary
13162 enable_fast_install=needless
13166 # The else clause should only fire when bootstrapping the
13167 # libtool distribution, otherwise you forgot to ship ltmain.sh
13168 # with your package, and you will get complaints that there are
13169 # no rules to generate ltmain.sh.
13170 if test -f "$ltmain"; then
13171 # See if we are running on zsh, and set the options which allow our commands through
13172 # without removal of \ escapes.
13173 if test -n "${ZSH_VERSION+set}" ; then
13174 setopt NO_GLOB_SUBST
13176 # Now quote all the things that may contain metacharacters while being
13177 # careful not to overquote the AC_SUBSTed values. We take copies of the
13178 # variables and quote the copies for generation of the libtool script.
13179 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13181 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13182 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13183 deplibs_check_method reload_flag reload_cmds need_locks \
13184 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13185 lt_cv_sys_global_symbol_to_c_name_address \
13186 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13187 old_postinstall_cmds old_postuninstall_cmds \
13191 lt_prog_compiler_wl_CXX \
13192 lt_prog_compiler_pic_CXX \
13193 lt_prog_compiler_static_CXX \
13194 lt_prog_compiler_no_builtin_flag_CXX \
13195 export_dynamic_flag_spec_CXX \
13196 thread_safe_flag_spec_CXX \
13197 whole_archive_flag_spec_CXX \
13198 enable_shared_with_static_runtimes_CXX \
13199 old_archive_cmds_CXX \
13200 old_archive_from_new_cmds_CXX \
13201 predep_objects_CXX \
13202 postdep_objects_CXX \
13205 compiler_lib_search_path_CXX \
13207 archive_expsym_cmds_CXX \
13208 postinstall_cmds_CXX \
13209 postuninstall_cmds_CXX \
13210 old_archive_from_expsyms_cmds_CXX \
13211 allow_undefined_flag_CXX \
13212 no_undefined_flag_CXX \
13213 export_symbols_cmds_CXX \
13214 hardcode_libdir_flag_spec_CXX \
13215 hardcode_libdir_flag_spec_ld_CXX \
13216 hardcode_libdir_separator_CXX \
13217 hardcode_automatic_CXX \
13219 module_expsym_cmds_CXX \
13220 lt_cv_prog_compiler_c_o_CXX \
13221 exclude_expsyms_CXX \
13222 include_expsyms_CXX; do
13225 old_archive_cmds_CXX | \
13226 old_archive_from_new_cmds_CXX | \
13227 archive_cmds_CXX | \
13228 archive_expsym_cmds_CXX | \
13229 module_cmds_CXX | \
13230 module_expsym_cmds_CXX | \
13231 old_archive_from_expsyms_cmds_CXX | \
13232 export_symbols_cmds_CXX | \
13233 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13234 postinstall_cmds | postuninstall_cmds | \
13235 old_postinstall_cmds | old_postuninstall_cmds | \
13236 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13237 # Double-quote double-evaled strings.
13238 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13241 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13247 *'\$0 --fallback-echo"')
13248 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13254 cat <<__EOF__ >> "$cfgfile"
13255 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13257 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13259 # Shell to use when invoking shell scripts.
13262 # Whether or not to build shared libraries.
13263 build_libtool_libs=$enable_shared
13265 # Whether or not to build static libraries.
13266 build_old_libs=$enable_static
13268 # Whether or not to add -lc for building shared libraries.
13269 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13271 # Whether or not to disallow shared libs when runtime libs are static
13272 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13274 # Whether or not to optimize for fast installation.
13275 fast_install=$enable_fast_install
13278 host_alias=$host_alias
13282 # The build system.
13283 build_alias=$build_alias
13287 # An echo program that does not interpret backslashes.
13292 AR_FLAGS=$lt_AR_FLAGS
13297 # LTCC compiler flags.
13298 LTCFLAGS=$lt_LTCFLAGS
13300 # A language-specific compiler.
13301 CC=$lt_compiler_CXX
13303 # Is the compiler the GNU C compiler?
13309 # The linker used to build libraries.
13312 # Whether we need hard or soft links.
13315 # A BSD-compatible nm program.
13318 # A symbol stripping program
13321 # Used to examine libraries when file_magic_cmd begins "file"
13322 MAGIC_CMD=$MAGIC_CMD
13324 # Used on cygwin: DLL creation program.
13327 # Used on cygwin: object dumper.
13330 # Used on cygwin: assembler.
13333 # The name of the directory that contains temporary libtool files.
13336 # How to create reloadable object files.
13337 reload_flag=$lt_reload_flag
13338 reload_cmds=$lt_reload_cmds
13340 # How to pass a linker flag through the compiler.
13341 wl=$lt_lt_prog_compiler_wl_CXX
13343 # Object file suffix (normally "o").
13344 objext="$ac_objext"
13346 # Old archive suffix (normally "a").
13349 # Shared library suffix (normally ".so").
13350 shrext_cmds='$shrext_cmds'
13352 # Executable file suffix (normally "").
13355 # Additional compiler flags for building library objects.
13356 pic_flag=$lt_lt_prog_compiler_pic_CXX
13359 # What is the maximum length of a command?
13360 max_cmd_len=$lt_cv_sys_max_cmd_len
13362 # Does compiler simultaneously support -c and -o options?
13363 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13365 # Must we lock files when doing compilation?
13366 need_locks=$lt_need_locks
13368 # Do we need the lib prefix for modules?
13369 need_lib_prefix=$need_lib_prefix
13371 # Do we need a version for libraries?
13372 need_version=$need_version
13374 # Whether dlopen is supported.
13375 dlopen_support=$enable_dlopen
13377 # Whether dlopen of programs is supported.
13378 dlopen_self=$enable_dlopen_self
13380 # Whether dlopen of statically linked programs is supported.
13381 dlopen_self_static=$enable_dlopen_self_static
13383 # Compiler flag to prevent dynamic linking.
13384 link_static_flag=$lt_lt_prog_compiler_static_CXX
13386 # Compiler flag to turn off builtin functions.
13387 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13389 # Compiler flag to allow reflexive dlopens.
13390 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13392 # Compiler flag to generate shared objects directly from archives.
13393 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13395 # Compiler flag to generate thread-safe objects.
13396 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13398 # Library versioning type.
13399 version_type=$version_type
13401 # Format of library name prefix.
13402 libname_spec=$lt_libname_spec
13404 # List of archive names. First name is the real one, the rest are links.
13405 # The last name is the one that the linker finds with -lNAME.
13406 library_names_spec=$lt_library_names_spec
13408 # The coded name of the library, if different from the real name.
13409 soname_spec=$lt_soname_spec
13411 # Commands used to build and install an old-style archive.
13413 old_archive_cmds=$lt_old_archive_cmds_CXX
13414 old_postinstall_cmds=$lt_old_postinstall_cmds
13415 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13417 # Create an old-style archive from a shared archive.
13418 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13420 # Create a temporary old-style archive to link instead of a shared archive.
13421 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13423 # Commands used to build and install a shared archive.
13424 archive_cmds=$lt_archive_cmds_CXX
13425 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13426 postinstall_cmds=$lt_postinstall_cmds
13427 postuninstall_cmds=$lt_postuninstall_cmds
13429 # Commands used to build a loadable module (assumed same as above if empty)
13430 module_cmds=$lt_module_cmds_CXX
13431 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13433 # Commands to strip libraries.
13434 old_striplib=$lt_old_striplib
13435 striplib=$lt_striplib
13437 # Dependencies to place before the objects being linked to create a
13439 predep_objects=$lt_predep_objects_CXX
13441 # Dependencies to place after the objects being linked to create a
13443 postdep_objects=$lt_postdep_objects_CXX
13445 # Dependencies to place before the objects being linked to create a
13447 predeps=$lt_predeps_CXX
13449 # Dependencies to place after the objects being linked to create a
13451 postdeps=$lt_postdeps_CXX
13453 # The library search path used internally by the compiler when linking
13454 # a shared library.
13455 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13457 # Method to check whether dependent libraries are shared objects.
13458 deplibs_check_method=$lt_deplibs_check_method
13460 # Command to use when deplibs_check_method == file_magic.
13461 file_magic_cmd=$lt_file_magic_cmd
13463 # Flag that allows shared libraries with undefined symbols to be built.
13464 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13466 # Flag that forces no undefined symbols.
13467 no_undefined_flag=$lt_no_undefined_flag_CXX
13469 # Commands used to finish a libtool library installation in a directory.
13470 finish_cmds=$lt_finish_cmds
13472 # Same as above, but a single script fragment to be evaled but not shown.
13473 finish_eval=$lt_finish_eval
13475 # Take the output of nm and produce a listing of raw symbols and C names.
13476 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13478 # Transform the output of nm in a proper C declaration
13479 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13481 # Transform the output of nm in a C name address pair
13482 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13484 # This is the shared library runtime path variable.
13485 runpath_var=$runpath_var
13487 # This is the shared library path variable.
13488 shlibpath_var=$shlibpath_var
13490 # Is shlibpath searched before the hard-coded library search path?
13491 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13493 # How to hardcode a shared library path into an executable.
13494 hardcode_action=$hardcode_action_CXX
13496 # Whether we should hardcode library paths into libraries.
13497 hardcode_into_libs=$hardcode_into_libs
13499 # Flag to hardcode \$libdir into a binary during linking.
13500 # This must work even if \$libdir does not exist.
13501 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13503 # If ld is used when linking, flag to hardcode \$libdir into
13504 # a binary during linking. This must work even if \$libdir does
13506 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13508 # Whether we need a single -rpath flag with a separated argument.
13509 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13511 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13512 # resulting binary.
13513 hardcode_direct=$hardcode_direct_CXX
13515 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13516 # resulting binary.
13517 hardcode_minus_L=$hardcode_minus_L_CXX
13519 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13520 # the resulting binary.
13521 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13523 # Set to yes if building a shared library automatically hardcodes DIR into the library
13524 # and all subsequent libraries and executables linked against it.
13525 hardcode_automatic=$hardcode_automatic_CXX
13527 # Variables whose values should be saved in libtool wrapper scripts and
13528 # restored at relink time.
13529 variables_saved_for_relink="$variables_saved_for_relink"
13531 # Whether libtool must link a program against all its dependency libraries.
13532 link_all_deplibs=$link_all_deplibs_CXX
13534 # Compile-time system search path for libraries
13535 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13537 # Run-time system search path for libraries
13538 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13540 # Fix the shell variable \$srcfile for the compiler.
13541 fix_srcfile_path="$fix_srcfile_path_CXX"
13543 # Set to yes if exported symbols are required.
13544 always_export_symbols=$always_export_symbols_CXX
13546 # The commands to list exported symbols.
13547 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13549 # The commands to extract the exported symbol list from a shared archive.
13550 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13552 # Symbols that should not be listed in the preloaded symbols.
13553 exclude_expsyms=$lt_exclude_expsyms_CXX
13555 # Symbols that must always be exported.
13556 include_expsyms=$lt_include_expsyms_CXX
13558 # ### END LIBTOOL TAG CONFIG: $tagname
13564 # If there is no Makefile yet, we rely on a make rule to execute
13565 # `config.status --recheck' to rerun these tests and create the
13566 # libtool script then.
13567 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13568 if test -f "$ltmain_in"; then
13569 test -f Makefile && make "$ltmain"
13575 ac_cpp='$CPP $CPPFLAGS'
13576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13584 with_gnu_ldcxx=$with_gnu_ld
13585 with_gnu_ld=$lt_save_with_gnu_ld
13586 lt_cv_path_LDCXX=$lt_cv_path_LD
13587 lt_cv_path_LD=$lt_save_path_LD
13588 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13589 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13597 if test -n "$F77" && test "X$F77" != "Xno"; then
13600 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13601 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13602 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13605 archive_cmds_need_lc_F77=no
13606 allow_undefined_flag_F77=
13607 always_export_symbols_F77=no
13608 archive_expsym_cmds_F77=
13609 export_dynamic_flag_spec_F77=
13610 hardcode_direct_F77=no
13611 hardcode_libdir_flag_spec_F77=
13612 hardcode_libdir_flag_spec_ld_F77=
13613 hardcode_libdir_separator_F77=
13614 hardcode_minus_L_F77=no
13615 hardcode_automatic_F77=no
13617 module_expsym_cmds_F77=
13618 link_all_deplibs_F77=unknown
13619 old_archive_cmds_F77=$old_archive_cmds
13620 no_undefined_flag_F77=
13621 whole_archive_flag_spec_F77=
13622 enable_shared_with_static_runtimes_F77=no
13624 # Source file extension for f77 test sources.
13627 # Object file extension for compiled f77 test sources.
13631 # Code to be used in simple compile tests
13632 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13634 # Code to be used in simple link tests
13635 lt_simple_link_test_code=" program t\n end\n"
13637 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13639 # If no C compiler was specified, use CC.
13642 # If no C compiler flags were specified, use CFLAGS.
13643 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13645 # Allow CC to be a program name with arguments.
13649 # save warnings/boilerplate of simple test code
13650 ac_outfile=conftest.$ac_objext
13651 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13652 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13653 _lt_compiler_boilerplate=`cat conftest.err`
13656 ac_outfile=conftest.$ac_objext
13657 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13658 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13659 _lt_linker_boilerplate=`cat conftest.err`
13663 # Allow CC to be a program name with arguments.
13668 for cc_temp in $compiler""; do
13670 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13671 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13676 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13679 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13680 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13681 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13682 echo "${ECHO_T}$can_build_shared" >&6; }
13684 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13685 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13686 test "$can_build_shared" = "no" && enable_shared=no
13688 # On AIX, shared libraries and static libraries use the same namespace, and
13689 # are all built from PIC.
13692 test "$enable_shared" = yes && enable_static=no
13693 if test -n "$RANLIB"; then
13694 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13695 postinstall_cmds='$RANLIB $lib'
13699 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13700 test "$enable_shared" = yes && enable_static=no
13704 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13705 echo "${ECHO_T}$enable_shared" >&6; }
13707 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13708 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13709 # Make sure either enable_shared or enable_static is yes.
13710 test "$enable_shared" = yes || enable_static=yes
13711 { echo "$as_me:$LINENO: result: $enable_static" >&5
13712 echo "${ECHO_T}$enable_static" >&6; }
13717 lt_prog_compiler_wl_F77=
13718 lt_prog_compiler_pic_F77=
13719 lt_prog_compiler_static_F77=
13721 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13722 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13724 if test "$GCC" = yes; then
13725 lt_prog_compiler_wl_F77='-Wl,'
13726 lt_prog_compiler_static_F77='-static'
13730 # All AIX code is PIC.
13731 if test "$host_cpu" = ia64; then
13732 # AIX 5 now supports IA64 processor
13733 lt_prog_compiler_static_F77='-Bstatic'
13738 # FIXME: we need at least 68020 code to build shared libraries, but
13739 # adding the `-m68020' flag to GCC prevents building anything better,
13741 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13744 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13745 # PIC is the default for these OSes.
13748 mingw* | pw32* | os2*)
13749 # This hack is so that the source file can tell whether it is being
13750 # built for inclusion in a dll (and should export symbols for example).
13751 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13754 darwin* | rhapsody*)
13755 # PIC is the default on this platform
13756 # Common symbols not allowed in MH_DYLIB files
13757 lt_prog_compiler_pic_F77='-fno-common'
13761 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13762 # Instead, we relocate shared libraries at runtime.
13766 # Just because we use GCC doesn't mean we suddenly get shared libraries
13767 # on systems that don't support them.
13768 lt_prog_compiler_can_build_shared_F77=no
13773 if test -d /usr/nec; then
13774 lt_prog_compiler_pic_F77=-Kconform_pic
13779 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13780 # not for PA HP-UX.
13786 lt_prog_compiler_pic_F77='-fPIC'
13792 lt_prog_compiler_pic_F77='-fPIC'
13796 # PORTME Check for flag to pass linker flags through the system compiler.
13799 lt_prog_compiler_wl_F77='-Wl,'
13800 if test "$host_cpu" = ia64; then
13801 # AIX 5 now supports IA64 processor
13802 lt_prog_compiler_static_F77='-Bstatic'
13804 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13808 # PIC is the default on this platform
13809 # Common symbols not allowed in MH_DYLIB files
13810 case $cc_basename in
13812 lt_prog_compiler_pic_F77='-qnocommon'
13813 lt_prog_compiler_wl_F77='-Wl,'
13818 mingw* | pw32* | os2*)
13819 # This hack is so that the source file can tell whether it is being
13820 # built for inclusion in a dll (and should export symbols for example).
13821 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13824 hpux9* | hpux10* | hpux11*)
13825 lt_prog_compiler_wl_F77='-Wl,'
13826 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13827 # not for PA HP-UX.
13833 lt_prog_compiler_pic_F77='+Z'
13836 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13837 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13840 irix5* | irix6* | nonstopux*)
13841 lt_prog_compiler_wl_F77='-Wl,'
13842 # PIC (with -KPIC) is the default.
13843 lt_prog_compiler_static_F77='-non_shared'
13847 lt_prog_compiler_pic_F77='-KPIC'
13848 lt_prog_compiler_static_F77='-Bstatic'
13851 linux* | k*bsd*-gnu)
13852 case $cc_basename in
13854 lt_prog_compiler_wl_F77='-Wl,'
13855 lt_prog_compiler_pic_F77='-KPIC'
13856 lt_prog_compiler_static_F77='-static'
13858 pgcc* | pgf77* | pgf90* | pgf95*)
13859 # Portland Group compilers (*not* the Pentium gcc compiler,
13860 # which looks to be a dead project)
13861 lt_prog_compiler_wl_F77='-Wl,'
13862 lt_prog_compiler_pic_F77='-fpic'
13863 lt_prog_compiler_static_F77='-Bstatic'
13866 lt_prog_compiler_wl_F77='-Wl,'
13867 # All Alpha code is PIC.
13868 lt_prog_compiler_static_F77='-non_shared'
13873 osf3* | osf4* | osf5*)
13874 lt_prog_compiler_wl_F77='-Wl,'
13875 # All OSF/1 code is PIC.
13876 lt_prog_compiler_static_F77='-non_shared'
13880 lt_prog_compiler_pic_F77='-KPIC'
13881 lt_prog_compiler_static_F77='-Bstatic'
13882 case $cc_basename in
13883 f77* | f90* | f95*)
13884 lt_prog_compiler_wl_F77='-Qoption ld ';;
13886 lt_prog_compiler_wl_F77='-Wl,';;
13891 lt_prog_compiler_wl_F77='-Qoption ld '
13892 lt_prog_compiler_pic_F77='-PIC'
13893 lt_prog_compiler_static_F77='-Bstatic'
13896 sysv4 | sysv4.2uw2* | sysv4.3*)
13897 lt_prog_compiler_wl_F77='-Wl,'
13898 lt_prog_compiler_pic_F77='-KPIC'
13899 lt_prog_compiler_static_F77='-Bstatic'
13903 if test -d /usr/nec ;then
13904 lt_prog_compiler_pic_F77='-Kconform_pic'
13905 lt_prog_compiler_static_F77='-Bstatic'
13909 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13910 lt_prog_compiler_wl_F77='-Wl,'
13911 lt_prog_compiler_pic_F77='-KPIC'
13912 lt_prog_compiler_static_F77='-Bstatic'
13916 lt_prog_compiler_wl_F77='-Wl,'
13917 lt_prog_compiler_can_build_shared_F77=no
13921 lt_prog_compiler_pic_F77='-pic'
13922 lt_prog_compiler_static_F77='-Bstatic'
13926 lt_prog_compiler_can_build_shared_F77=no
13931 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13932 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13935 # Check to make sure the PIC flag actually works.
13937 if test -n "$lt_prog_compiler_pic_F77"; then
13939 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13940 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13941 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 lt_prog_compiler_pic_works_F77=no
13945 ac_outfile=conftest.$ac_objext
13946 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13947 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13948 # Insert the option either (1) after the last *FLAGS variable, or
13949 # (2) before a word containing "conftest.", or (3) at the end.
13950 # Note that $ac_compile itself does not contain backslashes and begins
13951 # with a dollar sign (not a hyphen), so the echo should work correctly.
13952 # The option is referenced via a variable to avoid confusing sed.
13953 lt_compile=`echo "$ac_compile" | $SED \
13954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13956 -e 's:$: $lt_compiler_flag:'`
13957 (eval echo "\"\$as_me:13957: $lt_compile\"" >&5)
13958 (eval "$lt_compile" 2>conftest.err)
13960 cat conftest.err >&5
13961 echo "$as_me:13961: \$? = $ac_status" >&5
13962 if (exit $ac_status) && test -s "$ac_outfile"; then
13963 # The compiler can only warn and ignore the option if not recognized
13964 # So say no if there are warnings other than the usual output.
13965 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13967 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13968 lt_prog_compiler_pic_works_F77=yes
13974 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13975 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13977 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13978 case $lt_prog_compiler_pic_F77 in
13980 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13983 lt_prog_compiler_pic_F77=
13984 lt_prog_compiler_can_build_shared_F77=no
13989 # For platforms which do not support PIC, -DPIC is meaningless:
13991 lt_prog_compiler_pic_F77=
13994 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13999 # Check to make sure the static flag actually works.
14001 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14002 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14003 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14004 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14007 lt_prog_compiler_static_works_F77=no
14008 save_LDFLAGS="$LDFLAGS"
14009 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14010 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14011 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14012 # The linker can only warn and ignore the option if not recognized
14013 # So say no if there are warnings
14014 if test -s conftest.err; then
14015 # Append any errors to the config.log.
14016 cat conftest.err 1>&5
14017 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14019 if diff conftest.exp conftest.er2 >/dev/null; then
14020 lt_prog_compiler_static_works_F77=yes
14023 lt_prog_compiler_static_works_F77=yes
14027 LDFLAGS="$save_LDFLAGS"
14030 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14031 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14033 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14036 lt_prog_compiler_static_F77=
14040 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14041 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14042 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 lt_cv_prog_compiler_c_o_F77=no
14046 $rm -r conftest 2>/dev/null
14050 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14052 lt_compiler_flag="-o out/conftest2.$ac_objext"
14053 # Insert the option either (1) after the last *FLAGS variable, or
14054 # (2) before a word containing "conftest.", or (3) at the end.
14055 # Note that $ac_compile itself does not contain backslashes and begins
14056 # with a dollar sign (not a hyphen), so the echo should work correctly.
14057 lt_compile=`echo "$ac_compile" | $SED \
14058 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14059 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14060 -e 's:$: $lt_compiler_flag:'`
14061 (eval echo "\"\$as_me:14061: $lt_compile\"" >&5)
14062 (eval "$lt_compile" 2>out/conftest.err)
14064 cat out/conftest.err >&5
14065 echo "$as_me:14065: \$? = $ac_status" >&5
14066 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14068 # The compiler can only warn and ignore the option if not recognized
14069 # So say no if there are warnings
14070 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14071 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14072 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14073 lt_cv_prog_compiler_c_o_F77=yes
14078 # SGI C++ compiler will create directory out/ii_files/ for
14079 # template instantiation
14080 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14081 $rm out/* && rmdir out
14087 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14088 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14091 hard_links="nottested"
14092 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14093 # do not overwrite the value of need_locks provided by the user
14094 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14095 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14098 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14100 ln conftest.a conftest.b 2>&5 || hard_links=no
14101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14102 { echo "$as_me:$LINENO: result: $hard_links" >&5
14103 echo "${ECHO_T}$hard_links" >&6; }
14104 if test "$hard_links" = no; then
14105 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14106 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14113 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14114 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14117 allow_undefined_flag_F77=
14118 enable_shared_with_static_runtimes_F77=no
14120 archive_expsym_cmds_F77=
14121 old_archive_From_new_cmds_F77=
14122 old_archive_from_expsyms_cmds_F77=
14123 export_dynamic_flag_spec_F77=
14124 whole_archive_flag_spec_F77=
14125 thread_safe_flag_spec_F77=
14126 hardcode_libdir_flag_spec_F77=
14127 hardcode_libdir_flag_spec_ld_F77=
14128 hardcode_libdir_separator_F77=
14129 hardcode_direct_F77=no
14130 hardcode_minus_L_F77=no
14131 hardcode_shlibpath_var_F77=unsupported
14132 link_all_deplibs_F77=unknown
14133 hardcode_automatic_F77=no
14135 module_expsym_cmds_F77=
14136 always_export_symbols_F77=no
14137 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14138 # include_expsyms should be a list of space-separated symbols to be *always*
14139 # included in the symbol list
14140 include_expsyms_F77=
14141 # exclude_expsyms can be an extended regexp of symbols to exclude
14142 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14143 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14144 # as well as any symbol that contains `d'.
14145 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14146 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14147 # platforms (ab)use it in PIC code, but their linkers get confused if
14148 # the symbol is explicitly referenced. Since portable code cannot
14149 # rely on this symbol name, it's probably fine to never include it in
14150 # preloaded symbol tables.
14151 extract_expsyms_cmds=
14152 # Just being paranoid about ensuring that cc_basename is set.
14153 for cc_temp in $compiler""; do
14155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14161 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14164 cygwin* | mingw* | pw32*)
14165 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14166 # When not using gcc, we currently assume that we are using
14167 # Microsoft Visual C++.
14168 if test "$GCC" != yes; then
14173 # we just hope/assume this is gcc and not c89 (= MSVC++)
14182 if test "$with_gnu_ld" = yes; then
14183 # If archive_cmds runs LD, not CC, wlarc should be empty
14186 # Set some defaults for GNU ld with shared library support. These
14187 # are reset later if shared libraries are not supported. Putting them
14188 # here allows them to be overridden if necessary.
14189 runpath_var=LD_RUN_PATH
14190 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14191 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14192 # ancient GNU ld didn't support --whole-archive et. al.
14193 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14194 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14196 whole_archive_flag_spec_F77=
14198 supports_anon_versioning=no
14199 case `$LD -v 2>/dev/null` in
14200 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14201 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14202 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14203 *\ 2.11.*) ;; # other 2.11 versions
14204 *) supports_anon_versioning=yes ;;
14207 # See if GNU ld supports shared libraries.
14209 aix3* | aix4* | aix5*)
14210 # On AIX/PPC, the GNU linker is very broken
14211 if test "$host_cpu" != ia64; then
14215 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14216 *** to be unable to reliably create shared libraries on AIX.
14217 *** Therefore, libtool is disabling shared libraries support. If you
14218 *** really care for shared libraries, you may want to modify your PATH
14219 *** so that a non-GNU linker is found, and then restart.
14226 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)'
14227 hardcode_libdir_flag_spec_F77='-L$libdir'
14228 hardcode_minus_L_F77=yes
14230 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14231 # that the semantics of dynamic libraries on AmigaOS, at least up
14232 # to version 4, is to share data among multiple programs linked
14233 # with the same dynamic library. Since this doesn't match the
14234 # behavior of shared libraries on other platforms, we can't use
14240 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14241 allow_undefined_flag_F77=unsupported
14242 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14243 # support --undefined. This deserves some investigation. FIXME
14244 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14250 cygwin* | mingw* | pw32*)
14251 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14252 # as there is no search path for DLLs.
14253 hardcode_libdir_flag_spec_F77='-L$libdir'
14254 allow_undefined_flag_F77=unsupported
14255 always_export_symbols_F77=no
14256 enable_shared_with_static_runtimes_F77=yes
14257 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14259 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14260 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14261 # If the export-symbols file already is a .def file (1st line
14262 # is EXPORTS), use it as is; otherwise, prepend...
14263 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14264 cp $export_symbols $output_objdir/$soname.def;
14266 echo EXPORTS > $output_objdir/$soname.def;
14267 cat $export_symbols >> $output_objdir/$soname.def;
14269 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14276 hardcode_direct_F77=no
14277 hardcode_shlibpath_var_F77=no
14278 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14279 export_dynamic_flag_spec_F77='${wl}-E'
14280 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14281 # Instead, shared libraries are loaded at an image base (0x10000000 by
14282 # default) and relocated if they conflict, which is a slow very memory
14283 # consuming and fragmenting process. To avoid this, we pick a random,
14284 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14285 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14286 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'
14287 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'
14290 linux* | k*bsd*-gnu)
14291 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14293 case $cc_basename,$host_cpu in
14294 pgcc*) # Portland Group C compiler
14295 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'
14296 tmp_addflag=' $pic_flag'
14298 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14299 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'
14300 tmp_addflag=' $pic_flag -Mnomain' ;;
14301 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14302 tmp_addflag=' -i_dynamic' ;;
14303 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14304 tmp_addflag=' -i_dynamic -nofor_main' ;;
14305 ifc* | ifort*) # Intel Fortran compiler
14306 tmp_addflag=' -nofor_main' ;;
14308 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14310 if test $supports_anon_versioning = yes; then
14311 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14312 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14313 $echo "local: *; };" >> $output_objdir/$libname.ver~
14314 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14316 link_all_deplibs_F77=no
14322 netbsd* | netbsdelf*-gnu)
14323 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14324 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14327 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14328 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14333 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14337 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14338 *** create shared libraries on Solaris systems. Therefore, libtool
14339 *** is disabling shared libraries support. We urge you to upgrade GNU
14340 *** binutils to release 2.9.1 or newer. Another option is to modify
14341 *** your PATH or compiler configuration so that the native linker is
14342 *** used, and then restart.
14345 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14346 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14347 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14353 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14354 case `$LD -v 2>&1` in
14355 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14359 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14360 *** reliably create shared libraries on SCO systems. Therefore, libtool
14361 *** is disabling shared libraries support. We urge you to upgrade GNU
14362 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14363 *** your PATH or compiler configuration so that the native linker is
14364 *** used, and then restart.
14369 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14370 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14371 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14372 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14381 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14383 hardcode_direct_F77=yes
14384 hardcode_shlibpath_var_F77=no
14388 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14389 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14390 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14397 if test "$ld_shlibs_F77" = no; then
14399 hardcode_libdir_flag_spec_F77=
14400 export_dynamic_flag_spec_F77=
14401 whole_archive_flag_spec_F77=
14404 # PORTME fill in a description of your system's linker (not GNU ld)
14407 allow_undefined_flag_F77=unsupported
14408 always_export_symbols_F77=yes
14409 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'
14410 # Note: this linker hardcodes the directories in LIBPATH if there
14411 # are no directories specified by -L.
14412 hardcode_minus_L_F77=yes
14413 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14414 # Neither direct hardcoding nor static linking is supported with a
14416 hardcode_direct_F77=unsupported
14421 if test "$host_cpu" = ia64; then
14422 # On IA64, the linker does run time linking by default, so we don't
14423 # have to do anything special.
14424 aix_use_runtimelinking=no
14425 exp_sym_flag='-Bexport'
14428 # If we're using GNU nm, then we don't want the "-C" option.
14429 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14430 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14431 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'
14433 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'
14435 aix_use_runtimelinking=no
14437 # Test if we are trying to use run time linking or normal
14438 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14439 # need to do runtime linking.
14440 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14441 for ld_flag in $LDFLAGS; do
14442 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14443 aix_use_runtimelinking=yes
14450 exp_sym_flag='-bexport'
14451 no_entry_flag='-bnoentry'
14454 # When large executables or shared objects are built, AIX ld can
14455 # have problems creating the table of contents. If linking a library
14456 # or program results in "error TOC overflow" add -mminimal-toc to
14457 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14458 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14460 archive_cmds_F77=''
14461 hardcode_direct_F77=yes
14462 hardcode_libdir_separator_F77=':'
14463 link_all_deplibs_F77=yes
14465 if test "$GCC" = yes; then
14466 case $host_os in aix4.[012]|aix4.[012].*)
14467 # We only want to do this on AIX 4.2 and lower, the check
14468 # below for broken collect2 doesn't work under 4.3+
14469 collect2name=`${CC} -print-prog-name=collect2`
14470 if test -f "$collect2name" && \
14471 strings "$collect2name" | grep resolve_lib_name >/dev/null
14473 # We have reworked collect2
14474 hardcode_direct_F77=yes
14476 # We have old collect2
14477 hardcode_direct_F77=unsupported
14478 # It fails to find uninstalled libraries when the uninstalled
14479 # path is not listed in the libpath. Setting hardcode_minus_L
14480 # to unsupported forces relinking
14481 hardcode_minus_L_F77=yes
14482 hardcode_libdir_flag_spec_F77='-L$libdir'
14483 hardcode_libdir_separator_F77=
14487 shared_flag='-shared'
14488 if test "$aix_use_runtimelinking" = yes; then
14489 shared_flag="$shared_flag "'${wl}-G'
14493 if test "$host_cpu" = ia64; then
14494 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14495 # chokes on -Wl,-G. The following line is correct:
14498 if test "$aix_use_runtimelinking" = yes; then
14499 shared_flag='${wl}-G'
14501 shared_flag='${wl}-bM:SRE'
14506 # It seems that -bexpall does not export symbols beginning with
14507 # underscore (_), so it is better to generate a list of symbols to export.
14508 always_export_symbols_F77=yes
14509 if test "$aix_use_runtimelinking" = yes; then
14510 # Warning - without using the other runtime loading flags (-brtl),
14511 # -berok will link without error, but may produce a broken library.
14512 allow_undefined_flag_F77='-berok'
14513 # Determine the default libpath from the value encoded in an empty executable.
14514 cat >conftest.$ac_ext <<_ACEOF
14519 rm -f conftest.$ac_objext conftest$ac_exeext
14520 if { (ac_try="$ac_link"
14521 case "(($ac_try" in
14522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14523 *) ac_try_echo=$ac_try;;
14525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14526 (eval "$ac_link") 2>conftest.er1
14528 grep -v '^ *+' conftest.er1 >conftest.err
14530 cat conftest.err >&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); } && {
14533 test -z "$ac_f77_werror_flag" ||
14534 test ! -s conftest.err
14535 } && test -s conftest$ac_exeext &&
14536 $as_test_x conftest$ac_exeext; then
14538 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14540 # Check for a 64-bit object if we didn't find anything.
14541 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; }
14544 echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14551 conftest$ac_exeext conftest.$ac_ext
14552 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14554 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14555 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"
14557 if test "$host_cpu" = ia64; then
14558 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14559 allow_undefined_flag_F77="-z nodefs"
14560 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"
14562 # Determine the default libpath from the value encoded in an empty executable.
14563 cat >conftest.$ac_ext <<_ACEOF
14568 rm -f conftest.$ac_objext conftest$ac_exeext
14569 if { (ac_try="$ac_link"
14570 case "(($ac_try" in
14571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14572 *) ac_try_echo=$ac_try;;
14574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14575 (eval "$ac_link") 2>conftest.er1
14577 grep -v '^ *+' conftest.er1 >conftest.err
14579 cat conftest.err >&5
14580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14581 (exit $ac_status); } && {
14582 test -z "$ac_f77_werror_flag" ||
14583 test ! -s conftest.err
14584 } && test -s conftest$ac_exeext &&
14585 $as_test_x conftest$ac_exeext; then
14587 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14589 # Check for a 64-bit object if we didn't find anything.
14590 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; }
14593 echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14600 conftest$ac_exeext conftest.$ac_ext
14601 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14603 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14604 # Warning - without using the other run time loading flags,
14605 # -berok will link without error, but may produce a broken library.
14606 no_undefined_flag_F77=' ${wl}-bernotok'
14607 allow_undefined_flag_F77=' ${wl}-berok'
14608 # Exported symbols can be pulled into shared objects from archives
14609 whole_archive_flag_spec_F77='$convenience'
14610 archive_cmds_need_lc_F77=yes
14611 # This is similar to how AIX traditionally builds its shared libraries.
14612 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'
14618 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)'
14619 hardcode_libdir_flag_spec_F77='-L$libdir'
14620 hardcode_minus_L_F77=yes
14621 # see comment about different semantics on the GNU ld section
14626 export_dynamic_flag_spec_F77=-rdynamic
14629 cygwin* | mingw* | pw32*)
14630 # When not using gcc, we currently assume that we are using
14631 # Microsoft Visual C++.
14632 # hardcode_libdir_flag_spec is actually meaningless, as there is
14633 # no search path for DLLs.
14634 hardcode_libdir_flag_spec_F77=' '
14635 allow_undefined_flag_F77=unsupported
14636 # Tell ltmain to make .lib files, not .a files.
14638 # Tell ltmain to make .dll files, not .so files.
14640 # FIXME: Setting linknames here is a bad hack.
14641 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14642 # The linker will automatically build a .lib file if we build a DLL.
14643 old_archive_From_new_cmds_F77='true'
14644 # FIXME: Should let the user specify the lib program.
14645 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14646 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14647 enable_shared_with_static_runtimes_F77=yes
14650 darwin* | rhapsody*)
14652 rhapsody* | darwin1.[012])
14653 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14656 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14657 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14659 case ${MACOSX_DEPLOYMENT_TARGET} in
14661 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14664 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14670 archive_cmds_need_lc_F77=no
14671 hardcode_direct_F77=no
14672 hardcode_automatic_F77=yes
14673 hardcode_shlibpath_var_F77=unsupported
14674 whole_archive_flag_spec_F77=''
14675 link_all_deplibs_F77=yes
14676 if test "$GCC" = yes ; then
14677 output_verbose_link_cmd='echo'
14678 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14679 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14680 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14681 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}'
14682 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}'
14684 case $cc_basename in
14686 output_verbose_link_cmd='echo'
14687 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14688 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14689 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14690 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}'
14691 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}'
14701 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14702 hardcode_libdir_flag_spec_F77='-L$libdir'
14703 hardcode_shlibpath_var_F77=no
14710 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14711 # support. Future versions do this automatically, but an explicit c++rt0.o
14712 # does not break anything, and helps significantly (at the cost of a little
14715 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14716 hardcode_libdir_flag_spec_F77='-R$libdir'
14717 hardcode_direct_F77=yes
14718 hardcode_shlibpath_var_F77=no
14721 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14723 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14724 hardcode_direct_F77=yes
14725 hardcode_minus_L_F77=yes
14726 hardcode_shlibpath_var_F77=no
14729 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14730 freebsd* | dragonfly*)
14731 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14732 hardcode_libdir_flag_spec_F77='-R$libdir'
14733 hardcode_direct_F77=yes
14734 hardcode_shlibpath_var_F77=no
14738 if test "$GCC" = yes; then
14739 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'
14741 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'
14743 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14744 hardcode_libdir_separator_F77=:
14745 hardcode_direct_F77=yes
14747 # hardcode_minus_L: Not really in the search PATH,
14748 # but as the default location of the library.
14749 hardcode_minus_L_F77=yes
14750 export_dynamic_flag_spec_F77='${wl}-E'
14754 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14755 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14757 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14759 if test "$with_gnu_ld" = no; then
14760 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14761 hardcode_libdir_separator_F77=:
14763 hardcode_direct_F77=yes
14764 export_dynamic_flag_spec_F77='${wl}-E'
14766 # hardcode_minus_L: Not really in the search PATH,
14767 # but as the default location of the library.
14768 hardcode_minus_L_F77=yes
14773 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14776 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14779 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14782 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14788 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14791 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14794 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14798 if test "$with_gnu_ld" = no; then
14799 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14800 hardcode_libdir_separator_F77=:
14804 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14805 hardcode_direct_F77=no
14806 hardcode_shlibpath_var_F77=no
14809 hardcode_direct_F77=yes
14810 export_dynamic_flag_spec_F77='${wl}-E'
14812 # hardcode_minus_L: Not really in the search PATH,
14813 # but as the default location of the library.
14814 hardcode_minus_L_F77=yes
14820 irix5* | irix6* | nonstopux*)
14821 if test "$GCC" = yes; then
14822 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'
14824 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'
14825 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14827 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14828 hardcode_libdir_separator_F77=:
14829 link_all_deplibs_F77=yes
14832 netbsd* | netbsdelf*-gnu)
14833 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14834 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14836 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14838 hardcode_libdir_flag_spec_F77='-R$libdir'
14839 hardcode_direct_F77=yes
14840 hardcode_shlibpath_var_F77=no
14844 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14845 hardcode_direct_F77=yes
14846 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14847 hardcode_libdir_separator_F77=:
14848 hardcode_shlibpath_var_F77=no
14852 hardcode_direct_F77=yes
14853 hardcode_shlibpath_var_F77=no
14854 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14855 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14856 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14857 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14858 export_dynamic_flag_spec_F77='${wl}-E'
14861 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14862 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14863 hardcode_libdir_flag_spec_F77='-R$libdir'
14866 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14867 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14874 hardcode_libdir_flag_spec_F77='-L$libdir'
14875 hardcode_minus_L_F77=yes
14876 allow_undefined_flag_F77=unsupported
14877 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'
14878 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14882 if test "$GCC" = yes; then
14883 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14884 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'
14886 allow_undefined_flag_F77=' -expect_unresolved \*'
14887 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'
14889 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14890 hardcode_libdir_separator_F77=:
14893 osf4* | osf5*) # as osf3* with the addition of -msym flag
14894 if test "$GCC" = yes; then
14895 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14896 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'
14897 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14899 allow_undefined_flag_F77=' -expect_unresolved \*'
14900 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'
14901 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~
14902 $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'
14904 # Both c and cxx compiler support -rpath directly
14905 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14907 hardcode_libdir_separator_F77=:
14911 no_undefined_flag_F77=' -z text'
14912 if test "$GCC" = yes; then
14914 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14915 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14916 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14919 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14920 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14921 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14923 hardcode_libdir_flag_spec_F77='-R$libdir'
14924 hardcode_shlibpath_var_F77=no
14926 solaris2.[0-5] | solaris2.[0-5].*) ;;
14928 # The compiler driver will combine linker options so we
14929 # cannot just pass the convience library names through
14930 # without $wl, iff we do not link with $LD.
14931 # Luckily, gcc supports the same syntax we need for Sun Studio.
14932 # Supported since Solaris 2.6 (maybe 2.5.1?)
14935 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14937 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' ;;
14940 link_all_deplibs_F77=yes
14944 if test "x$host_vendor" = xsequent; then
14945 # Use $CC to link under sequent, because it throws in some extra .o
14946 # files that make .init and .fini sections work.
14947 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14949 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14951 hardcode_libdir_flag_spec_F77='-L$libdir'
14952 hardcode_direct_F77=yes
14953 hardcode_minus_L_F77=yes
14954 hardcode_shlibpath_var_F77=no
14958 case $host_vendor in
14960 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14961 hardcode_direct_F77=yes # is this really true???
14964 ## LD is ld it makes a PLAMLIB
14965 ## CC just makes a GrossModule.
14966 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14967 reload_cmds_F77='$CC -r -o $output$reload_objs'
14968 hardcode_direct_F77=no
14971 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14972 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14975 runpath_var='LD_RUN_PATH'
14976 hardcode_shlibpath_var_F77=no
14980 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14981 hardcode_shlibpath_var_F77=no
14982 export_dynamic_flag_spec_F77='-Bexport'
14986 if test -d /usr/nec; then
14987 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14988 hardcode_shlibpath_var_F77=no
14989 runpath_var=LD_RUN_PATH
14990 hardcode_runpath_var=yes
14995 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14996 no_undefined_flag_F77='${wl}-z,text'
14997 archive_cmds_need_lc_F77=no
14998 hardcode_shlibpath_var_F77=no
14999 runpath_var='LD_RUN_PATH'
15001 if test "$GCC" = yes; then
15002 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15003 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15005 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15006 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15010 sysv5* | sco3.2v5* | sco5v6*)
15011 # Note: We can NOT use -z defs as we might desire, because we do not
15012 # link with -lc, and that would cause any symbols used from libc to
15013 # always be unresolved, which means just about no library would
15014 # ever link correctly. If we're not using GNU ld we use -z text
15015 # though, which does catch some bad symbols but isn't as heavy-handed
15017 no_undefined_flag_F77='${wl}-z,text'
15018 allow_undefined_flag_F77='${wl}-z,nodefs'
15019 archive_cmds_need_lc_F77=no
15020 hardcode_shlibpath_var_F77=no
15021 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15022 hardcode_libdir_separator_F77=':'
15023 link_all_deplibs_F77=yes
15024 export_dynamic_flag_spec_F77='${wl}-Bexport'
15025 runpath_var='LD_RUN_PATH'
15027 if test "$GCC" = yes; then
15028 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15029 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15031 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15032 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15037 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15038 hardcode_libdir_flag_spec_F77='-L$libdir'
15039 hardcode_shlibpath_var_F77=no
15048 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15049 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15050 test "$ld_shlibs_F77" = no && can_build_shared=no
15053 # Do we need to explicitly link libc?
15055 case "x$archive_cmds_need_lc_F77" in
15057 # Assume -lc should be added
15058 archive_cmds_need_lc_F77=yes
15060 if test "$enable_shared" = yes && test "$GCC" = yes; then
15061 case $archive_cmds_F77 in
15063 # FIXME: we may have to deal with multi-command sequences.
15066 # Test whether the compiler implicitly links with -lc since on some
15067 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15068 # to ld, don't add -lc before -lgcc.
15069 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15070 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15072 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15075 (eval $ac_compile) 2>&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } 2>conftest.err; then
15081 libobjs=conftest.$ac_objext
15083 wl=$lt_prog_compiler_wl_F77
15084 pic_flag=$lt_prog_compiler_pic_F77
15090 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15091 allow_undefined_flag_F77=
15092 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15093 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096 (exit $ac_status); }
15098 archive_cmds_need_lc_F77=no
15100 archive_cmds_need_lc_F77=yes
15102 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15104 cat conftest.err 1>&5
15107 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15108 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15115 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15116 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15117 library_names_spec=
15118 libname_spec='lib$name'
15122 postuninstall_cmds=
15126 shlibpath_overrides_runpath=unknown
15128 dynamic_linker="$host_os ld.so"
15129 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15130 if test "$GCC" = yes; then
15131 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15132 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15133 # if the path contains ";" then we assume it to be the separator
15134 # otherwise default to the standard path separator (i.e. ":") - it is
15135 # assumed that no part of a normal pathname contains ";" but that should
15136 # okay in the real world where ";" in dirpaths is itself problematic.
15137 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15139 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15142 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15144 need_lib_prefix=unknown
15145 hardcode_into_libs=no
15147 # when you set need_version to no, make sure it does not cause -set_version
15148 # flags to be left without arguments
15149 need_version=unknown
15154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15155 shlibpath_var=LIBPATH
15157 # AIX 3 has no versioning support, so we append a major version to the name.
15158 soname_spec='${libname}${release}${shared_ext}$major'
15165 hardcode_into_libs=yes
15166 if test "$host_cpu" = ia64; then
15167 # AIX 5 supports IA64
15168 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15169 shlibpath_var=LD_LIBRARY_PATH
15171 # With GCC up to 2.95.x, collect2 would create an import file
15172 # for dependence libraries. The import file would start with
15173 # the line `#! .'. This would cause the generated library to
15174 # depend on `.', always an invalid library. This was fixed in
15175 # development snapshots of GCC prior to 3.0.
15177 aix4 | aix4.[01] | aix4.[01].*)
15178 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15180 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15183 can_build_shared=no
15187 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15188 # soname into executable. Probably we can add versioning support to
15189 # collect2, so additional links can be useful in future.
15190 if test "$aix_use_runtimelinking" = yes; then
15191 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15192 # instead of lib<name>.a to let people know that these are not
15193 # typical AIX shared libraries.
15194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15196 # We preserve .a as extension for shared libraries through AIX4.2
15197 # and later when we are not doing run time linking.
15198 library_names_spec='${libname}${release}.a $libname.a'
15199 soname_spec='${libname}${release}${shared_ext}$major'
15201 shlibpath_var=LIBPATH
15206 library_names_spec='$libname.ixlibrary $libname.a'
15207 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15208 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'
15212 library_names_spec='${libname}${shared_ext}'
15213 dynamic_linker="$host_os ld.so"
15214 shlibpath_var=LIBRARY_PATH
15220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15221 soname_spec='${libname}${release}${shared_ext}$major'
15222 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15223 shlibpath_var=LD_LIBRARY_PATH
15224 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15225 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15226 # the default ld.so.conf also contains /usr/contrib/lib and
15227 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15228 # libtool to hard-code these into programs
15231 cygwin* | mingw* | pw32*)
15232 version_type=windows
15237 case $GCC,$host_os in
15238 yes,cygwin* | yes,mingw* | yes,pw32*)
15239 library_names_spec='$libname.dll.a'
15240 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15241 postinstall_cmds='base_file=`basename \${file}`~
15242 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15243 dldir=$destdir/`dirname \$dlpath`~
15244 test -d \$dldir || mkdir -p \$dldir~
15245 $install_prog $dir/$dlname \$dldir/$dlname~
15246 chmod a+x \$dldir/$dlname'
15247 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15248 dlpath=$dir/\$dldll~
15250 shlibpath_overrides_runpath=yes
15254 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15255 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15256 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15259 # MinGW DLLs use traditional 'lib' prefix
15260 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15261 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15262 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15263 # It is most probably a Windows format PATH printed by
15264 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15265 # path with ; separators, and with drive letters. We can handle the
15266 # drive letters (cygwin fileutils understands them), so leave them,
15267 # especially as we might pass files found there to a mingw objdump,
15268 # which wouldn't understand a cygwinified path. Ahh.
15269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15271 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15275 # pw32 DLLs use 'pw' prefix rather than 'lib'
15276 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15282 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15285 dynamic_linker='Win32 ld.exe'
15286 # FIXME: first we should search . and the directory the executable is in
15290 darwin* | rhapsody*)
15291 dynamic_linker="$host_os dyld"
15292 version_type=darwin
15295 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15296 soname_spec='${libname}${release}${major}$shared_ext'
15297 shlibpath_overrides_runpath=yes
15298 shlibpath_var=DYLD_LIBRARY_PATH
15299 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15300 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15301 if test "$GCC" = yes; then
15302 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"`
15304 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15306 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15314 soname_spec='${libname}${release}${shared_ext}$major'
15315 shlibpath_var=LD_LIBRARY_PATH
15322 freebsd* | dragonfly*)
15323 # DragonFly does not have aout. When/if they implement a new
15324 # versioning mechanism, adjust this.
15325 if test -x /usr/bin/objformat; then
15326 objformat=`/usr/bin/objformat`
15329 freebsd[123]*) objformat=aout ;;
15330 *) objformat=elf ;;
15333 version_type=freebsd-$objformat
15334 case $version_type in
15336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15341 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15345 shlibpath_var=LD_LIBRARY_PATH
15348 shlibpath_overrides_runpath=yes
15350 freebsd3.[01]* | freebsdelf3.[01]*)
15351 shlibpath_overrides_runpath=yes
15352 hardcode_into_libs=yes
15354 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15355 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15356 shlibpath_overrides_runpath=no
15357 hardcode_into_libs=yes
15359 freebsd*) # from 4.6 on
15360 shlibpath_overrides_runpath=yes
15361 hardcode_into_libs=yes
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15371 soname_spec='${libname}${release}${shared_ext}$major'
15372 shlibpath_var=LD_LIBRARY_PATH
15373 hardcode_into_libs=yes
15376 hpux9* | hpux10* | hpux11*)
15377 # Give a soname corresponding to the major version so that dld.sl refuses to
15378 # link against other versions.
15385 hardcode_into_libs=yes
15386 dynamic_linker="$host_os dld.so"
15387 shlibpath_var=LD_LIBRARY_PATH
15388 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15390 soname_spec='${libname}${release}${shared_ext}$major'
15391 if test "X$HPUX_IA64_MODE" = X32; then
15392 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15394 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15400 hardcode_into_libs=yes
15401 dynamic_linker="$host_os dld.sl"
15402 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15403 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15405 soname_spec='${libname}${release}${shared_ext}$major'
15406 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15411 dynamic_linker="$host_os dld.sl"
15412 shlibpath_var=SHLIB_PATH
15413 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15415 soname_spec='${libname}${release}${shared_ext}$major'
15418 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15419 postinstall_cmds='chmod 555 $lib'
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15427 soname_spec='${libname}${release}${shared_ext}$major'
15428 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15429 shlibpath_var=LD_LIBRARY_PATH
15430 shlibpath_overrides_runpath=no
15431 hardcode_into_libs=yes
15434 irix5* | irix6* | nonstopux*)
15436 nonstopux*) version_type=nonstopux ;;
15438 if test "$lt_cv_prog_gnu_ld" = yes; then
15446 soname_spec='${libname}${release}${shared_ext}$major'
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15449 irix5* | nonstopux*)
15450 libsuff= shlibsuff=
15453 case $LD in # libtool.m4 will add one of these switches to LD
15454 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15455 libsuff= shlibsuff= libmagic=32-bit;;
15456 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15457 libsuff=32 shlibsuff=N32 libmagic=N32;;
15458 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15459 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15460 *) libsuff= shlibsuff= libmagic=never-match;;
15464 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15465 shlibpath_overrides_runpath=no
15466 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15467 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15468 hardcode_into_libs=yes
15471 # No shared lib support for Linux oldld, aout, or coff.
15472 linux*oldld* | linux*aout* | linux*coff*)
15476 # This must be Linux ELF.
15477 linux* | k*bsd*-gnu)
15481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15482 soname_spec='${libname}${release}${shared_ext}$major'
15483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15484 shlibpath_var=LD_LIBRARY_PATH
15485 shlibpath_overrides_runpath=no
15486 # This implies no fast_install, which is unacceptable.
15487 # Some rework will be needed to allow for fast_install
15488 # before this can be enabled.
15489 hardcode_into_libs=yes
15491 # Append ld.so.conf contents to the search path
15492 if test -f /etc/ld.so.conf; then
15493 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' ' '`
15494 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15497 # We used to test for /lib/ld.so.1 and disable shared libraries on
15498 # powerpc, because MkLinux only supported shared libraries with the
15499 # GNU dynamic linker. Since this was broken with cross compilers,
15500 # most powerpc-linux boxes support dynamic linking these days and
15501 # people can always --disable-shared, the test was removed, and we
15502 # assume the GNU/Linux dynamic linker is in use.
15503 dynamic_linker='GNU/Linux ld.so'
15510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15511 soname_spec='${libname}${release}${shared_ext}$major'
15512 shlibpath_var=LD_LIBRARY_PATH
15513 shlibpath_overrides_runpath=no
15514 hardcode_into_libs=yes
15515 dynamic_linker='NetBSD ld.elf_so'
15522 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15524 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15525 dynamic_linker='NetBSD (a.out) ld.so'
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15528 soname_spec='${libname}${release}${shared_ext}$major'
15529 dynamic_linker='NetBSD ld.elf_so'
15531 shlibpath_var=LD_LIBRARY_PATH
15532 shlibpath_overrides_runpath=yes
15533 hardcode_into_libs=yes
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15539 shlibpath_var=LD_LIBRARY_PATH
15540 shlibpath_overrides_runpath=yes
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548 soname_spec='${libname}${release}${shared_ext}$major'
15549 shlibpath_var=LD_LIBRARY_PATH
15550 shlibpath_overrides_runpath=yes
15555 sys_lib_dlsearch_path_spec="/usr/lib"
15557 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15559 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15560 *) need_version=no ;;
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15563 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15564 shlibpath_var=LD_LIBRARY_PATH
15565 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15567 openbsd2.[89] | openbsd2.[89].*)
15568 shlibpath_overrides_runpath=no
15571 shlibpath_overrides_runpath=yes
15575 shlibpath_overrides_runpath=yes
15580 libname_spec='$name'
15583 library_names_spec='$libname${shared_ext} $libname.a'
15584 dynamic_linker='OS/2 ld.exe'
15585 shlibpath_var=LIBPATH
15588 osf3* | osf4* | osf5*)
15592 soname_spec='${libname}${release}${shared_ext}$major'
15593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15594 shlibpath_var=LD_LIBRARY_PATH
15595 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15596 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 shlibpath_var=LD_LIBRARY_PATH
15606 shlibpath_overrides_runpath=yes
15607 hardcode_into_libs=yes
15608 # ldd complains unless libraries are executable
15609 postinstall_cmds='chmod +x $lib'
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15615 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15616 shlibpath_var=LD_LIBRARY_PATH
15617 shlibpath_overrides_runpath=yes
15618 if test "$with_gnu_ld" = yes; then
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 shlibpath_var=LD_LIBRARY_PATH
15629 case $host_vendor in
15631 shlibpath_overrides_runpath=no
15633 export_dynamic_flag_spec='${wl}-Blargedynsym'
15634 runpath_var=LD_RUN_PATH
15642 shlibpath_overrides_runpath=no
15643 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15649 if test -d /usr/nec ;then
15651 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15652 soname_spec='$libname${shared_ext}.$major'
15653 shlibpath_var=LD_LIBRARY_PATH
15657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15658 version_type=freebsd-elf
15661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15662 soname_spec='${libname}${release}${shared_ext}$major'
15663 shlibpath_var=LD_LIBRARY_PATH
15664 hardcode_into_libs=yes
15665 if test "$with_gnu_ld" = yes; then
15666 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15667 shlibpath_overrides_runpath=no
15669 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15670 shlibpath_overrides_runpath=yes
15673 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15677 sys_lib_dlsearch_path_spec='/usr/lib'
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 shlibpath_var=LD_LIBRARY_PATH
15691 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15692 echo "${ECHO_T}$dynamic_linker" >&6; }
15693 test "$dynamic_linker" = no && can_build_shared=no
15695 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15696 if test "$GCC" = yes; then
15697 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15700 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15701 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15702 hardcode_action_F77=
15703 if test -n "$hardcode_libdir_flag_spec_F77" || \
15704 test -n "$runpath_var_F77" || \
15705 test "X$hardcode_automatic_F77" = "Xyes" ; then
15707 # We can hardcode non-existant directories.
15708 if test "$hardcode_direct_F77" != no &&
15709 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15710 # have to relink, otherwise we might link with an installed library
15711 # when we should be linking with a yet-to-be-installed one
15712 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15713 test "$hardcode_minus_L_F77" != no; then
15714 # Linking always hardcodes the temporary library directory.
15715 hardcode_action_F77=relink
15717 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15718 hardcode_action_F77=immediate
15721 # We cannot hardcode anything, or else we can only hardcode existing
15723 hardcode_action_F77=unsupported
15725 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15726 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15728 if test "$hardcode_action_F77" = relink; then
15729 # Fast installation is not supported
15730 enable_fast_install=no
15731 elif test "$shlibpath_overrides_runpath" = yes ||
15732 test "$enable_shared" = no; then
15733 # Fast installation is not necessary
15734 enable_fast_install=needless
15738 # The else clause should only fire when bootstrapping the
15739 # libtool distribution, otherwise you forgot to ship ltmain.sh
15740 # with your package, and you will get complaints that there are
15741 # no rules to generate ltmain.sh.
15742 if test -f "$ltmain"; then
15743 # See if we are running on zsh, and set the options which allow our commands through
15744 # without removal of \ escapes.
15745 if test -n "${ZSH_VERSION+set}" ; then
15746 setopt NO_GLOB_SUBST
15748 # Now quote all the things that may contain metacharacters while being
15749 # careful not to overquote the AC_SUBSTed values. We take copies of the
15750 # variables and quote the copies for generation of the libtool script.
15751 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15753 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15754 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15755 deplibs_check_method reload_flag reload_cmds need_locks \
15756 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15757 lt_cv_sys_global_symbol_to_c_name_address \
15758 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15759 old_postinstall_cmds old_postuninstall_cmds \
15763 lt_prog_compiler_wl_F77 \
15764 lt_prog_compiler_pic_F77 \
15765 lt_prog_compiler_static_F77 \
15766 lt_prog_compiler_no_builtin_flag_F77 \
15767 export_dynamic_flag_spec_F77 \
15768 thread_safe_flag_spec_F77 \
15769 whole_archive_flag_spec_F77 \
15770 enable_shared_with_static_runtimes_F77 \
15771 old_archive_cmds_F77 \
15772 old_archive_from_new_cmds_F77 \
15773 predep_objects_F77 \
15774 postdep_objects_F77 \
15777 compiler_lib_search_path_F77 \
15779 archive_expsym_cmds_F77 \
15780 postinstall_cmds_F77 \
15781 postuninstall_cmds_F77 \
15782 old_archive_from_expsyms_cmds_F77 \
15783 allow_undefined_flag_F77 \
15784 no_undefined_flag_F77 \
15785 export_symbols_cmds_F77 \
15786 hardcode_libdir_flag_spec_F77 \
15787 hardcode_libdir_flag_spec_ld_F77 \
15788 hardcode_libdir_separator_F77 \
15789 hardcode_automatic_F77 \
15791 module_expsym_cmds_F77 \
15792 lt_cv_prog_compiler_c_o_F77 \
15793 exclude_expsyms_F77 \
15794 include_expsyms_F77; do
15797 old_archive_cmds_F77 | \
15798 old_archive_from_new_cmds_F77 | \
15799 archive_cmds_F77 | \
15800 archive_expsym_cmds_F77 | \
15801 module_cmds_F77 | \
15802 module_expsym_cmds_F77 | \
15803 old_archive_from_expsyms_cmds_F77 | \
15804 export_symbols_cmds_F77 | \
15805 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15806 postinstall_cmds | postuninstall_cmds | \
15807 old_postinstall_cmds | old_postuninstall_cmds | \
15808 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15809 # Double-quote double-evaled strings.
15810 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15813 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15819 *'\$0 --fallback-echo"')
15820 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15826 cat <<__EOF__ >> "$cfgfile"
15827 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15829 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15831 # Shell to use when invoking shell scripts.
15834 # Whether or not to build shared libraries.
15835 build_libtool_libs=$enable_shared
15837 # Whether or not to build static libraries.
15838 build_old_libs=$enable_static
15840 # Whether or not to add -lc for building shared libraries.
15841 build_libtool_need_lc=$archive_cmds_need_lc_F77
15843 # Whether or not to disallow shared libs when runtime libs are static
15844 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15846 # Whether or not to optimize for fast installation.
15847 fast_install=$enable_fast_install
15850 host_alias=$host_alias
15854 # The build system.
15855 build_alias=$build_alias
15859 # An echo program that does not interpret backslashes.
15864 AR_FLAGS=$lt_AR_FLAGS
15869 # LTCC compiler flags.
15870 LTCFLAGS=$lt_LTCFLAGS
15872 # A language-specific compiler.
15873 CC=$lt_compiler_F77
15875 # Is the compiler the GNU C compiler?
15881 # The linker used to build libraries.
15884 # Whether we need hard or soft links.
15887 # A BSD-compatible nm program.
15890 # A symbol stripping program
15893 # Used to examine libraries when file_magic_cmd begins "file"
15894 MAGIC_CMD=$MAGIC_CMD
15896 # Used on cygwin: DLL creation program.
15899 # Used on cygwin: object dumper.
15902 # Used on cygwin: assembler.
15905 # The name of the directory that contains temporary libtool files.
15908 # How to create reloadable object files.
15909 reload_flag=$lt_reload_flag
15910 reload_cmds=$lt_reload_cmds
15912 # How to pass a linker flag through the compiler.
15913 wl=$lt_lt_prog_compiler_wl_F77
15915 # Object file suffix (normally "o").
15916 objext="$ac_objext"
15918 # Old archive suffix (normally "a").
15921 # Shared library suffix (normally ".so").
15922 shrext_cmds='$shrext_cmds'
15924 # Executable file suffix (normally "").
15927 # Additional compiler flags for building library objects.
15928 pic_flag=$lt_lt_prog_compiler_pic_F77
15931 # What is the maximum length of a command?
15932 max_cmd_len=$lt_cv_sys_max_cmd_len
15934 # Does compiler simultaneously support -c and -o options?
15935 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15937 # Must we lock files when doing compilation?
15938 need_locks=$lt_need_locks
15940 # Do we need the lib prefix for modules?
15941 need_lib_prefix=$need_lib_prefix
15943 # Do we need a version for libraries?
15944 need_version=$need_version
15946 # Whether dlopen is supported.
15947 dlopen_support=$enable_dlopen
15949 # Whether dlopen of programs is supported.
15950 dlopen_self=$enable_dlopen_self
15952 # Whether dlopen of statically linked programs is supported.
15953 dlopen_self_static=$enable_dlopen_self_static
15955 # Compiler flag to prevent dynamic linking.
15956 link_static_flag=$lt_lt_prog_compiler_static_F77
15958 # Compiler flag to turn off builtin functions.
15959 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15961 # Compiler flag to allow reflexive dlopens.
15962 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15964 # Compiler flag to generate shared objects directly from archives.
15965 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15967 # Compiler flag to generate thread-safe objects.
15968 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15970 # Library versioning type.
15971 version_type=$version_type
15973 # Format of library name prefix.
15974 libname_spec=$lt_libname_spec
15976 # List of archive names. First name is the real one, the rest are links.
15977 # The last name is the one that the linker finds with -lNAME.
15978 library_names_spec=$lt_library_names_spec
15980 # The coded name of the library, if different from the real name.
15981 soname_spec=$lt_soname_spec
15983 # Commands used to build and install an old-style archive.
15985 old_archive_cmds=$lt_old_archive_cmds_F77
15986 old_postinstall_cmds=$lt_old_postinstall_cmds
15987 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15989 # Create an old-style archive from a shared archive.
15990 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15992 # Create a temporary old-style archive to link instead of a shared archive.
15993 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15995 # Commands used to build and install a shared archive.
15996 archive_cmds=$lt_archive_cmds_F77
15997 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15998 postinstall_cmds=$lt_postinstall_cmds
15999 postuninstall_cmds=$lt_postuninstall_cmds
16001 # Commands used to build a loadable module (assumed same as above if empty)
16002 module_cmds=$lt_module_cmds_F77
16003 module_expsym_cmds=$lt_module_expsym_cmds_F77
16005 # Commands to strip libraries.
16006 old_striplib=$lt_old_striplib
16007 striplib=$lt_striplib
16009 # Dependencies to place before the objects being linked to create a
16011 predep_objects=$lt_predep_objects_F77
16013 # Dependencies to place after the objects being linked to create a
16015 postdep_objects=$lt_postdep_objects_F77
16017 # Dependencies to place before the objects being linked to create a
16019 predeps=$lt_predeps_F77
16021 # Dependencies to place after the objects being linked to create a
16023 postdeps=$lt_postdeps_F77
16025 # The library search path used internally by the compiler when linking
16026 # a shared library.
16027 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16029 # Method to check whether dependent libraries are shared objects.
16030 deplibs_check_method=$lt_deplibs_check_method
16032 # Command to use when deplibs_check_method == file_magic.
16033 file_magic_cmd=$lt_file_magic_cmd
16035 # Flag that allows shared libraries with undefined symbols to be built.
16036 allow_undefined_flag=$lt_allow_undefined_flag_F77
16038 # Flag that forces no undefined symbols.
16039 no_undefined_flag=$lt_no_undefined_flag_F77
16041 # Commands used to finish a libtool library installation in a directory.
16042 finish_cmds=$lt_finish_cmds
16044 # Same as above, but a single script fragment to be evaled but not shown.
16045 finish_eval=$lt_finish_eval
16047 # Take the output of nm and produce a listing of raw symbols and C names.
16048 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16050 # Transform the output of nm in a proper C declaration
16051 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16053 # Transform the output of nm in a C name address pair
16054 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16056 # This is the shared library runtime path variable.
16057 runpath_var=$runpath_var
16059 # This is the shared library path variable.
16060 shlibpath_var=$shlibpath_var
16062 # Is shlibpath searched before the hard-coded library search path?
16063 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16065 # How to hardcode a shared library path into an executable.
16066 hardcode_action=$hardcode_action_F77
16068 # Whether we should hardcode library paths into libraries.
16069 hardcode_into_libs=$hardcode_into_libs
16071 # Flag to hardcode \$libdir into a binary during linking.
16072 # This must work even if \$libdir does not exist.
16073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16075 # If ld is used when linking, flag to hardcode \$libdir into
16076 # a binary during linking. This must work even if \$libdir does
16078 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16080 # Whether we need a single -rpath flag with a separated argument.
16081 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16083 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16084 # resulting binary.
16085 hardcode_direct=$hardcode_direct_F77
16087 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16088 # resulting binary.
16089 hardcode_minus_L=$hardcode_minus_L_F77
16091 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16092 # the resulting binary.
16093 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16095 # Set to yes if building a shared library automatically hardcodes DIR into the library
16096 # and all subsequent libraries and executables linked against it.
16097 hardcode_automatic=$hardcode_automatic_F77
16099 # Variables whose values should be saved in libtool wrapper scripts and
16100 # restored at relink time.
16101 variables_saved_for_relink="$variables_saved_for_relink"
16103 # Whether libtool must link a program against all its dependency libraries.
16104 link_all_deplibs=$link_all_deplibs_F77
16106 # Compile-time system search path for libraries
16107 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16109 # Run-time system search path for libraries
16110 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16112 # Fix the shell variable \$srcfile for the compiler.
16113 fix_srcfile_path="$fix_srcfile_path_F77"
16115 # Set to yes if exported symbols are required.
16116 always_export_symbols=$always_export_symbols_F77
16118 # The commands to list exported symbols.
16119 export_symbols_cmds=$lt_export_symbols_cmds_F77
16121 # The commands to extract the exported symbol list from a shared archive.
16122 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16124 # Symbols that should not be listed in the preloaded symbols.
16125 exclude_expsyms=$lt_exclude_expsyms_F77
16127 # Symbols that must always be exported.
16128 include_expsyms=$lt_include_expsyms_F77
16130 # ### END LIBTOOL TAG CONFIG: $tagname
16136 # If there is no Makefile yet, we rely on a make rule to execute
16137 # `config.status --recheck' to rerun these tests and create the
16138 # libtool script then.
16139 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16140 if test -f "$ltmain_in"; then
16141 test -f Makefile && make "$ltmain"
16147 ac_cpp='$CPP $CPPFLAGS'
16148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16160 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16163 # Source file extension for Java test sources.
16166 # Object file extension for compiled Java test sources.
16170 # Code to be used in simple compile tests
16171 lt_simple_compile_test_code="class foo {}\n"
16173 # Code to be used in simple link tests
16174 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16176 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16178 # If no C compiler was specified, use CC.
16181 # If no C compiler flags were specified, use CFLAGS.
16182 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16184 # Allow CC to be a program name with arguments.
16188 # save warnings/boilerplate of simple test code
16189 ac_outfile=conftest.$ac_objext
16190 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16191 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16192 _lt_compiler_boilerplate=`cat conftest.err`
16195 ac_outfile=conftest.$ac_objext
16196 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16197 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16198 _lt_linker_boilerplate=`cat conftest.err`
16202 # Allow CC to be a program name with arguments.
16207 for cc_temp in $compiler""; do
16209 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16210 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16215 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16218 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16219 archive_cmds_need_lc_GCJ=no
16221 old_archive_cmds_GCJ=$old_archive_cmds
16224 lt_prog_compiler_no_builtin_flag_GCJ=
16226 if test "$GCC" = yes; then
16227 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16230 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16231 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16232 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16233 echo $ECHO_N "(cached) $ECHO_C" >&6
16235 lt_cv_prog_compiler_rtti_exceptions=no
16236 ac_outfile=conftest.$ac_objext
16237 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16238 lt_compiler_flag="-fno-rtti -fno-exceptions"
16239 # Insert the option either (1) after the last *FLAGS variable, or
16240 # (2) before a word containing "conftest.", or (3) at the end.
16241 # Note that $ac_compile itself does not contain backslashes and begins
16242 # with a dollar sign (not a hyphen), so the echo should work correctly.
16243 # The option is referenced via a variable to avoid confusing sed.
16244 lt_compile=`echo "$ac_compile" | $SED \
16245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16247 -e 's:$: $lt_compiler_flag:'`
16248 (eval echo "\"\$as_me:16248: $lt_compile\"" >&5)
16249 (eval "$lt_compile" 2>conftest.err)
16251 cat conftest.err >&5
16252 echo "$as_me:16252: \$? = $ac_status" >&5
16253 if (exit $ac_status) && test -s "$ac_outfile"; then
16254 # The compiler can only warn and ignore the option if not recognized
16255 # So say no if there are warnings other than the usual output.
16256 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16257 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16258 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16259 lt_cv_prog_compiler_rtti_exceptions=yes
16265 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16266 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16268 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16269 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16276 lt_prog_compiler_wl_GCJ=
16277 lt_prog_compiler_pic_GCJ=
16278 lt_prog_compiler_static_GCJ=
16280 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16281 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16283 if test "$GCC" = yes; then
16284 lt_prog_compiler_wl_GCJ='-Wl,'
16285 lt_prog_compiler_static_GCJ='-static'
16289 # All AIX code is PIC.
16290 if test "$host_cpu" = ia64; then
16291 # AIX 5 now supports IA64 processor
16292 lt_prog_compiler_static_GCJ='-Bstatic'
16297 # FIXME: we need at least 68020 code to build shared libraries, but
16298 # adding the `-m68020' flag to GCC prevents building anything better,
16300 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16303 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16304 # PIC is the default for these OSes.
16307 mingw* | pw32* | os2*)
16308 # This hack is so that the source file can tell whether it is being
16309 # built for inclusion in a dll (and should export symbols for example).
16310 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16313 darwin* | rhapsody*)
16314 # PIC is the default on this platform
16315 # Common symbols not allowed in MH_DYLIB files
16316 lt_prog_compiler_pic_GCJ='-fno-common'
16320 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16321 # Instead, we relocate shared libraries at runtime.
16325 # Just because we use GCC doesn't mean we suddenly get shared libraries
16326 # on systems that don't support them.
16327 lt_prog_compiler_can_build_shared_GCJ=no
16332 if test -d /usr/nec; then
16333 lt_prog_compiler_pic_GCJ=-Kconform_pic
16338 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16339 # not for PA HP-UX.
16345 lt_prog_compiler_pic_GCJ='-fPIC'
16351 lt_prog_compiler_pic_GCJ='-fPIC'
16355 # PORTME Check for flag to pass linker flags through the system compiler.
16358 lt_prog_compiler_wl_GCJ='-Wl,'
16359 if test "$host_cpu" = ia64; then
16360 # AIX 5 now supports IA64 processor
16361 lt_prog_compiler_static_GCJ='-Bstatic'
16363 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16367 # PIC is the default on this platform
16368 # Common symbols not allowed in MH_DYLIB files
16369 case $cc_basename in
16371 lt_prog_compiler_pic_GCJ='-qnocommon'
16372 lt_prog_compiler_wl_GCJ='-Wl,'
16377 mingw* | pw32* | os2*)
16378 # This hack is so that the source file can tell whether it is being
16379 # built for inclusion in a dll (and should export symbols for example).
16380 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16383 hpux9* | hpux10* | hpux11*)
16384 lt_prog_compiler_wl_GCJ='-Wl,'
16385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16386 # not for PA HP-UX.
16392 lt_prog_compiler_pic_GCJ='+Z'
16395 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16396 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16399 irix5* | irix6* | nonstopux*)
16400 lt_prog_compiler_wl_GCJ='-Wl,'
16401 # PIC (with -KPIC) is the default.
16402 lt_prog_compiler_static_GCJ='-non_shared'
16406 lt_prog_compiler_pic_GCJ='-KPIC'
16407 lt_prog_compiler_static_GCJ='-Bstatic'
16410 linux* | k*bsd*-gnu)
16411 case $cc_basename in
16413 lt_prog_compiler_wl_GCJ='-Wl,'
16414 lt_prog_compiler_pic_GCJ='-KPIC'
16415 lt_prog_compiler_static_GCJ='-static'
16417 pgcc* | pgf77* | pgf90* | pgf95*)
16418 # Portland Group compilers (*not* the Pentium gcc compiler,
16419 # which looks to be a dead project)
16420 lt_prog_compiler_wl_GCJ='-Wl,'
16421 lt_prog_compiler_pic_GCJ='-fpic'
16422 lt_prog_compiler_static_GCJ='-Bstatic'
16425 lt_prog_compiler_wl_GCJ='-Wl,'
16426 # All Alpha code is PIC.
16427 lt_prog_compiler_static_GCJ='-non_shared'
16432 osf3* | osf4* | osf5*)
16433 lt_prog_compiler_wl_GCJ='-Wl,'
16434 # All OSF/1 code is PIC.
16435 lt_prog_compiler_static_GCJ='-non_shared'
16439 lt_prog_compiler_pic_GCJ='-KPIC'
16440 lt_prog_compiler_static_GCJ='-Bstatic'
16441 case $cc_basename in
16442 f77* | f90* | f95*)
16443 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16445 lt_prog_compiler_wl_GCJ='-Wl,';;
16450 lt_prog_compiler_wl_GCJ='-Qoption ld '
16451 lt_prog_compiler_pic_GCJ='-PIC'
16452 lt_prog_compiler_static_GCJ='-Bstatic'
16455 sysv4 | sysv4.2uw2* | sysv4.3*)
16456 lt_prog_compiler_wl_GCJ='-Wl,'
16457 lt_prog_compiler_pic_GCJ='-KPIC'
16458 lt_prog_compiler_static_GCJ='-Bstatic'
16462 if test -d /usr/nec ;then
16463 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16464 lt_prog_compiler_static_GCJ='-Bstatic'
16468 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16469 lt_prog_compiler_wl_GCJ='-Wl,'
16470 lt_prog_compiler_pic_GCJ='-KPIC'
16471 lt_prog_compiler_static_GCJ='-Bstatic'
16475 lt_prog_compiler_wl_GCJ='-Wl,'
16476 lt_prog_compiler_can_build_shared_GCJ=no
16480 lt_prog_compiler_pic_GCJ='-pic'
16481 lt_prog_compiler_static_GCJ='-Bstatic'
16485 lt_prog_compiler_can_build_shared_GCJ=no
16490 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16491 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16494 # Check to make sure the PIC flag actually works.
16496 if test -n "$lt_prog_compiler_pic_GCJ"; then
16498 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16499 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16500 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16501 echo $ECHO_N "(cached) $ECHO_C" >&6
16503 lt_prog_compiler_pic_works_GCJ=no
16504 ac_outfile=conftest.$ac_objext
16505 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16506 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16507 # Insert the option either (1) after the last *FLAGS variable, or
16508 # (2) before a word containing "conftest.", or (3) at the end.
16509 # Note that $ac_compile itself does not contain backslashes and begins
16510 # with a dollar sign (not a hyphen), so the echo should work correctly.
16511 # The option is referenced via a variable to avoid confusing sed.
16512 lt_compile=`echo "$ac_compile" | $SED \
16513 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16515 -e 's:$: $lt_compiler_flag:'`
16516 (eval echo "\"\$as_me:16516: $lt_compile\"" >&5)
16517 (eval "$lt_compile" 2>conftest.err)
16519 cat conftest.err >&5
16520 echo "$as_me:16520: \$? = $ac_status" >&5
16521 if (exit $ac_status) && test -s "$ac_outfile"; then
16522 # The compiler can only warn and ignore the option if not recognized
16523 # So say no if there are warnings other than the usual output.
16524 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16526 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16527 lt_prog_compiler_pic_works_GCJ=yes
16533 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16534 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16536 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16537 case $lt_prog_compiler_pic_GCJ in
16539 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16542 lt_prog_compiler_pic_GCJ=
16543 lt_prog_compiler_can_build_shared_GCJ=no
16548 # For platforms which do not support PIC, -DPIC is meaningless:
16550 lt_prog_compiler_pic_GCJ=
16553 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16558 # Check to make sure the static flag actually works.
16560 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16561 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16562 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16563 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16564 echo $ECHO_N "(cached) $ECHO_C" >&6
16566 lt_prog_compiler_static_works_GCJ=no
16567 save_LDFLAGS="$LDFLAGS"
16568 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16569 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16570 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16571 # The linker can only warn and ignore the option if not recognized
16572 # So say no if there are warnings
16573 if test -s conftest.err; then
16574 # Append any errors to the config.log.
16575 cat conftest.err 1>&5
16576 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16578 if diff conftest.exp conftest.er2 >/dev/null; then
16579 lt_prog_compiler_static_works_GCJ=yes
16582 lt_prog_compiler_static_works_GCJ=yes
16586 LDFLAGS="$save_LDFLAGS"
16589 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16590 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16592 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16595 lt_prog_compiler_static_GCJ=
16599 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16600 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16601 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16602 echo $ECHO_N "(cached) $ECHO_C" >&6
16604 lt_cv_prog_compiler_c_o_GCJ=no
16605 $rm -r conftest 2>/dev/null
16609 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16611 lt_compiler_flag="-o out/conftest2.$ac_objext"
16612 # Insert the option either (1) after the last *FLAGS variable, or
16613 # (2) before a word containing "conftest.", or (3) at the end.
16614 # Note that $ac_compile itself does not contain backslashes and begins
16615 # with a dollar sign (not a hyphen), so the echo should work correctly.
16616 lt_compile=`echo "$ac_compile" | $SED \
16617 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16618 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16619 -e 's:$: $lt_compiler_flag:'`
16620 (eval echo "\"\$as_me:16620: $lt_compile\"" >&5)
16621 (eval "$lt_compile" 2>out/conftest.err)
16623 cat out/conftest.err >&5
16624 echo "$as_me:16624: \$? = $ac_status" >&5
16625 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16627 # The compiler can only warn and ignore the option if not recognized
16628 # So say no if there are warnings
16629 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16630 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16631 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16632 lt_cv_prog_compiler_c_o_GCJ=yes
16637 # SGI C++ compiler will create directory out/ii_files/ for
16638 # template instantiation
16639 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16640 $rm out/* && rmdir out
16646 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16647 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16650 hard_links="nottested"
16651 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16652 # do not overwrite the value of need_locks provided by the user
16653 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16654 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16659 ln conftest.a conftest.b 2>&5 || hard_links=no
16660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16661 { echo "$as_me:$LINENO: result: $hard_links" >&5
16662 echo "${ECHO_T}$hard_links" >&6; }
16663 if test "$hard_links" = no; then
16664 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16665 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16672 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16673 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16676 allow_undefined_flag_GCJ=
16677 enable_shared_with_static_runtimes_GCJ=no
16679 archive_expsym_cmds_GCJ=
16680 old_archive_From_new_cmds_GCJ=
16681 old_archive_from_expsyms_cmds_GCJ=
16682 export_dynamic_flag_spec_GCJ=
16683 whole_archive_flag_spec_GCJ=
16684 thread_safe_flag_spec_GCJ=
16685 hardcode_libdir_flag_spec_GCJ=
16686 hardcode_libdir_flag_spec_ld_GCJ=
16687 hardcode_libdir_separator_GCJ=
16688 hardcode_direct_GCJ=no
16689 hardcode_minus_L_GCJ=no
16690 hardcode_shlibpath_var_GCJ=unsupported
16691 link_all_deplibs_GCJ=unknown
16692 hardcode_automatic_GCJ=no
16694 module_expsym_cmds_GCJ=
16695 always_export_symbols_GCJ=no
16696 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16697 # include_expsyms should be a list of space-separated symbols to be *always*
16698 # included in the symbol list
16699 include_expsyms_GCJ=
16700 # exclude_expsyms can be an extended regexp of symbols to exclude
16701 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16702 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16703 # as well as any symbol that contains `d'.
16704 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16705 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16706 # platforms (ab)use it in PIC code, but their linkers get confused if
16707 # the symbol is explicitly referenced. Since portable code cannot
16708 # rely on this symbol name, it's probably fine to never include it in
16709 # preloaded symbol tables.
16710 extract_expsyms_cmds=
16711 # Just being paranoid about ensuring that cc_basename is set.
16712 for cc_temp in $compiler""; do
16714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16720 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16723 cygwin* | mingw* | pw32*)
16724 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16725 # When not using gcc, we currently assume that we are using
16726 # Microsoft Visual C++.
16727 if test "$GCC" != yes; then
16732 # we just hope/assume this is gcc and not c89 (= MSVC++)
16741 if test "$with_gnu_ld" = yes; then
16742 # If archive_cmds runs LD, not CC, wlarc should be empty
16745 # Set some defaults for GNU ld with shared library support. These
16746 # are reset later if shared libraries are not supported. Putting them
16747 # here allows them to be overridden if necessary.
16748 runpath_var=LD_RUN_PATH
16749 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16750 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16751 # ancient GNU ld didn't support --whole-archive et. al.
16752 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16753 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16755 whole_archive_flag_spec_GCJ=
16757 supports_anon_versioning=no
16758 case `$LD -v 2>/dev/null` in
16759 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16760 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16761 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16762 *\ 2.11.*) ;; # other 2.11 versions
16763 *) supports_anon_versioning=yes ;;
16766 # See if GNU ld supports shared libraries.
16768 aix3* | aix4* | aix5*)
16769 # On AIX/PPC, the GNU linker is very broken
16770 if test "$host_cpu" != ia64; then
16774 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16775 *** to be unable to reliably create shared libraries on AIX.
16776 *** Therefore, libtool is disabling shared libraries support. If you
16777 *** really care for shared libraries, you may want to modify your PATH
16778 *** so that a non-GNU linker is found, and then restart.
16785 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)'
16786 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16787 hardcode_minus_L_GCJ=yes
16789 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16790 # that the semantics of dynamic libraries on AmigaOS, at least up
16791 # to version 4, is to share data among multiple programs linked
16792 # with the same dynamic library. Since this doesn't match the
16793 # behavior of shared libraries on other platforms, we can't use
16799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16800 allow_undefined_flag_GCJ=unsupported
16801 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16802 # support --undefined. This deserves some investigation. FIXME
16803 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16809 cygwin* | mingw* | pw32*)
16810 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16811 # as there is no search path for DLLs.
16812 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16813 allow_undefined_flag_GCJ=unsupported
16814 always_export_symbols_GCJ=no
16815 enable_shared_with_static_runtimes_GCJ=yes
16816 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16818 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16819 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16820 # If the export-symbols file already is a .def file (1st line
16821 # is EXPORTS), use it as is; otherwise, prepend...
16822 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16823 cp $export_symbols $output_objdir/$soname.def;
16825 echo EXPORTS > $output_objdir/$soname.def;
16826 cat $export_symbols >> $output_objdir/$soname.def;
16828 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16835 hardcode_direct_GCJ=no
16836 hardcode_shlibpath_var_GCJ=no
16837 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16838 export_dynamic_flag_spec_GCJ='${wl}-E'
16839 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16840 # Instead, shared libraries are loaded at an image base (0x10000000 by
16841 # default) and relocated if they conflict, which is a slow very memory
16842 # consuming and fragmenting process. To avoid this, we pick a random,
16843 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16844 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16845 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'
16846 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'
16849 linux* | k*bsd*-gnu)
16850 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16852 case $cc_basename,$host_cpu in
16853 pgcc*) # Portland Group C compiler
16854 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'
16855 tmp_addflag=' $pic_flag'
16857 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16858 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'
16859 tmp_addflag=' $pic_flag -Mnomain' ;;
16860 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16861 tmp_addflag=' -i_dynamic' ;;
16862 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16863 tmp_addflag=' -i_dynamic -nofor_main' ;;
16864 ifc* | ifort*) # Intel Fortran compiler
16865 tmp_addflag=' -nofor_main' ;;
16867 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16869 if test $supports_anon_versioning = yes; then
16870 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16871 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16872 $echo "local: *; };" >> $output_objdir/$libname.ver~
16873 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16875 link_all_deplibs_GCJ=no
16881 netbsd* | netbsdelf*-gnu)
16882 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16883 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16886 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16887 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16892 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16896 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16897 *** create shared libraries on Solaris systems. Therefore, libtool
16898 *** is disabling shared libraries support. We urge you to upgrade GNU
16899 *** binutils to release 2.9.1 or newer. Another option is to modify
16900 *** your PATH or compiler configuration so that the native linker is
16901 *** used, and then restart.
16904 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16905 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16906 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16912 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16913 case `$LD -v 2>&1` in
16914 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16918 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16919 *** reliably create shared libraries on SCO systems. Therefore, libtool
16920 *** is disabling shared libraries support. We urge you to upgrade GNU
16921 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16922 *** your PATH or compiler configuration so that the native linker is
16923 *** used, and then restart.
16928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16929 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16930 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16931 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16940 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16942 hardcode_direct_GCJ=yes
16943 hardcode_shlibpath_var_GCJ=no
16947 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16948 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16949 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16956 if test "$ld_shlibs_GCJ" = no; then
16958 hardcode_libdir_flag_spec_GCJ=
16959 export_dynamic_flag_spec_GCJ=
16960 whole_archive_flag_spec_GCJ=
16963 # PORTME fill in a description of your system's linker (not GNU ld)
16966 allow_undefined_flag_GCJ=unsupported
16967 always_export_symbols_GCJ=yes
16968 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'
16969 # Note: this linker hardcodes the directories in LIBPATH if there
16970 # are no directories specified by -L.
16971 hardcode_minus_L_GCJ=yes
16972 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16973 # Neither direct hardcoding nor static linking is supported with a
16975 hardcode_direct_GCJ=unsupported
16980 if test "$host_cpu" = ia64; then
16981 # On IA64, the linker does run time linking by default, so we don't
16982 # have to do anything special.
16983 aix_use_runtimelinking=no
16984 exp_sym_flag='-Bexport'
16987 # If we're using GNU nm, then we don't want the "-C" option.
16988 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16989 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16990 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'
16992 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'
16994 aix_use_runtimelinking=no
16996 # Test if we are trying to use run time linking or normal
16997 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16998 # need to do runtime linking.
16999 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17000 for ld_flag in $LDFLAGS; do
17001 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17002 aix_use_runtimelinking=yes
17009 exp_sym_flag='-bexport'
17010 no_entry_flag='-bnoentry'
17013 # When large executables or shared objects are built, AIX ld can
17014 # have problems creating the table of contents. If linking a library
17015 # or program results in "error TOC overflow" add -mminimal-toc to
17016 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17017 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17019 archive_cmds_GCJ=''
17020 hardcode_direct_GCJ=yes
17021 hardcode_libdir_separator_GCJ=':'
17022 link_all_deplibs_GCJ=yes
17024 if test "$GCC" = yes; then
17025 case $host_os in aix4.[012]|aix4.[012].*)
17026 # We only want to do this on AIX 4.2 and lower, the check
17027 # below for broken collect2 doesn't work under 4.3+
17028 collect2name=`${CC} -print-prog-name=collect2`
17029 if test -f "$collect2name" && \
17030 strings "$collect2name" | grep resolve_lib_name >/dev/null
17032 # We have reworked collect2
17033 hardcode_direct_GCJ=yes
17035 # We have old collect2
17036 hardcode_direct_GCJ=unsupported
17037 # It fails to find uninstalled libraries when the uninstalled
17038 # path is not listed in the libpath. Setting hardcode_minus_L
17039 # to unsupported forces relinking
17040 hardcode_minus_L_GCJ=yes
17041 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17042 hardcode_libdir_separator_GCJ=
17046 shared_flag='-shared'
17047 if test "$aix_use_runtimelinking" = yes; then
17048 shared_flag="$shared_flag "'${wl}-G'
17052 if test "$host_cpu" = ia64; then
17053 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17054 # chokes on -Wl,-G. The following line is correct:
17057 if test "$aix_use_runtimelinking" = yes; then
17058 shared_flag='${wl}-G'
17060 shared_flag='${wl}-bM:SRE'
17065 # It seems that -bexpall does not export symbols beginning with
17066 # underscore (_), so it is better to generate a list of symbols to export.
17067 always_export_symbols_GCJ=yes
17068 if test "$aix_use_runtimelinking" = yes; then
17069 # Warning - without using the other runtime loading flags (-brtl),
17070 # -berok will link without error, but may produce a broken library.
17071 allow_undefined_flag_GCJ='-berok'
17072 # Determine the default libpath from the value encoded in an empty executable.
17073 cat >conftest.$ac_ext <<_ACEOF
17076 cat confdefs.h >>conftest.$ac_ext
17077 cat >>conftest.$ac_ext <<_ACEOF
17078 /* end confdefs.h. */
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_link") 2>conftest.er1
17097 grep -v '^ *+' conftest.er1 >conftest.err
17099 cat conftest.err >&5
17100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17101 (exit $ac_status); } && {
17102 test -z "$ac_c_werror_flag" ||
17103 test ! -s conftest.err
17104 } && test -s conftest$ac_exeext &&
17105 $as_test_x conftest$ac_exeext; then
17107 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17109 # Check for a 64-bit object if we didn't find anything.
17110 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; }
17113 echo "$as_me: failed program was:" >&5
17114 sed 's/^/| /' conftest.$ac_ext >&5
17119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17120 conftest$ac_exeext conftest.$ac_ext
17121 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17123 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17124 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"
17126 if test "$host_cpu" = ia64; then
17127 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17128 allow_undefined_flag_GCJ="-z nodefs"
17129 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"
17131 # Determine the default libpath from the value encoded in an empty executable.
17132 cat >conftest.$ac_ext <<_ACEOF
17135 cat confdefs.h >>conftest.$ac_ext
17136 cat >>conftest.$ac_ext <<_ACEOF
17137 /* end confdefs.h. */
17147 rm -f conftest.$ac_objext conftest$ac_exeext
17148 if { (ac_try="$ac_link"
17149 case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154 (eval "$ac_link") 2>conftest.er1
17156 grep -v '^ *+' conftest.er1 >conftest.err
17158 cat conftest.err >&5
17159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17160 (exit $ac_status); } && {
17161 test -z "$ac_c_werror_flag" ||
17162 test ! -s conftest.err
17163 } && test -s conftest$ac_exeext &&
17164 $as_test_x conftest$ac_exeext; then
17166 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17168 # Check for a 64-bit object if we didn't find anything.
17169 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; }
17172 echo "$as_me: failed program was:" >&5
17173 sed 's/^/| /' conftest.$ac_ext >&5
17178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17179 conftest$ac_exeext conftest.$ac_ext
17180 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17182 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17183 # Warning - without using the other run time loading flags,
17184 # -berok will link without error, but may produce a broken library.
17185 no_undefined_flag_GCJ=' ${wl}-bernotok'
17186 allow_undefined_flag_GCJ=' ${wl}-berok'
17187 # Exported symbols can be pulled into shared objects from archives
17188 whole_archive_flag_spec_GCJ='$convenience'
17189 archive_cmds_need_lc_GCJ=yes
17190 # This is similar to how AIX traditionally builds its shared libraries.
17191 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'
17197 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)'
17198 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17199 hardcode_minus_L_GCJ=yes
17200 # see comment about different semantics on the GNU ld section
17205 export_dynamic_flag_spec_GCJ=-rdynamic
17208 cygwin* | mingw* | pw32*)
17209 # When not using gcc, we currently assume that we are using
17210 # Microsoft Visual C++.
17211 # hardcode_libdir_flag_spec is actually meaningless, as there is
17212 # no search path for DLLs.
17213 hardcode_libdir_flag_spec_GCJ=' '
17214 allow_undefined_flag_GCJ=unsupported
17215 # Tell ltmain to make .lib files, not .a files.
17217 # Tell ltmain to make .dll files, not .so files.
17219 # FIXME: Setting linknames here is a bad hack.
17220 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17221 # The linker will automatically build a .lib file if we build a DLL.
17222 old_archive_From_new_cmds_GCJ='true'
17223 # FIXME: Should let the user specify the lib program.
17224 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17225 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17226 enable_shared_with_static_runtimes_GCJ=yes
17229 darwin* | rhapsody*)
17231 rhapsody* | darwin1.[012])
17232 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17235 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17236 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17238 case ${MACOSX_DEPLOYMENT_TARGET} in
17240 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17243 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17249 archive_cmds_need_lc_GCJ=no
17250 hardcode_direct_GCJ=no
17251 hardcode_automatic_GCJ=yes
17252 hardcode_shlibpath_var_GCJ=unsupported
17253 whole_archive_flag_spec_GCJ=''
17254 link_all_deplibs_GCJ=yes
17255 if test "$GCC" = yes ; then
17256 output_verbose_link_cmd='echo'
17257 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17258 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17259 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17260 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}'
17261 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}'
17263 case $cc_basename in
17265 output_verbose_link_cmd='echo'
17266 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17267 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17269 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}'
17270 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}'
17280 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17281 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17282 hardcode_shlibpath_var_GCJ=no
17289 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17290 # support. Future versions do this automatically, but an explicit c++rt0.o
17291 # does not break anything, and helps significantly (at the cost of a little
17294 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17295 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17296 hardcode_direct_GCJ=yes
17297 hardcode_shlibpath_var_GCJ=no
17300 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17302 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17303 hardcode_direct_GCJ=yes
17304 hardcode_minus_L_GCJ=yes
17305 hardcode_shlibpath_var_GCJ=no
17308 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17309 freebsd* | dragonfly*)
17310 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17311 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17312 hardcode_direct_GCJ=yes
17313 hardcode_shlibpath_var_GCJ=no
17317 if test "$GCC" = yes; then
17318 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'
17320 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'
17322 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17323 hardcode_libdir_separator_GCJ=:
17324 hardcode_direct_GCJ=yes
17326 # hardcode_minus_L: Not really in the search PATH,
17327 # but as the default location of the library.
17328 hardcode_minus_L_GCJ=yes
17329 export_dynamic_flag_spec_GCJ='${wl}-E'
17333 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17334 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17336 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17338 if test "$with_gnu_ld" = no; then
17339 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17340 hardcode_libdir_separator_GCJ=:
17342 hardcode_direct_GCJ=yes
17343 export_dynamic_flag_spec_GCJ='${wl}-E'
17345 # hardcode_minus_L: Not really in the search PATH,
17346 # but as the default location of the library.
17347 hardcode_minus_L_GCJ=yes
17352 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17355 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17358 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17361 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17367 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17370 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17373 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17377 if test "$with_gnu_ld" = no; then
17378 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17379 hardcode_libdir_separator_GCJ=:
17383 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17384 hardcode_direct_GCJ=no
17385 hardcode_shlibpath_var_GCJ=no
17388 hardcode_direct_GCJ=yes
17389 export_dynamic_flag_spec_GCJ='${wl}-E'
17391 # hardcode_minus_L: Not really in the search PATH,
17392 # but as the default location of the library.
17393 hardcode_minus_L_GCJ=yes
17399 irix5* | irix6* | nonstopux*)
17400 if test "$GCC" = yes; then
17401 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'
17403 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'
17404 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17406 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17407 hardcode_libdir_separator_GCJ=:
17408 link_all_deplibs_GCJ=yes
17411 netbsd* | netbsdelf*-gnu)
17412 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17413 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17415 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17417 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17418 hardcode_direct_GCJ=yes
17419 hardcode_shlibpath_var_GCJ=no
17423 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17424 hardcode_direct_GCJ=yes
17425 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17426 hardcode_libdir_separator_GCJ=:
17427 hardcode_shlibpath_var_GCJ=no
17431 hardcode_direct_GCJ=yes
17432 hardcode_shlibpath_var_GCJ=no
17433 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17434 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17435 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17436 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17437 export_dynamic_flag_spec_GCJ='${wl}-E'
17440 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17441 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17442 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17445 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17446 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17453 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17454 hardcode_minus_L_GCJ=yes
17455 allow_undefined_flag_GCJ=unsupported
17456 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'
17457 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17461 if test "$GCC" = yes; then
17462 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17463 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'
17465 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17466 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'
17468 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17469 hardcode_libdir_separator_GCJ=:
17472 osf4* | osf5*) # as osf3* with the addition of -msym flag
17473 if test "$GCC" = yes; then
17474 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17475 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'
17476 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17478 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17479 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'
17480 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~
17481 $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'
17483 # Both c and cxx compiler support -rpath directly
17484 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17486 hardcode_libdir_separator_GCJ=:
17490 no_undefined_flag_GCJ=' -z text'
17491 if test "$GCC" = yes; then
17493 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17494 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17495 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17498 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17499 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17500 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17502 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17503 hardcode_shlibpath_var_GCJ=no
17505 solaris2.[0-5] | solaris2.[0-5].*) ;;
17507 # The compiler driver will combine linker options so we
17508 # cannot just pass the convience library names through
17509 # without $wl, iff we do not link with $LD.
17510 # Luckily, gcc supports the same syntax we need for Sun Studio.
17511 # Supported since Solaris 2.6 (maybe 2.5.1?)
17514 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17516 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' ;;
17519 link_all_deplibs_GCJ=yes
17523 if test "x$host_vendor" = xsequent; then
17524 # Use $CC to link under sequent, because it throws in some extra .o
17525 # files that make .init and .fini sections work.
17526 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17528 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17530 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17531 hardcode_direct_GCJ=yes
17532 hardcode_minus_L_GCJ=yes
17533 hardcode_shlibpath_var_GCJ=no
17537 case $host_vendor in
17539 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17540 hardcode_direct_GCJ=yes # is this really true???
17543 ## LD is ld it makes a PLAMLIB
17544 ## CC just makes a GrossModule.
17545 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17546 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17547 hardcode_direct_GCJ=no
17550 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17551 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17554 runpath_var='LD_RUN_PATH'
17555 hardcode_shlibpath_var_GCJ=no
17559 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17560 hardcode_shlibpath_var_GCJ=no
17561 export_dynamic_flag_spec_GCJ='-Bexport'
17565 if test -d /usr/nec; then
17566 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17567 hardcode_shlibpath_var_GCJ=no
17568 runpath_var=LD_RUN_PATH
17569 hardcode_runpath_var=yes
17574 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17575 no_undefined_flag_GCJ='${wl}-z,text'
17576 archive_cmds_need_lc_GCJ=no
17577 hardcode_shlibpath_var_GCJ=no
17578 runpath_var='LD_RUN_PATH'
17580 if test "$GCC" = yes; then
17581 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17582 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17584 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17585 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17589 sysv5* | sco3.2v5* | sco5v6*)
17590 # Note: We can NOT use -z defs as we might desire, because we do not
17591 # link with -lc, and that would cause any symbols used from libc to
17592 # always be unresolved, which means just about no library would
17593 # ever link correctly. If we're not using GNU ld we use -z text
17594 # though, which does catch some bad symbols but isn't as heavy-handed
17596 no_undefined_flag_GCJ='${wl}-z,text'
17597 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17598 archive_cmds_need_lc_GCJ=no
17599 hardcode_shlibpath_var_GCJ=no
17600 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17601 hardcode_libdir_separator_GCJ=':'
17602 link_all_deplibs_GCJ=yes
17603 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17604 runpath_var='LD_RUN_PATH'
17606 if test "$GCC" = yes; then
17607 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17608 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17610 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17611 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17616 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17617 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17618 hardcode_shlibpath_var_GCJ=no
17627 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17628 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17629 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17632 # Do we need to explicitly link libc?
17634 case "x$archive_cmds_need_lc_GCJ" in
17636 # Assume -lc should be added
17637 archive_cmds_need_lc_GCJ=yes
17639 if test "$enable_shared" = yes && test "$GCC" = yes; then
17640 case $archive_cmds_GCJ in
17642 # FIXME: we may have to deal with multi-command sequences.
17645 # Test whether the compiler implicitly links with -lc since on some
17646 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17647 # to ld, don't add -lc before -lgcc.
17648 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17649 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17651 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17654 (eval $ac_compile) 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } 2>conftest.err; then
17660 libobjs=conftest.$ac_objext
17662 wl=$lt_prog_compiler_wl_GCJ
17663 pic_flag=$lt_prog_compiler_pic_GCJ
17669 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17670 allow_undefined_flag_GCJ=
17671 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17672 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); }
17677 archive_cmds_need_lc_GCJ=no
17679 archive_cmds_need_lc_GCJ=yes
17681 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17683 cat conftest.err 1>&5
17686 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17687 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17694 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17695 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17696 library_names_spec=
17697 libname_spec='lib$name'
17701 postuninstall_cmds=
17705 shlibpath_overrides_runpath=unknown
17707 dynamic_linker="$host_os ld.so"
17708 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17709 if test "$GCC" = yes; then
17710 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17711 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17712 # if the path contains ";" then we assume it to be the separator
17713 # otherwise default to the standard path separator (i.e. ":") - it is
17714 # assumed that no part of a normal pathname contains ";" but that should
17715 # okay in the real world where ";" in dirpaths is itself problematic.
17716 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17718 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17721 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17723 need_lib_prefix=unknown
17724 hardcode_into_libs=no
17726 # when you set need_version to no, make sure it does not cause -set_version
17727 # flags to be left without arguments
17728 need_version=unknown
17733 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17734 shlibpath_var=LIBPATH
17736 # AIX 3 has no versioning support, so we append a major version to the name.
17737 soname_spec='${libname}${release}${shared_ext}$major'
17744 hardcode_into_libs=yes
17745 if test "$host_cpu" = ia64; then
17746 # AIX 5 supports IA64
17747 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17748 shlibpath_var=LD_LIBRARY_PATH
17750 # With GCC up to 2.95.x, collect2 would create an import file
17751 # for dependence libraries. The import file would start with
17752 # the line `#! .'. This would cause the generated library to
17753 # depend on `.', always an invalid library. This was fixed in
17754 # development snapshots of GCC prior to 3.0.
17756 aix4 | aix4.[01] | aix4.[01].*)
17757 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17759 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17762 can_build_shared=no
17766 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17767 # soname into executable. Probably we can add versioning support to
17768 # collect2, so additional links can be useful in future.
17769 if test "$aix_use_runtimelinking" = yes; then
17770 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17771 # instead of lib<name>.a to let people know that these are not
17772 # typical AIX shared libraries.
17773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17775 # We preserve .a as extension for shared libraries through AIX4.2
17776 # and later when we are not doing run time linking.
17777 library_names_spec='${libname}${release}.a $libname.a'
17778 soname_spec='${libname}${release}${shared_ext}$major'
17780 shlibpath_var=LIBPATH
17785 library_names_spec='$libname.ixlibrary $libname.a'
17786 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17787 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'
17791 library_names_spec='${libname}${shared_ext}'
17792 dynamic_linker="$host_os ld.so"
17793 shlibpath_var=LIBRARY_PATH
17799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17800 soname_spec='${libname}${release}${shared_ext}$major'
17801 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17802 shlibpath_var=LD_LIBRARY_PATH
17803 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17804 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17805 # the default ld.so.conf also contains /usr/contrib/lib and
17806 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17807 # libtool to hard-code these into programs
17810 cygwin* | mingw* | pw32*)
17811 version_type=windows
17816 case $GCC,$host_os in
17817 yes,cygwin* | yes,mingw* | yes,pw32*)
17818 library_names_spec='$libname.dll.a'
17819 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17820 postinstall_cmds='base_file=`basename \${file}`~
17821 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17822 dldir=$destdir/`dirname \$dlpath`~
17823 test -d \$dldir || mkdir -p \$dldir~
17824 $install_prog $dir/$dlname \$dldir/$dlname~
17825 chmod a+x \$dldir/$dlname'
17826 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17827 dlpath=$dir/\$dldll~
17829 shlibpath_overrides_runpath=yes
17833 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17834 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17835 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17838 # MinGW DLLs use traditional 'lib' prefix
17839 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17840 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17841 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17842 # It is most probably a Windows format PATH printed by
17843 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17844 # path with ; separators, and with drive letters. We can handle the
17845 # drive letters (cygwin fileutils understands them), so leave them,
17846 # especially as we might pass files found there to a mingw objdump,
17847 # which wouldn't understand a cygwinified path. Ahh.
17848 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17850 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17854 # pw32 DLLs use 'pw' prefix rather than 'lib'
17855 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17861 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17864 dynamic_linker='Win32 ld.exe'
17865 # FIXME: first we should search . and the directory the executable is in
17869 darwin* | rhapsody*)
17870 dynamic_linker="$host_os dyld"
17871 version_type=darwin
17874 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17875 soname_spec='${libname}${release}${major}$shared_ext'
17876 shlibpath_overrides_runpath=yes
17877 shlibpath_var=DYLD_LIBRARY_PATH
17878 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17879 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17880 if test "$GCC" = yes; then
17881 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"`
17883 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17885 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17893 soname_spec='${libname}${release}${shared_ext}$major'
17894 shlibpath_var=LD_LIBRARY_PATH
17901 freebsd* | dragonfly*)
17902 # DragonFly does not have aout. When/if they implement a new
17903 # versioning mechanism, adjust this.
17904 if test -x /usr/bin/objformat; then
17905 objformat=`/usr/bin/objformat`
17908 freebsd[123]*) objformat=aout ;;
17909 *) objformat=elf ;;
17912 version_type=freebsd-$objformat
17913 case $version_type in
17915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17924 shlibpath_var=LD_LIBRARY_PATH
17927 shlibpath_overrides_runpath=yes
17929 freebsd3.[01]* | freebsdelf3.[01]*)
17930 shlibpath_overrides_runpath=yes
17931 hardcode_into_libs=yes
17933 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17934 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17935 shlibpath_overrides_runpath=no
17936 hardcode_into_libs=yes
17938 freebsd*) # from 4.6 on
17939 shlibpath_overrides_runpath=yes
17940 hardcode_into_libs=yes
17949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17950 soname_spec='${libname}${release}${shared_ext}$major'
17951 shlibpath_var=LD_LIBRARY_PATH
17952 hardcode_into_libs=yes
17955 hpux9* | hpux10* | hpux11*)
17956 # Give a soname corresponding to the major version so that dld.sl refuses to
17957 # link against other versions.
17964 hardcode_into_libs=yes
17965 dynamic_linker="$host_os dld.so"
17966 shlibpath_var=LD_LIBRARY_PATH
17967 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17969 soname_spec='${libname}${release}${shared_ext}$major'
17970 if test "X$HPUX_IA64_MODE" = X32; then
17971 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17973 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17975 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17979 hardcode_into_libs=yes
17980 dynamic_linker="$host_os dld.sl"
17981 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17984 soname_spec='${libname}${release}${shared_ext}$major'
17985 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17990 dynamic_linker="$host_os dld.sl"
17991 shlibpath_var=SHLIB_PATH
17992 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17994 soname_spec='${libname}${release}${shared_ext}$major'
17997 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17998 postinstall_cmds='chmod 555 $lib'
18005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18006 soname_spec='${libname}${release}${shared_ext}$major'
18007 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18008 shlibpath_var=LD_LIBRARY_PATH
18009 shlibpath_overrides_runpath=no
18010 hardcode_into_libs=yes
18013 irix5* | irix6* | nonstopux*)
18015 nonstopux*) version_type=nonstopux ;;
18017 if test "$lt_cv_prog_gnu_ld" = yes; then
18025 soname_spec='${libname}${release}${shared_ext}$major'
18026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18028 irix5* | nonstopux*)
18029 libsuff= shlibsuff=
18032 case $LD in # libtool.m4 will add one of these switches to LD
18033 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18034 libsuff= shlibsuff= libmagic=32-bit;;
18035 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18036 libsuff=32 shlibsuff=N32 libmagic=N32;;
18037 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18038 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18039 *) libsuff= shlibsuff= libmagic=never-match;;
18043 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18044 shlibpath_overrides_runpath=no
18045 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18046 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18047 hardcode_into_libs=yes
18050 # No shared lib support for Linux oldld, aout, or coff.
18051 linux*oldld* | linux*aout* | linux*coff*)
18055 # This must be Linux ELF.
18056 linux* | k*bsd*-gnu)
18060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18061 soname_spec='${libname}${release}${shared_ext}$major'
18062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18063 shlibpath_var=LD_LIBRARY_PATH
18064 shlibpath_overrides_runpath=no
18065 # This implies no fast_install, which is unacceptable.
18066 # Some rework will be needed to allow for fast_install
18067 # before this can be enabled.
18068 hardcode_into_libs=yes
18070 # Append ld.so.conf contents to the search path
18071 if test -f /etc/ld.so.conf; then
18072 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' ' '`
18073 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18076 # We used to test for /lib/ld.so.1 and disable shared libraries on
18077 # powerpc, because MkLinux only supported shared libraries with the
18078 # GNU dynamic linker. Since this was broken with cross compilers,
18079 # most powerpc-linux boxes support dynamic linking these days and
18080 # people can always --disable-shared, the test was removed, and we
18081 # assume the GNU/Linux dynamic linker is in use.
18082 dynamic_linker='GNU/Linux ld.so'
18089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18090 soname_spec='${libname}${release}${shared_ext}$major'
18091 shlibpath_var=LD_LIBRARY_PATH
18092 shlibpath_overrides_runpath=no
18093 hardcode_into_libs=yes
18094 dynamic_linker='NetBSD ld.elf_so'
18101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18104 dynamic_linker='NetBSD (a.out) ld.so'
18106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18107 soname_spec='${libname}${release}${shared_ext}$major'
18108 dynamic_linker='NetBSD ld.elf_so'
18110 shlibpath_var=LD_LIBRARY_PATH
18111 shlibpath_overrides_runpath=yes
18112 hardcode_into_libs=yes
18117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18118 shlibpath_var=LD_LIBRARY_PATH
18119 shlibpath_overrides_runpath=yes
18126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18127 soname_spec='${libname}${release}${shared_ext}$major'
18128 shlibpath_var=LD_LIBRARY_PATH
18129 shlibpath_overrides_runpath=yes
18134 sys_lib_dlsearch_path_spec="/usr/lib"
18136 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18138 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18139 *) need_version=no ;;
18141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18143 shlibpath_var=LD_LIBRARY_PATH
18144 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18146 openbsd2.[89] | openbsd2.[89].*)
18147 shlibpath_overrides_runpath=no
18150 shlibpath_overrides_runpath=yes
18154 shlibpath_overrides_runpath=yes
18159 libname_spec='$name'
18162 library_names_spec='$libname${shared_ext} $libname.a'
18163 dynamic_linker='OS/2 ld.exe'
18164 shlibpath_var=LIBPATH
18167 osf3* | osf4* | osf5*)
18171 soname_spec='${libname}${release}${shared_ext}$major'
18172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173 shlibpath_var=LD_LIBRARY_PATH
18174 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18175 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18183 soname_spec='${libname}${release}${shared_ext}$major'
18184 shlibpath_var=LD_LIBRARY_PATH
18185 shlibpath_overrides_runpath=yes
18186 hardcode_into_libs=yes
18187 # ldd complains unless libraries are executable
18188 postinstall_cmds='chmod +x $lib'
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18194 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18195 shlibpath_var=LD_LIBRARY_PATH
18196 shlibpath_overrides_runpath=yes
18197 if test "$with_gnu_ld" = yes; then
18205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18206 soname_spec='${libname}${release}${shared_ext}$major'
18207 shlibpath_var=LD_LIBRARY_PATH
18208 case $host_vendor in
18210 shlibpath_overrides_runpath=no
18212 export_dynamic_flag_spec='${wl}-Blargedynsym'
18213 runpath_var=LD_RUN_PATH
18221 shlibpath_overrides_runpath=no
18222 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18228 if test -d /usr/nec ;then
18230 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18231 soname_spec='$libname${shared_ext}.$major'
18232 shlibpath_var=LD_LIBRARY_PATH
18236 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18237 version_type=freebsd-elf
18240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18241 soname_spec='${libname}${release}${shared_ext}$major'
18242 shlibpath_var=LD_LIBRARY_PATH
18243 hardcode_into_libs=yes
18244 if test "$with_gnu_ld" = yes; then
18245 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18246 shlibpath_overrides_runpath=no
18248 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18249 shlibpath_overrides_runpath=yes
18252 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18256 sys_lib_dlsearch_path_spec='/usr/lib'
18261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18262 soname_spec='${libname}${release}${shared_ext}$major'
18263 shlibpath_var=LD_LIBRARY_PATH
18270 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18271 echo "${ECHO_T}$dynamic_linker" >&6; }
18272 test "$dynamic_linker" = no && can_build_shared=no
18274 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18275 if test "$GCC" = yes; then
18276 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18279 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18280 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18281 hardcode_action_GCJ=
18282 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18283 test -n "$runpath_var_GCJ" || \
18284 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18286 # We can hardcode non-existant directories.
18287 if test "$hardcode_direct_GCJ" != no &&
18288 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18289 # have to relink, otherwise we might link with an installed library
18290 # when we should be linking with a yet-to-be-installed one
18291 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18292 test "$hardcode_minus_L_GCJ" != no; then
18293 # Linking always hardcodes the temporary library directory.
18294 hardcode_action_GCJ=relink
18296 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18297 hardcode_action_GCJ=immediate
18300 # We cannot hardcode anything, or else we can only hardcode existing
18302 hardcode_action_GCJ=unsupported
18304 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18305 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18307 if test "$hardcode_action_GCJ" = relink; then
18308 # Fast installation is not supported
18309 enable_fast_install=no
18310 elif test "$shlibpath_overrides_runpath" = yes ||
18311 test "$enable_shared" = no; then
18312 # Fast installation is not necessary
18313 enable_fast_install=needless
18317 # The else clause should only fire when bootstrapping the
18318 # libtool distribution, otherwise you forgot to ship ltmain.sh
18319 # with your package, and you will get complaints that there are
18320 # no rules to generate ltmain.sh.
18321 if test -f "$ltmain"; then
18322 # See if we are running on zsh, and set the options which allow our commands through
18323 # without removal of \ escapes.
18324 if test -n "${ZSH_VERSION+set}" ; then
18325 setopt NO_GLOB_SUBST
18327 # Now quote all the things that may contain metacharacters while being
18328 # careful not to overquote the AC_SUBSTed values. We take copies of the
18329 # variables and quote the copies for generation of the libtool script.
18330 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18332 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18333 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18334 deplibs_check_method reload_flag reload_cmds need_locks \
18335 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18336 lt_cv_sys_global_symbol_to_c_name_address \
18337 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18338 old_postinstall_cmds old_postuninstall_cmds \
18342 lt_prog_compiler_wl_GCJ \
18343 lt_prog_compiler_pic_GCJ \
18344 lt_prog_compiler_static_GCJ \
18345 lt_prog_compiler_no_builtin_flag_GCJ \
18346 export_dynamic_flag_spec_GCJ \
18347 thread_safe_flag_spec_GCJ \
18348 whole_archive_flag_spec_GCJ \
18349 enable_shared_with_static_runtimes_GCJ \
18350 old_archive_cmds_GCJ \
18351 old_archive_from_new_cmds_GCJ \
18352 predep_objects_GCJ \
18353 postdep_objects_GCJ \
18356 compiler_lib_search_path_GCJ \
18358 archive_expsym_cmds_GCJ \
18359 postinstall_cmds_GCJ \
18360 postuninstall_cmds_GCJ \
18361 old_archive_from_expsyms_cmds_GCJ \
18362 allow_undefined_flag_GCJ \
18363 no_undefined_flag_GCJ \
18364 export_symbols_cmds_GCJ \
18365 hardcode_libdir_flag_spec_GCJ \
18366 hardcode_libdir_flag_spec_ld_GCJ \
18367 hardcode_libdir_separator_GCJ \
18368 hardcode_automatic_GCJ \
18370 module_expsym_cmds_GCJ \
18371 lt_cv_prog_compiler_c_o_GCJ \
18372 exclude_expsyms_GCJ \
18373 include_expsyms_GCJ; do
18376 old_archive_cmds_GCJ | \
18377 old_archive_from_new_cmds_GCJ | \
18378 archive_cmds_GCJ | \
18379 archive_expsym_cmds_GCJ | \
18380 module_cmds_GCJ | \
18381 module_expsym_cmds_GCJ | \
18382 old_archive_from_expsyms_cmds_GCJ | \
18383 export_symbols_cmds_GCJ | \
18384 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18385 postinstall_cmds | postuninstall_cmds | \
18386 old_postinstall_cmds | old_postuninstall_cmds | \
18387 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18388 # Double-quote double-evaled strings.
18389 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18392 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18398 *'\$0 --fallback-echo"')
18399 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18405 cat <<__EOF__ >> "$cfgfile"
18406 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18408 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18410 # Shell to use when invoking shell scripts.
18413 # Whether or not to build shared libraries.
18414 build_libtool_libs=$enable_shared
18416 # Whether or not to build static libraries.
18417 build_old_libs=$enable_static
18419 # Whether or not to add -lc for building shared libraries.
18420 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18422 # Whether or not to disallow shared libs when runtime libs are static
18423 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18425 # Whether or not to optimize for fast installation.
18426 fast_install=$enable_fast_install
18429 host_alias=$host_alias
18433 # The build system.
18434 build_alias=$build_alias
18438 # An echo program that does not interpret backslashes.
18443 AR_FLAGS=$lt_AR_FLAGS
18448 # LTCC compiler flags.
18449 LTCFLAGS=$lt_LTCFLAGS
18451 # A language-specific compiler.
18452 CC=$lt_compiler_GCJ
18454 # Is the compiler the GNU C compiler?
18460 # The linker used to build libraries.
18463 # Whether we need hard or soft links.
18466 # A BSD-compatible nm program.
18469 # A symbol stripping program
18472 # Used to examine libraries when file_magic_cmd begins "file"
18473 MAGIC_CMD=$MAGIC_CMD
18475 # Used on cygwin: DLL creation program.
18478 # Used on cygwin: object dumper.
18481 # Used on cygwin: assembler.
18484 # The name of the directory that contains temporary libtool files.
18487 # How to create reloadable object files.
18488 reload_flag=$lt_reload_flag
18489 reload_cmds=$lt_reload_cmds
18491 # How to pass a linker flag through the compiler.
18492 wl=$lt_lt_prog_compiler_wl_GCJ
18494 # Object file suffix (normally "o").
18495 objext="$ac_objext"
18497 # Old archive suffix (normally "a").
18500 # Shared library suffix (normally ".so").
18501 shrext_cmds='$shrext_cmds'
18503 # Executable file suffix (normally "").
18506 # Additional compiler flags for building library objects.
18507 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18510 # What is the maximum length of a command?
18511 max_cmd_len=$lt_cv_sys_max_cmd_len
18513 # Does compiler simultaneously support -c and -o options?
18514 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18516 # Must we lock files when doing compilation?
18517 need_locks=$lt_need_locks
18519 # Do we need the lib prefix for modules?
18520 need_lib_prefix=$need_lib_prefix
18522 # Do we need a version for libraries?
18523 need_version=$need_version
18525 # Whether dlopen is supported.
18526 dlopen_support=$enable_dlopen
18528 # Whether dlopen of programs is supported.
18529 dlopen_self=$enable_dlopen_self
18531 # Whether dlopen of statically linked programs is supported.
18532 dlopen_self_static=$enable_dlopen_self_static
18534 # Compiler flag to prevent dynamic linking.
18535 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18537 # Compiler flag to turn off builtin functions.
18538 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18540 # Compiler flag to allow reflexive dlopens.
18541 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18543 # Compiler flag to generate shared objects directly from archives.
18544 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18546 # Compiler flag to generate thread-safe objects.
18547 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18549 # Library versioning type.
18550 version_type=$version_type
18552 # Format of library name prefix.
18553 libname_spec=$lt_libname_spec
18555 # List of archive names. First name is the real one, the rest are links.
18556 # The last name is the one that the linker finds with -lNAME.
18557 library_names_spec=$lt_library_names_spec
18559 # The coded name of the library, if different from the real name.
18560 soname_spec=$lt_soname_spec
18562 # Commands used to build and install an old-style archive.
18564 old_archive_cmds=$lt_old_archive_cmds_GCJ
18565 old_postinstall_cmds=$lt_old_postinstall_cmds
18566 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18568 # Create an old-style archive from a shared archive.
18569 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18571 # Create a temporary old-style archive to link instead of a shared archive.
18572 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18574 # Commands used to build and install a shared archive.
18575 archive_cmds=$lt_archive_cmds_GCJ
18576 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18577 postinstall_cmds=$lt_postinstall_cmds
18578 postuninstall_cmds=$lt_postuninstall_cmds
18580 # Commands used to build a loadable module (assumed same as above if empty)
18581 module_cmds=$lt_module_cmds_GCJ
18582 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18584 # Commands to strip libraries.
18585 old_striplib=$lt_old_striplib
18586 striplib=$lt_striplib
18588 # Dependencies to place before the objects being linked to create a
18590 predep_objects=$lt_predep_objects_GCJ
18592 # Dependencies to place after the objects being linked to create a
18594 postdep_objects=$lt_postdep_objects_GCJ
18596 # Dependencies to place before the objects being linked to create a
18598 predeps=$lt_predeps_GCJ
18600 # Dependencies to place after the objects being linked to create a
18602 postdeps=$lt_postdeps_GCJ
18604 # The library search path used internally by the compiler when linking
18605 # a shared library.
18606 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18608 # Method to check whether dependent libraries are shared objects.
18609 deplibs_check_method=$lt_deplibs_check_method
18611 # Command to use when deplibs_check_method == file_magic.
18612 file_magic_cmd=$lt_file_magic_cmd
18614 # Flag that allows shared libraries with undefined symbols to be built.
18615 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18617 # Flag that forces no undefined symbols.
18618 no_undefined_flag=$lt_no_undefined_flag_GCJ
18620 # Commands used to finish a libtool library installation in a directory.
18621 finish_cmds=$lt_finish_cmds
18623 # Same as above, but a single script fragment to be evaled but not shown.
18624 finish_eval=$lt_finish_eval
18626 # Take the output of nm and produce a listing of raw symbols and C names.
18627 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18629 # Transform the output of nm in a proper C declaration
18630 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18632 # Transform the output of nm in a C name address pair
18633 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18635 # This is the shared library runtime path variable.
18636 runpath_var=$runpath_var
18638 # This is the shared library path variable.
18639 shlibpath_var=$shlibpath_var
18641 # Is shlibpath searched before the hard-coded library search path?
18642 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18644 # How to hardcode a shared library path into an executable.
18645 hardcode_action=$hardcode_action_GCJ
18647 # Whether we should hardcode library paths into libraries.
18648 hardcode_into_libs=$hardcode_into_libs
18650 # Flag to hardcode \$libdir into a binary during linking.
18651 # This must work even if \$libdir does not exist.
18652 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18654 # If ld is used when linking, flag to hardcode \$libdir into
18655 # a binary during linking. This must work even if \$libdir does
18657 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18659 # Whether we need a single -rpath flag with a separated argument.
18660 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18662 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18663 # resulting binary.
18664 hardcode_direct=$hardcode_direct_GCJ
18666 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18667 # resulting binary.
18668 hardcode_minus_L=$hardcode_minus_L_GCJ
18670 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18671 # the resulting binary.
18672 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18674 # Set to yes if building a shared library automatically hardcodes DIR into the library
18675 # and all subsequent libraries and executables linked against it.
18676 hardcode_automatic=$hardcode_automatic_GCJ
18678 # Variables whose values should be saved in libtool wrapper scripts and
18679 # restored at relink time.
18680 variables_saved_for_relink="$variables_saved_for_relink"
18682 # Whether libtool must link a program against all its dependency libraries.
18683 link_all_deplibs=$link_all_deplibs_GCJ
18685 # Compile-time system search path for libraries
18686 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18688 # Run-time system search path for libraries
18689 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18691 # Fix the shell variable \$srcfile for the compiler.
18692 fix_srcfile_path="$fix_srcfile_path_GCJ"
18694 # Set to yes if exported symbols are required.
18695 always_export_symbols=$always_export_symbols_GCJ
18697 # The commands to list exported symbols.
18698 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18700 # The commands to extract the exported symbol list from a shared archive.
18701 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18703 # Symbols that should not be listed in the preloaded symbols.
18704 exclude_expsyms=$lt_exclude_expsyms_GCJ
18706 # Symbols that must always be exported.
18707 include_expsyms=$lt_include_expsyms_GCJ
18709 # ### END LIBTOOL TAG CONFIG: $tagname
18715 # If there is no Makefile yet, we rely on a make rule to execute
18716 # `config.status --recheck' to rerun these tests and create the
18717 # libtool script then.
18718 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18719 if test -f "$ltmain_in"; then
18720 test -f Makefile && make "$ltmain"
18726 ac_cpp='$CPP $CPPFLAGS'
18727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18741 # Source file extension for RC test sources.
18744 # Object file extension for compiled RC test sources.
18748 # Code to be used in simple compile tests
18749 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18751 # Code to be used in simple link tests
18752 lt_simple_link_test_code="$lt_simple_compile_test_code"
18754 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18756 # If no C compiler was specified, use CC.
18759 # If no C compiler flags were specified, use CFLAGS.
18760 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18762 # Allow CC to be a program name with arguments.
18766 # save warnings/boilerplate of simple test code
18767 ac_outfile=conftest.$ac_objext
18768 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18769 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18770 _lt_compiler_boilerplate=`cat conftest.err`
18773 ac_outfile=conftest.$ac_objext
18774 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18775 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18776 _lt_linker_boilerplate=`cat conftest.err`
18780 # Allow CC to be a program name with arguments.
18785 for cc_temp in $compiler""; do
18787 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18788 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18793 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18795 lt_cv_prog_compiler_c_o_RC=yes
18797 # The else clause should only fire when bootstrapping the
18798 # libtool distribution, otherwise you forgot to ship ltmain.sh
18799 # with your package, and you will get complaints that there are
18800 # no rules to generate ltmain.sh.
18801 if test -f "$ltmain"; then
18802 # See if we are running on zsh, and set the options which allow our commands through
18803 # without removal of \ escapes.
18804 if test -n "${ZSH_VERSION+set}" ; then
18805 setopt NO_GLOB_SUBST
18807 # Now quote all the things that may contain metacharacters while being
18808 # careful not to overquote the AC_SUBSTed values. We take copies of the
18809 # variables and quote the copies for generation of the libtool script.
18810 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18812 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18813 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18814 deplibs_check_method reload_flag reload_cmds need_locks \
18815 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18816 lt_cv_sys_global_symbol_to_c_name_address \
18817 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18818 old_postinstall_cmds old_postuninstall_cmds \
18822 lt_prog_compiler_wl_RC \
18823 lt_prog_compiler_pic_RC \
18824 lt_prog_compiler_static_RC \
18825 lt_prog_compiler_no_builtin_flag_RC \
18826 export_dynamic_flag_spec_RC \
18827 thread_safe_flag_spec_RC \
18828 whole_archive_flag_spec_RC \
18829 enable_shared_with_static_runtimes_RC \
18830 old_archive_cmds_RC \
18831 old_archive_from_new_cmds_RC \
18832 predep_objects_RC \
18833 postdep_objects_RC \
18836 compiler_lib_search_path_RC \
18838 archive_expsym_cmds_RC \
18839 postinstall_cmds_RC \
18840 postuninstall_cmds_RC \
18841 old_archive_from_expsyms_cmds_RC \
18842 allow_undefined_flag_RC \
18843 no_undefined_flag_RC \
18844 export_symbols_cmds_RC \
18845 hardcode_libdir_flag_spec_RC \
18846 hardcode_libdir_flag_spec_ld_RC \
18847 hardcode_libdir_separator_RC \
18848 hardcode_automatic_RC \
18850 module_expsym_cmds_RC \
18851 lt_cv_prog_compiler_c_o_RC \
18852 exclude_expsyms_RC \
18853 include_expsyms_RC; do
18856 old_archive_cmds_RC | \
18857 old_archive_from_new_cmds_RC | \
18858 archive_cmds_RC | \
18859 archive_expsym_cmds_RC | \
18861 module_expsym_cmds_RC | \
18862 old_archive_from_expsyms_cmds_RC | \
18863 export_symbols_cmds_RC | \
18864 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18865 postinstall_cmds | postuninstall_cmds | \
18866 old_postinstall_cmds | old_postuninstall_cmds | \
18867 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18868 # Double-quote double-evaled strings.
18869 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18872 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18878 *'\$0 --fallback-echo"')
18879 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18885 cat <<__EOF__ >> "$cfgfile"
18886 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18888 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18890 # Shell to use when invoking shell scripts.
18893 # Whether or not to build shared libraries.
18894 build_libtool_libs=$enable_shared
18896 # Whether or not to build static libraries.
18897 build_old_libs=$enable_static
18899 # Whether or not to add -lc for building shared libraries.
18900 build_libtool_need_lc=$archive_cmds_need_lc_RC
18902 # Whether or not to disallow shared libs when runtime libs are static
18903 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18905 # Whether or not to optimize for fast installation.
18906 fast_install=$enable_fast_install
18909 host_alias=$host_alias
18913 # The build system.
18914 build_alias=$build_alias
18918 # An echo program that does not interpret backslashes.
18923 AR_FLAGS=$lt_AR_FLAGS
18928 # LTCC compiler flags.
18929 LTCFLAGS=$lt_LTCFLAGS
18931 # A language-specific compiler.
18934 # Is the compiler the GNU C compiler?
18940 # The linker used to build libraries.
18943 # Whether we need hard or soft links.
18946 # A BSD-compatible nm program.
18949 # A symbol stripping program
18952 # Used to examine libraries when file_magic_cmd begins "file"
18953 MAGIC_CMD=$MAGIC_CMD
18955 # Used on cygwin: DLL creation program.
18958 # Used on cygwin: object dumper.
18961 # Used on cygwin: assembler.
18964 # The name of the directory that contains temporary libtool files.
18967 # How to create reloadable object files.
18968 reload_flag=$lt_reload_flag
18969 reload_cmds=$lt_reload_cmds
18971 # How to pass a linker flag through the compiler.
18972 wl=$lt_lt_prog_compiler_wl_RC
18974 # Object file suffix (normally "o").
18975 objext="$ac_objext"
18977 # Old archive suffix (normally "a").
18980 # Shared library suffix (normally ".so").
18981 shrext_cmds='$shrext_cmds'
18983 # Executable file suffix (normally "").
18986 # Additional compiler flags for building library objects.
18987 pic_flag=$lt_lt_prog_compiler_pic_RC
18990 # What is the maximum length of a command?
18991 max_cmd_len=$lt_cv_sys_max_cmd_len
18993 # Does compiler simultaneously support -c and -o options?
18994 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18996 # Must we lock files when doing compilation?
18997 need_locks=$lt_need_locks
18999 # Do we need the lib prefix for modules?
19000 need_lib_prefix=$need_lib_prefix
19002 # Do we need a version for libraries?
19003 need_version=$need_version
19005 # Whether dlopen is supported.
19006 dlopen_support=$enable_dlopen
19008 # Whether dlopen of programs is supported.
19009 dlopen_self=$enable_dlopen_self
19011 # Whether dlopen of statically linked programs is supported.
19012 dlopen_self_static=$enable_dlopen_self_static
19014 # Compiler flag to prevent dynamic linking.
19015 link_static_flag=$lt_lt_prog_compiler_static_RC
19017 # Compiler flag to turn off builtin functions.
19018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19020 # Compiler flag to allow reflexive dlopens.
19021 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19023 # Compiler flag to generate shared objects directly from archives.
19024 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19026 # Compiler flag to generate thread-safe objects.
19027 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19029 # Library versioning type.
19030 version_type=$version_type
19032 # Format of library name prefix.
19033 libname_spec=$lt_libname_spec
19035 # List of archive names. First name is the real one, the rest are links.
19036 # The last name is the one that the linker finds with -lNAME.
19037 library_names_spec=$lt_library_names_spec
19039 # The coded name of the library, if different from the real name.
19040 soname_spec=$lt_soname_spec
19042 # Commands used to build and install an old-style archive.
19044 old_archive_cmds=$lt_old_archive_cmds_RC
19045 old_postinstall_cmds=$lt_old_postinstall_cmds
19046 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19048 # Create an old-style archive from a shared archive.
19049 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19051 # Create a temporary old-style archive to link instead of a shared archive.
19052 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19054 # Commands used to build and install a shared archive.
19055 archive_cmds=$lt_archive_cmds_RC
19056 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19057 postinstall_cmds=$lt_postinstall_cmds
19058 postuninstall_cmds=$lt_postuninstall_cmds
19060 # Commands used to build a loadable module (assumed same as above if empty)
19061 module_cmds=$lt_module_cmds_RC
19062 module_expsym_cmds=$lt_module_expsym_cmds_RC
19064 # Commands to strip libraries.
19065 old_striplib=$lt_old_striplib
19066 striplib=$lt_striplib
19068 # Dependencies to place before the objects being linked to create a
19070 predep_objects=$lt_predep_objects_RC
19072 # Dependencies to place after the objects being linked to create a
19074 postdep_objects=$lt_postdep_objects_RC
19076 # Dependencies to place before the objects being linked to create a
19078 predeps=$lt_predeps_RC
19080 # Dependencies to place after the objects being linked to create a
19082 postdeps=$lt_postdeps_RC
19084 # The library search path used internally by the compiler when linking
19085 # a shared library.
19086 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19088 # Method to check whether dependent libraries are shared objects.
19089 deplibs_check_method=$lt_deplibs_check_method
19091 # Command to use when deplibs_check_method == file_magic.
19092 file_magic_cmd=$lt_file_magic_cmd
19094 # Flag that allows shared libraries with undefined symbols to be built.
19095 allow_undefined_flag=$lt_allow_undefined_flag_RC
19097 # Flag that forces no undefined symbols.
19098 no_undefined_flag=$lt_no_undefined_flag_RC
19100 # Commands used to finish a libtool library installation in a directory.
19101 finish_cmds=$lt_finish_cmds
19103 # Same as above, but a single script fragment to be evaled but not shown.
19104 finish_eval=$lt_finish_eval
19106 # Take the output of nm and produce a listing of raw symbols and C names.
19107 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19109 # Transform the output of nm in a proper C declaration
19110 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19112 # Transform the output of nm in a C name address pair
19113 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19115 # This is the shared library runtime path variable.
19116 runpath_var=$runpath_var
19118 # This is the shared library path variable.
19119 shlibpath_var=$shlibpath_var
19121 # Is shlibpath searched before the hard-coded library search path?
19122 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19124 # How to hardcode a shared library path into an executable.
19125 hardcode_action=$hardcode_action_RC
19127 # Whether we should hardcode library paths into libraries.
19128 hardcode_into_libs=$hardcode_into_libs
19130 # Flag to hardcode \$libdir into a binary during linking.
19131 # This must work even if \$libdir does not exist.
19132 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19134 # If ld is used when linking, flag to hardcode \$libdir into
19135 # a binary during linking. This must work even if \$libdir does
19137 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19139 # Whether we need a single -rpath flag with a separated argument.
19140 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19142 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19143 # resulting binary.
19144 hardcode_direct=$hardcode_direct_RC
19146 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19147 # resulting binary.
19148 hardcode_minus_L=$hardcode_minus_L_RC
19150 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19151 # the resulting binary.
19152 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19154 # Set to yes if building a shared library automatically hardcodes DIR into the library
19155 # and all subsequent libraries and executables linked against it.
19156 hardcode_automatic=$hardcode_automatic_RC
19158 # Variables whose values should be saved in libtool wrapper scripts and
19159 # restored at relink time.
19160 variables_saved_for_relink="$variables_saved_for_relink"
19162 # Whether libtool must link a program against all its dependency libraries.
19163 link_all_deplibs=$link_all_deplibs_RC
19165 # Compile-time system search path for libraries
19166 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19168 # Run-time system search path for libraries
19169 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19171 # Fix the shell variable \$srcfile for the compiler.
19172 fix_srcfile_path="$fix_srcfile_path_RC"
19174 # Set to yes if exported symbols are required.
19175 always_export_symbols=$always_export_symbols_RC
19177 # The commands to list exported symbols.
19178 export_symbols_cmds=$lt_export_symbols_cmds_RC
19180 # The commands to extract the exported symbol list from a shared archive.
19181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19183 # Symbols that should not be listed in the preloaded symbols.
19184 exclude_expsyms=$lt_exclude_expsyms_RC
19186 # Symbols that must always be exported.
19187 include_expsyms=$lt_include_expsyms_RC
19189 # ### END LIBTOOL TAG CONFIG: $tagname
19195 # If there is no Makefile yet, we rely on a make rule to execute
19196 # `config.status --recheck' to rerun these tests and create the
19197 # libtool script then.
19198 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19199 if test -f "$ltmain_in"; then
19200 test -f Makefile && make "$ltmain"
19206 ac_cpp='$CPP $CPPFLAGS'
19207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19216 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19217 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19218 { (exit 1); exit 1; }; }
19222 # Append the new tag name to the list of available tags.
19223 if test -n "$tagname" ; then
19224 available_tags="$available_tags $tagname"
19230 # Now substitute the updated list of available tags.
19231 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19232 mv "${ofile}T" "$ofile"
19236 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19237 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19238 { (exit 1); exit 1; }; }
19244 # This can be used to rebuild libtool when needed
19245 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19247 # Always use our own libtool.
19248 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19250 # Prevent multiple expansion
19274 # Checks for libraries.
19276 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
19277 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
19278 if test "${ac_cv_lib_apr_1_main+set}" = set; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 ac_check_lib_save_LIBS=$LIBS
19282 LIBS="-lapr-1 $LIBS"
19283 cat >conftest.$ac_ext <<_ACEOF
19286 cat confdefs.h >>conftest.$ac_ext
19287 cat >>conftest.$ac_ext <<_ACEOF
19288 /* end confdefs.h. */
19299 rm -f conftest.$ac_objext conftest$ac_exeext
19300 if { (ac_try="$ac_link"
19301 case "(($ac_try" in
19302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19303 *) ac_try_echo=$ac_try;;
19305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19306 (eval "$ac_link") 2>conftest.er1
19308 grep -v '^ *+' conftest.er1 >conftest.err
19310 cat conftest.err >&5
19311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19312 (exit $ac_status); } && {
19313 test -z "$ac_c_werror_flag" ||
19314 test ! -s conftest.err
19315 } && test -s conftest$ac_exeext &&
19316 $as_test_x conftest$ac_exeext; then
19317 ac_cv_lib_apr_1_main=yes
19319 echo "$as_me: failed program was:" >&5
19320 sed 's/^/| /' conftest.$ac_ext >&5
19322 ac_cv_lib_apr_1_main=no
19325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19326 conftest$ac_exeext conftest.$ac_ext
19327 LIBS=$ac_check_lib_save_LIBS
19329 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
19330 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
19331 if test $ac_cv_lib_apr_1_main = yes; then
19332 cat >>confdefs.h <<_ACEOF
19333 #define HAVE_LIBAPR_1 1
19336 LIBS="-lapr-1 $LIBS"
19342 # Check whether --with-apache-header was given.
19343 if test "${with_apache_header+set}" = set; then
19344 withval=$with_apache_header;
19347 if test "x$with_apache_header" = "xyes"; then
19348 { { echo "$as_me:$LINENO: error:
19349 Please specify the --with-apache-header option. And, please specify the place of the header file.
19352 echo "$as_me: error:
19353 Please specify the --with-apache-header option. And, please specify the place of the header file.
19356 { (exit 1); exit 1; }; }
19360 # Check whether --with-apxs was given.
19361 if test "${with_apxs+set}" = set; then
19362 withval=$with_apxs;
19365 if test "x$with_apxs" = "x" ; then
19368 if test "x$with_apxs" = "xyes" ; then
19369 { { echo "$as_me:$LINENO: error:
19370 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19372 echo "$as_me: error:
19373 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19375 { (exit 1); exit 1; }; }
19379 # Check whether --with-apr-config was given.
19380 if test "${with_apr_config+set}" = set; then
19381 withval=$with_apr_config;
19384 if test "x$with_apr_config" = "xyes" ; then
19385 { { echo "$as_me:$LINENO: error:
19386 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19388 echo "$as_me: error:
19389 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19391 { (exit 1); exit 1; }; }
19395 # Check whether --with-apu-config was given.
19396 if test "${with_apu_config+set}" = set; then
19397 withval=$with_apu_config;
19400 if test "x$with_apu_config" = "xyes" ; then
19401 { { echo "$as_me:$LINENO: error:
19402 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19404 echo "$as_me: error:
19405 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19407 { (exit 1); exit 1; }; }
19411 # Check whether --with-pcre-config was given.
19412 if test "${with_pcre_config+set}" = set; then
19413 withval=$with_pcre_config;
19416 if test "x$with_pcre_config" = "xyes" ; then
19417 { { echo "$as_me:$LINENO: error:
19418 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19420 echo "$as_me: error:
19421 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19423 { (exit 1); exit 1; }; }
19426 # Check whether --enable-img-conv-f was given.
19427 if test "${enable_img_conv_f+set}" = set; then
19428 enableval=$enable_img_conv_f;
19431 if test "x$enable_img_conv_f" = "xyes"; then
19434 QDEFS="-DIMG_NOT_CONVERT_FILENAME"
19438 # Check whether --enable-memcache-cookie was given.
19439 if test "${enable_memcache_cookie+set}" = set; then
19440 enableval=$enable_memcache_cookie;
19444 # Check whether --with-apr-memcache-header was given.
19445 if test "${with_apr_memcache_header+set}" = set; then
19446 withval=$with_apr_memcache_header;
19450 # Check whether --with-apr-memcache-lib-dir was given.
19451 if test "${with_apr_memcache_lib_dir+set}" = set; then
19452 withval=$with_apr_memcache_lib_dir;
19455 if test "x$enable_memcache_cookie" = "xyes" ; then
19456 if test "x$with_apr_memcache_header" = "x" -o "x$with_apr_memcache_header" = "xyes" ; then
19457 { { echo "$as_me:$LINENO: error:
19458 Please specify the --with-apr-memcache-header And, please specify the place of the \"apr_memcache.h\" header file directory.
19460 echo "$as_me: error:
19461 Please specify the --with-apr-memcache-header And, please specify the place of the \"apr_memcache.h\" header file directory.
19463 { (exit 1); exit 1; }; }
19465 if test "x$with_apr_memcache_lib_dir" = "x" -o "x$with_apr_memcache_lib_dir" = "xyes" ; then
19466 { { echo "$as_me:$LINENO: error:
19467 Please specify the --with-apr-memcache-lib-dir And, please specify the place of apr-memcache library directory.
19469 echo "$as_me: error:
19470 Please specify the --with-apr-memcache-lib-dir And, please specify the place of apr-memcache library directory.
19472 { (exit 1); exit 1; }; }
19474 MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_apr_memcache_header}"
19475 MEMCACHE_COOKIE_LIBS="-L${with_apr_memcache_lib_dir} -lapr_memcache"
19477 MEMCACHE_COOKIE_DEFS=""
19478 MEMCACHE_COOKIE_LIBS=""
19480 # Check whether --enable-mysql-cookie was given.
19481 if test "${enable_mysql_cookie+set}" = set; then
19482 enableval=$enable_mysql_cookie;
19486 # Check whether --with-mysql-header was given.
19487 if test "${with_mysql_header+set}" = set; then
19488 withval=$with_mysql_header;
19492 # Check whether --with-mysql-lib-dir was given.
19493 if test "${with_mysql_lib_dir+set}" = set; then
19494 withval=$with_mysql_lib_dir;
19497 if test "x$enable_mysql_cookie" = "xyes"; then
19498 if test "x$with_mysql_header" = "x" -o "x$with_mysql_header" = "xyes" ; then
19499 { { echo "$as_me:$LINENO: error:
19500 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19502 echo "$as_me: error:
19503 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19505 { (exit 1); exit 1; }; }
19507 if test "x$with_mysql_lib_dir" = "x" -o "x$with_mysql_lib_dir" = "xyes" ; then
19508 { { echo "$as_me:$LINENO: error:
19509 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19511 echo "$as_me: error:
19512 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19514 { (exit 1); exit 1; }; }
19516 MYSQL_COOKIE_DEFS="-DUSE_MYSQL_COOKIE -I${with_mysql_header}"
19517 MYSQL_COOKIE_LIBS="-L${with_mysql_lib_dir} -lmysqlclient_r"
19519 MYSQL_COOKIE_DEFS=""
19520 MYSQL_COOKIE_LIBS=""
19523 # Check whether --enable-dump-log was given.
19524 if test "${enable_dump_log+set}" = set; then
19525 enableval=$enable_dump_log;
19528 if test "x$enable_dump_log" = "xyes"; then
19529 DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
19531 if test "x$enable_dump_log" != "x" ; then
19532 DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
19537 if test "x$with_apxs" = "x" ; then
19538 # Extract the first word of "apxs2", so it can be a program name with args.
19539 set dummy apxs2; ac_word=$2
19540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19542 if test "${ac_cv_path_APXS2+set}" = set; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
19550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19551 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19552 for as_dir in $as_dummy
19555 test -z "$as_dir" && as_dir=.
19556 for ac_exec_ext in '' $ac_executable_extensions; do
19557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19558 ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
19559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19566 test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
19570 APXS2=$ac_cv_path_APXS2
19571 if test -n "$APXS2"; then
19572 { echo "$as_me:$LINENO: result: $APXS2" >&5
19573 echo "${ECHO_T}$APXS2" >&6; }
19575 { echo "$as_me:$LINENO: result: no" >&5
19576 echo "${ECHO_T}no" >&6; }
19580 if test "x$APXS2" = "xno"; then
19581 # Extract the first word of "apxs", so it can be a program name with args.
19582 set dummy apxs; ac_word=$2
19583 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19585 if test "${ac_cv_path_APXS+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
19593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19594 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19595 for as_dir in $as_dummy
19598 test -z "$as_dir" && as_dir=.
19599 for ac_exec_ext in '' $ac_executable_extensions; do
19600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19601 ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
19602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19609 test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
19613 APXS=$ac_cv_path_APXS
19614 if test -n "$APXS"; then
19615 { echo "$as_me:$LINENO: result: $APXS" >&5
19616 echo "${ECHO_T}$APXS" >&6; }
19618 { echo "$as_me:$LINENO: result: no" >&5
19619 echo "${ECHO_T}no" >&6; }
19623 if test "x$APXS" = "xno" ; then
19624 { { echo "$as_me:$LINENO: error: apxs not found." >&5
19625 echo "$as_me: error: apxs not found." >&2;}
19626 { (exit 1); exit 1; }; }
19632 if test "x$with_apxs" != "x" ; then
19636 # Extract the first word of "libtool", so it can be a program name with args.
19637 set dummy libtool; ac_word=$2
19638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19640 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19645 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19649 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19650 for as_dir in $as_dummy
19653 test -z "$as_dir" && as_dir=.
19654 for ac_exec_ext in '' $ac_executable_extensions; do
19655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19656 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19664 test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
19668 LIBTOOL=$ac_cv_path_LIBTOOL
19669 if test -n "$LIBTOOL"; then
19670 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19671 echo "${ECHO_T}$LIBTOOL" >&6; }
19673 { echo "$as_me:$LINENO: result: no" >&5
19674 echo "${ECHO_T}no" >&6; }
19678 if test "x$LIBTOOL" = "xno"; then
19679 { { echo "$as_me:$LINENO: error: libtool not found." >&5
19680 echo "$as_me: error: libtool not found." >&2;}
19681 { (exit 1); exit 1; }; }
19685 # Extract the first word of "Wand-config", so it can be a program name with args.
19686 set dummy Wand-config; ac_word=$2
19687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19689 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
19690 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 case $WAND_CONFIG in
19694 ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
19697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19698 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19699 for as_dir in $as_dummy
19702 test -z "$as_dir" && as_dir=.
19703 for ac_exec_ext in '' $ac_executable_extensions; do
19704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19705 ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19713 test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
19717 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
19718 if test -n "$WAND_CONFIG"; then
19719 { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
19720 echo "${ECHO_T}$WAND_CONFIG" >&6; }
19722 { echo "$as_me:$LINENO: result: no" >&5
19723 echo "${ECHO_T}no" >&6; }
19727 if test "x$WAND_CONFIG" = "xno" ; then
19728 { { echo "$as_me:$LINENO: error: wand-config not found." >&5
19729 echo "$as_me: error: wand-config not found." >&2;}
19730 { (exit 1); exit 1; }; }
19733 if test "x$with_apr_config" = "x" ; then
19734 # Extract the first word of "apr-config", so it can be a program name with args.
19735 set dummy apr-config; ac_word=$2
19736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19738 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19741 case $APR_CONFIG in
19743 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
19746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19747 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19748 for as_dir in $as_dummy
19751 test -z "$as_dir" && as_dir=.
19752 for ac_exec_ext in '' $ac_executable_extensions; do
19753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19754 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19762 test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
19766 APR_CONFIG=$ac_cv_path_APR_CONFIG
19767 if test -n "$APR_CONFIG"; then
19768 { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
19769 echo "${ECHO_T}$APR_CONFIG" >&6; }
19771 { echo "$as_me:$LINENO: result: no" >&5
19772 echo "${ECHO_T}no" >&6; }
19776 if test "x$APR_CONFIG" = "xno" ; then
19777 # Extract the first word of "apr-1-config", so it can be a program name with args.
19778 set dummy apr-1-config; ac_word=$2
19779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19781 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
19782 echo $ECHO_N "(cached) $ECHO_C" >&6
19784 case $APR_1_CONFIG in
19786 ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
19789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19790 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19791 for as_dir in $as_dummy
19794 test -z "$as_dir" && as_dir=.
19795 for ac_exec_ext in '' $ac_executable_extensions; do
19796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19797 ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19805 test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
19809 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
19810 if test -n "$APR_1_CONFIG"; then
19811 { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
19812 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
19814 { echo "$as_me:$LINENO: result: no" >&5
19815 echo "${ECHO_T}no" >&6; }
19819 if test "x$APR_1_CONFIG" = "xno" ; then
19820 { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
19821 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
19822 { (exit 1); exit 1; }; }
19824 APR_CONFIG="$APR_1_CONFIG"
19828 if test "x$with_apr_config" != "x" ; then
19829 APR_CONFIG=$with_apr_config
19831 if test "x$with_apu_config" = "x" ; then
19832 # Extract the first word of "apu-config", so it can be a program name with args.
19833 set dummy apu-config; ac_word=$2
19834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19836 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
19837 echo $ECHO_N "(cached) $ECHO_C" >&6
19839 case $APU_CONFIG in
19841 ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
19844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19845 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19846 for as_dir in $as_dummy
19849 test -z "$as_dir" && as_dir=.
19850 for ac_exec_ext in '' $ac_executable_extensions; do
19851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19852 ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19860 test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
19864 APU_CONFIG=$ac_cv_path_APU_CONFIG
19865 if test -n "$APU_CONFIG"; then
19866 { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
19867 echo "${ECHO_T}$APU_CONFIG" >&6; }
19869 { echo "$as_me:$LINENO: result: no" >&5
19870 echo "${ECHO_T}no" >&6; }
19874 if test "x$APU_CONFIG" = "xno" ; then
19875 # Extract the first word of "apu-1-config", so it can be a program name with args.
19876 set dummy apu-1-config; ac_word=$2
19877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19879 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 case $APU_1_CONFIG in
19884 ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
19887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19888 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19889 for as_dir in $as_dummy
19892 test -z "$as_dir" && as_dir=.
19893 for ac_exec_ext in '' $ac_executable_extensions; do
19894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19895 ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19903 test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
19907 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
19908 if test -n "$APU_1_CONFIG"; then
19909 { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
19910 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
19912 { echo "$as_me:$LINENO: result: no" >&5
19913 echo "${ECHO_T}no" >&6; }
19917 if test "x$APU_1_CONFIG" = "xno" ; then
19918 { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
19919 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
19920 { (exit 1); exit 1; }; }
19922 APU_CONFIG="$APU_1_CONFIG"
19926 if test "x$with_apu_config" != "x" ; then
19927 APU_CONFIG=$with_apu_config
19933 CFLAGS="${CFLAGS} -I/usr/local/include "
19937 if test "x${with_apache_header}" = "x" ; then
19938 with_apache_header=`${APXS} -q includedir`
19941 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
19942 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
19943 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
19944 LIBS="${LIBS} ${MYSQL_COOKIE_LIBS}"
19945 LIBS="${LIBS} ${MEMCACHE_COOKIE_LIBS}"
19946 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
19947 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
19948 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
19949 CFLAGS="${CFLAGS} ${MYSQL_COOKIE_DEFS}"
19950 CFLAGS="${CFLAGS} ${MEMCACHE_COOKIE_DEFS}"
19951 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` -I${with_apache_header}"
19952 CPPFLAGS="${CPPFLAGS} ${MYSQL_COOKIE_DEFS}"
19953 CPPFLAGS="${CPPFLAGS} ${MEMCACHE_COOKIE_DEFS}"
19955 # Checks for header files.
19956 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19957 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19958 if test "${ac_cv_header_stdc+set}" = set; then
19959 echo $ECHO_N "(cached) $ECHO_C" >&6
19961 cat >conftest.$ac_ext <<_ACEOF
19964 cat confdefs.h >>conftest.$ac_ext
19965 cat >>conftest.$ac_ext <<_ACEOF
19966 /* end confdefs.h. */
19967 #include <stdlib.h>
19968 #include <stdarg.h>
19969 #include <string.h>
19980 rm -f conftest.$ac_objext
19981 if { (ac_try="$ac_compile"
19982 case "(($ac_try" in
19983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19984 *) ac_try_echo=$ac_try;;
19986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19987 (eval "$ac_compile") 2>conftest.er1
19989 grep -v '^ *+' conftest.er1 >conftest.err
19991 cat conftest.err >&5
19992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } && {
19994 test -z "$ac_c_werror_flag" ||
19995 test ! -s conftest.err
19996 } && test -s conftest.$ac_objext; then
19997 ac_cv_header_stdc=yes
19999 echo "$as_me: failed program was:" >&5
20000 sed 's/^/| /' conftest.$ac_ext >&5
20002 ac_cv_header_stdc=no
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20007 if test $ac_cv_header_stdc = yes; then
20008 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20009 cat >conftest.$ac_ext <<_ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20015 #include <string.h>
20018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20019 $EGREP "memchr" >/dev/null 2>&1; then
20022 ac_cv_header_stdc=no
20028 if test $ac_cv_header_stdc = yes; then
20029 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20030 cat >conftest.$ac_ext <<_ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20036 #include <stdlib.h>
20039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20040 $EGREP "free" >/dev/null 2>&1; then
20043 ac_cv_header_stdc=no
20049 if test $ac_cv_header_stdc = yes; then
20050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20051 if test "$cross_compiling" = yes; then
20054 cat >conftest.$ac_ext <<_ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20061 #include <stdlib.h>
20062 #if ((' ' & 0x0FF) == 0x020)
20063 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20064 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20066 # define ISLOWER(c) \
20067 (('a' <= (c) && (c) <= 'i') \
20068 || ('j' <= (c) && (c) <= 'r') \
20069 || ('s' <= (c) && (c) <= 'z'))
20070 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20073 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20078 for (i = 0; i < 256; i++)
20079 if (XOR (islower (i), ISLOWER (i))
20080 || toupper (i) != TOUPPER (i))
20085 rm -f conftest$ac_exeext
20086 if { (ac_try="$ac_link"
20087 case "(($ac_try" in
20088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089 *) ac_try_echo=$ac_try;;
20091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092 (eval "$ac_link") 2>&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20096 { (case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_try") 2>&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; }; then
20107 echo "$as_me: program exited with status $ac_status" >&5
20108 echo "$as_me: failed program was:" >&5
20109 sed 's/^/| /' conftest.$ac_ext >&5
20111 ( exit $ac_status )
20112 ac_cv_header_stdc=no
20114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20120 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20121 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20122 if test $ac_cv_header_stdc = yes; then
20124 cat >>confdefs.h <<\_ACEOF
20125 #define STDC_HEADERS 1
20138 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20140 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20141 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20145 echo $ECHO_N "(cached) $ECHO_C" >&6
20147 ac_res=`eval echo '${'$as_ac_Header'}'`
20148 { echo "$as_me:$LINENO: result: $ac_res" >&5
20149 echo "${ECHO_T}$ac_res" >&6; }
20151 # Is the header compilable?
20152 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20153 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20154 cat >conftest.$ac_ext <<_ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20160 $ac_includes_default
20161 #include <$ac_header>
20163 rm -f conftest.$ac_objext
20164 if { (ac_try="$ac_compile"
20165 case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_compile") 2>conftest.er1
20172 grep -v '^ *+' conftest.er1 >conftest.err
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20176 (exit $ac_status); } && {
20177 test -z "$ac_c_werror_flag" ||
20178 test ! -s conftest.err
20179 } && test -s conftest.$ac_objext; then
20180 ac_header_compiler=yes
20182 echo "$as_me: failed program was:" >&5
20183 sed 's/^/| /' conftest.$ac_ext >&5
20185 ac_header_compiler=no
20188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20189 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20190 echo "${ECHO_T}$ac_header_compiler" >&6; }
20192 # Is the header present?
20193 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20194 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20195 cat >conftest.$ac_ext <<_ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20201 #include <$ac_header>
20203 if { (ac_try="$ac_cpp conftest.$ac_ext"
20204 case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20211 grep -v '^ *+' conftest.er1 >conftest.err
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } >/dev/null && {
20216 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20217 test ! -s conftest.err
20219 ac_header_preproc=yes
20221 echo "$as_me: failed program was:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20224 ac_header_preproc=no
20227 rm -f conftest.err conftest.$ac_ext
20228 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20229 echo "${ECHO_T}$ac_header_preproc" >&6; }
20231 # So? What about this header?
20232 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20234 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20236 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20237 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20238 ac_header_preproc=yes
20241 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20242 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20243 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20244 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20245 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20246 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20247 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20248 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20250 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20251 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20252 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20259 echo $ECHO_N "(cached) $ECHO_C" >&6
20261 eval "$as_ac_Header=\$ac_header_preproc"
20263 ac_res=`eval echo '${'$as_ac_Header'}'`
20264 { echo "$as_me:$LINENO: result: $ac_res" >&5
20265 echo "${ECHO_T}$ac_res" >&6; }
20268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20269 cat >>confdefs.h <<_ACEOF
20270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20277 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
20280 for ac_header in apr_shm.h apr_global_mutex.h
20282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20284 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20287 echo $ECHO_N "(cached) $ECHO_C" >&6
20289 ac_res=`eval echo '${'$as_ac_Header'}'`
20290 { echo "$as_me:$LINENO: result: $ac_res" >&5
20291 echo "${ECHO_T}$ac_res" >&6; }
20293 # Is the header compilable?
20294 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20296 cat >conftest.$ac_ext <<_ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20302 $ac_includes_default
20303 #include <$ac_header>
20305 rm -f conftest.$ac_objext
20306 if { (ac_try="$ac_compile"
20307 case "(($ac_try" in
20308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20309 *) ac_try_echo=$ac_try;;
20311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20312 (eval "$ac_compile") 2>conftest.er1
20314 grep -v '^ *+' conftest.er1 >conftest.err
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } && {
20319 test -z "$ac_c_werror_flag" ||
20320 test ! -s conftest.err
20321 } && test -s conftest.$ac_objext; then
20322 ac_header_compiler=yes
20324 echo "$as_me: failed program was:" >&5
20325 sed 's/^/| /' conftest.$ac_ext >&5
20327 ac_header_compiler=no
20330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20332 echo "${ECHO_T}$ac_header_compiler" >&6; }
20334 # Is the header present?
20335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20337 cat >conftest.$ac_ext <<_ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20343 #include <$ac_header>
20345 if { (ac_try="$ac_cpp conftest.$ac_ext"
20346 case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20353 grep -v '^ *+' conftest.er1 >conftest.err
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357 (exit $ac_status); } >/dev/null && {
20358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20359 test ! -s conftest.err
20361 ac_header_preproc=yes
20363 echo "$as_me: failed program was:" >&5
20364 sed 's/^/| /' conftest.$ac_ext >&5
20366 ac_header_preproc=no
20369 rm -f conftest.err conftest.$ac_ext
20370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20371 echo "${ECHO_T}$ac_header_preproc" >&6; }
20373 # So? What about this header?
20374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20380 ac_header_preproc=yes
20383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20398 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20401 echo $ECHO_N "(cached) $ECHO_C" >&6
20403 eval "$as_ac_Header=\$ac_header_preproc"
20405 ac_res=`eval echo '${'$as_ac_Header'}'`
20406 { echo "$as_me:$LINENO: result: $ac_res" >&5
20407 echo "${ECHO_T}$ac_res" >&6; }
20410 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20411 cat >>confdefs.h <<_ACEOF
20412 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20420 for ac_header in apr.h
20422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20427 echo $ECHO_N "(cached) $ECHO_C" >&6
20429 ac_res=`eval echo '${'$as_ac_Header'}'`
20430 { echo "$as_me:$LINENO: result: $ac_res" >&5
20431 echo "${ECHO_T}$ac_res" >&6; }
20433 # Is the header compilable?
20434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20436 cat >conftest.$ac_ext <<_ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h. */
20442 $ac_includes_default
20443 #include <$ac_header>
20445 rm -f conftest.$ac_objext
20446 if { (ac_try="$ac_compile"
20447 case "(($ac_try" in
20448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20449 *) ac_try_echo=$ac_try;;
20451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20452 (eval "$ac_compile") 2>conftest.er1
20454 grep -v '^ *+' conftest.er1 >conftest.err
20456 cat conftest.err >&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); } && {
20459 test -z "$ac_c_werror_flag" ||
20460 test ! -s conftest.err
20461 } && test -s conftest.$ac_objext; then
20462 ac_header_compiler=yes
20464 echo "$as_me: failed program was:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 ac_header_compiler=no
20470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20472 echo "${ECHO_T}$ac_header_compiler" >&6; }
20474 # Is the header present?
20475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20477 cat >conftest.$ac_ext <<_ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 #include <$ac_header>
20485 if { (ac_try="$ac_cpp conftest.$ac_ext"
20486 case "(($ac_try" in
20487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488 *) ac_try_echo=$ac_try;;
20490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20493 grep -v '^ *+' conftest.er1 >conftest.err
20495 cat conftest.err >&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } >/dev/null && {
20498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20499 test ! -s conftest.err
20501 ac_header_preproc=yes
20503 echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20506 ac_header_preproc=no
20509 rm -f conftest.err conftest.$ac_ext
20510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20511 echo "${ECHO_T}$ac_header_preproc" >&6; }
20513 # So? What about this header?
20514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20520 ac_header_preproc=yes
20523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20541 echo $ECHO_N "(cached) $ECHO_C" >&6
20543 eval "$as_ac_Header=\$ac_header_preproc"
20545 ac_res=`eval echo '${'$as_ac_Header'}'`
20546 { echo "$as_me:$LINENO: result: $ac_res" >&5
20547 echo "${ECHO_T}$ac_res" >&6; }
20550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20551 cat >>confdefs.h <<_ACEOF
20552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20560 for ac_header in ap_config.h
20562 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20567 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 ac_res=`eval echo '${'$as_ac_Header'}'`
20570 { echo "$as_me:$LINENO: result: $ac_res" >&5
20571 echo "${ECHO_T}$ac_res" >&6; }
20573 # Is the header compilable?
20574 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20575 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20576 cat >conftest.$ac_ext <<_ACEOF
20579 cat confdefs.h >>conftest.$ac_ext
20580 cat >>conftest.$ac_ext <<_ACEOF
20581 /* end confdefs.h. */
20582 $ac_includes_default
20583 #include <$ac_header>
20585 rm -f conftest.$ac_objext
20586 if { (ac_try="$ac_compile"
20587 case "(($ac_try" in
20588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589 *) ac_try_echo=$ac_try;;
20591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20592 (eval "$ac_compile") 2>conftest.er1
20594 grep -v '^ *+' conftest.er1 >conftest.err
20596 cat conftest.err >&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); } && {
20599 test -z "$ac_c_werror_flag" ||
20600 test ! -s conftest.err
20601 } && test -s conftest.$ac_objext; then
20602 ac_header_compiler=yes
20604 echo "$as_me: failed program was:" >&5
20605 sed 's/^/| /' conftest.$ac_ext >&5
20607 ac_header_compiler=no
20610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20611 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20612 echo "${ECHO_T}$ac_header_compiler" >&6; }
20614 # Is the header present?
20615 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20616 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20617 cat >conftest.$ac_ext <<_ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20623 #include <$ac_header>
20625 if { (ac_try="$ac_cpp conftest.$ac_ext"
20626 case "(($ac_try" in
20627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628 *) ac_try_echo=$ac_try;;
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20633 grep -v '^ *+' conftest.er1 >conftest.err
20635 cat conftest.err >&5
20636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637 (exit $ac_status); } >/dev/null && {
20638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20639 test ! -s conftest.err
20641 ac_header_preproc=yes
20643 echo "$as_me: failed program was:" >&5
20644 sed 's/^/| /' conftest.$ac_ext >&5
20646 ac_header_preproc=no
20649 rm -f conftest.err conftest.$ac_ext
20650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20651 echo "${ECHO_T}$ac_header_preproc" >&6; }
20653 # So? What about this header?
20654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20660 ac_header_preproc=yes
20663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20681 echo $ECHO_N "(cached) $ECHO_C" >&6
20683 eval "$as_ac_Header=\$ac_header_preproc"
20685 ac_res=`eval echo '${'$as_ac_Header'}'`
20686 { echo "$as_me:$LINENO: result: $ac_res" >&5
20687 echo "${ECHO_T}$ac_res" >&6; }
20690 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20691 cat >>confdefs.h <<_ACEOF
20692 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20699 #AC_CHECK_HEADERS([ap_regex.h],
20700 # AC_DEFINE([HAVE_AP_REGEX_H], [], [Define to 1 if you have the <ap_regex.h> header file.]),[],
20705 ##ifdef HAVE_AP_CONFIG_H
20706 ##include "ap_config.h"
20710 for ac_header in ap_regex.h
20712 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20714 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20715 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20717 echo $ECHO_N "(cached) $ECHO_C" >&6
20719 ac_res=`eval echo '${'$as_ac_Header'}'`
20720 { echo "$as_me:$LINENO: result: $ac_res" >&5
20721 echo "${ECHO_T}$ac_res" >&6; }
20723 # Is the header compilable?
20724 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20726 cat >conftest.$ac_ext <<_ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h. */
20732 $ac_includes_default
20733 #include <$ac_header>
20735 rm -f conftest.$ac_objext
20736 if { (ac_try="$ac_compile"
20737 case "(($ac_try" in
20738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20739 *) ac_try_echo=$ac_try;;
20741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20742 (eval "$ac_compile") 2>conftest.er1
20744 grep -v '^ *+' conftest.er1 >conftest.err
20746 cat conftest.err >&5
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } && {
20749 test -z "$ac_c_werror_flag" ||
20750 test ! -s conftest.err
20751 } && test -s conftest.$ac_objext; then
20752 ac_header_compiler=yes
20754 echo "$as_me: failed program was:" >&5
20755 sed 's/^/| /' conftest.$ac_ext >&5
20757 ac_header_compiler=no
20760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20761 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20762 echo "${ECHO_T}$ac_header_compiler" >&6; }
20764 # Is the header present?
20765 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20766 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20767 cat >conftest.$ac_ext <<_ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20773 #include <$ac_header>
20775 if { (ac_try="$ac_cpp conftest.$ac_ext"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20783 grep -v '^ *+' conftest.er1 >conftest.err
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } >/dev/null && {
20788 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20789 test ! -s conftest.err
20791 ac_header_preproc=yes
20793 echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20796 ac_header_preproc=no
20799 rm -f conftest.err conftest.$ac_ext
20800 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20801 echo "${ECHO_T}$ac_header_preproc" >&6; }
20803 # So? What about this header?
20804 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20807 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20809 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20810 ac_header_preproc=yes
20813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20814 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20816 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20818 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20820 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20822 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20824 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20831 echo $ECHO_N "(cached) $ECHO_C" >&6
20833 eval "$as_ac_Header=\$ac_header_preproc"
20835 ac_res=`eval echo '${'$as_ac_Header'}'`
20836 { echo "$as_me:$LINENO: result: $ac_res" >&5
20837 echo "${ECHO_T}$ac_res" >&6; }
20840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20841 cat >>confdefs.h <<_ACEOF
20842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20846 use_pcre_flag="yes"
20851 if test "x$use_pcre_flag" = "xyes" ; then
20852 if test "x$with_pcre_config" = "x" ; then
20853 # Extract the first word of "pcre-config", so it can be a program name with args.
20854 set dummy pcre-config; ac_word=$2
20855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20857 if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
20858 echo $ECHO_N "(cached) $ECHO_C" >&6
20860 case $PCRE_CONFIG in
20862 ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
20865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20866 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20867 for as_dir in $as_dummy
20870 test -z "$as_dir" && as_dir=.
20871 for ac_exec_ext in '' $ac_executable_extensions; do
20872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20873 ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20881 test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
20885 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
20886 if test -n "$PCRE_CONFIG"; then
20887 { echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
20888 echo "${ECHO_T}$PCRE_CONFIG" >&6; }
20890 { echo "$as_me:$LINENO: result: no" >&5
20891 echo "${ECHO_T}no" >&6; }
20895 if test "x$PCRE_CONFIG" = "xno" ; then
20896 # Extract the first word of "pcre-1-config", so it can be a program name with args.
20897 set dummy pcre-1-config; ac_word=$2
20898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20900 if test "${ac_cv_path_PCRE_1_CONFIG+set}" = set; then
20901 echo $ECHO_N "(cached) $ECHO_C" >&6
20903 case $PCRE_1_CONFIG in
20905 ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
20908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20909 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20910 for as_dir in $as_dummy
20913 test -z "$as_dir" && as_dir=.
20914 for ac_exec_ext in '' $ac_executable_extensions; do
20915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20916 ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20924 test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
20928 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
20929 if test -n "$PCRE_1_CONFIG"; then
20930 { echo "$as_me:$LINENO: result: $PCRE_1_CONFIG" >&5
20931 echo "${ECHO_T}$PCRE_1_CONFIG" >&6; }
20933 { echo "$as_me:$LINENO: result: no" >&5
20934 echo "${ECHO_T}no" >&6; }
20938 if test "x$PCRE_1_CONFIG" = "xno" ; then
20939 { { echo "$as_me:$LINENO: error: pcre-config and pcre-1-config not found." >&5
20940 echo "$as_me: error: pcre-config and pcre-1-config not found." >&2;}
20941 { (exit 1); exit 1; }; }
20943 PCRE_CONFIG="$PCRE_1_CONFIG"
20947 if test "x$with_pcre_config" != "x" ; then
20948 PCRE_CONFIG=$with_pcre_config
20950 CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
20953 cat >>confdefs.h <<\_ACEOF
20954 #define HAVE_AP_REGEX_H
20959 # Checks for typedefs, structures, and compiler characteristics.
20960 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20961 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20962 if test "${ac_cv_c_const+set}" = set; then
20963 echo $ECHO_N "(cached) $ECHO_C" >&6
20965 cat >conftest.$ac_ext <<_ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
20970 /* end confdefs.h. */
20975 /* FIXME: Include the comments suggested by Paul. */
20976 #ifndef __cplusplus
20977 /* Ultrix mips cc rejects this. */
20978 typedef int charset[2];
20980 /* SunOS 4.1.1 cc rejects this. */
20981 char const *const *pcpcc;
20983 /* NEC SVR4.0.2 mips cc rejects this. */
20984 struct point {int x, y;};
20985 static struct point const zero = {0,0};
20986 /* AIX XL C 1.02.0.0 rejects this.
20987 It does not let you subtract one const X* pointer from another in
20988 an arm of an if-expression whose if-part is not a constant
20990 const char *g = "string";
20991 pcpcc = &g + (g ? g-g : 0);
20992 /* HPUX 7.0 cc rejects these. */
20994 ppc = (char**) pcpcc;
20995 pcpcc = (char const *const *) ppc;
20996 { /* SCO 3.2v4 cc rejects this. */
20998 char const *s = 0 ? (char *) 0 : (char const *) 0;
21003 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21004 int x[] = {25, 17};
21005 const int *foo = &x[0];
21008 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21009 typedef const int *iptr;
21013 { /* AIX XL C 1.02.0.0 rejects this saying
21014 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21015 struct s { int j; const int *ap[3]; };
21016 struct s *b; b->j = 5;
21018 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21019 const int foo = 10;
21020 if (!foo) return 0;
21022 return !cs[0] && !zero.x;
21029 rm -f conftest.$ac_objext
21030 if { (ac_try="$ac_compile"
21031 case "(($ac_try" in
21032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21033 *) ac_try_echo=$ac_try;;
21035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21036 (eval "$ac_compile") 2>conftest.er1
21038 grep -v '^ *+' conftest.er1 >conftest.err
21040 cat conftest.err >&5
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } && {
21043 test -z "$ac_c_werror_flag" ||
21044 test ! -s conftest.err
21045 } && test -s conftest.$ac_objext; then
21048 echo "$as_me: failed program was:" >&5
21049 sed 's/^/| /' conftest.$ac_ext >&5
21054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21056 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21057 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21058 if test $ac_cv_c_const = no; then
21060 cat >>confdefs.h <<\_ACEOF
21067 # Checks for library functions.
21069 for ac_header in stdlib.h
21071 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
21078 ac_res=`eval echo '${'$as_ac_Header'}'`
21079 { echo "$as_me:$LINENO: result: $ac_res" >&5
21080 echo "${ECHO_T}$ac_res" >&6; }
21082 # Is the header compilable?
21083 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21084 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21085 cat >conftest.$ac_ext <<_ACEOF
21088 cat confdefs.h >>conftest.$ac_ext
21089 cat >>conftest.$ac_ext <<_ACEOF
21090 /* end confdefs.h. */
21091 $ac_includes_default
21092 #include <$ac_header>
21094 rm -f conftest.$ac_objext
21095 if { (ac_try="$ac_compile"
21096 case "(($ac_try" in
21097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21098 *) ac_try_echo=$ac_try;;
21100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21101 (eval "$ac_compile") 2>conftest.er1
21103 grep -v '^ *+' conftest.er1 >conftest.err
21105 cat conftest.err >&5
21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21107 (exit $ac_status); } && {
21108 test -z "$ac_c_werror_flag" ||
21109 test ! -s conftest.err
21110 } && test -s conftest.$ac_objext; then
21111 ac_header_compiler=yes
21113 echo "$as_me: failed program was:" >&5
21114 sed 's/^/| /' conftest.$ac_ext >&5
21116 ac_header_compiler=no
21119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21120 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21121 echo "${ECHO_T}$ac_header_compiler" >&6; }
21123 # Is the header present?
21124 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21125 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21126 cat >conftest.$ac_ext <<_ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
21131 /* end confdefs.h. */
21132 #include <$ac_header>
21134 if { (ac_try="$ac_cpp conftest.$ac_ext"
21135 case "(($ac_try" in
21136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21137 *) ac_try_echo=$ac_try;;
21139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21142 grep -v '^ *+' conftest.er1 >conftest.err
21144 cat conftest.err >&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } >/dev/null && {
21147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21148 test ! -s conftest.err
21150 ac_header_preproc=yes
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21155 ac_header_preproc=no
21158 rm -f conftest.err conftest.$ac_ext
21159 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21160 echo "${ECHO_T}$ac_header_preproc" >&6; }
21162 # So? What about this header?
21163 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21165 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21166 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21167 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21168 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21169 ac_header_preproc=yes
21172 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21173 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21174 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21175 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21176 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21177 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21178 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21179 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21180 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21181 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21183 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21187 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21188 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21189 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21190 echo $ECHO_N "(cached) $ECHO_C" >&6
21192 eval "$as_ac_Header=\$ac_header_preproc"
21194 ac_res=`eval echo '${'$as_ac_Header'}'`
21195 { echo "$as_me:$LINENO: result: $ac_res" >&5
21196 echo "${ECHO_T}$ac_res" >&6; }
21199 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21200 cat >>confdefs.h <<_ACEOF
21201 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21208 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21209 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21210 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21211 echo $ECHO_N "(cached) $ECHO_C" >&6
21213 if test "$cross_compiling" = yes; then
21214 ac_cv_func_malloc_0_nonnull=no
21216 cat >conftest.$ac_ext <<_ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21222 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21223 # include <stdlib.h>
21231 return ! malloc (0);
21236 rm -f conftest$ac_exeext
21237 if { (ac_try="$ac_link"
21238 case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_link") 2>&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21247 { (case "(($ac_try" in
21248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21249 *) ac_try_echo=$ac_try;;
21251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21252 (eval "$ac_try") 2>&5
21254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21255 (exit $ac_status); }; }; then
21256 ac_cv_func_malloc_0_nonnull=yes
21258 echo "$as_me: program exited with status $ac_status" >&5
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21262 ( exit $ac_status )
21263 ac_cv_func_malloc_0_nonnull=no
21265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21270 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21271 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21272 if test $ac_cv_func_malloc_0_nonnull = yes; then
21274 cat >>confdefs.h <<\_ACEOF
21275 #define HAVE_MALLOC 1
21279 cat >>confdefs.h <<\_ACEOF
21280 #define HAVE_MALLOC 0
21283 case " $LIBOBJS " in
21284 *" malloc.$ac_objext "* ) ;;
21285 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21290 cat >>confdefs.h <<\_ACEOF
21291 #define malloc rpl_malloc
21306 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
21308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21312 echo $ECHO_N "(cached) $ECHO_C" >&6
21314 cat >conftest.$ac_ext <<_ACEOF
21317 cat confdefs.h >>conftest.$ac_ext
21318 cat >>conftest.$ac_ext <<_ACEOF
21319 /* end confdefs.h. */
21320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21322 #define $ac_func innocuous_$ac_func
21324 /* System header to define __stub macros and hopefully few prototypes,
21325 which can conflict with char $ac_func (); below.
21326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21327 <limits.h> exists even on freestanding compilers. */
21330 # include <limits.h>
21332 # include <assert.h>
21337 /* Override any GCC internal prototype to avoid an error.
21338 Use char because int might match the return type of a GCC
21339 builtin and then its argument prototype would still apply. */
21344 /* The GNU C library defines this for functions which it implements
21345 to always fail with ENOSYS. Some functions are actually named
21346 something starting with __ and the normal name is an alias. */
21347 #if defined __stub_$ac_func || defined __stub___$ac_func
21354 return $ac_func ();
21359 rm -f conftest.$ac_objext conftest$ac_exeext
21360 if { (ac_try="$ac_link"
21361 case "(($ac_try" in
21362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21363 *) ac_try_echo=$ac_try;;
21365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21366 (eval "$ac_link") 2>conftest.er1
21368 grep -v '^ *+' conftest.er1 >conftest.err
21370 cat conftest.err >&5
21371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21372 (exit $ac_status); } && {
21373 test -z "$ac_c_werror_flag" ||
21374 test ! -s conftest.err
21375 } && test -s conftest$ac_exeext &&
21376 $as_test_x conftest$ac_exeext; then
21377 eval "$as_ac_var=yes"
21379 echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21382 eval "$as_ac_var=no"
21385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21386 conftest$ac_exeext conftest.$ac_ext
21388 ac_res=`eval echo '${'$as_ac_var'}'`
21389 { echo "$as_me:$LINENO: result: $ac_res" >&5
21390 echo "${ECHO_T}$ac_res" >&6; }
21391 if test `eval echo '${'$as_ac_var'}'` = yes; then
21392 cat >>confdefs.h <<_ACEOF
21393 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21408 ac_config_files="$ac_config_files Makefile src/Makefile"
21410 cat >confcache <<\_ACEOF
21411 # This file is a shell script that caches the results of configure
21412 # tests run on this system so they can be shared between configure
21413 # scripts and configure runs, see configure's option --config-cache.
21414 # It is not useful on other systems. If it contains results you don't
21415 # want to keep, you may remove or edit it.
21417 # config.status only pays attention to the cache file if you give it
21418 # the --recheck option to rerun configure.
21420 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21421 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21422 # following values.
21426 # The following way of writing the cache mishandles newlines in values,
21427 # but we know of no workaround that is simple, portable, and efficient.
21428 # So, we kill variables containing newlines.
21429 # Ultrix sh set writes to stderr and can't be redirected directly,
21430 # and sets the high bit in the cache file unless we assign to the vars.
21432 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21433 eval ac_val=\$$ac_var
21437 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21438 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21441 _ | IFS | as_nl) ;; #(
21442 *) $as_unset $ac_var ;;
21448 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21449 *${as_nl}ac_space=\ *)
21450 # `set' does not quote correctly, so add quotes (double-quote
21451 # substitution turns \\\\ into \\, and sed turns \\ into \).
21454 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21457 # `set' quotes correctly as required by POSIX, so do not add quotes.
21458 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21467 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21469 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21471 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21472 if test -w "$cache_file"; then
21473 test "x$cache_file" != "x/dev/null" &&
21474 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21475 echo "$as_me: updating cache $cache_file" >&6;}
21476 cat confcache >$cache_file
21478 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21479 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21484 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21485 # Let make expand exec_prefix.
21486 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21488 DEFS=-DHAVE_CONFIG_H
21492 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21493 # 1. Remove the extension, and $U if already installed.
21494 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21495 ac_i=`echo "$ac_i" | sed "$ac_script"`
21496 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21497 # will be set to the directory where LIBOBJS objects are built.
21498 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21499 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21501 LIBOBJS=$ac_libobjs
21503 LTLIBOBJS=$ac_ltlibobjs
21506 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21507 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21508 Usually this means the macro was only invoked conditionally." >&5
21509 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21510 Usually this means the macro was only invoked conditionally." >&2;}
21511 { (exit 1); exit 1; }; }
21513 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21514 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21515 Usually this means the macro was only invoked conditionally." >&5
21516 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21517 Usually this means the macro was only invoked conditionally." >&2;}
21518 { (exit 1); exit 1; }; }
21520 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21521 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21522 Usually this means the macro was only invoked conditionally." >&5
21523 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21524 Usually this means the macro was only invoked conditionally." >&2;}
21525 { (exit 1); exit 1; }; }
21528 : ${CONFIG_STATUS=./config.status}
21529 ac_clean_files_save=$ac_clean_files
21530 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21531 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21532 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21533 cat >$CONFIG_STATUS <<_ACEOF
21535 # Generated by $as_me.
21536 # Run this file to recreate the current configuration.
21537 # Compiler output produced by configure, useful for debugging
21538 # configure, is in config.log if it exists.
21541 ac_cs_recheck=false
21543 SHELL=\${CONFIG_SHELL-$SHELL}
21546 cat >>$CONFIG_STATUS <<\_ACEOF
21547 ## --------------------- ##
21548 ## M4sh Initialization. ##
21549 ## --------------------- ##
21551 # Be more Bourne compatible
21552 DUALCASE=1; export DUALCASE # for MKS sh
21553 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21556 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21557 # is contrary to our usage. Disable this feature.
21558 alias -g '${1+"$@"}'='"$@"'
21559 setopt NO_GLOB_SUBST
21561 case `(set -o) 2>/dev/null` in
21562 *posix*) set -o posix ;;
21571 # Avoid depending upon Character Ranges.
21572 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21573 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21574 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21575 as_cr_digits='0123456789'
21576 as_cr_alnum=$as_cr_Letters$as_cr_digits
21578 # The user is always right.
21579 if test "${PATH_SEPARATOR+set}" != set; then
21580 echo "#! /bin/sh" >conf$$.sh
21581 echo "exit 0" >>conf$$.sh
21583 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21591 # Support unset when possible.
21592 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21600 # We need space, tab and new line, in precisely that order. Quoting is
21601 # there to prevent editors from complaining about space-tab.
21602 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21603 # splitting by setting IFS to empty value.)
21608 # Find who we are. Look in the path if we contain no directory separator.
21610 *[\\/]* ) as_myself=$0 ;;
21611 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21612 for as_dir in $PATH
21615 test -z "$as_dir" && as_dir=.
21616 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21622 # We did not find ourselves, most probably we were run as `sh COMMAND'
21623 # in which case we are not to be found in the path.
21624 if test "x$as_myself" = x; then
21627 if test ! -f "$as_myself"; then
21628 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21629 { (exit 1); exit 1; }
21632 # Work around bugs in pre-3.0 UWIN ksh.
21633 for as_var in ENV MAIL MAILPATH
21634 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21642 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21643 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21644 LC_TELEPHONE LC_TIME
21646 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21647 eval $as_var=C; export $as_var
21649 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21653 # Required to use basename.
21654 if expr a : '\(a\)' >/dev/null 2>&1 &&
21655 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21661 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21662 as_basename=basename
21668 # Name of the executable.
21669 as_me=`$as_basename -- "$0" ||
21670 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21671 X"$0" : 'X\(//\)$' \| \
21672 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21674 sed '/^.*\/\([^/][^/]*\)\/*$/{
21693 as_lineno_1=$LINENO
21694 as_lineno_2=$LINENO
21695 test "x$as_lineno_1" != "x$as_lineno_2" &&
21696 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21698 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21699 # uniformly replaced by the line number. The first 'sed' inserts a
21700 # line-number line after each line using $LINENO; the second 'sed'
21701 # does the real work. The second script uses 'N' to pair each
21702 # line-number line with the line containing $LINENO, and appends
21703 # trailing '-' during substitution so that $LINENO is not a special
21704 # case at line end.
21705 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21706 # scripts with optimization help from Paolo Bonzini. Blame Lee
21707 # E. McMahon (1931-1989) for sed's syntax. :-)
21719 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21722 ' >$as_me.lineno &&
21723 chmod +x "$as_me.lineno" ||
21724 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21725 { (exit 1); exit 1; }; }
21727 # Don't try to exec as it changes $[0], causing all sort of problems
21728 # (the dirname of $[0] is not the place where we might find the
21729 # original and so on. Autoconf is especially sensitive to this).
21730 . "./$as_me.lineno"
21731 # Exit status is that of the last command.
21736 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21742 ECHO_C= ECHO_N= ECHO_T=
21743 case `echo -n x` in
21745 case `echo 'x\c'` in
21746 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21753 if expr a : '\(a\)' >/dev/null 2>&1 &&
21754 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21760 rm -f conf$$ conf$$.exe conf$$.file
21761 if test -d conf$$.dir; then
21762 rm -f conf$$.dir/conf$$.file
21768 if ln -s conf$$.file conf$$ 2>/dev/null; then
21770 # ... but there are two gotchas:
21771 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21772 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21773 # In both cases, we have to default to `cp -p'.
21774 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21776 elif ln conf$$.file conf$$ 2>/dev/null; then
21781 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21782 rmdir conf$$.dir 2>/dev/null
21784 if mkdir -p . 2>/dev/null; then
21787 test -d ./-p && rmdir ./-p
21791 if test -x / >/dev/null 2>&1; then
21792 as_test_x='test -x'
21794 if ls -dL / >/dev/null 2>&1; then
21801 if test -d "$1"; then
21807 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21808 ???[sx]*):;;*)false;;esac;fi
21812 as_executable_p=$as_test_x
21814 # Sed expression to map a string onto a valid CPP name.
21815 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21817 # Sed expression to map a string onto a valid variable name.
21818 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21823 # Save the log message, to keep $[0] and so on meaningful, and to
21824 # report actual input values of CONFIG_FILES etc. instead of their
21825 # values after options handling.
21827 This file was extended by mod_chxj $as_me 0.10.2-1, which was
21828 generated by GNU Autoconf 2.61. Invocation command line was
21830 CONFIG_FILES = $CONFIG_FILES
21831 CONFIG_HEADERS = $CONFIG_HEADERS
21832 CONFIG_LINKS = $CONFIG_LINKS
21833 CONFIG_COMMANDS = $CONFIG_COMMANDS
21836 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21841 cat >>$CONFIG_STATUS <<_ACEOF
21842 # Files that config.status was made for.
21843 config_files="$ac_config_files"
21844 config_headers="$ac_config_headers"
21845 config_commands="$ac_config_commands"
21849 cat >>$CONFIG_STATUS <<\_ACEOF
21851 \`$as_me' instantiates files from templates according to the
21852 current configuration.
21854 Usage: $0 [OPTIONS] [FILE]...
21856 -h, --help print this help, then exit
21857 -V, --version print version number and configuration settings, then exit
21858 -q, --quiet do not print progress messages
21859 -d, --debug don't remove temporary files
21860 --recheck update $as_me by reconfiguring in the same conditions
21861 --file=FILE[:TEMPLATE]
21862 instantiate the configuration file FILE
21863 --header=FILE[:TEMPLATE]
21864 instantiate the configuration header FILE
21866 Configuration files:
21869 Configuration headers:
21872 Configuration commands:
21875 Report bugs to <bug-autoconf@gnu.org>."
21878 cat >>$CONFIG_STATUS <<_ACEOF
21880 mod_chxj config.status 0.10.2-1
21881 configured by $0, generated by GNU Autoconf 2.61,
21882 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21884 Copyright (C) 2006 Free Software Foundation, Inc.
21885 This config.status script is free software; the Free Software Foundation
21886 gives unlimited permission to copy, distribute and modify it."
21894 cat >>$CONFIG_STATUS <<\_ACEOF
21895 # If no file are specified by the user, then we need to provide default
21896 # value. By we need to know if files were specified by the user.
21902 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21903 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21914 # Handling of the options.
21915 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21917 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21918 echo "$ac_cs_version"; exit ;;
21919 --debug | --debu | --deb | --de | --d | -d )
21921 --file | --fil | --fi | --f )
21923 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21924 ac_need_defaults=false;;
21925 --header | --heade | --head | --hea )
21927 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21928 ac_need_defaults=false;;
21930 # Conflict between --help and --header
21931 { echo "$as_me: error: ambiguous option: $1
21932 Try \`$0 --help' for more information." >&2
21933 { (exit 1); exit 1; }; };;
21934 --help | --hel | -h )
21935 echo "$ac_cs_usage"; exit ;;
21936 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21937 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21940 # This is an error.
21941 -*) { echo "$as_me: error: unrecognized option: $1
21942 Try \`$0 --help' for more information." >&2
21943 { (exit 1); exit 1; }; } ;;
21945 *) ac_config_targets="$ac_config_targets $1"
21946 ac_need_defaults=false ;;
21952 ac_configure_extra_args=
21954 if $ac_cs_silent; then
21956 ac_configure_extra_args="$ac_configure_extra_args --silent"
21960 cat >>$CONFIG_STATUS <<_ACEOF
21961 if \$ac_cs_recheck; then
21962 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21963 CONFIG_SHELL=$SHELL
21964 export CONFIG_SHELL
21965 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21969 cat >>$CONFIG_STATUS <<\_ACEOF
21973 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21974 ## Running $as_me. ##
21980 cat >>$CONFIG_STATUS <<_ACEOF
21984 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21988 cat >>$CONFIG_STATUS <<\_ACEOF
21990 # Handling of arguments.
21991 for ac_config_target in $ac_config_targets
21993 case $ac_config_target in
21994 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21995 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21996 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21997 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21999 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22000 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22001 { (exit 1); exit 1; }; };;
22006 # If the user did not use the arguments to specify the items to instantiate,
22007 # then the envvar interface is used. Set only those that are not.
22008 # We use the long form for the default assignment because of an extremely
22009 # bizarre bug on SunOS 4.1.3.
22010 if $ac_need_defaults; then
22011 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22012 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22013 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22016 # Have a temporary directory for convenience. Make it in the build tree
22017 # simply because there is no reason against having it here, and in addition,
22018 # creating and moving files from /tmp can sometimes cause problems.
22019 # Hook for its removal unless debugging.
22020 # Note that there is a small window in which the directory will not be cleaned:
22021 # after its creation but before its name has been assigned to `$tmp'.
22025 trap 'exit_status=$?
22026 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22028 trap '{ (exit 1); exit 1; }' 1 2 13 15
22030 # Create a (secure) tmp directory for tmp files.
22033 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22034 test -n "$tmp" && test -d "$tmp"
22037 tmp=./conf$$-$RANDOM
22038 (umask 077 && mkdir "$tmp")
22041 echo "$me: cannot create a temporary directory in ." >&2
22042 { (exit 1); exit 1; }
22046 # Set up the sed scripts for CONFIG_FILES section.
22049 # No need to generate the scripts if there are no CONFIG_FILES.
22050 # This happens for instance when ./config.status config.h
22051 if test -n "$CONFIG_FILES"; then
22058 for ac_last_try in false false false false false :; do
22059 cat >conf$$subs.sed <<_ACEOF
22060 SHELL!$SHELL$ac_delim
22061 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22062 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22063 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22064 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22065 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22066 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22067 exec_prefix!$exec_prefix$ac_delim
22068 prefix!$prefix$ac_delim
22069 program_transform_name!$program_transform_name$ac_delim
22070 bindir!$bindir$ac_delim
22071 sbindir!$sbindir$ac_delim
22072 libexecdir!$libexecdir$ac_delim
22073 datarootdir!$datarootdir$ac_delim
22074 datadir!$datadir$ac_delim
22075 sysconfdir!$sysconfdir$ac_delim
22076 sharedstatedir!$sharedstatedir$ac_delim
22077 localstatedir!$localstatedir$ac_delim
22078 includedir!$includedir$ac_delim
22079 oldincludedir!$oldincludedir$ac_delim
22080 docdir!$docdir$ac_delim
22081 infodir!$infodir$ac_delim
22082 htmldir!$htmldir$ac_delim
22083 dvidir!$dvidir$ac_delim
22084 pdfdir!$pdfdir$ac_delim
22085 psdir!$psdir$ac_delim
22086 libdir!$libdir$ac_delim
22087 localedir!$localedir$ac_delim
22088 mandir!$mandir$ac_delim
22089 DEFS!$DEFS$ac_delim
22090 ECHO_C!$ECHO_C$ac_delim
22091 ECHO_N!$ECHO_N$ac_delim
22092 ECHO_T!$ECHO_T$ac_delim
22093 LIBS!$LIBS$ac_delim
22094 build_alias!$build_alias$ac_delim
22095 host_alias!$host_alias$ac_delim
22096 target_alias!$target_alias$ac_delim
22097 build!$build$ac_delim
22098 build_cpu!$build_cpu$ac_delim
22099 build_vendor!$build_vendor$ac_delim
22100 build_os!$build_os$ac_delim
22101 host!$host$ac_delim
22102 host_cpu!$host_cpu$ac_delim
22103 host_vendor!$host_vendor$ac_delim
22104 host_os!$host_os$ac_delim
22105 target!$target$ac_delim
22106 target_cpu!$target_cpu$ac_delim
22107 target_vendor!$target_vendor$ac_delim
22108 target_os!$target_os$ac_delim
22109 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22110 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22111 INSTALL_DATA!$INSTALL_DATA$ac_delim
22112 am__isrc!$am__isrc$ac_delim
22113 CYGPATH_W!$CYGPATH_W$ac_delim
22114 PACKAGE!$PACKAGE$ac_delim
22115 VERSION!$VERSION$ac_delim
22116 ACLOCAL!$ACLOCAL$ac_delim
22117 AUTOCONF!$AUTOCONF$ac_delim
22118 AUTOMAKE!$AUTOMAKE$ac_delim
22119 AUTOHEADER!$AUTOHEADER$ac_delim
22120 MAKEINFO!$MAKEINFO$ac_delim
22121 install_sh!$install_sh$ac_delim
22122 STRIP!$STRIP$ac_delim
22123 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22124 mkdir_p!$mkdir_p$ac_delim
22126 SET_MAKE!$SET_MAKE$ac_delim
22127 am__leading_dot!$am__leading_dot$ac_delim
22128 AMTAR!$AMTAR$ac_delim
22129 am__tar!$am__tar$ac_delim
22130 am__untar!$am__untar$ac_delim
22132 CFLAGS!$CFLAGS$ac_delim
22133 LDFLAGS!$LDFLAGS$ac_delim
22134 CPPFLAGS!$CPPFLAGS$ac_delim
22135 ac_ct_CC!$ac_ct_CC$ac_delim
22136 EXEEXT!$EXEEXT$ac_delim
22137 OBJEXT!$OBJEXT$ac_delim
22138 DEPDIR!$DEPDIR$ac_delim
22139 am__include!$am__include$ac_delim
22140 am__quote!$am__quote$ac_delim
22141 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22142 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22143 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22144 CCDEPMODE!$CCDEPMODE$ac_delim
22145 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22146 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22147 GREP!$GREP$ac_delim
22148 EGREP!$EGREP$ac_delim
22149 LN_S!$LN_S$ac_delim
22150 ECHO!$ECHO$ac_delim
22152 RANLIB!$RANLIB$ac_delim
22155 CXXFLAGS!$CXXFLAGS$ac_delim
22156 ac_ct_CXX!$ac_ct_CXX$ac_delim
22159 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22161 elif $ac_last_try; then
22162 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22163 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22164 { (exit 1); exit 1; }; }
22166 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22170 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22171 if test -n "$ac_eof"; then
22172 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22173 ac_eof=`expr $ac_eof + 1`
22176 cat >>$CONFIG_STATUS <<_ACEOF
22177 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22178 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22181 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22182 s/^/s,@/; s/!/@,|#_!!_#|/
22185 s/'"$ac_delim"'$/,g/; t
22187 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22188 ' >>$CONFIG_STATUS <conf$$subs.sed
22189 rm -f conf$$subs.sed
22190 cat >>$CONFIG_STATUS <<_ACEOF
22196 for ac_last_try in false false false false false :; do
22197 cat >conf$$subs.sed <<_ACEOF
22198 CXXDEPMODE!$CXXDEPMODE$ac_delim
22199 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22200 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22201 CXXCPP!$CXXCPP$ac_delim
22203 FFLAGS!$FFLAGS$ac_delim
22204 ac_ct_F77!$ac_ct_F77$ac_delim
22205 LIBTOOL!$LIBTOOL$ac_delim
22206 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22207 APXS2!$APXS2$ac_delim
22208 APXS!$APXS$ac_delim
22209 WAND_CONFIG!$WAND_CONFIG$ac_delim
22210 APR_CONFIG!$APR_CONFIG$ac_delim
22211 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22212 APU_CONFIG!$APU_CONFIG$ac_delim
22213 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22214 PCRE_CONFIG!$PCRE_CONFIG$ac_delim
22215 PCRE_1_CONFIG!$PCRE_1_CONFIG$ac_delim
22216 LIBOBJS!$LIBOBJS$ac_delim
22217 with_apache_header!$with_apache_header$ac_delim
22218 QDEFS!$QDEFS$ac_delim
22219 DDEFS!$DDEFS$ac_delim
22220 LTLIBOBJS!$LTLIBOBJS$ac_delim
22223 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
22225 elif $ac_last_try; then
22226 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22227 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22228 { (exit 1); exit 1; }; }
22230 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22234 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22235 if test -n "$ac_eof"; then
22236 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22237 ac_eof=`expr $ac_eof + 1`
22240 cat >>$CONFIG_STATUS <<_ACEOF
22241 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22245 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22246 s/^/s,@/; s/!/@,|#_!!_#|/
22249 s/'"$ac_delim"'$/,g/; t
22251 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22252 ' >>$CONFIG_STATUS <conf$$subs.sed
22253 rm -f conf$$subs.sed
22254 cat >>$CONFIG_STATUS <<_ACEOF
22261 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22262 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22263 # trailing colons and then remove the whole line if VPATH becomes empty
22264 # (actually we leave an empty line to preserve line numbers).
22265 if test "x$srcdir" = x.; then
22266 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22267 s/:*\$(srcdir):*/:/
22268 s/:*\${srcdir}:*/:/
22270 s/^\([^=]*=[ ]*\):*/\1/
22276 cat >>$CONFIG_STATUS <<\_ACEOF
22277 fi # test -n "$CONFIG_FILES"
22280 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22283 :[FHLC]) ac_mode=$ac_tag; continue;;
22285 case $ac_mode$ac_tag in
22287 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22288 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22289 { (exit 1); exit 1; }; };;
22290 :[FH]-) ac_tag=-:-;;
22291 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22308 -) ac_f="$tmp/stdin";;
22309 *) # Look for the file first in the build tree, then in the source tree
22310 # (if the path is not absolute). The absolute path cannot be DOS-style,
22311 # because $ac_f cannot contain `:'.
22315 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22317 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22318 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22319 { (exit 1); exit 1; }; };;
22321 ac_file_inputs="$ac_file_inputs $ac_f"
22324 # Let's still pretend it is `configure' which instantiates (i.e., don't
22325 # use $as_me), people would be surprised to read:
22326 # /* config.h. Generated by config.status. */
22327 configure_input="Generated from "`IFS=:
22328 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22329 if test x"$ac_file" != x-; then
22330 configure_input="$ac_file. $configure_input"
22331 { echo "$as_me:$LINENO: creating $ac_file" >&5
22332 echo "$as_me: creating $ac_file" >&6;}
22336 *:-:* | *:-) cat >"$tmp/stdin";;
22341 ac_dir=`$as_dirname -- "$ac_file" ||
22342 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22343 X"$ac_file" : 'X\(//\)[^/]' \| \
22344 X"$ac_file" : 'X\(//\)$' \| \
22345 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22351 /^X\(\/\/\)[^/].*/{
22366 -*) as_dir=./$as_dir;;
22368 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22372 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22373 *) as_qdir=$as_dir;;
22375 as_dirs="'$as_qdir' $as_dirs"
22376 as_dir=`$as_dirname -- "$as_dir" ||
22377 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22378 X"$as_dir" : 'X\(//\)[^/]' \| \
22379 X"$as_dir" : 'X\(//\)$' \| \
22380 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22386 /^X\(\/\/\)[^/].*/{
22399 test -d "$as_dir" && break
22401 test -z "$as_dirs" || eval "mkdir $as_dirs"
22402 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22403 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22404 { (exit 1); exit 1; }; }; }
22408 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22410 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22411 # A ".." for each directory in $ac_dir_suffix.
22412 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22413 case $ac_top_builddir_sub in
22414 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22415 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22418 ac_abs_top_builddir=$ac_pwd
22419 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22420 # for backward compatibility:
22421 ac_top_builddir=$ac_top_build_prefix
22424 .) # We are building in place.
22426 ac_top_srcdir=$ac_top_builddir_sub
22427 ac_abs_top_srcdir=$ac_pwd ;;
22428 [\\/]* | ?:[\\/]* ) # Absolute name.
22429 ac_srcdir=$srcdir$ac_dir_suffix;
22430 ac_top_srcdir=$srcdir
22431 ac_abs_top_srcdir=$srcdir ;;
22432 *) # Relative name.
22433 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22434 ac_top_srcdir=$ac_top_build_prefix$srcdir
22435 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22437 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22447 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22448 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22450 ac_MKDIR_P=$MKDIR_P
22452 [\\/$]* | ?:[\\/]* ) ;;
22453 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22457 cat >>$CONFIG_STATUS <<\_ACEOF
22458 # If the template does not know about datarootdir, expand it.
22459 # FIXME: This hack should be removed a few years after 2.60.
22460 ac_datarootdir_hack=; ac_datarootdir_seen=
22462 case `sed -n '/datarootdir/ {
22471 ' $ac_file_inputs` in
22472 *datarootdir*) ac_datarootdir_seen=yes;;
22473 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22474 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22475 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22477 cat >>$CONFIG_STATUS <<_ACEOF
22478 ac_datarootdir_hack='
22479 s&@datadir@&$datadir&g
22480 s&@docdir@&$docdir&g
22481 s&@infodir@&$infodir&g
22482 s&@localedir@&$localedir&g
22483 s&@mandir@&$mandir&g
22484 s&\\\${datarootdir}&$datarootdir&g' ;;
22488 # Neutralize VPATH when `$srcdir' = `.'.
22489 # Shell code in configure.ac might set extrasub.
22490 # FIXME: do we really want to maintain this feature?
22491 cat >>$CONFIG_STATUS <<_ACEOF
22495 cat >>$CONFIG_STATUS <<\_ACEOF
22497 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22498 s&@configure_input@&$configure_input&;t t
22499 s&@top_builddir@&$ac_top_builddir_sub&;t t
22500 s&@srcdir@&$ac_srcdir&;t t
22501 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22502 s&@top_srcdir@&$ac_top_srcdir&;t t
22503 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22504 s&@builddir@&$ac_builddir&;t t
22505 s&@abs_builddir@&$ac_abs_builddir&;t t
22506 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22507 s&@INSTALL@&$ac_INSTALL&;t t
22508 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22509 $ac_datarootdir_hack
22510 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22512 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22513 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22514 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22515 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22516 which seems to be undefined. Please make sure it is defined." >&5
22517 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22518 which seems to be undefined. Please make sure it is defined." >&2;}
22522 -) cat "$tmp/out"; rm -f "$tmp/out";;
22523 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22532 # Transform confdefs.h into a sed script `conftest.defines', that
22533 # substitutes the proper values into config.h.in to produce config.h.
22534 rm -f conftest.defines conftest.tail
22535 # First, append a space to every undef/define line, to ease matching.
22536 echo 's/$/ /' >conftest.defines
22537 # Then, protect against being on the right side of a sed subst, or in
22538 # an unquoted here document, in config.status. If some macros were
22539 # called several times there might be several #defines for the same
22540 # symbol, which is useless. But do not sort them, since the last
22541 # AC_DEFINE must be honored.
22542 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22543 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22544 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22545 # PARAMS is the parameter list in the macro definition--in most cases, it's
22546 # just an empty string.
22547 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22548 ac_dB='\\)[ (].*,\\1define\\2'
22556 s/^[ ]*#[ ]*define[ ][ ]*//
22561 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22562 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22563 ' >>conftest.defines
22565 # Remove the space that was appended to ease matching.
22566 # Then replace #undef with comments. This is necessary, for
22567 # example, in the case of _POSIX_SOURCE, which is predefined and required
22568 # on some systems where configure will not decide to define it.
22569 # (The regexp can be short, since the line contains either #define or #undef.)
22571 s,^[ #]*u.*,/* & */,' >>conftest.defines
22573 # Break up conftest.defines:
22574 ac_max_sed_lines=50
22576 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22577 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22578 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22580 ac_in='$ac_file_inputs'
22581 ac_out='"$tmp/out1"'
22582 ac_nxt='"$tmp/out2"'
22586 # Write a here document:
22587 cat >>$CONFIG_STATUS <<_ACEOF
22588 # First, check the format of the line:
22589 cat >"\$tmp/defines.sed" <<\\CEOF
22590 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22591 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22595 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22597 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22598 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22599 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22600 grep . conftest.tail >/dev/null || break
22601 rm -f conftest.defines
22602 mv conftest.tail conftest.defines
22604 rm -f conftest.defines conftest.tail
22606 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22607 cat >>$CONFIG_STATUS <<\_ACEOF
22608 if test x"$ac_file" != x-; then
22609 echo "/* $configure_input */" >"$tmp/config.h"
22610 cat "$ac_result" >>"$tmp/config.h"
22611 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22612 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22613 echo "$as_me: $ac_file is unchanged" >&6;}
22616 mv "$tmp/config.h" $ac_file
22619 echo "/* $configure_input */"
22623 # Compute $ac_file's index in $config_headers.
22625 for _am_header in $config_headers :; do
22626 case $_am_header in
22627 $ac_file | $ac_file:* )
22630 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22633 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22634 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22635 X$ac_file : 'X\(//\)[^/]' \| \
22636 X$ac_file : 'X\(//\)$' \| \
22637 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22639 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22643 /^X\(\/\/\)[^/].*/{
22655 s/.*/./; q'`/stamp-h$_am_stamp_count
22658 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22659 echo "$as_me: executing $ac_file commands" >&6;}
22664 case $ac_file$ac_mode in
22665 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22666 # Strip MF so we end up with the name of the file.
22667 mf=`echo "$mf" | sed -e 's/:.*$//'`
22668 # Check whether this is an Automake generated Makefile or not.
22669 # We used to match only the files named `Makefile.in', but
22670 # some people rename them; so instead we look at the file content.
22671 # Grep'ing the first line is not enough: some people post-process
22672 # each Makefile.in and add a new line on top of each file to say so.
22673 # Grep'ing the whole file is not good either: AIX grep has a line
22674 # limit of 2048, but all sed's we know have understand at least 4000.
22675 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22676 dirpart=`$as_dirname -- "$mf" ||
22677 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22678 X"$mf" : 'X\(//\)[^/]' \| \
22679 X"$mf" : 'X\(//\)$' \| \
22680 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22686 /^X\(\/\/\)[^/].*/{
22702 # Extract the definition of DEPDIR, am__include, and am__quote
22703 # from the Makefile without running `make'.
22704 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22705 test -z "$DEPDIR" && continue
22706 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22707 test -z "am__include" && continue
22708 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22709 # When using ansi2knr, U may be empty or an underscore; expand it
22710 U=`sed -n 's/^U = //p' < "$mf"`
22711 # Find all dependency output files, they are included files with
22712 # $(DEPDIR) in their names. We invoke sed twice because it is the
22713 # simplest approach to changing $(DEPDIR) to its actual value in the
22715 for file in `sed -n "
22716 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22717 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22718 # Make sure the directory exists.
22719 test -f "$dirpart/$file" && continue
22720 fdir=`$as_dirname -- "$file" ||
22721 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22722 X"$file" : 'X\(//\)[^/]' \| \
22723 X"$file" : 'X\(//\)$' \| \
22724 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22730 /^X\(\/\/\)[^/].*/{
22743 { as_dir=$dirpart/$fdir
22745 -*) as_dir=./$as_dir;;
22747 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22751 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22752 *) as_qdir=$as_dir;;
22754 as_dirs="'$as_qdir' $as_dirs"
22755 as_dir=`$as_dirname -- "$as_dir" ||
22756 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22757 X"$as_dir" : 'X\(//\)[^/]' \| \
22758 X"$as_dir" : 'X\(//\)$' \| \
22759 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22761 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22765 /^X\(\/\/\)[^/].*/{
22778 test -d "$as_dir" && break
22780 test -z "$as_dirs" || eval "mkdir $as_dirs"
22781 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22782 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22783 { (exit 1); exit 1; }; }; }
22784 # echo "creating $dirpart/$file"
22785 echo '# dummy' > "$dirpart/$file"
22794 { (exit 0); exit 0; }
22796 chmod +x $CONFIG_STATUS
22797 ac_clean_files=$ac_clean_files_save
22800 # configure is writing to config.log, and then calls config.status.
22801 # config.status does its own redirection, appending to config.log.
22802 # Unfortunately, on DOS this fails, as config.log is still kept open
22803 # by configure, so config.status won't be able to write to it; its
22804 # output is simply discarded. So we exec the FD to /dev/null,
22805 # effectively closing config.log, so it can be properly (re)opened and
22806 # appended to by config.status. When coming back to configure, we
22807 # need to make the FD available again.
22808 if test "$no_create" != yes; then
22810 ac_config_status_args=
22811 test "$silent" = yes &&
22812 ac_config_status_args="$ac_config_status_args --quiet"
22814 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22816 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22817 # would make configure fail if this is the last instruction.
22818 $ac_cs_success || { (exit 1); exit 1; }