2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for mod_chxj 0.8.3-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.8.3-1'
730 PACKAGE_STRING='mod_chxj 0.8.3-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
832 INSTALL_STRIP_PROGRAM
886 ac_precious_vars='build_alias
903 # Initialize some variables set by options.
905 ac_init_version=false
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
915 program_transform_name=s,x,x,
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
940 infodir='${datarootdir}/info'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
961 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 # Accept the important Cygnus configure options, so we can diagnose typos.
967 case $ac_dashdash$ac_option in
971 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
976 -build | --build | --buil | --bui | --bu)
977 ac_prev=build_alias ;;
978 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
979 build_alias=$ac_optarg ;;
981 -cache-file | --cache-file | --cache-fil | --cache-fi \
982 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
983 ac_prev=cache_file ;;
984 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
985 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
986 cache_file=$ac_optarg ;;
989 cache_file=config.cache ;;
991 -datadir | --datadir | --datadi | --datad)
993 -datadir=* | --datadir=* | --datadi=* | --datad=*)
994 datadir=$ac_optarg ;;
996 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
997 | --dataroo | --dataro | --datar)
998 ac_prev=datarootdir ;;
999 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1000 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1001 datarootdir=$ac_optarg ;;
1003 -disable-* | --disable-*)
1004 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1007 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1008 { (exit 1); exit 1; }; }
1009 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1010 eval enable_$ac_feature=no ;;
1012 -docdir | --docdir | --docdi | --doc | --do)
1014 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1015 docdir=$ac_optarg ;;
1017 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1019 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1020 dvidir=$ac_optarg ;;
1022 -enable-* | --enable-*)
1023 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1026 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1027 { (exit 1); exit 1; }; }
1028 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1029 eval enable_$ac_feature=\$ac_optarg ;;
1031 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1032 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1033 | --exec | --exe | --ex)
1034 ac_prev=exec_prefix ;;
1035 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1036 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1037 | --exec=* | --exe=* | --ex=*)
1038 exec_prefix=$ac_optarg ;;
1040 -gas | --gas | --ga | --g)
1041 # Obsolete; use --with-gas.
1044 -help | --help | --hel | --he | -h)
1045 ac_init_help=long ;;
1046 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1047 ac_init_help=recursive ;;
1048 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1049 ac_init_help=short ;;
1051 -host | --host | --hos | --ho)
1052 ac_prev=host_alias ;;
1053 -host=* | --host=* | --hos=* | --ho=*)
1054 host_alias=$ac_optarg ;;
1056 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1058 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1060 htmldir=$ac_optarg ;;
1062 -includedir | --includedir | --includedi | --included | --include \
1063 | --includ | --inclu | --incl | --inc)
1064 ac_prev=includedir ;;
1065 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1066 | --includ=* | --inclu=* | --incl=* | --inc=*)
1067 includedir=$ac_optarg ;;
1069 -infodir | --infodir | --infodi | --infod | --info | --inf)
1071 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1072 infodir=$ac_optarg ;;
1074 -libdir | --libdir | --libdi | --libd)
1076 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1077 libdir=$ac_optarg ;;
1079 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1080 | --libexe | --libex | --libe)
1081 ac_prev=libexecdir ;;
1082 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1083 | --libexe=* | --libex=* | --libe=*)
1084 libexecdir=$ac_optarg ;;
1086 -localedir | --localedir | --localedi | --localed | --locale)
1087 ac_prev=localedir ;;
1088 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1089 localedir=$ac_optarg ;;
1091 -localstatedir | --localstatedir | --localstatedi | --localstated \
1092 | --localstate | --localstat | --localsta | --localst | --locals)
1093 ac_prev=localstatedir ;;
1094 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1095 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1096 localstatedir=$ac_optarg ;;
1098 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1100 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1101 mandir=$ac_optarg ;;
1103 -nfp | --nfp | --nf)
1104 # Obsolete; use --without-fp.
1107 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1108 | --no-cr | --no-c | -n)
1111 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1112 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1115 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1116 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1117 | --oldin | --oldi | --old | --ol | --o)
1118 ac_prev=oldincludedir ;;
1119 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1120 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1121 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1122 oldincludedir=$ac_optarg ;;
1124 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1126 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1127 prefix=$ac_optarg ;;
1129 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1130 | --program-pre | --program-pr | --program-p)
1131 ac_prev=program_prefix ;;
1132 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1133 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1134 program_prefix=$ac_optarg ;;
1136 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1137 | --program-suf | --program-su | --program-s)
1138 ac_prev=program_suffix ;;
1139 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1140 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1141 program_suffix=$ac_optarg ;;
1143 -program-transform-name | --program-transform-name \
1144 | --program-transform-nam | --program-transform-na \
1145 | --program-transform-n | --program-transform- \
1146 | --program-transform | --program-transfor \
1147 | --program-transfo | --program-transf \
1148 | --program-trans | --program-tran \
1149 | --progr-tra | --program-tr | --program-t)
1150 ac_prev=program_transform_name ;;
1151 -program-transform-name=* | --program-transform-name=* \
1152 | --program-transform-nam=* | --program-transform-na=* \
1153 | --program-transform-n=* | --program-transform-=* \
1154 | --program-transform=* | --program-transfor=* \
1155 | --program-transfo=* | --program-transf=* \
1156 | --program-trans=* | --program-tran=* \
1157 | --progr-tra=* | --program-tr=* | --program-t=*)
1158 program_transform_name=$ac_optarg ;;
1160 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1162 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1163 pdfdir=$ac_optarg ;;
1165 -psdir | --psdir | --psdi | --psd | --ps)
1167 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1171 | -silent | --silent | --silen | --sile | --sil)
1174 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1176 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1178 sbindir=$ac_optarg ;;
1180 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1181 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1182 | --sharedst | --shareds | --shared | --share | --shar \
1184 ac_prev=sharedstatedir ;;
1185 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1186 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1187 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1189 sharedstatedir=$ac_optarg ;;
1191 -site | --site | --sit)
1193 -site=* | --site=* | --sit=*)
1196 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1198 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1199 srcdir=$ac_optarg ;;
1201 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1202 | --syscon | --sysco | --sysc | --sys | --sy)
1203 ac_prev=sysconfdir ;;
1204 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1205 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1206 sysconfdir=$ac_optarg ;;
1208 -target | --target | --targe | --targ | --tar | --ta | --t)
1209 ac_prev=target_alias ;;
1210 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1211 target_alias=$ac_optarg ;;
1213 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1216 -version | --version | --versio | --versi | --vers | -V)
1217 ac_init_version=: ;;
1220 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 { echo "$as_me: error: invalid package name: $ac_package" >&2
1224 { (exit 1); exit 1; }; }
1225 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1226 eval with_$ac_package=\$ac_optarg ;;
1228 -without-* | --without-*)
1229 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 { echo "$as_me: error: invalid package name: $ac_package" >&2
1233 { (exit 1); exit 1; }; }
1234 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1235 eval with_$ac_package=no ;;
1238 # Obsolete; use --with-x.
1241 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1242 | --x-incl | --x-inc | --x-in | --x-i)
1243 ac_prev=x_includes ;;
1244 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1245 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1246 x_includes=$ac_optarg ;;
1248 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1249 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1250 ac_prev=x_libraries ;;
1251 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1252 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1253 x_libraries=$ac_optarg ;;
1255 -*) { echo "$as_me: error: unrecognized option: $ac_option
1256 Try \`$0 --help' for more information." >&2
1257 { (exit 1); exit 1; }; }
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1264 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1265 { (exit 1); exit 1; }; }
1266 eval $ac_envvar=\$ac_optarg
1267 export $ac_envvar ;;
1270 # FIXME: should be removed in autoconf 3.0.
1271 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1272 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1273 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1274 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280 if test -n "$ac_prev"; then
1281 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1282 { echo "$as_me: error: missing argument to $ac_option" >&2
1283 { (exit 1); exit 1; }; }
1286 # Be sure to have absolute directory names.
1287 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1288 datadir sysconfdir sharedstatedir localstatedir includedir \
1289 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1290 libdir localedir mandir
1292 eval ac_val=\$$ac_var
1294 [\\/$]* | ?:[\\/]* ) continue;;
1295 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1298 { (exit 1); exit 1; }; }
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1306 target=$target_alias
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1313 If a cross compiler is detected then cross compile mode will be used." >&2
1314 elif test "x$build_alias" != "x$host_alias"; then
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322 test "$silent" = yes && exec 6>/dev/null
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328 { echo "$as_me: error: Working directory cannot be determined" >&2
1329 { (exit 1); exit 1; }; }
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 { echo "$as_me: error: pwd does not report name of working directory" >&2
1332 { (exit 1); exit 1; }; }
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir=`$as_dirname -- "$0" ||
1340 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$0" : 'X\(//\)[^/]' \| \
1342 X"$0" : 'X\(//\)$' \| \
1343 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1367 ac_srcdir_defaulted=no
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1371 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1372 { (exit 1); exit 1; }; }
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1377 { (exit 1); exit 1; }; }
1379 # When building in place, set srcdir=.
1380 if test "$ac_abs_confdir" = "$ac_pwd"; then
1383 # Remove unnecessary trailing slashes from srcdir.
1384 # Double slashes in file names in object file debugging info
1385 # mess up M-x gdb in Emacs.
1387 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1389 for ac_var in $ac_precious_vars; do
1390 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1391 eval ac_env_${ac_var}_value=\$${ac_var}
1392 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1393 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 # Report the --help message.
1399 if test "$ac_init_help" = "long"; then
1400 # Omit some internal or obsolete options to make the list less imposing.
1401 # This message is too long to be a string in the A/UX 3.1 sh.
1403 \`configure' configures mod_chxj 0.8.3-1 to adapt to many kinds of systems.
1405 Usage: $0 [OPTION]... [VAR=VALUE]...
1407 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1408 VAR=VALUE. See below for descriptions of some of the useful variables.
1410 Defaults for the options are specified in brackets.
1413 -h, --help display this help and exit
1414 --help=short display options specific to this package
1415 --help=recursive display the short help of all the included packages
1416 -V, --version display version information and exit
1417 -q, --quiet, --silent do not print \`checking...' messages
1418 --cache-file=FILE cache test results in FILE [disabled]
1419 -C, --config-cache alias for \`--cache-file=config.cache'
1420 -n, --no-create do not create output files
1421 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1423 Installation directories:
1424 --prefix=PREFIX install architecture-independent files in PREFIX
1425 [$ac_default_prefix]
1426 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1429 By default, \`make install' will install all the files in
1430 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1431 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1432 for instance \`--prefix=\$HOME'.
1434 For better control, use the options below.
1436 Fine tuning of the installation directories:
1437 --bindir=DIR user executables [EPREFIX/bin]
1438 --sbindir=DIR system admin executables [EPREFIX/sbin]
1439 --libexecdir=DIR program executables [EPREFIX/libexec]
1440 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1441 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1442 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/mod_chxj]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 --target=TARGET configure for building compilers for TARGET [HOST]
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of mod_chxj 0.8.3-1:";;
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --disable-dependency-tracking speeds up one-time build
1482 --enable-dependency-tracking do not reject slow dependency extractors
1483 --enable-shared[=PKGS] build shared libraries [default=yes]
1484 --enable-static[=PKGS] build static libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --disable-libtool-lock avoid locking (might break parallel builds)
1488 --enable-img-conv-f Please specify it when you change the file name of the image being written in the
1489 source by the automatic operation.
1490 --enable-dump-log When the log of conversion is output, it specifies it with the output file.
1493 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1494 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1495 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1496 --with-pic try to use only PIC/non-PIC objects [default=use
1498 --with-tags[=TAGS] include additional configurations [automatic]
1499 --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1500 --with-apxs=ARG Path of apxs program file.
1501 --with-apr-config=ARG Path of apr-config program file.
1502 --with-apu-config=ARG Path of apu-config program file.
1503 --with-iconv=ARG specify the place of the libiconv directory.
1504 --with-iconv_hook=ARG specify the place of the libiconv_hook directory.
1506 Some influential environment variables:
1507 CC C compiler command
1508 CFLAGS C compiler flags
1509 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1510 nonstandard directory <lib dir>
1511 LIBS libraries to pass to the linker, e.g. -l<library>
1512 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1513 you have headers in a nonstandard directory <include dir>
1515 CXX C++ compiler command
1516 CXXFLAGS C++ compiler flags
1517 CXXCPP C++ preprocessor
1518 F77 Fortran 77 compiler command
1519 FFLAGS Fortran 77 compiler flags
1521 Use these variables to override the choices made by `configure' or to help
1522 it to find libraries and programs with nonstandard names/locations.
1528 if test "$ac_init_help" = "recursive"; then
1529 # If there are subdirs, report their specific --help.
1530 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1531 test -d "$ac_dir" || continue
1535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1538 # A ".." for each directory in $ac_dir_suffix.
1539 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1540 case $ac_top_builddir_sub in
1541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1545 ac_abs_top_builddir=$ac_pwd
1546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1547 # for backward compatibility:
1548 ac_top_builddir=$ac_top_build_prefix
1551 .) # We are building in place.
1553 ac_top_srcdir=$ac_top_builddir_sub
1554 ac_abs_top_srcdir=$ac_pwd ;;
1555 [\\/]* | ?:[\\/]* ) # Absolute name.
1556 ac_srcdir=$srcdir$ac_dir_suffix;
1557 ac_top_srcdir=$srcdir
1558 ac_abs_top_srcdir=$srcdir ;;
1560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1561 ac_top_srcdir=$ac_top_build_prefix$srcdir
1562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1566 cd "$ac_dir" || { ac_status=$?; continue; }
1567 # Check for guested configure.
1568 if test -f "$ac_srcdir/configure.gnu"; then
1570 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1571 elif test -f "$ac_srcdir/configure"; then
1573 $SHELL "$ac_srcdir/configure" --help=recursive
1575 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1577 cd "$ac_pwd" || { ac_status=$?; break; }
1581 test -n "$ac_init_help" && exit $ac_status
1582 if $ac_init_version; then
1584 mod_chxj configure 0.8.3-1
1585 generated by GNU Autoconf 2.61
1587 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1588 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1589 This configure script is free software; the Free Software Foundation
1590 gives unlimited permission to copy, distribute and modify it.
1594 cat >config.log <<_ACEOF
1595 This file contains any messages produced by compilers while
1596 running configure, to aid debugging if configure makes a mistake.
1598 It was created by mod_chxj $as_me 0.8.3-1, which was
1599 generated by GNU Autoconf 2.61. Invocation command line was
1611 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1612 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1613 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1614 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1615 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1617 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1618 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1620 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1621 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1622 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1623 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1624 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1625 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1626 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1634 test -z "$as_dir" && as_dir=.
1635 echo "PATH: $as_dir"
1651 # Keep a trace of the command line.
1652 # Strip out --no-create and --no-recursion so they do not pile up.
1653 # Strip out --silent because we don't want to record it for future runs.
1654 # Also quote any args containing shell meta-characters.
1655 # Make two passes to allow for proper duplicate-argument suppression.
1659 ac_must_keep_next=false
1665 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1666 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1667 | -silent | --silent | --silen | --sile | --sil)
1670 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1673 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1675 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1676 if test $ac_must_keep_next = true; then
1677 ac_must_keep_next=false # Got value, back to normal.
1680 *=* | --config-cache | -C | -disable-* | --disable-* \
1681 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1682 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1683 | -with-* | --with-* | -without-* | --without-* | --x)
1684 case "$ac_configure_args0 " in
1685 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1688 -* ) ac_must_keep_next=true ;;
1691 ac_configure_args="$ac_configure_args '$ac_arg'"
1696 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1697 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1699 # When interrupted or exit'd, cleanup temporary files, and complete
1700 # config.log. We remove comments because anyway the quotes in there
1701 # would cause problems or look ugly.
1702 # WARNING: Use '\'' to represent an apostrophe within the trap.
1703 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1704 trap 'exit_status=$?
1705 # Save into config.log some information that might help in debugging.
1710 ## ---------------- ##
1711 ## Cache variables. ##
1712 ## ---------------- ##
1715 # The following way of writing the cache mishandles newlines in values,
1717 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1718 eval ac_val=\$$ac_var
1722 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1723 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1726 _ | IFS | as_nl) ;; #(
1727 *) $as_unset $ac_var ;;
1732 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1733 *${as_nl}ac_space=\ *)
1735 "s/'\''/'\''\\\\'\'''\''/g;
1736 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1739 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1747 ## ----------------- ##
1748 ## Output variables. ##
1749 ## ----------------- ##
1752 for ac_var in $ac_subst_vars
1754 eval ac_val=\$$ac_var
1756 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1758 echo "$ac_var='\''$ac_val'\''"
1762 if test -n "$ac_subst_files"; then
1764 ## ------------------- ##
1765 ## File substitutions. ##
1766 ## ------------------- ##
1769 for ac_var in $ac_subst_files
1771 eval ac_val=\$$ac_var
1773 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1775 echo "$ac_var='\''$ac_val'\''"
1780 if test -s confdefs.h; then
1790 test "$ac_signal" != 0 &&
1791 echo "$as_me: caught signal $ac_signal"
1792 echo "$as_me: exit $exit_status"
1794 rm -f core *.core core.conftest.* &&
1795 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1798 for ac_signal in 1 2 13 15; do
1799 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1803 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1804 rm -f -r conftest* confdefs.h
1806 # Predefined preprocessor variables.
1808 cat >>confdefs.h <<_ACEOF
1809 #define PACKAGE_NAME "$PACKAGE_NAME"
1813 cat >>confdefs.h <<_ACEOF
1814 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1818 cat >>confdefs.h <<_ACEOF
1819 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1823 cat >>confdefs.h <<_ACEOF
1824 #define PACKAGE_STRING "$PACKAGE_STRING"
1828 cat >>confdefs.h <<_ACEOF
1829 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1833 # Let the site file select an alternate cache file if it wants to.
1834 # Prefer explicitly selected file to automatically selected ones.
1835 if test -n "$CONFIG_SITE"; then
1836 set x "$CONFIG_SITE"
1837 elif test "x$prefix" != xNONE; then
1838 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1840 set x "$ac_default_prefix/share/config.site" \
1841 "$ac_default_prefix/etc/config.site"
1846 if test -r "$ac_site_file"; then
1847 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1848 echo "$as_me: loading site script $ac_site_file" >&6;}
1849 sed 's/^/| /' "$ac_site_file" >&5
1854 if test -r "$cache_file"; then
1855 # Some versions of bash will fail to source /dev/null (special
1856 # files actually), so we avoid doing that.
1857 if test -f "$cache_file"; then
1858 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1859 echo "$as_me: loading cache $cache_file" >&6;}
1861 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1862 *) . "./$cache_file";;
1866 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1867 echo "$as_me: creating cache $cache_file" >&6;}
1871 # Check that the precious variables saved in the cache have kept the same
1873 ac_cache_corrupted=false
1874 for ac_var in $ac_precious_vars; do
1875 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1876 eval ac_new_set=\$ac_env_${ac_var}_set
1877 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1878 eval ac_new_val=\$ac_env_${ac_var}_value
1879 case $ac_old_set,$ac_new_set in
1881 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1882 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1883 ac_cache_corrupted=: ;;
1885 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1886 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1887 ac_cache_corrupted=: ;;
1890 if test "x$ac_old_val" != "x$ac_new_val"; then
1891 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1892 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1893 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1894 echo "$as_me: former value: $ac_old_val" >&2;}
1895 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1896 echo "$as_me: current value: $ac_new_val" >&2;}
1897 ac_cache_corrupted=:
1900 # Pass precious variables to config.status.
1901 if test "$ac_new_set" = set; then
1903 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1904 *) ac_arg=$ac_var=$ac_new_val ;;
1906 case " $ac_configure_args " in
1907 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1908 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1912 if $ac_cache_corrupted; then
1913 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1914 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1915 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1916 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1917 { (exit 1); exit 1; }; }
1945 ac_cpp='$CPP $CPPFLAGS'
1946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1954 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1955 if test -f "$ac_dir/install-sh"; then
1957 ac_install_sh="$ac_aux_dir/install-sh -c"
1959 elif test -f "$ac_dir/install.sh"; then
1961 ac_install_sh="$ac_aux_dir/install.sh -c"
1963 elif test -f "$ac_dir/shtool"; then
1965 ac_install_sh="$ac_aux_dir/shtool install -c"
1969 if test -z "$ac_aux_dir"; then
1970 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1971 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1972 { (exit 1); exit 1; }; }
1975 # These three variables are undocumented and unsupported,
1976 # and are intended to be withdrawn in a future Autoconf release.
1977 # They can cause serious problems if a builder's source tree is in a directory
1978 # whose full name contains unusual characters.
1979 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1980 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1981 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1984 # Make sure we can run config.sub.
1985 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1986 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1987 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1988 { (exit 1); exit 1; }; }
1990 { echo "$as_me:$LINENO: checking build system type" >&5
1991 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1992 if test "${ac_cv_build+set}" = set; then
1993 echo $ECHO_N "(cached) $ECHO_C" >&6
1995 ac_build_alias=$build_alias
1996 test "x$ac_build_alias" = x &&
1997 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1998 test "x$ac_build_alias" = x &&
1999 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2000 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2001 { (exit 1); exit 1; }; }
2002 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2003 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2004 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2005 { (exit 1); exit 1; }; }
2008 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2009 echo "${ECHO_T}$ac_cv_build" >&6; }
2010 case $ac_cv_build in
2012 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2013 echo "$as_me: error: invalid value of canonical build" >&2;}
2014 { (exit 1); exit 1; }; };;
2017 ac_save_IFS=$IFS; IFS='-'
2023 # Remember, the first character of IFS is used to create $*,
2024 # except with old shells:
2027 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2030 { echo "$as_me:$LINENO: checking host system type" >&5
2031 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2032 if test "${ac_cv_host+set}" = set; then
2033 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 if test "x$host_alias" = x; then
2036 ac_cv_host=$ac_cv_build
2038 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2039 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2040 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2041 { (exit 1); exit 1; }; }
2045 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2046 echo "${ECHO_T}$ac_cv_host" >&6; }
2049 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2050 echo "$as_me: error: invalid value of canonical host" >&2;}
2051 { (exit 1); exit 1; }; };;
2054 ac_save_IFS=$IFS; IFS='-'
2060 # Remember, the first character of IFS is used to create $*,
2061 # except with old shells:
2064 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2067 { echo "$as_me:$LINENO: checking target system type" >&5
2068 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2069 if test "${ac_cv_target+set}" = set; then
2070 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 if test "x$target_alias" = x; then
2073 ac_cv_target=$ac_cv_host
2075 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2076 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2077 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2078 { (exit 1); exit 1; }; }
2082 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2083 echo "${ECHO_T}$ac_cv_target" >&6; }
2084 case $ac_cv_target in
2086 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2087 echo "$as_me: error: invalid value of canonical target" >&2;}
2088 { (exit 1); exit 1; }; };;
2090 target=$ac_cv_target
2091 ac_save_IFS=$IFS; IFS='-'
2097 # Remember, the first character of IFS is used to create $*,
2098 # except with old shells:
2101 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2104 # The aliases save the names the user supplied, while $host etc.
2105 # will get canonicalized.
2106 test -n "$target_alias" &&
2107 test "$program_prefix$program_suffix$program_transform_name" = \
2109 program_prefix=${target_alias}-
2110 am__api_version="1.9"
2111 # Find a good install program. We prefer a C program (faster),
2112 # so one script is as good as another. But avoid the broken or
2113 # incompatible versions:
2114 # SysV /etc/install, /usr/sbin/install
2115 # SunOS /usr/etc/install
2116 # IRIX /sbin/install
2118 # AmigaOS /C/install, which installs bootblocks on floppy discs
2119 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2120 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2121 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2122 # OS/2's system install, which has a completely different semantic
2123 # ./install, which can be erroneously created by make from ./install.sh.
2124 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2125 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2126 if test -z "$INSTALL"; then
2127 if test "${ac_cv_path_install+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 test -z "$as_dir" && as_dir=.
2135 # Account for people who put trailing slashes in PATH elements.
2137 ./ | .// | /cC/* | \
2138 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2139 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2142 # OSF1 and SCO ODT 3.0 have their own names for install.
2143 # Don't use installbsd from OSF since it installs stuff as root
2145 for ac_prog in ginstall scoinst install; do
2146 for ac_exec_ext in '' $ac_executable_extensions; do
2147 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2148 if test $ac_prog = install &&
2149 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2150 # AIX install. It has an incompatible calling convention.
2152 elif test $ac_prog = install &&
2153 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2154 # program-specific install script used by HP pwplus--don't use.
2157 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2170 if test "${ac_cv_path_install+set}" = set; then
2171 INSTALL=$ac_cv_path_install
2173 # As a last resort, use the slow shell script. Don't cache a
2174 # value for INSTALL within a source directory, because that will
2175 # break other packages using the cache if that directory is
2176 # removed, or if the value is a relative name.
2177 INSTALL=$ac_install_sh
2180 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2181 echo "${ECHO_T}$INSTALL" >&6; }
2183 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2184 # It thinks the first close brace ends the variable substitution.
2185 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2187 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2191 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2192 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2195 echo timestamp > conftest.file
2196 # Do `set' in a subshell so we don't clobber the current shell's
2197 # arguments. Must try -L first in case configure is actually a
2198 # symlink; some systems play weird games with the mod time of symlinks
2199 # (eg FreeBSD returns the mod time of the symlink's containing
2202 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2203 if test "$*" = "X"; then
2205 set X `ls -t $srcdir/configure conftest.file`
2208 if test "$*" != "X $srcdir/configure conftest.file" \
2209 && test "$*" != "X conftest.file $srcdir/configure"; then
2211 # If neither matched, then we have a broken ls. This can happen
2212 # if, for instance, CONFIG_SHELL is bash and it inherits a
2213 # broken ls alias from the environment. This has actually
2214 # happened. Such a system could not be considered "sane".
2215 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2216 alias in your environment" >&5
2217 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2218 alias in your environment" >&2;}
2219 { (exit 1); exit 1; }; }
2222 test "$2" = conftest.file
2228 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2229 Check your system clock" >&5
2230 echo "$as_me: error: newly created file is older than distributed files!
2231 Check your system clock" >&2;}
2232 { (exit 1); exit 1; }; }
2234 { echo "$as_me:$LINENO: result: yes" >&5
2235 echo "${ECHO_T}yes" >&6; }
2236 test "$program_prefix" != NONE &&
2237 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2238 # Use a double $ so make ignores it.
2239 test "$program_suffix" != NONE &&
2240 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2241 # Double any \ or $. echo might interpret backslashes.
2242 # By default was `s,x,x', remove it if useless.
2243 cat <<\_ACEOF >conftest.sed
2244 s/[\\$]/&&/g;s/;s,x,x,$//
2246 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2249 # expand $ac_aux_dir to an absolute path
2250 am_aux_dir=`cd $ac_aux_dir && pwd`
2252 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2253 # Use eval to expand $SHELL
2254 if eval "$MISSING --run true"; then
2255 am_missing_run="$MISSING --run "
2258 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2259 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2262 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2263 # We used to keeping the `.' as first argument, in order to
2264 # allow $(mkdir_p) to be used without argument. As in
2265 # $(mkdir_p) $(somedir)
2266 # where $(somedir) is conditionally defined. However this is wrong
2268 # 1. if the package is installed by a user who cannot write `.'
2269 # make install will fail,
2270 # 2. the above comment should most certainly read
2271 # $(mkdir_p) $(DESTDIR)$(somedir)
2272 # so it does not work when $(somedir) is undefined and
2273 # $(DESTDIR) is not.
2274 # To support the latter case, we have to write
2275 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2276 # so the `.' trick is pointless.
2277 mkdir_p='mkdir -p --'
2279 # On NextStep and OpenStep, the `mkdir' command does not
2280 # recognize any option. It will interpret all options as
2281 # directories to create, and then abort because `.' already
2283 for d in ./-p ./--version;
2285 test -d $d && rmdir $d
2287 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2288 if test -f "$ac_aux_dir/mkinstalldirs"; then
2289 mkdir_p='$(mkinstalldirs)'
2291 mkdir_p='$(install_sh) -d'
2295 for ac_prog in gawk mawk nawk awk
2297 # Extract the first word of "$ac_prog", so it can be a program name with args.
2298 set dummy $ac_prog; ac_word=$2
2299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2301 if test "${ac_cv_prog_AWK+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 if test -n "$AWK"; then
2305 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2311 test -z "$as_dir" && as_dir=.
2312 for ac_exec_ext in '' $ac_executable_extensions; do
2313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2314 ac_cv_prog_AWK="$ac_prog"
2315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 if test -n "$AWK"; then
2326 { echo "$as_me:$LINENO: result: $AWK" >&5
2327 echo "${ECHO_T}$AWK" >&6; }
2329 { echo "$as_me:$LINENO: result: no" >&5
2330 echo "${ECHO_T}no" >&6; }
2334 test -n "$AWK" && break
2337 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2338 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2339 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2340 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2341 echo $ECHO_N "(cached) $ECHO_C" >&6
2343 cat >conftest.make <<\_ACEOF
2346 @echo '@@@%%%=$(MAKE)=@@@%%%'
2348 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2349 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2351 eval ac_cv_prog_make_${ac_make}_set=yes;;
2353 eval ac_cv_prog_make_${ac_make}_set=no;;
2357 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2358 { echo "$as_me:$LINENO: result: yes" >&5
2359 echo "${ECHO_T}yes" >&6; }
2362 { echo "$as_me:$LINENO: result: no" >&5
2363 echo "${ECHO_T}no" >&6; }
2364 SET_MAKE="MAKE=${MAKE-make}"
2367 rm -rf .tst 2>/dev/null
2368 mkdir .tst 2>/dev/null
2369 if test -d .tst; then
2374 rmdir .tst 2>/dev/null
2376 # test to see if srcdir already configured
2377 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2378 test -f $srcdir/config.status; then
2379 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2380 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2381 { (exit 1); exit 1; }; }
2384 # test whether we have cygpath
2385 if test -z "$CYGPATH_W"; then
2386 if (cygpath --version) >/dev/null 2>/dev/null; then
2387 CYGPATH_W='cygpath -w'
2394 # Define the identity of the package.
2399 cat >>confdefs.h <<_ACEOF
2400 #define PACKAGE "$PACKAGE"
2404 cat >>confdefs.h <<_ACEOF
2405 #define VERSION "$VERSION"
2408 # Some tools Automake needs.
2410 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2413 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2416 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2419 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2422 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2424 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2426 # Installed binaries are usually stripped using `strip' when the user
2427 # run `make install-strip'. However `strip' might not be the right
2428 # tool to use in cross-compilation environments, therefore Automake
2429 # will honor the `STRIP' environment variable to overrule this program.
2430 if test "$cross_compiling" != no; then
2431 if test -n "$ac_tool_prefix"; then
2432 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2433 set dummy ${ac_tool_prefix}strip; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_STRIP+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 if test -n "$STRIP"; then
2440 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 STRIP=$ac_cv_prog_STRIP
2460 if test -n "$STRIP"; then
2461 { echo "$as_me:$LINENO: result: $STRIP" >&5
2462 echo "${ECHO_T}$STRIP" >&6; }
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2470 if test -z "$ac_cv_prog_STRIP"; then
2472 # Extract the first word of "strip", so it can be a program name with args.
2473 set dummy strip; ac_word=$2
2474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2476 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2477 echo $ECHO_N "(cached) $ECHO_C" >&6
2479 if test -n "$ac_ct_STRIP"; then
2480 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2486 test -z "$as_dir" && as_dir=.
2487 for ac_exec_ext in '' $ac_executable_extensions; do
2488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2489 ac_cv_prog_ac_ct_STRIP="strip"
2490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2500 if test -n "$ac_ct_STRIP"; then
2501 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2502 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2504 { echo "$as_me:$LINENO: result: no" >&5
2505 echo "${ECHO_T}no" >&6; }
2508 if test "x$ac_ct_STRIP" = x; then
2511 case $cross_compiling:$ac_tool_warned in
2513 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2514 whose name does not start with the host triplet. If you think this
2515 configuration is useful to you, please write to autoconf@gnu.org." >&5
2516 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2517 whose name does not start with the host triplet. If you think this
2518 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2519 ac_tool_warned=yes ;;
2524 STRIP="$ac_cv_prog_STRIP"
2528 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2530 # We need awk for the "check" target. The system "awk" is bad on
2532 # Always define AMTAR for backward compatibility.
2534 AMTAR=${AMTAR-"${am_missing_run}tar"}
2536 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2542 ac_config_headers="$ac_config_headers include/config.h"
2546 # Checks for programs.
2548 ac_cpp='$CPP $CPPFLAGS'
2549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2552 if test -n "$ac_tool_prefix"; then
2553 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2554 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2557 if test "${ac_cv_prog_CC+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 if test -n "$CC"; then
2561 ac_cv_prog_CC="$CC" # Let the user override the test.
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 if test -n "$CC"; then
2582 { echo "$as_me:$LINENO: result: $CC" >&5
2583 echo "${ECHO_T}$CC" >&6; }
2585 { echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6; }
2591 if test -z "$ac_cv_prog_CC"; then
2593 # Extract the first word of "gcc", so it can be a program name with args.
2594 set dummy gcc; ac_word=$2
2595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2597 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2598 echo $ECHO_N "(cached) $ECHO_C" >&6
2600 if test -n "$ac_ct_CC"; then
2601 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2607 test -z "$as_dir" && as_dir=.
2608 for ac_exec_ext in '' $ac_executable_extensions; do
2609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2610 ac_cv_prog_ac_ct_CC="gcc"
2611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2621 if test -n "$ac_ct_CC"; then
2622 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2623 echo "${ECHO_T}$ac_ct_CC" >&6; }
2625 { echo "$as_me:$LINENO: result: no" >&5
2626 echo "${ECHO_T}no" >&6; }
2629 if test "x$ac_ct_CC" = x; then
2632 case $cross_compiling:$ac_tool_warned in
2634 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2635 whose name does not start with the host triplet. If you think this
2636 configuration is useful to you, please write to autoconf@gnu.org." >&5
2637 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2638 whose name does not start with the host triplet. If you think this
2639 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2640 ac_tool_warned=yes ;;
2648 if test -z "$CC"; then
2649 if test -n "$ac_tool_prefix"; then
2650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2651 set dummy ${ac_tool_prefix}cc; ac_word=$2
2652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2654 if test "${ac_cv_prog_CC+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 if test -n "$CC"; then
2658 ac_cv_prog_CC="$CC" # Let the user override the test.
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 ac_cv_prog_CC="${ac_tool_prefix}cc"
2668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 if test -n "$CC"; then
2679 { echo "$as_me:$LINENO: result: $CC" >&5
2680 echo "${ECHO_T}$CC" >&6; }
2682 { echo "$as_me:$LINENO: result: no" >&5
2683 echo "${ECHO_T}no" >&6; }
2689 if test -z "$CC"; then
2690 # Extract the first word of "cc", so it can be a program name with args.
2691 set dummy cc; ac_word=$2
2692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2694 if test "${ac_cv_prog_CC+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2705 test -z "$as_dir" && as_dir=.
2706 for ac_exec_ext in '' $ac_executable_extensions; do
2707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2709 ac_prog_rejected=yes
2713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 if test $ac_prog_rejected = yes; then
2721 # We found a bogon in the path, so make sure we never use it.
2722 set dummy $ac_cv_prog_CC
2724 if test $# != 0; then
2725 # We chose a different compiler from the bogus one.
2726 # However, it has the same basename, so the bogon will be chosen
2727 # first if we set CC to just the basename; use the full file name.
2729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2735 if test -n "$CC"; then
2736 { echo "$as_me:$LINENO: result: $CC" >&5
2737 echo "${ECHO_T}$CC" >&6; }
2739 { echo "$as_me:$LINENO: result: no" >&5
2740 echo "${ECHO_T}no" >&6; }
2745 if test -z "$CC"; then
2746 if test -n "$ac_tool_prefix"; then
2747 for ac_prog in cl.exe
2749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_CC+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 if test -n "$CC"; then
2757 ac_cv_prog_CC="$CC" # Let the user override the test.
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 if test -n "$CC"; then
2778 { echo "$as_me:$LINENO: result: $CC" >&5
2779 echo "${ECHO_T}$CC" >&6; }
2781 { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2786 test -n "$CC" && break
2789 if test -z "$CC"; then
2791 for ac_prog in cl.exe
2793 # Extract the first word of "$ac_prog", so it can be a program name with args.
2794 set dummy $ac_prog; ac_word=$2
2795 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2796 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2800 if test -n "$ac_ct_CC"; then
2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807 test -z "$as_dir" && as_dir=.
2808 for ac_exec_ext in '' $ac_executable_extensions; do
2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2810 ac_cv_prog_ac_ct_CC="$ac_prog"
2811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2821 if test -n "$ac_ct_CC"; then
2822 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2823 echo "${ECHO_T}$ac_ct_CC" >&6; }
2825 { echo "$as_me:$LINENO: result: no" >&5
2826 echo "${ECHO_T}no" >&6; }
2830 test -n "$ac_ct_CC" && break
2833 if test "x$ac_ct_CC" = x; then
2836 case $cross_compiling:$ac_tool_warned in
2838 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2839 whose name does not start with the host triplet. If you think this
2840 configuration is useful to you, please write to autoconf@gnu.org." >&5
2841 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2842 whose name does not start with the host triplet. If you think this
2843 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2844 ac_tool_warned=yes ;;
2853 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2854 See \`config.log' for more details." >&5
2855 echo "$as_me: error: no acceptable C compiler found in \$PATH
2856 See \`config.log' for more details." >&2;}
2857 { (exit 1); exit 1; }; }
2859 # Provide some information about the compiler.
2860 echo "$as_me:$LINENO: checking for C compiler version" >&5
2861 ac_compiler=`set X $ac_compile; echo $2`
2862 { (ac_try="$ac_compiler --version >&5"
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2868 (eval "$ac_compiler --version >&5") 2>&5
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }
2872 { (ac_try="$ac_compiler -v >&5"
2874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875 *) ac_try_echo=$ac_try;;
2877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2878 (eval "$ac_compiler -v >&5") 2>&5
2880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881 (exit $ac_status); }
2882 { (ac_try="$ac_compiler -V >&5"
2884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_compiler -V >&5") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }
2893 cat >conftest.$ac_ext <<_ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2908 ac_clean_files_save=$ac_clean_files
2909 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2910 # Try to create an executable without -o first, disregard a.out.
2911 # It will help us diagnose broken compilers, and finding out an intuition
2913 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2914 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2915 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2917 # List of possible output files, starting from the most likely.
2918 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2919 # only as a last resort. b.out is created by i960 compilers.
2920 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2922 # The IRIX 6 linker writes into existing files which may not be
2923 # executable, retaining their permissions. Remove them first so a
2924 # subsequent execution test works.
2926 for ac_file in $ac_files
2929 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2930 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2935 if { (ac_try="$ac_link_default"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_link_default") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
2945 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2946 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2947 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2948 # so that the user can short-circuit this test for compilers unknown to
2950 for ac_file in $ac_files ''
2952 test -f "$ac_file" || continue
2954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2957 # We found the default executable, but exeext='' is most
2961 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2963 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2965 # We set ac_cv_exeext here because the later test for it is not
2966 # safe: cross compilers may not add the suffix if given an `-o'
2967 # argument, so we may need to know it at that point already.
2968 # Even if this section looks crufty: it has the advantage of
2975 test "$ac_cv_exeext" = no && ac_cv_exeext=
2981 { echo "$as_me:$LINENO: result: $ac_file" >&5
2982 echo "${ECHO_T}$ac_file" >&6; }
2983 if test -z "$ac_file"; then
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2987 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2988 See \`config.log' for more details." >&5
2989 echo "$as_me: error: C compiler cannot create executables
2990 See \`config.log' for more details." >&2;}
2991 { (exit 77); exit 77; }; }
2994 ac_exeext=$ac_cv_exeext
2996 # Check that the compiler produces executables we can run. If not, either
2997 # the compiler is broken, or we cross compile.
2998 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2999 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3000 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3001 # If not cross compiling, check that we can run a simple program.
3002 if test "$cross_compiling" != yes; then
3003 if { ac_try='./$ac_file'
3004 { (case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3009 (eval "$ac_try") 2>&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; }; then
3015 if test "$cross_compiling" = maybe; then
3018 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3019 If you meant to cross compile, use \`--host'.
3020 See \`config.log' for more details." >&5
3021 echo "$as_me: error: cannot run C compiled programs.
3022 If you meant to cross compile, use \`--host'.
3023 See \`config.log' for more details." >&2;}
3024 { (exit 1); exit 1; }; }
3028 { echo "$as_me:$LINENO: result: yes" >&5
3029 echo "${ECHO_T}yes" >&6; }
3031 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3032 ac_clean_files=$ac_clean_files_save
3033 # Check that the compiler produces executables we can run. If not, either
3034 # the compiler is broken, or we cross compile.
3035 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3036 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3037 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3038 echo "${ECHO_T}$cross_compiling" >&6; }
3040 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3041 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3042 if { (ac_try="$ac_link"
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_link") 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }; then
3052 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3053 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3054 # work properly (i.e., refer to `conftest.exe'), while it won't with
3056 for ac_file in conftest.exe conftest conftest.*; do
3057 test -f "$ac_file" || continue
3059 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3060 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3066 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3067 See \`config.log' for more details." >&5
3068 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3069 See \`config.log' for more details." >&2;}
3070 { (exit 1); exit 1; }; }
3073 rm -f conftest$ac_cv_exeext
3074 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3075 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3077 rm -f conftest.$ac_ext
3078 EXEEXT=$ac_cv_exeext
3080 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3081 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3082 if test "${ac_cv_objext+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 cat >conftest.$ac_ext <<_ACEOF
3088 cat confdefs.h >>conftest.$ac_ext
3089 cat >>conftest.$ac_ext <<_ACEOF
3090 /* end confdefs.h. */
3100 rm -f conftest.o conftest.obj
3101 if { (ac_try="$ac_compile"
3103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3107 (eval "$ac_compile") 2>&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); }; then
3111 for ac_file in conftest.o conftest.obj conftest.*; do
3112 test -f "$ac_file" || continue;
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3115 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3120 echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3124 See \`config.log' for more details." >&5
3125 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3126 See \`config.log' for more details." >&2;}
3127 { (exit 1); exit 1; }; }
3130 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3132 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3133 echo "${ECHO_T}$ac_cv_objext" >&6; }
3134 OBJEXT=$ac_cv_objext
3136 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3137 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3138 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3139 echo $ECHO_N "(cached) $ECHO_C" >&6
3141 cat >conftest.$ac_ext <<_ACEOF
3144 cat confdefs.h >>conftest.$ac_ext
3145 cat >>conftest.$ac_ext <<_ACEOF
3146 /* end confdefs.h. */
3159 rm -f conftest.$ac_objext
3160 if { (ac_try="$ac_compile"
3162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3163 *) ac_try_echo=$ac_try;;
3165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3168 grep -v '^ *+' conftest.er1 >conftest.err
3170 cat conftest.err >&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } && {
3173 test -z "$ac_c_werror_flag" ||
3174 test ! -s conftest.err
3175 } && test -s conftest.$ac_objext; then
3178 echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3188 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3189 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3190 GCC=`test $ac_compiler_gnu = yes && echo yes`
3191 ac_test_CFLAGS=${CFLAGS+set}
3192 ac_save_CFLAGS=$CFLAGS
3193 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3194 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3195 if test "${ac_cv_prog_cc_g+set}" = set; then
3196 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 ac_save_c_werror_flag=$ac_c_werror_flag
3199 ac_c_werror_flag=yes
3202 cat >conftest.$ac_ext <<_ACEOF
3205 cat confdefs.h >>conftest.$ac_ext
3206 cat >>conftest.$ac_ext <<_ACEOF
3207 /* end confdefs.h. */
3217 rm -f conftest.$ac_objext
3218 if { (ac_try="$ac_compile"
3220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3221 *) ac_try_echo=$ac_try;;
3223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3224 (eval "$ac_compile") 2>conftest.er1
3226 grep -v '^ *+' conftest.er1 >conftest.err
3228 cat conftest.err >&5
3229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3230 (exit $ac_status); } && {
3231 test -z "$ac_c_werror_flag" ||
3232 test ! -s conftest.err
3233 } && test -s conftest.$ac_objext; then
3236 echo "$as_me: failed program was:" >&5
3237 sed 's/^/| /' conftest.$ac_ext >&5
3240 cat >conftest.$ac_ext <<_ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3255 rm -f conftest.$ac_objext
3256 if { (ac_try="$ac_compile"
3258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3259 *) ac_try_echo=$ac_try;;
3261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3262 (eval "$ac_compile") 2>conftest.er1
3264 grep -v '^ *+' conftest.er1 >conftest.err
3266 cat conftest.err >&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); } && {
3269 test -z "$ac_c_werror_flag" ||
3270 test ! -s conftest.err
3271 } && test -s conftest.$ac_objext; then
3274 echo "$as_me: failed program was:" >&5
3275 sed 's/^/| /' conftest.$ac_ext >&5
3277 ac_c_werror_flag=$ac_save_c_werror_flag
3279 cat >conftest.$ac_ext <<_ACEOF
3282 cat confdefs.h >>conftest.$ac_ext
3283 cat >>conftest.$ac_ext <<_ACEOF
3284 /* end confdefs.h. */
3294 rm -f conftest.$ac_objext
3295 if { (ac_try="$ac_compile"
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_compile") 2>conftest.er1
3303 grep -v '^ *+' conftest.er1 >conftest.err
3305 cat conftest.err >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); } && {
3308 test -z "$ac_c_werror_flag" ||
3309 test ! -s conftest.err
3310 } && test -s conftest.$ac_objext; then
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.$ac_ext >&5
3319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3326 ac_c_werror_flag=$ac_save_c_werror_flag
3328 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3329 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3330 if test "$ac_test_CFLAGS" = set; then
3331 CFLAGS=$ac_save_CFLAGS
3332 elif test $ac_cv_prog_cc_g = yes; then
3333 if test "$GCC" = yes; then
3339 if test "$GCC" = yes; then
3345 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3346 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3347 if test "${ac_cv_prog_cc_c89+set}" = set; then
3348 echo $ECHO_N "(cached) $ECHO_C" >&6
3350 ac_cv_prog_cc_c89=no
3352 cat >conftest.$ac_ext <<_ACEOF
3355 cat confdefs.h >>conftest.$ac_ext
3356 cat >>conftest.$ac_ext <<_ACEOF
3357 /* end confdefs.h. */
3360 #include <sys/types.h>
3361 #include <sys/stat.h>
3362 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3363 struct buf { int x; };
3364 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3365 static char *e (p, i)
3371 static char *f (char * (*g) (char **, int), char **p, ...)
3376 s = g (p, va_arg (v,int));
3381 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3382 function prototypes and stuff, but not '\xHH' hex character constants.
3383 These don't provoke an error unfortunately, instead are silently treated
3384 as 'x'. The following induces an error, until -std is added to get
3385 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3386 array size at least. It's necessary to write '\x00'==0 to get something
3387 that's true only with -std. */
3388 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3390 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3391 inside strings and character constants. */
3393 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3395 int test (int i, double x);
3396 struct s1 {int (*f) (int a);};
3397 struct s2 {int (*f) (double a);};
3398 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3404 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3409 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3410 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3412 CC="$ac_save_CC $ac_arg"
3413 rm -f conftest.$ac_objext
3414 if { (ac_try="$ac_compile"
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_compile") 2>conftest.er1
3422 grep -v '^ *+' conftest.er1 >conftest.err
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426 (exit $ac_status); } && {
3427 test -z "$ac_c_werror_flag" ||
3428 test ! -s conftest.err
3429 } && test -s conftest.$ac_objext; then
3430 ac_cv_prog_cc_c89=$ac_arg
3432 echo "$as_me: failed program was:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3438 rm -f core conftest.err conftest.$ac_objext
3439 test "x$ac_cv_prog_cc_c89" != "xno" && break
3441 rm -f conftest.$ac_ext
3446 case "x$ac_cv_prog_cc_c89" in
3448 { echo "$as_me:$LINENO: result: none needed" >&5
3449 echo "${ECHO_T}none needed" >&6; } ;;
3451 { echo "$as_me:$LINENO: result: unsupported" >&5
3452 echo "${ECHO_T}unsupported" >&6; } ;;
3454 CC="$CC $ac_cv_prog_cc_c89"
3455 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3456 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 DEPDIR="${am__leading_dot}deps"
3467 ac_config_commands="$ac_config_commands depfiles"
3470 am_make=${MAKE-make}
3471 cat > confinc << 'END'
3476 # If we don't find an include directive, just comment out the code.
3477 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3478 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3482 # First try GNU make style include.
3483 echo "include confinc" > confmf
3484 # We grep out `Entering directory' and `Leaving directory'
3485 # messages which can occur if `w' ends up in MAKEFLAGS.
3486 # In particular we don't look at `^make:' because GNU make might
3487 # be invoked under some other name (usually "gmake"), in which
3488 # case it prints its new name instead of `make'.
3489 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3494 # Now try BSD make style include.
3495 if test "$am__include" = "#"; then
3496 echo '.include "confinc"' > confmf
3497 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3498 am__include=.include
3505 { echo "$as_me:$LINENO: result: $_am_result" >&5
3506 echo "${ECHO_T}$_am_result" >&6; }
3507 rm -f confinc confmf
3509 # Check whether --enable-dependency-tracking was given.
3510 if test "${enable_dependency_tracking+set}" = set; then
3511 enableval=$enable_dependency_tracking;
3514 if test "x$enable_dependency_tracking" != xno; then
3515 am_depcomp="$ac_aux_dir/depcomp"
3520 if test "x$enable_dependency_tracking" != xno; then
3531 depcc="$CC" am_compiler_list=
3533 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3534 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3535 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3539 # We make a subdir and do the tests there. Otherwise we can end up
3540 # making bogus files that we don't know about and never remove. For
3541 # instance it was reported that on HP-UX the gcc test will end up
3542 # making a dummy file named `D' -- because `-MD' means `put the output
3545 # Copy depcomp to subdir because otherwise we won't find it if we're
3546 # using a relative directory.
3547 cp "$am_depcomp" conftest.dir
3549 # We will build objects and dependencies in a subdirectory because
3550 # it helps to detect inapplicable dependency modes. For instance
3551 # both Tru64's cc and ICC support -MD to output dependencies as a
3552 # side effect of compilation, but ICC will put the dependencies in
3553 # the current directory while Tru64 will put them in the object
3557 am_cv_CC_dependencies_compiler_type=none
3558 if test "$am_compiler_list" = ""; then
3559 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3561 for depmode in $am_compiler_list; do
3562 # Setup a source with many dependencies, because some compilers
3563 # like to wrap large dependency lists on column 80 (with \), and
3564 # we should not choose a depcomp mode which is confused by this.
3566 # We need to recreate these files for each test, as the compiler may
3567 # overwrite some of them when testing with obscure command lines.
3568 # This happens at least with the AIX C compiler.
3570 for i in 1 2 3 4 5 6; do
3571 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3572 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3573 # Solaris 8's {/usr,}/bin/sh.
3574 touch sub/conftst$i.h
3576 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3580 # after this tag, mechanisms are not by side-effect, so they'll
3581 # only be used when explicitly requested
3582 if test "x$enable_dependency_tracking" = xyes; then
3590 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3591 # mode. It turns out that the SunPro C++ compiler does not properly
3592 # handle `-M -o', and we need to detect this.
3593 if depmode=$depmode \
3594 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3595 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3596 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3597 >/dev/null 2>conftest.err &&
3598 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3599 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3600 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3601 # icc doesn't choke on unknown options, it will just issue warnings
3602 # or remarks (even with -Werror). So we grep stderr for any message
3603 # that says an option was ignored or not supported.
3604 # When given -MP, icc 7.0 and 7.1 complain thusly:
3605 # icc: Command line warning: ignoring option '-M'; no argument required
3606 # The diagnosis changed in icc 8.0:
3607 # icc: Command line remark: option '-MP' not supported
3608 if (grep 'ignoring option' conftest.err ||
3609 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3610 am_cv_CC_dependencies_compiler_type=$depmode
3619 am_cv_CC_dependencies_compiler_type=none
3623 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3624 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3625 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3630 test "x$enable_dependency_tracking" != xno \
3631 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3633 am__fastdepCC_FALSE='#'
3635 am__fastdepCC_TRUE='#'
3636 am__fastdepCC_FALSE=
3640 # Find a good install program. We prefer a C program (faster),
3641 # so one script is as good as another. But avoid the broken or
3642 # incompatible versions:
3643 # SysV /etc/install, /usr/sbin/install
3644 # SunOS /usr/etc/install
3645 # IRIX /sbin/install
3647 # AmigaOS /C/install, which installs bootblocks on floppy discs
3648 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3649 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3650 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3651 # OS/2's system install, which has a completely different semantic
3652 # ./install, which can be erroneously created by make from ./install.sh.
3653 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3654 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3655 if test -z "$INSTALL"; then
3656 if test "${ac_cv_path_install+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 test -z "$as_dir" && as_dir=.
3664 # Account for people who put trailing slashes in PATH elements.
3666 ./ | .// | /cC/* | \
3667 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3668 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3671 # OSF1 and SCO ODT 3.0 have their own names for install.
3672 # Don't use installbsd from OSF since it installs stuff as root
3674 for ac_prog in ginstall scoinst install; do
3675 for ac_exec_ext in '' $ac_executable_extensions; do
3676 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3677 if test $ac_prog = install &&
3678 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3679 # AIX install. It has an incompatible calling convention.
3681 elif test $ac_prog = install &&
3682 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3683 # program-specific install script used by HP pwplus--don't use.
3686 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3699 if test "${ac_cv_path_install+set}" = set; then
3700 INSTALL=$ac_cv_path_install
3702 # As a last resort, use the slow shell script. Don't cache a
3703 # value for INSTALL within a source directory, because that will
3704 # break other packages using the cache if that directory is
3705 # removed, or if the value is a relative name.
3706 INSTALL=$ac_install_sh
3709 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3710 echo "${ECHO_T}$INSTALL" >&6; }
3712 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3713 # It thinks the first close brace ends the variable substitution.
3714 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3716 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3718 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3720 # Check whether --enable-shared was given.
3721 if test "${enable_shared+set}" = set; then
3722 enableval=$enable_shared; p=${PACKAGE-default}
3724 yes) enable_shared=yes ;;
3725 no) enable_shared=no ;;
3728 # Look at the argument we got. We use all the common list separators.
3729 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3730 for pkg in $enableval; do
3732 if test "X$pkg" = "X$p"; then
3744 # Check whether --enable-static was given.
3745 if test "${enable_static+set}" = set; then
3746 enableval=$enable_static; p=${PACKAGE-default}
3748 yes) enable_static=yes ;;
3749 no) enable_static=no ;;
3752 # Look at the argument we got. We use all the common list separators.
3753 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3754 for pkg in $enableval; do
3756 if test "X$pkg" = "X$p"; then
3768 # Check whether --enable-fast-install was given.
3769 if test "${enable_fast_install+set}" = set; then
3770 enableval=$enable_fast_install; p=${PACKAGE-default}
3772 yes) enable_fast_install=yes ;;
3773 no) enable_fast_install=no ;;
3775 enable_fast_install=no
3776 # Look at the argument we got. We use all the common list separators.
3777 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3778 for pkg in $enableval; do
3780 if test "X$pkg" = "X$p"; then
3781 enable_fast_install=yes
3788 enable_fast_install=yes
3792 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3793 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3794 if test "${lt_cv_path_SED+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3797 # Loop through the user's path and test for sed and gsed.
3798 # Then use that list of sed's as ones to test for truncation.
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 test -z "$as_dir" && as_dir=.
3804 for lt_ac_prog in sed gsed; do
3805 for ac_exec_ext in '' $ac_executable_extensions; do
3806 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3807 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3814 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3815 # along with /bin/sed that truncates output.
3816 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3817 test ! -f $lt_ac_sed && continue
3818 cat /dev/null > conftest.in
3820 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3821 # Check for GNU sed and select it if it is found.
3822 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3823 lt_cv_path_SED=$lt_ac_sed
3827 cat conftest.in conftest.in >conftest.tmp
3828 mv conftest.tmp conftest.in
3829 cp conftest.in conftest.nl
3831 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3832 cmp -s conftest.out conftest.nl || break
3833 # 10000 chars as input seems more than enough
3834 test $lt_ac_count -gt 10 && break
3835 lt_ac_count=`expr $lt_ac_count + 1`
3836 if test $lt_ac_count -gt $lt_ac_max; then
3837 lt_ac_max=$lt_ac_count
3838 lt_cv_path_SED=$lt_ac_sed
3846 { echo "$as_me:$LINENO: result: $SED" >&5
3847 echo "${ECHO_T}$SED" >&6; }
3849 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3850 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3851 if test "${ac_cv_path_GREP+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 # Extract the first word of "grep ggrep" to use in msg output
3855 if test -z "$GREP"; then
3856 set dummy grep ggrep; ac_prog_name=$2
3857 if test "${ac_cv_path_GREP+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3860 ac_path_GREP_found=false
3861 # Loop through the user's path and test for each of PROGNAME-LIST
3862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3866 test -z "$as_dir" && as_dir=.
3867 for ac_prog in grep ggrep; do
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3870 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3871 # Check for GNU ac_path_GREP and select it if it is found.
3872 # Check for GNU $ac_path_GREP
3873 case `"$ac_path_GREP" --version 2>&1` in
3875 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3878 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3881 cat "conftest.in" "conftest.in" >"conftest.tmp"
3882 mv "conftest.tmp" "conftest.in"
3883 cp "conftest.in" "conftest.nl"
3884 echo 'GREP' >> "conftest.nl"
3885 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3886 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3887 ac_count=`expr $ac_count + 1`
3888 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3889 # Best one so far, save it but keep looking for a better one
3890 ac_cv_path_GREP="$ac_path_GREP"
3891 ac_path_GREP_max=$ac_count
3893 # 10*(2^10) chars as input seems more than enough
3894 test $ac_count -gt 10 && break
3896 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3900 $ac_path_GREP_found && break 3
3910 GREP="$ac_cv_path_GREP"
3911 if test -z "$GREP"; then
3912 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3913 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3914 { (exit 1); exit 1; }; }
3918 ac_cv_path_GREP=$GREP
3923 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3924 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3925 GREP="$ac_cv_path_GREP"
3928 { echo "$as_me:$LINENO: checking for egrep" >&5
3929 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3930 if test "${ac_cv_path_EGREP+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3934 then ac_cv_path_EGREP="$GREP -E"
3936 # Extract the first word of "egrep" to use in msg output
3937 if test -z "$EGREP"; then
3938 set dummy egrep; ac_prog_name=$2
3939 if test "${ac_cv_path_EGREP+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3942 ac_path_EGREP_found=false
3943 # Loop through the user's path and test for each of PROGNAME-LIST
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3948 test -z "$as_dir" && as_dir=.
3949 for ac_prog in egrep; do
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3952 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3953 # Check for GNU ac_path_EGREP and select it if it is found.
3954 # Check for GNU $ac_path_EGREP
3955 case `"$ac_path_EGREP" --version 2>&1` in
3957 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3960 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3963 cat "conftest.in" "conftest.in" >"conftest.tmp"
3964 mv "conftest.tmp" "conftest.in"
3965 cp "conftest.in" "conftest.nl"
3966 echo 'EGREP' >> "conftest.nl"
3967 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3969 ac_count=`expr $ac_count + 1`
3970 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3971 # Best one so far, save it but keep looking for a better one
3972 ac_cv_path_EGREP="$ac_path_EGREP"
3973 ac_path_EGREP_max=$ac_count
3975 # 10*(2^10) chars as input seems more than enough
3976 test $ac_count -gt 10 && break
3978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3982 $ac_path_EGREP_found && break 3
3992 EGREP="$ac_cv_path_EGREP"
3993 if test -z "$EGREP"; then
3994 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3995 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3996 { (exit 1); exit 1; }; }
4000 ac_cv_path_EGREP=$EGREP
4006 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4007 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4008 EGREP="$ac_cv_path_EGREP"
4012 # Check whether --with-gnu-ld was given.
4013 if test "${with_gnu_ld+set}" = set; then
4014 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4020 if test "$GCC" = yes; then
4021 # Check if gcc -print-prog-name=ld gives a path.
4022 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4023 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4026 # gcc leaves a trailing carriage return which upsets mingw
4027 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4029 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4032 # Accept absolute paths.
4034 re_direlt='/[^/][^/]*/\.\./'
4035 # Canonicalize the pathname of ld
4036 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4037 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4038 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4040 test -z "$LD" && LD="$ac_prog"
4043 # If it fails, then pretend we aren't using GCC.
4047 # If it is relative, then search for the first ld in PATH.
4051 elif test "$with_gnu_ld" = yes; then
4052 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4053 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4055 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4056 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4058 if test "${lt_cv_path_LD+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4061 if test -z "$LD"; then
4062 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4063 for ac_dir in $PATH; do
4065 test -z "$ac_dir" && ac_dir=.
4066 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4067 lt_cv_path_LD="$ac_dir/$ac_prog"
4068 # Check to see if the program is GNU ld. I'd rather use --version,
4069 # but apparently some variants of GNU ld only accept -v.
4070 # Break only if it was the GNU/non-GNU ld that we prefer.
4071 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4072 *GNU* | *'with BFD'*)
4073 test "$with_gnu_ld" != no && break
4076 test "$with_gnu_ld" != yes && break
4083 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4088 if test -n "$LD"; then
4089 { echo "$as_me:$LINENO: result: $LD" >&5
4090 echo "${ECHO_T}$LD" >&6; }
4092 { echo "$as_me:$LINENO: result: no" >&5
4093 echo "${ECHO_T}no" >&6; }
4095 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4096 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4097 { (exit 1); exit 1; }; }
4098 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4099 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4100 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4101 echo $ECHO_N "(cached) $ECHO_C" >&6
4103 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4104 case `$LD -v 2>&1 </dev/null` in
4105 *GNU* | *'with BFD'*)
4106 lt_cv_prog_gnu_ld=yes
4109 lt_cv_prog_gnu_ld=no
4113 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4114 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4115 with_gnu_ld=$lt_cv_prog_gnu_ld
4118 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4119 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4120 if test "${lt_cv_ld_reload_flag+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4123 lt_cv_ld_reload_flag='-r'
4125 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4126 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4127 reload_flag=$lt_cv_ld_reload_flag
4128 case $reload_flag in
4130 *) reload_flag=" $reload_flag" ;;
4132 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4135 if test "$GCC" = yes; then
4136 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4138 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4143 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4144 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4145 if test "${lt_cv_path_NM+set}" = set; then
4146 echo $ECHO_N "(cached) $ECHO_C" >&6
4148 if test -n "$NM"; then
4149 # Let the user override the test.
4152 lt_nm_to_check="${ac_tool_prefix}nm"
4153 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4154 lt_nm_to_check="$lt_nm_to_check nm"
4156 for lt_tmp_nm in $lt_nm_to_check; do
4157 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4158 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4160 test -z "$ac_dir" && ac_dir=.
4161 tmp_nm="$ac_dir/$lt_tmp_nm"
4162 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4163 # Check to see if the nm accepts a BSD-compat flag.
4164 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4165 # nm: unknown option "B" ignored
4166 # Tru64's nm complains that /dev/null is an invalid object file
4167 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4168 */dev/null* | *'Invalid file or object type'*)
4169 lt_cv_path_NM="$tmp_nm -B"
4173 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4175 lt_cv_path_NM="$tmp_nm -p"
4179 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4180 continue # so that we can try to find one that supports BSD flags
4189 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4192 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4193 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4196 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4197 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4199 if test "$LN_S" = "ln -s"; then
4200 { echo "$as_me:$LINENO: result: yes" >&5
4201 echo "${ECHO_T}yes" >&6; }
4203 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4204 echo "${ECHO_T}no, using $LN_S" >&6; }
4207 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4208 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4209 if test "${lt_cv_deplibs_check_method+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 lt_cv_file_magic_cmd='$MAGIC_CMD'
4213 lt_cv_file_magic_test_file=
4214 lt_cv_deplibs_check_method='unknown'
4215 # Need to set the preceding variable on all platforms that support
4216 # interlibrary dependencies.
4217 # 'none' -- dependencies not supported.
4218 # `unknown' -- same as none, but documents that we really don't know.
4219 # 'pass_all' -- all dependencies passed with no checks.
4220 # 'test_compile' -- check by making test program.
4221 # 'file_magic [[regex]]' -- check by looking for files in library path
4222 # which responds to the $file_magic_cmd with a given extended regex.
4223 # If you have `file' or equivalent on your system and you're not sure
4224 # whether `pass_all' will *always* work, you probably want this one.
4228 lt_cv_deplibs_check_method=pass_all
4232 lt_cv_deplibs_check_method=pass_all
4236 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4237 lt_cv_file_magic_cmd='/usr/bin/file -L'
4238 lt_cv_file_magic_test_file=/shlib/libc.so
4242 # func_win32_libid is a shell function defined in ltmain.sh
4243 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4244 lt_cv_file_magic_cmd='func_win32_libid'
4248 # Base MSYS/MinGW do not provide the 'file' command needed by
4249 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4250 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4251 lt_cv_file_magic_cmd='$OBJDUMP -f'
4254 darwin* | rhapsody*)
4255 lt_cv_deplibs_check_method=pass_all
4258 freebsd* | dragonfly*)
4259 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4262 # Not sure whether the presence of OpenBSD here was a mistake.
4263 # Let's accept both of them until this is cleared up.
4264 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4265 lt_cv_file_magic_cmd=/usr/bin/file
4266 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4270 lt_cv_deplibs_check_method=pass_all
4275 lt_cv_deplibs_check_method=pass_all
4278 hpux10.20* | hpux11*)
4279 lt_cv_file_magic_cmd=/usr/bin/file
4282 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4283 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4286 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]'
4287 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4290 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4291 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4297 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4298 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4301 irix5* | irix6* | nonstopux*)
4303 *-32|*"-32 ") libmagic=32-bit;;
4304 *-n32|*"-n32 ") libmagic=N32;;
4305 *-64|*"-64 ") libmagic=64-bit;;
4306 *) libmagic=never-match;;
4308 lt_cv_deplibs_check_method=pass_all
4311 # This must be Linux ELF.
4312 linux* | k*bsd*-gnu)
4313 lt_cv_deplibs_check_method=pass_all
4316 netbsd* | netbsdelf*-gnu)
4317 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4318 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4320 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4325 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4326 lt_cv_file_magic_cmd=/usr/bin/file
4327 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4331 lt_cv_deplibs_check_method=unknown
4335 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4338 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4342 osf3* | osf4* | osf5*)
4343 lt_cv_deplibs_check_method=pass_all
4347 lt_cv_deplibs_check_method=pass_all
4351 case $host_vendor in
4353 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]'
4354 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4357 lt_cv_deplibs_check_method=pass_all
4360 lt_cv_file_magic_cmd='/bin/file'
4361 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4364 lt_cv_file_magic_cmd='/bin/file'
4365 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4366 lt_cv_file_magic_test_file=/lib/libc.so
4369 lt_cv_deplibs_check_method=pass_all
4372 lt_cv_deplibs_check_method=pass_all
4377 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4378 lt_cv_deplibs_check_method=pass_all
4383 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4384 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4385 file_magic_cmd=$lt_cv_file_magic_cmd
4386 deplibs_check_method=$lt_cv_deplibs_check_method
4387 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4392 # If no C compiler was specified, use CC.
4395 # If no C compiler flags were specified, use CFLAGS.
4396 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4398 # Allow CC to be a program name with arguments.
4402 # Check whether --enable-libtool-lock was given.
4403 if test "${enable_libtool_lock+set}" = set; then
4404 enableval=$enable_libtool_lock;
4407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4409 # Some flags need to be propagated to the compiler or linker for good
4413 # Find out which ABI we are using.
4414 echo 'int i;' > conftest.$ac_ext
4415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4416 (eval $ac_compile) 2>&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); }; then
4420 case `/usr/bin/file conftest.$ac_objext` in
4432 # Find out which ABI we are using.
4433 echo '#line 4433 "configure"' > conftest.$ac_ext
4434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4435 (eval $ac_compile) 2>&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; then
4439 if test "$lt_cv_prog_gnu_ld" = yes; then
4440 case `/usr/bin/file conftest.$ac_objext` in
4442 LD="${LD-ld} -melf32bsmip"
4445 LD="${LD-ld} -melf32bmipn32"
4448 LD="${LD-ld} -melf64bmip"
4452 case `/usr/bin/file conftest.$ac_objext` in
4468 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4469 # Find out which ABI we are using.
4470 echo 'int i;' > conftest.$ac_ext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472 (eval $ac_compile) 2>&5
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; then
4476 case `/usr/bin/file conftest.o` in
4480 LD="${LD-ld} -m elf_i386"
4482 ppc64-*linux*|powerpc64-*linux*)
4483 LD="${LD-ld} -m elf32ppclinux"
4486 LD="${LD-ld} -m elf_s390"
4489 LD="${LD-ld} -m elf32_sparc"
4496 LD="${LD-ld} -m elf_x86_64"
4498 ppc*-*linux*|powerpc*-*linux*)
4499 LD="${LD-ld} -m elf64ppc"
4502 LD="${LD-ld} -m elf64_s390"
4505 LD="${LD-ld} -m elf64_sparc"
4515 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4516 SAVE_CFLAGS="$CFLAGS"
4517 CFLAGS="$CFLAGS -belf"
4518 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4519 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4520 if test "${lt_cv_cc_needs_belf+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4524 ac_cpp='$CPP $CPPFLAGS'
4525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4529 cat >conftest.$ac_ext <<_ACEOF
4532 cat confdefs.h >>conftest.$ac_ext
4533 cat >>conftest.$ac_ext <<_ACEOF
4534 /* end confdefs.h. */
4544 rm -f conftest.$ac_objext conftest$ac_exeext
4545 if { (ac_try="$ac_link"
4547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4548 *) ac_try_echo=$ac_try;;
4550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4551 (eval "$ac_link") 2>conftest.er1
4553 grep -v '^ *+' conftest.er1 >conftest.err
4555 cat conftest.err >&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } && {
4558 test -z "$ac_c_werror_flag" ||
4559 test ! -s conftest.err
4560 } && test -s conftest$ac_exeext &&
4561 $as_test_x conftest$ac_exeext; then
4562 lt_cv_cc_needs_belf=yes
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4567 lt_cv_cc_needs_belf=no
4570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4571 conftest$ac_exeext conftest.$ac_ext
4573 ac_cpp='$CPP $CPPFLAGS'
4574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4579 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4580 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4581 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4582 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4583 CFLAGS="$SAVE_CFLAGS"
4587 # Find out which ABI we are using.
4588 echo 'int i;' > conftest.$ac_ext
4589 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4590 (eval $ac_compile) 2>&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; then
4594 case `/usr/bin/file conftest.o` in
4596 case $lt_cv_prog_gnu_ld in
4597 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4598 *) LD="${LD-ld} -64" ;;
4609 need_locks="$enable_libtool_lock"
4613 ac_cpp='$CPP $CPPFLAGS'
4614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4617 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4618 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4619 # On Suns, sometimes $CPP names a directory.
4620 if test -n "$CPP" && test -d "$CPP"; then
4623 if test -z "$CPP"; then
4624 if test "${ac_cv_prog_CPP+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 # Double quotes because CPP needs to be expanded
4628 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4631 for ac_c_preproc_warn_flag in '' yes
4633 # Use a header file that comes with gcc, so configuring glibc
4634 # with a fresh cross-compiler works.
4635 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4636 # <limits.h> exists even on freestanding compilers.
4637 # On the NeXT, cc -E runs the code through the compiler's parser,
4638 # not just through cpp. "Syntax error" is here to catch this case.
4639 cat >conftest.$ac_ext <<_ACEOF
4642 cat confdefs.h >>conftest.$ac_ext
4643 cat >>conftest.$ac_ext <<_ACEOF
4644 /* end confdefs.h. */
4646 # include <limits.h>
4648 # include <assert.h>
4652 if { (ac_try="$ac_cpp conftest.$ac_ext"
4654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4655 *) ac_try_echo=$ac_try;;
4657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4660 grep -v '^ *+' conftest.er1 >conftest.err
4662 cat conftest.err >&5
4663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664 (exit $ac_status); } >/dev/null && {
4665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4666 test ! -s conftest.err
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4673 # Broken: fails on valid input.
4677 rm -f conftest.err conftest.$ac_ext
4679 # OK, works on sane cases. Now check whether nonexistent headers
4680 # can be detected and how.
4681 cat >conftest.$ac_ext <<_ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4687 #include <ac_nonexistent.h>
4689 if { (ac_try="$ac_cpp conftest.$ac_ext"
4691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4692 *) ac_try_echo=$ac_try;;
4694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4697 grep -v '^ *+' conftest.er1 >conftest.err
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } >/dev/null && {
4702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4703 test ! -s conftest.err
4705 # Broken: success on invalid input.
4708 echo "$as_me: failed program was:" >&5
4709 sed 's/^/| /' conftest.$ac_ext >&5
4711 # Passes both tests.
4716 rm -f conftest.err conftest.$ac_ext
4719 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4720 rm -f conftest.err conftest.$ac_ext
4721 if $ac_preproc_ok; then
4733 { echo "$as_me:$LINENO: result: $CPP" >&5
4734 echo "${ECHO_T}$CPP" >&6; }
4736 for ac_c_preproc_warn_flag in '' yes
4738 # Use a header file that comes with gcc, so configuring glibc
4739 # with a fresh cross-compiler works.
4740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4741 # <limits.h> exists even on freestanding compilers.
4742 # On the NeXT, cc -E runs the code through the compiler's parser,
4743 # not just through cpp. "Syntax error" is here to catch this case.
4744 cat >conftest.$ac_ext <<_ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4751 # include <limits.h>
4753 # include <assert.h>
4757 if { (ac_try="$ac_cpp conftest.$ac_ext"
4759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4760 *) ac_try_echo=$ac_try;;
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4765 grep -v '^ *+' conftest.er1 >conftest.err
4767 cat conftest.err >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev/null && {
4770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4778 # Broken: fails on valid input.
4782 rm -f conftest.err conftest.$ac_ext
4784 # OK, works on sane cases. Now check whether nonexistent headers
4785 # can be detected and how.
4786 cat >conftest.$ac_ext <<_ACEOF
4789 cat confdefs.h >>conftest.$ac_ext
4790 cat >>conftest.$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 #include <ac_nonexistent.h>
4794 if { (ac_try="$ac_cpp conftest.$ac_ext"
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4802 grep -v '^ *+' conftest.er1 >conftest.err
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } >/dev/null && {
4807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4810 # Broken: success on invalid input.
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 # Passes both tests.
4821 rm -f conftest.err conftest.$ac_ext
4824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4825 rm -f conftest.err conftest.$ac_ext
4826 if $ac_preproc_ok; then
4829 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4830 See \`config.log' for more details." >&5
4831 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4832 See \`config.log' for more details." >&2;}
4833 { (exit 1); exit 1; }; }
4837 ac_cpp='$CPP $CPPFLAGS'
4838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4844 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4845 if test "${ac_cv_header_stdc+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4848 cat >conftest.$ac_ext <<_ACEOF
4851 cat confdefs.h >>conftest.$ac_ext
4852 cat >>conftest.$ac_ext <<_ACEOF
4853 /* end confdefs.h. */
4867 rm -f conftest.$ac_objext
4868 if { (ac_try="$ac_compile"
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_compile") 2>conftest.er1
4876 grep -v '^ *+' conftest.er1 >conftest.err
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } && {
4881 test -z "$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4883 } && test -s conftest.$ac_objext; then
4884 ac_cv_header_stdc=yes
4886 echo "$as_me: failed program was:" >&5
4887 sed 's/^/| /' conftest.$ac_ext >&5
4889 ac_cv_header_stdc=no
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 if test $ac_cv_header_stdc = yes; then
4895 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4896 cat >conftest.$ac_ext <<_ACEOF
4899 cat confdefs.h >>conftest.$ac_ext
4900 cat >>conftest.$ac_ext <<_ACEOF
4901 /* end confdefs.h. */
4905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906 $EGREP "memchr" >/dev/null 2>&1; then
4909 ac_cv_header_stdc=no
4915 if test $ac_cv_header_stdc = yes; then
4916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4917 cat >conftest.$ac_ext <<_ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4922 /* end confdefs.h. */
4926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4927 $EGREP "free" >/dev/null 2>&1; then
4930 ac_cv_header_stdc=no
4936 if test $ac_cv_header_stdc = yes; then
4937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4938 if test "$cross_compiling" = yes; then
4941 cat >conftest.$ac_ext <<_ACEOF
4944 cat confdefs.h >>conftest.$ac_ext
4945 cat >>conftest.$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4949 #if ((' ' & 0x0FF) == 0x020)
4950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4953 # define ISLOWER(c) \
4954 (('a' <= (c) && (c) <= 'i') \
4955 || ('j' <= (c) && (c) <= 'r') \
4956 || ('s' <= (c) && (c) <= 'z'))
4957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4965 for (i = 0; i < 256; i++)
4966 if (XOR (islower (i), ISLOWER (i))
4967 || toupper (i) != TOUPPER (i))
4972 rm -f conftest$ac_exeext
4973 if { (ac_try="$ac_link"
4975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4976 *) ac_try_echo=$ac_try;;
4978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4979 (eval "$ac_link") 2>&5
4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4983 { (case "(($ac_try" in
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988 (eval "$ac_try") 2>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); }; }; then
4994 echo "$as_me: program exited with status $ac_status" >&5
4995 echo "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4999 ac_cv_header_stdc=no
5001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5007 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5008 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5009 if test $ac_cv_header_stdc = yes; then
5011 cat >>confdefs.h <<\_ACEOF
5012 #define STDC_HEADERS 1
5017 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5027 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5028 inttypes.h stdint.h unistd.h
5030 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 cat >conftest.$ac_ext <<_ACEOF
5039 cat confdefs.h >>conftest.$ac_ext
5040 cat >>conftest.$ac_ext <<_ACEOF
5041 /* end confdefs.h. */
5042 $ac_includes_default
5044 #include <$ac_header>
5046 rm -f conftest.$ac_objext
5047 if { (ac_try="$ac_compile"
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5050 *) ac_try_echo=$ac_try;;
5052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5053 (eval "$ac_compile") 2>conftest.er1
5055 grep -v '^ *+' conftest.er1 >conftest.err
5057 cat conftest.err >&5
5058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059 (exit $ac_status); } && {
5060 test -z "$ac_c_werror_flag" ||
5061 test ! -s conftest.err
5062 } && test -s conftest.$ac_objext; then
5063 eval "$as_ac_Header=yes"
5065 echo "$as_me: failed program was:" >&5
5066 sed 's/^/| /' conftest.$ac_ext >&5
5068 eval "$as_ac_Header=no"
5071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073 ac_res=`eval echo '${'$as_ac_Header'}'`
5074 { echo "$as_me:$LINENO: result: $ac_res" >&5
5075 echo "${ECHO_T}$ac_res" >&6; }
5076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5077 cat >>confdefs.h <<_ACEOF
5078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5087 for ac_header in dlfcn.h
5089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 ac_res=`eval echo '${'$as_ac_Header'}'`
5097 { echo "$as_me:$LINENO: result: $ac_res" >&5
5098 echo "${ECHO_T}$ac_res" >&6; }
5100 # Is the header compilable?
5101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5103 cat >conftest.$ac_ext <<_ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 $ac_includes_default
5110 #include <$ac_header>
5112 rm -f conftest.$ac_objext
5113 if { (ac_try="$ac_compile"
5115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5116 *) ac_try_echo=$ac_try;;
5118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5119 (eval "$ac_compile") 2>conftest.er1
5121 grep -v '^ *+' conftest.er1 >conftest.err
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } && {
5126 test -z "$ac_c_werror_flag" ||
5127 test ! -s conftest.err
5128 } && test -s conftest.$ac_objext; then
5129 ac_header_compiler=yes
5131 echo "$as_me: failed program was:" >&5
5132 sed 's/^/| /' conftest.$ac_ext >&5
5134 ac_header_compiler=no
5137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5139 echo "${ECHO_T}$ac_header_compiler" >&6; }
5141 # Is the header present?
5142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5144 cat >conftest.$ac_ext <<_ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h. */
5150 #include <$ac_header>
5152 if { (ac_try="$ac_cpp conftest.$ac_ext"
5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5160 grep -v '^ *+' conftest.er1 >conftest.err
5162 cat conftest.err >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); } >/dev/null && {
5165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5166 test ! -s conftest.err
5168 ac_header_preproc=yes
5170 echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5173 ac_header_preproc=no
5176 rm -f conftest.err conftest.$ac_ext
5177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5178 echo "${ECHO_T}$ac_header_preproc" >&6; }
5180 # So? What about this header?
5181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5187 ac_header_preproc=yes
5190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 eval "$as_ac_Header=\$ac_header_preproc"
5212 ac_res=`eval echo '${'$as_ac_Header'}'`
5213 { echo "$as_me:$LINENO: result: $ac_res" >&5
5214 echo "${ECHO_T}$ac_res" >&6; }
5217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5218 cat >>confdefs.h <<_ACEOF
5219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5227 ac_cpp='$CXXCPP $CPPFLAGS'
5228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5231 if test -z "$CXX"; then
5232 if test -n "$CCC"; then
5235 if test -n "$ac_tool_prefix"; then
5236 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5242 if test "${ac_cv_prog_CXX+set}" = set; then
5243 echo $ECHO_N "(cached) $ECHO_C" >&6
5245 if test -n "$CXX"; then
5246 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5255 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5266 if test -n "$CXX"; then
5267 { echo "$as_me:$LINENO: result: $CXX" >&5
5268 echo "${ECHO_T}$CXX" >&6; }
5270 { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5275 test -n "$CXX" && break
5278 if test -z "$CXX"; then
5280 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5282 # Extract the first word of "$ac_prog", so it can be a program name with args.
5283 set dummy $ac_prog; ac_word=$2
5284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5286 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5287 echo $ECHO_N "(cached) $ECHO_C" >&6
5289 if test -n "$ac_ct_CXX"; then
5290 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299 ac_cv_prog_ac_ct_CXX="$ac_prog"
5300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5310 if test -n "$ac_ct_CXX"; then
5311 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5312 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5314 { echo "$as_me:$LINENO: result: no" >&5
5315 echo "${ECHO_T}no" >&6; }
5319 test -n "$ac_ct_CXX" && break
5322 if test "x$ac_ct_CXX" = x; then
5325 case $cross_compiling:$ac_tool_warned in
5327 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5328 whose name does not start with the host triplet. If you think this
5329 configuration is useful to you, please write to autoconf@gnu.org." >&5
5330 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5331 whose name does not start with the host triplet. If you think this
5332 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5333 ac_tool_warned=yes ;;
5341 # Provide some information about the compiler.
5342 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5343 ac_compiler=`set X $ac_compile; echo $2`
5344 { (ac_try="$ac_compiler --version >&5"
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_compiler --version >&5") 2>&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); }
5354 { (ac_try="$ac_compiler -v >&5"
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_compiler -v >&5") 2>&5
5362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363 (exit $ac_status); }
5364 { (ac_try="$ac_compiler -V >&5"
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_compiler -V >&5") 2>&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }
5375 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5376 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5377 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5380 cat >conftest.$ac_ext <<_ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5398 rm -f conftest.$ac_objext
5399 if { (ac_try="$ac_compile"
5401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5402 *) ac_try_echo=$ac_try;;
5404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5405 (eval "$ac_compile") 2>conftest.er1
5407 grep -v '^ *+' conftest.er1 >conftest.err
5409 cat conftest.err >&5
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); } && {
5412 test -z "$ac_cxx_werror_flag" ||
5413 test ! -s conftest.err
5414 } && test -s conftest.$ac_objext; then
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5424 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5427 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5428 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5429 GXX=`test $ac_compiler_gnu = yes && echo yes`
5430 ac_test_CXXFLAGS=${CXXFLAGS+set}
5431 ac_save_CXXFLAGS=$CXXFLAGS
5432 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5433 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5434 if test "${ac_cv_prog_cxx_g+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5437 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5438 ac_cxx_werror_flag=yes
5441 cat >conftest.$ac_ext <<_ACEOF
5444 cat confdefs.h >>conftest.$ac_ext
5445 cat >>conftest.$ac_ext <<_ACEOF
5446 /* end confdefs.h. */
5456 rm -f conftest.$ac_objext
5457 if { (ac_try="$ac_compile"
5459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5460 *) ac_try_echo=$ac_try;;
5462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5463 (eval "$ac_compile") 2>conftest.er1
5465 grep -v '^ *+' conftest.er1 >conftest.err
5467 cat conftest.err >&5
5468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469 (exit $ac_status); } && {
5470 test -z "$ac_cxx_werror_flag" ||
5471 test ! -s conftest.err
5472 } && test -s conftest.$ac_objext; then
5473 ac_cv_prog_cxx_g=yes
5475 echo "$as_me: failed program was:" >&5
5476 sed 's/^/| /' conftest.$ac_ext >&5
5479 cat >conftest.$ac_ext <<_ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5494 rm -f conftest.$ac_objext
5495 if { (ac_try="$ac_compile"
5497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5498 *) ac_try_echo=$ac_try;;
5500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5501 (eval "$ac_compile") 2>conftest.er1
5503 grep -v '^ *+' conftest.er1 >conftest.err
5505 cat conftest.err >&5
5506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } && {
5508 test -z "$ac_cxx_werror_flag" ||
5509 test ! -s conftest.err
5510 } && test -s conftest.$ac_objext; then
5513 echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5516 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5518 cat >conftest.$ac_ext <<_ACEOF
5521 cat confdefs.h >>conftest.$ac_ext
5522 cat >>conftest.$ac_ext <<_ACEOF
5523 /* end confdefs.h. */
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_compile") 2>conftest.er1
5542 grep -v '^ *+' conftest.er1 >conftest.err
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && {
5547 test -z "$ac_cxx_werror_flag" ||
5548 test ! -s conftest.err
5549 } && test -s conftest.$ac_objext; then
5550 ac_cv_prog_cxx_g=yes
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5567 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5568 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5569 if test "$ac_test_CXXFLAGS" = set; then
5570 CXXFLAGS=$ac_save_CXXFLAGS
5571 elif test $ac_cv_prog_cxx_g = yes; then
5572 if test "$GXX" = yes; then
5578 if test "$GXX" = yes; then
5585 ac_cpp='$CXXCPP $CPPFLAGS'
5586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5590 depcc="$CXX" am_compiler_list=
5592 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5593 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5594 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5598 # We make a subdir and do the tests there. Otherwise we can end up
5599 # making bogus files that we don't know about and never remove. For
5600 # instance it was reported that on HP-UX the gcc test will end up
5601 # making a dummy file named `D' -- because `-MD' means `put the output
5604 # Copy depcomp to subdir because otherwise we won't find it if we're
5605 # using a relative directory.
5606 cp "$am_depcomp" conftest.dir
5608 # We will build objects and dependencies in a subdirectory because
5609 # it helps to detect inapplicable dependency modes. For instance
5610 # both Tru64's cc and ICC support -MD to output dependencies as a
5611 # side effect of compilation, but ICC will put the dependencies in
5612 # the current directory while Tru64 will put them in the object
5616 am_cv_CXX_dependencies_compiler_type=none
5617 if test "$am_compiler_list" = ""; then
5618 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5620 for depmode in $am_compiler_list; do
5621 # Setup a source with many dependencies, because some compilers
5622 # like to wrap large dependency lists on column 80 (with \), and
5623 # we should not choose a depcomp mode which is confused by this.
5625 # We need to recreate these files for each test, as the compiler may
5626 # overwrite some of them when testing with obscure command lines.
5627 # This happens at least with the AIX C compiler.
5629 for i in 1 2 3 4 5 6; do
5630 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5631 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5632 # Solaris 8's {/usr,}/bin/sh.
5633 touch sub/conftst$i.h
5635 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5639 # after this tag, mechanisms are not by side-effect, so they'll
5640 # only be used when explicitly requested
5641 if test "x$enable_dependency_tracking" = xyes; then
5649 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5650 # mode. It turns out that the SunPro C++ compiler does not properly
5651 # handle `-M -o', and we need to detect this.
5652 if depmode=$depmode \
5653 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5654 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5655 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5656 >/dev/null 2>conftest.err &&
5657 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5658 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5659 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5660 # icc doesn't choke on unknown options, it will just issue warnings
5661 # or remarks (even with -Werror). So we grep stderr for any message
5662 # that says an option was ignored or not supported.
5663 # When given -MP, icc 7.0 and 7.1 complain thusly:
5664 # icc: Command line warning: ignoring option '-M'; no argument required
5665 # The diagnosis changed in icc 8.0:
5666 # icc: Command line remark: option '-MP' not supported
5667 if (grep 'ignoring option' conftest.err ||
5668 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5669 am_cv_CXX_dependencies_compiler_type=$depmode
5678 am_cv_CXX_dependencies_compiler_type=none
5682 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5683 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5684 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5689 test "x$enable_dependency_tracking" != xno \
5690 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5691 am__fastdepCXX_TRUE=
5692 am__fastdepCXX_FALSE='#'
5694 am__fastdepCXX_TRUE='#'
5695 am__fastdepCXX_FALSE=
5701 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5702 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5703 (test "X$CXX" != "Xg++"))) ; then
5705 ac_cpp='$CXXCPP $CPPFLAGS'
5706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5709 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5710 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5711 if test -z "$CXXCPP"; then
5712 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 # Double quotes because CXXCPP needs to be expanded
5716 for CXXCPP in "$CXX -E" "/lib/cpp"
5719 for ac_cxx_preproc_warn_flag in '' yes
5721 # Use a header file that comes with gcc, so configuring glibc
5722 # with a fresh cross-compiler works.
5723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5724 # <limits.h> exists even on freestanding compilers.
5725 # On the NeXT, cc -E runs the code through the compiler's parser,
5726 # not just through cpp. "Syntax error" is here to catch this case.
5727 cat >conftest.$ac_ext <<_ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5734 # include <limits.h>
5736 # include <assert.h>
5740 if { (ac_try="$ac_cpp conftest.$ac_ext"
5742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5743 *) ac_try_echo=$ac_try;;
5745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5748 grep -v '^ *+' conftest.er1 >conftest.err
5750 cat conftest.err >&5
5751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752 (exit $ac_status); } >/dev/null && {
5753 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5754 test ! -s conftest.err
5758 echo "$as_me: failed program was:" >&5
5759 sed 's/^/| /' conftest.$ac_ext >&5
5761 # Broken: fails on valid input.
5765 rm -f conftest.err conftest.$ac_ext
5767 # OK, works on sane cases. Now check whether nonexistent headers
5768 # can be detected and how.
5769 cat >conftest.$ac_ext <<_ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5775 #include <ac_nonexistent.h>
5777 if { (ac_try="$ac_cpp conftest.$ac_ext"
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5785 grep -v '^ *+' conftest.er1 >conftest.err
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } >/dev/null && {
5790 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5791 test ! -s conftest.err
5793 # Broken: success on invalid input.
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5799 # Passes both tests.
5804 rm -f conftest.err conftest.$ac_ext
5807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5808 rm -f conftest.err conftest.$ac_ext
5809 if $ac_preproc_ok; then
5814 ac_cv_prog_CXXCPP=$CXXCPP
5817 CXXCPP=$ac_cv_prog_CXXCPP
5819 ac_cv_prog_CXXCPP=$CXXCPP
5821 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5822 echo "${ECHO_T}$CXXCPP" >&6; }
5824 for ac_cxx_preproc_warn_flag in '' yes
5826 # Use a header file that comes with gcc, so configuring glibc
5827 # with a fresh cross-compiler works.
5828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5829 # <limits.h> exists even on freestanding compilers.
5830 # On the NeXT, cc -E runs the code through the compiler's parser,
5831 # not just through cpp. "Syntax error" is here to catch this case.
5832 cat >conftest.$ac_ext <<_ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5839 # include <limits.h>
5841 # include <assert.h>
5845 if { (ac_try="$ac_cpp conftest.$ac_ext"
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5853 grep -v '^ *+' conftest.er1 >conftest.err
5855 cat conftest.err >&5
5856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5857 (exit $ac_status); } >/dev/null && {
5858 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5859 test ! -s conftest.err
5863 echo "$as_me: failed program was:" >&5
5864 sed 's/^/| /' conftest.$ac_ext >&5
5866 # Broken: fails on valid input.
5870 rm -f conftest.err conftest.$ac_ext
5872 # OK, works on sane cases. Now check whether nonexistent headers
5873 # can be detected and how.
5874 cat >conftest.$ac_ext <<_ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 #include <ac_nonexistent.h>
5882 if { (ac_try="$ac_cpp conftest.$ac_ext"
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5890 grep -v '^ *+' conftest.er1 >conftest.err
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } >/dev/null && {
5895 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5896 test ! -s conftest.err
5898 # Broken: success on invalid input.
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5904 # Passes both tests.
5909 rm -f conftest.err conftest.$ac_ext
5912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5913 rm -f conftest.err conftest.$ac_ext
5914 if $ac_preproc_ok; then
5917 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5918 See \`config.log' for more details." >&5
5919 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5920 See \`config.log' for more details." >&2;}
5921 { (exit 1); exit 1; }; }
5925 ac_cpp='$CXXCPP $CPPFLAGS'
5926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5934 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5935 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5936 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5937 if test -n "$ac_tool_prefix"; then
5938 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
5940 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5941 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5944 if test "${ac_cv_prog_F77+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5947 if test -n "$F77"; then
5948 ac_cv_prog_F77="$F77" # Let the user override the test.
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 if test -n "$F77"; then
5969 { echo "$as_me:$LINENO: result: $F77" >&5
5970 echo "${ECHO_T}$F77" >&6; }
5972 { echo "$as_me:$LINENO: result: no" >&5
5973 echo "${ECHO_T}no" >&6; }
5977 test -n "$F77" && break
5980 if test -z "$F77"; then
5982 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
5984 # Extract the first word of "$ac_prog", so it can be a program name with args.
5985 set dummy $ac_prog; ac_word=$2
5986 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5988 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 if test -n "$ac_ct_F77"; then
5992 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 test -z "$as_dir" && as_dir=.
5999 for ac_exec_ext in '' $ac_executable_extensions; do
6000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6001 ac_cv_prog_ac_ct_F77="$ac_prog"
6002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6011 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6012 if test -n "$ac_ct_F77"; then
6013 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6014 echo "${ECHO_T}$ac_ct_F77" >&6; }
6016 { echo "$as_me:$LINENO: result: no" >&5
6017 echo "${ECHO_T}no" >&6; }
6021 test -n "$ac_ct_F77" && break
6024 if test "x$ac_ct_F77" = x; then
6027 case $cross_compiling:$ac_tool_warned in
6029 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6030 whose name does not start with the host triplet. If you think this
6031 configuration is useful to you, please write to autoconf@gnu.org." >&5
6032 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6033 whose name does not start with the host triplet. If you think this
6034 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6035 ac_tool_warned=yes ;;
6042 # Provide some information about the compiler.
6043 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6044 ac_compiler=`set X $ac_compile; echo $2`
6045 { (ac_try="$ac_compiler --version >&5"
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compiler --version >&5") 2>&5
6053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6054 (exit $ac_status); }
6055 { (ac_try="$ac_compiler -v >&5"
6057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6058 *) ac_try_echo=$ac_try;;
6060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6061 (eval "$ac_compiler -v >&5") 2>&5
6063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6064 (exit $ac_status); }
6065 { (ac_try="$ac_compiler -V >&5"
6067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6068 *) ac_try_echo=$ac_try;;
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_compiler -V >&5") 2>&5
6073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6074 (exit $ac_status); }
6077 # If we don't use `.F' as extension, the preprocessor is not run on the
6078 # input file. (Note that this only needs to work for GNU compilers.)
6081 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6082 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6083 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6084 echo $ECHO_N "(cached) $ECHO_C" >&6
6086 cat >conftest.$ac_ext <<_ACEOF
6094 rm -f conftest.$ac_objext
6095 if { (ac_try="$ac_compile"
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_compile") 2>conftest.er1
6103 grep -v '^ *+' conftest.er1 >conftest.err
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } && {
6108 test -z "$ac_f77_werror_flag" ||
6109 test ! -s conftest.err
6110 } && test -s conftest.$ac_objext; then
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6123 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6124 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6126 ac_test_FFLAGS=${FFLAGS+set}
6127 ac_save_FFLAGS=$FFLAGS
6129 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6130 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6131 if test "${ac_cv_prog_f77_g+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 cat >conftest.$ac_ext <<_ACEOF
6140 rm -f conftest.$ac_objext
6141 if { (ac_try="$ac_compile"
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_compile") 2>conftest.er1
6149 grep -v '^ *+' conftest.er1 >conftest.err
6151 cat conftest.err >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } && {
6154 test -z "$ac_f77_werror_flag" ||
6155 test ! -s conftest.err
6156 } && test -s conftest.$ac_objext; then
6157 ac_cv_prog_f77_g=yes
6159 echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6169 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6170 if test "$ac_test_FFLAGS" = set; then
6171 FFLAGS=$ac_save_FFLAGS
6172 elif test $ac_cv_prog_f77_g = yes; then
6173 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6179 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6186 G77=`test $ac_compiler_gnu = yes && echo yes`
6188 ac_cpp='$CPP $CPPFLAGS'
6189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6195 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6197 # find the maximum length of command line arguments
6198 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6199 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6200 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6201 echo $ECHO_N "(cached) $ECHO_C" >&6
6208 # On DJGPP, this test can blow up pretty badly due to problems in libc
6209 # (any single argument exceeding 2000 bytes causes a buffer overrun
6210 # during glob expansion). Even if it were fixed, the result of this
6211 # check would be larger than it should be.
6212 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6216 # Under GNU Hurd, this test is not required because there is
6217 # no limit to the length of command line arguments.
6218 # Libtool will interpret -1 as no limit whatsoever
6219 lt_cv_sys_max_cmd_len=-1;
6223 # On Win9x/ME, this test blows up -- it succeeds, but takes
6224 # about 5 minutes as the teststring grows exponentially.
6225 # Worse, since 9x/ME are not pre-emptively multitasking,
6226 # you end up with a "frozen" computer, even though with patience
6227 # the test eventually succeeds (with a max line length of 256k).
6228 # Instead, let's just punt: use the minimum linelength reported by
6229 # all of the supported platforms: 8192 (on NT/2K/XP).
6230 lt_cv_sys_max_cmd_len=8192;
6234 # On AmigaOS with pdksh, this test takes hours, literally.
6235 # So we just punt and use a minimum line length of 8192.
6236 lt_cv_sys_max_cmd_len=8192;
6239 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6240 # This has been around since 386BSD, at least. Likely further.
6241 if test -x /sbin/sysctl; then
6242 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6243 elif test -x /usr/sbin/sysctl; then
6244 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6246 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6248 # And add a safety zone
6249 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6250 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6254 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6255 lt_cv_sys_max_cmd_len=196608
6259 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6260 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6261 # nice to cause kernel panics so lets avoid the loop below.
6262 # First set a reasonable default.
6263 lt_cv_sys_max_cmd_len=16384
6265 if test -x /sbin/sysconfig; then
6266 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6267 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6272 lt_cv_sys_max_cmd_len=102400
6274 sysv5* | sco5v6* | sysv4.2uw2*)
6275 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6276 if test -n "$kargmax"; then
6277 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6279 lt_cv_sys_max_cmd_len=32768
6283 # If test is not a shell built-in, we'll probably end up computing a
6284 # maximum length that is only half of the actual maximum length, but
6286 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6287 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6288 = "XX$teststring") >/dev/null 2>&1 &&
6289 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6290 lt_cv_sys_max_cmd_len=$new_result &&
6291 test $i != 17 # 1/2 MB should be enough
6294 teststring=$teststring$teststring
6297 # Add a significant safety factor because C++ compilers can tack on massive
6298 # amounts of additional arguments before passing them to the linker.
6299 # It appears as though 1/2 is a usable value.
6300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6306 if test -n $lt_cv_sys_max_cmd_len ; then
6307 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6308 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6310 { echo "$as_me:$LINENO: result: none" >&5
6311 echo "${ECHO_T}none" >&6; }
6317 # Check for command to grab the raw symbol name followed by C symbol from nm.
6318 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6319 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6320 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6321 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 # These are sane defaults that work on at least a few old systems.
6325 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6327 # Character class describing NM global symbol codes.
6328 symcode='[BCDEGRST]'
6330 # Regexp to match symbols that can be accessed directly from C.
6331 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6333 # Transform an extracted symbol line into a proper C declaration
6334 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6336 # Transform an extracted symbol line into symbol name and symbol address
6337 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'"
6339 # Define system-specific variables.
6344 cygwin* | mingw* | pw32*)
6345 symcode='[ABCDGISTW]'
6347 hpux*) # Its linker distinguishes data from code symbols
6348 if test "$host_cpu" = ia64; then
6349 symcode='[ABCDEGRST]'
6351 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6352 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'"
6354 linux* | k*bsd*-gnu)
6355 if test "$host_cpu" = ia64; then
6356 symcode='[ABCDGIRSTW]'
6357 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6358 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'"
6362 symcode='[BCDEGRST]'
6365 symcode='[BCDEGQRST]'
6376 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6384 # Handle CRLF in mingw tool chain
6388 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6392 # If we're using GNU nm, then use its standard symbol codes.
6393 case `$NM -V 2>&1` in
6394 *GNU* | *'with BFD'*)
6395 symcode='[ABCDGIRSTW]' ;;
6398 # Try without a prefix undercore, then with it.
6399 for ac_symprfx in "" "_"; do
6401 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6402 symxfrm="\\1 $ac_symprfx\\2 \\2"
6404 # Write the raw and C identifiers.
6405 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6407 # Check to see that the pipe works correctly.
6411 cat > conftest.$ac_ext <<EOF
6416 void nm_test_func(){}
6420 int main(){nm_test_var='a';nm_test_func();return(0);}
6423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6424 (eval $ac_compile) 2>&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; then
6428 # Now try to grab the symbols.
6430 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6431 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } && test -s "$nlist"; then
6435 # Try sorting and uniquifying the output.
6436 if sort "$nlist" | uniq > "$nlist"T; then
6437 mv -f "$nlist"T "$nlist"
6442 # Make sure that we snagged all the symbols we need.
6443 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6444 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6445 cat <<EOF > conftest.$ac_ext
6451 # Now generate the symbol file.
6452 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6454 cat <<EOF >> conftest.$ac_ext
6455 #if defined (__STDC__) && __STDC__
6456 # define lt_ptr_t void *
6458 # define lt_ptr_t char *
6462 /* The mapping between symbol names and symbols. */
6467 lt_preloaded_symbols[] =
6470 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6471 cat <<\EOF >> conftest.$ac_ext
6479 # Now try linking the two files.
6480 mv conftest.$ac_objext conftstm.$ac_objext
6481 lt_save_LIBS="$LIBS"
6482 lt_save_CFLAGS="$CFLAGS"
6483 LIBS="conftstm.$ac_objext"
6484 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6485 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6486 (eval $ac_link) 2>&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6492 LIBS="$lt_save_LIBS"
6493 CFLAGS="$lt_save_CFLAGS"
6495 echo "cannot find nm_test_func in $nlist" >&5
6498 echo "cannot find nm_test_var in $nlist" >&5
6501 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6504 echo "$progname: failed program was:" >&5
6505 cat conftest.$ac_ext >&5
6507 rm -f conftest* conftst*
6509 # Do not use the global_symbol_pipe unless it works.
6510 if test "$pipe_works" = yes; then
6513 lt_cv_sys_global_symbol_pipe=
6519 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6520 lt_cv_sys_global_symbol_to_cdecl=
6522 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6523 { echo "$as_me:$LINENO: result: failed" >&5
6524 echo "${ECHO_T}failed" >&6; }
6526 { echo "$as_me:$LINENO: result: ok" >&5
6527 echo "${ECHO_T}ok" >&6; }
6530 { echo "$as_me:$LINENO: checking for objdir" >&5
6531 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6532 if test "${lt_cv_objdir+set}" = set; then
6533 echo $ECHO_N "(cached) $ECHO_C" >&6
6535 rm -f .libs 2>/dev/null
6536 mkdir .libs 2>/dev/null
6537 if test -d .libs; then
6540 # MS-DOS does not allow filenames that begin with a dot.
6543 rmdir .libs 2>/dev/null
6545 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6546 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6547 objdir=$lt_cv_objdir
6555 # AIX sometimes has problems with the GCC collect2 program. For some
6556 # reason, if we set the COLLECT_NAMES environment variable, the problems
6557 # vanish in a puff of smoke.
6558 if test "X${COLLECT_NAMES+set}" != Xset; then
6560 export COLLECT_NAMES
6565 # Sed substitution that helps us do robust quoting. It backslashifies
6566 # metacharacters that are still active within double-quoted strings.
6567 Xsed='sed -e 1s/^X//'
6568 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6570 # Same as above, but do not quote variable references.
6571 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6573 # Sed substitution to delay expansion of an escaped shell variable in a
6574 # double_quote_subst'ed string.
6575 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6577 # Sed substitution to avoid accidental globbing in evaled expressions
6578 no_glob_subst='s/\*/\\\*/g'
6584 default_ofile=libtool
6585 can_build_shared=yes
6587 # All known linkers require a `.a' archive for static linking (except MSVC,
6588 # which needs '.lib').
6590 ltmain="$ac_aux_dir/ltmain.sh"
6591 ofile="$default_ofile"
6592 with_gnu_ld="$lt_cv_prog_gnu_ld"
6594 if test -n "$ac_tool_prefix"; then
6595 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6596 set dummy ${ac_tool_prefix}ar; ac_word=$2
6597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6599 if test "${ac_cv_prog_AR+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 if test -n "$AR"; then
6603 ac_cv_prog_AR="$AR" # Let the user override the test.
6605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6609 test -z "$as_dir" && as_dir=.
6610 for ac_exec_ext in '' $ac_executable_extensions; do
6611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6612 ac_cv_prog_AR="${ac_tool_prefix}ar"
6613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6623 if test -n "$AR"; then
6624 { echo "$as_me:$LINENO: result: $AR" >&5
6625 echo "${ECHO_T}$AR" >&6; }
6627 { echo "$as_me:$LINENO: result: no" >&5
6628 echo "${ECHO_T}no" >&6; }
6633 if test -z "$ac_cv_prog_AR"; then
6635 # Extract the first word of "ar", so it can be a program name with args.
6636 set dummy ar; ac_word=$2
6637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6639 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 if test -n "$ac_ct_AR"; then
6643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652 ac_cv_prog_ac_ct_AR="ar"
6653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6662 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6663 if test -n "$ac_ct_AR"; then
6664 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6665 echo "${ECHO_T}$ac_ct_AR" >&6; }
6667 { echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6; }
6671 if test "x$ac_ct_AR" = x; then
6674 case $cross_compiling:$ac_tool_warned in
6676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6677 whose name does not start with the host triplet. If you think this
6678 configuration is useful to you, please write to autoconf@gnu.org." >&5
6679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6680 whose name does not start with the host triplet. If you think this
6681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6682 ac_tool_warned=yes ;;
6690 if test -n "$ac_tool_prefix"; then
6691 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6692 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6695 if test "${ac_cv_prog_RANLIB+set}" = set; then
6696 echo $ECHO_N "(cached) $ECHO_C" >&6
6698 if test -n "$RANLIB"; then
6699 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6705 test -z "$as_dir" && as_dir=.
6706 for ac_exec_ext in '' $ac_executable_extensions; do
6707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718 RANLIB=$ac_cv_prog_RANLIB
6719 if test -n "$RANLIB"; then
6720 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6721 echo "${ECHO_T}$RANLIB" >&6; }
6723 { echo "$as_me:$LINENO: result: no" >&5
6724 echo "${ECHO_T}no" >&6; }
6729 if test -z "$ac_cv_prog_RANLIB"; then
6730 ac_ct_RANLIB=$RANLIB
6731 # Extract the first word of "ranlib", so it can be a program name with args.
6732 set dummy ranlib; ac_word=$2
6733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 if test -n "$ac_ct_RANLIB"; then
6739 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6745 test -z "$as_dir" && as_dir=.
6746 for ac_exec_ext in '' $ac_executable_extensions; do
6747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6748 ac_cv_prog_ac_ct_RANLIB="ranlib"
6749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6759 if test -n "$ac_ct_RANLIB"; then
6760 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6761 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6763 { echo "$as_me:$LINENO: result: no" >&5
6764 echo "${ECHO_T}no" >&6; }
6767 if test "x$ac_ct_RANLIB" = x; then
6770 case $cross_compiling:$ac_tool_warned in
6772 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6773 whose name does not start with the host triplet. If you think this
6774 configuration is useful to you, please write to autoconf@gnu.org." >&5
6775 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6776 whose name does not start with the host triplet. If you think this
6777 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6778 ac_tool_warned=yes ;;
6780 RANLIB=$ac_ct_RANLIB
6783 RANLIB="$ac_cv_prog_RANLIB"
6786 if test -n "$ac_tool_prefix"; then
6787 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6788 set dummy ${ac_tool_prefix}strip; ac_word=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_prog_STRIP+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6794 if test -n "$STRIP"; then
6795 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6801 test -z "$as_dir" && as_dir=.
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 STRIP=$ac_cv_prog_STRIP
6815 if test -n "$STRIP"; then
6816 { echo "$as_me:$LINENO: result: $STRIP" >&5
6817 echo "${ECHO_T}$STRIP" >&6; }
6819 { echo "$as_me:$LINENO: result: no" >&5
6820 echo "${ECHO_T}no" >&6; }
6825 if test -z "$ac_cv_prog_STRIP"; then
6827 # Extract the first word of "strip", so it can be a program name with args.
6828 set dummy strip; ac_word=$2
6829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6831 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6832 echo $ECHO_N "(cached) $ECHO_C" >&6
6834 if test -n "$ac_ct_STRIP"; then
6835 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6841 test -z "$as_dir" && as_dir=.
6842 for ac_exec_ext in '' $ac_executable_extensions; do
6843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6844 ac_cv_prog_ac_ct_STRIP="strip"
6845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6854 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6855 if test -n "$ac_ct_STRIP"; then
6856 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6857 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6859 { echo "$as_me:$LINENO: result: no" >&5
6860 echo "${ECHO_T}no" >&6; }
6863 if test "x$ac_ct_STRIP" = x; then
6866 case $cross_compiling:$ac_tool_warned in
6868 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6869 whose name does not start with the host triplet. If you think this
6870 configuration is useful to you, please write to autoconf@gnu.org." >&5
6871 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6872 whose name does not start with the host triplet. If you think this
6873 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6874 ac_tool_warned=yes ;;
6879 STRIP="$ac_cv_prog_STRIP"
6884 old_CFLAGS="$CFLAGS"
6886 # Set sane defaults for various variables
6887 test -z "$AR" && AR=ar
6888 test -z "$AR_FLAGS" && AR_FLAGS=cru
6889 test -z "$AS" && AS=as
6890 test -z "$CC" && CC=cc
6891 test -z "$LTCC" && LTCC=$CC
6892 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6893 test -z "$DLLTOOL" && DLLTOOL=dlltool
6894 test -z "$LD" && LD=ld
6895 test -z "$LN_S" && LN_S="ln -s"
6896 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6897 test -z "$NM" && NM=nm
6898 test -z "$SED" && SED=sed
6899 test -z "$OBJDUMP" && OBJDUMP=objdump
6900 test -z "$RANLIB" && RANLIB=:
6901 test -z "$STRIP" && STRIP=:
6902 test -z "$ac_objext" && ac_objext=o
6904 # Determine commands to create old-style static archives.
6905 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6906 old_postinstall_cmds='chmod 644 $oldlib'
6907 old_postuninstall_cmds=
6909 if test -n "$RANLIB"; then
6912 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6915 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6918 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6921 for cc_temp in $compiler""; do
6923 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6924 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6929 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6932 # Only perform the check for file, if the check method requires it
6933 case $deplibs_check_method in
6935 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6936 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6937 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6938 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6943 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6946 lt_save_MAGIC_CMD="$MAGIC_CMD"
6947 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6948 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6949 for ac_dir in $ac_dummy; do
6951 test -z "$ac_dir" && ac_dir=.
6952 if test -f $ac_dir/${ac_tool_prefix}file; then
6953 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6954 if test -n "$file_magic_test_file"; then
6955 case $deplibs_check_method in
6957 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6958 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6959 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6960 $EGREP "$file_magic_regex" > /dev/null; then
6965 *** Warning: the command libtool uses to detect shared libraries,
6966 *** $file_magic_cmd, produces output that libtool cannot recognize.
6967 *** The result is that libtool may fail to recognize shared libraries
6968 *** as such. This will affect the creation of libtool libraries that
6969 *** depend on shared libraries, but programs linked with such libtool
6970 *** libraries will work regardless of this problem. Nevertheless, you
6971 *** may want to report the problem to your system manager and/or to
6972 *** bug-libtool@gnu.org
6982 MAGIC_CMD="$lt_save_MAGIC_CMD"
6987 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6988 if test -n "$MAGIC_CMD"; then
6989 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6990 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6992 { echo "$as_me:$LINENO: result: no" >&5
6993 echo "${ECHO_T}no" >&6; }
6996 if test -z "$lt_cv_path_MAGIC_CMD"; then
6997 if test -n "$ac_tool_prefix"; then
6998 { echo "$as_me:$LINENO: checking for file" >&5
6999 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7000 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7001 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7008 lt_save_MAGIC_CMD="$MAGIC_CMD"
7009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7010 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7011 for ac_dir in $ac_dummy; do
7013 test -z "$ac_dir" && ac_dir=.
7014 if test -f $ac_dir/file; then
7015 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7016 if test -n "$file_magic_test_file"; then
7017 case $deplibs_check_method in
7019 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7022 $EGREP "$file_magic_regex" > /dev/null; then
7027 *** Warning: the command libtool uses to detect shared libraries,
7028 *** $file_magic_cmd, produces output that libtool cannot recognize.
7029 *** The result is that libtool may fail to recognize shared libraries
7030 *** as such. This will affect the creation of libtool libraries that
7031 *** depend on shared libraries, but programs linked with such libtool
7032 *** libraries will work regardless of this problem. Nevertheless, you
7033 *** may want to report the problem to your system manager and/or to
7034 *** bug-libtool@gnu.org
7044 MAGIC_CMD="$lt_save_MAGIC_CMD"
7049 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7050 if test -n "$MAGIC_CMD"; then
7051 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7052 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7054 { echo "$as_me:$LINENO: result: no" >&5
7055 echo "${ECHO_T}no" >&6; }
7070 # Check whether --enable-libtool-lock was given.
7071 if test "${enable_libtool_lock+set}" = set; then
7072 enableval=$enable_libtool_lock;
7075 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7078 # Check whether --with-pic was given.
7079 if test "${with_pic+set}" = set; then
7080 withval=$with_pic; pic_mode="$withval"
7085 test -z "$pic_mode" && pic_mode=default
7087 # Use C for the default configuration in the libtool script
7091 ac_cpp='$CPP $CPPFLAGS'
7092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7097 # Source file extension for C test sources.
7100 # Object file extension for compiled C test sources.
7104 # Code to be used in simple compile tests
7105 lt_simple_compile_test_code="int some_variable = 0;\n"
7107 # Code to be used in simple link tests
7108 lt_simple_link_test_code='int main(){return(0);}\n'
7111 # If no C compiler was specified, use CC.
7114 # If no C compiler flags were specified, use CFLAGS.
7115 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7117 # Allow CC to be a program name with arguments.
7121 # save warnings/boilerplate of simple test code
7122 ac_outfile=conftest.$ac_objext
7123 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7124 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7125 _lt_compiler_boilerplate=`cat conftest.err`
7128 ac_outfile=conftest.$ac_objext
7129 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7130 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7131 _lt_linker_boilerplate=`cat conftest.err`
7136 lt_prog_compiler_no_builtin_flag=
7138 if test "$GCC" = yes; then
7139 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7142 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7143 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7144 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7147 lt_cv_prog_compiler_rtti_exceptions=no
7148 ac_outfile=conftest.$ac_objext
7149 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7150 lt_compiler_flag="-fno-rtti -fno-exceptions"
7151 # Insert the option either (1) after the last *FLAGS variable, or
7152 # (2) before a word containing "conftest.", or (3) at the end.
7153 # Note that $ac_compile itself does not contain backslashes and begins
7154 # with a dollar sign (not a hyphen), so the echo should work correctly.
7155 # The option is referenced via a variable to avoid confusing sed.
7156 lt_compile=`echo "$ac_compile" | $SED \
7157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7159 -e 's:$: $lt_compiler_flag:'`
7160 (eval echo "\"\$as_me:7160: $lt_compile\"" >&5)
7161 (eval "$lt_compile" 2>conftest.err)
7163 cat conftest.err >&5
7164 echo "$as_me:7164: \$? = $ac_status" >&5
7165 if (exit $ac_status) && test -s "$ac_outfile"; then
7166 # The compiler can only warn and ignore the option if not recognized
7167 # So say no if there are warnings other than the usual output.
7168 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7169 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7170 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7171 lt_cv_prog_compiler_rtti_exceptions=yes
7177 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7178 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7180 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7181 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7188 lt_prog_compiler_wl=
7189 lt_prog_compiler_pic=
7190 lt_prog_compiler_static=
7192 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7193 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7195 if test "$GCC" = yes; then
7196 lt_prog_compiler_wl='-Wl,'
7197 lt_prog_compiler_static='-static'
7201 # All AIX code is PIC.
7202 if test "$host_cpu" = ia64; then
7203 # AIX 5 now supports IA64 processor
7204 lt_prog_compiler_static='-Bstatic'
7209 # FIXME: we need at least 68020 code to build shared libraries, but
7210 # adding the `-m68020' flag to GCC prevents building anything better,
7212 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7215 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7216 # PIC is the default for these OSes.
7219 mingw* | pw32* | os2*)
7220 # This hack is so that the source file can tell whether it is being
7221 # built for inclusion in a dll (and should export symbols for example).
7222 lt_prog_compiler_pic='-DDLL_EXPORT'
7225 darwin* | rhapsody*)
7226 # PIC is the default on this platform
7227 # Common symbols not allowed in MH_DYLIB files
7228 lt_prog_compiler_pic='-fno-common'
7232 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7233 # Instead, we relocate shared libraries at runtime.
7237 # Just because we use GCC doesn't mean we suddenly get shared libraries
7238 # on systems that don't support them.
7239 lt_prog_compiler_can_build_shared=no
7244 if test -d /usr/nec; then
7245 lt_prog_compiler_pic=-Kconform_pic
7250 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7257 lt_prog_compiler_pic='-fPIC'
7263 lt_prog_compiler_pic='-fPIC'
7267 # PORTME Check for flag to pass linker flags through the system compiler.
7270 lt_prog_compiler_wl='-Wl,'
7271 if test "$host_cpu" = ia64; then
7272 # AIX 5 now supports IA64 processor
7273 lt_prog_compiler_static='-Bstatic'
7275 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7279 # PIC is the default on this platform
7280 # Common symbols not allowed in MH_DYLIB files
7281 case $cc_basename in
7283 lt_prog_compiler_pic='-qnocommon'
7284 lt_prog_compiler_wl='-Wl,'
7289 mingw* | pw32* | os2*)
7290 # This hack is so that the source file can tell whether it is being
7291 # built for inclusion in a dll (and should export symbols for example).
7292 lt_prog_compiler_pic='-DDLL_EXPORT'
7295 hpux9* | hpux10* | hpux11*)
7296 lt_prog_compiler_wl='-Wl,'
7297 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7304 lt_prog_compiler_pic='+Z'
7307 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7308 lt_prog_compiler_static='${wl}-a ${wl}archive'
7311 irix5* | irix6* | nonstopux*)
7312 lt_prog_compiler_wl='-Wl,'
7313 # PIC (with -KPIC) is the default.
7314 lt_prog_compiler_static='-non_shared'
7318 lt_prog_compiler_pic='-KPIC'
7319 lt_prog_compiler_static='-Bstatic'
7322 linux* | k*bsd*-gnu)
7323 case $cc_basename in
7325 lt_prog_compiler_wl='-Wl,'
7326 lt_prog_compiler_pic='-KPIC'
7327 lt_prog_compiler_static='-static'
7329 pgcc* | pgf77* | pgf90* | pgf95*)
7330 # Portland Group compilers (*not* the Pentium gcc compiler,
7331 # which looks to be a dead project)
7332 lt_prog_compiler_wl='-Wl,'
7333 lt_prog_compiler_pic='-fpic'
7334 lt_prog_compiler_static='-Bstatic'
7337 lt_prog_compiler_wl='-Wl,'
7338 # All Alpha code is PIC.
7339 lt_prog_compiler_static='-non_shared'
7344 osf3* | osf4* | osf5*)
7345 lt_prog_compiler_wl='-Wl,'
7346 # All OSF/1 code is PIC.
7347 lt_prog_compiler_static='-non_shared'
7351 lt_prog_compiler_pic='-KPIC'
7352 lt_prog_compiler_static='-Bstatic'
7353 case $cc_basename in
7355 lt_prog_compiler_wl='-Qoption ld ';;
7357 lt_prog_compiler_wl='-Wl,';;
7362 lt_prog_compiler_wl='-Qoption ld '
7363 lt_prog_compiler_pic='-PIC'
7364 lt_prog_compiler_static='-Bstatic'
7367 sysv4 | sysv4.2uw2* | sysv4.3*)
7368 lt_prog_compiler_wl='-Wl,'
7369 lt_prog_compiler_pic='-KPIC'
7370 lt_prog_compiler_static='-Bstatic'
7374 if test -d /usr/nec ;then
7375 lt_prog_compiler_pic='-Kconform_pic'
7376 lt_prog_compiler_static='-Bstatic'
7380 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7381 lt_prog_compiler_wl='-Wl,'
7382 lt_prog_compiler_pic='-KPIC'
7383 lt_prog_compiler_static='-Bstatic'
7387 lt_prog_compiler_wl='-Wl,'
7388 lt_prog_compiler_can_build_shared=no
7392 lt_prog_compiler_pic='-pic'
7393 lt_prog_compiler_static='-Bstatic'
7397 lt_prog_compiler_can_build_shared=no
7402 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7403 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7406 # Check to make sure the PIC flag actually works.
7408 if test -n "$lt_prog_compiler_pic"; then
7410 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7411 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7412 if test "${lt_prog_compiler_pic_works+set}" = set; then
7413 echo $ECHO_N "(cached) $ECHO_C" >&6
7415 lt_prog_compiler_pic_works=no
7416 ac_outfile=conftest.$ac_objext
7417 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7418 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7419 # Insert the option either (1) after the last *FLAGS variable, or
7420 # (2) before a word containing "conftest.", or (3) at the end.
7421 # Note that $ac_compile itself does not contain backslashes and begins
7422 # with a dollar sign (not a hyphen), so the echo should work correctly.
7423 # The option is referenced via a variable to avoid confusing sed.
7424 lt_compile=`echo "$ac_compile" | $SED \
7425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7427 -e 's:$: $lt_compiler_flag:'`
7428 (eval echo "\"\$as_me:7428: $lt_compile\"" >&5)
7429 (eval "$lt_compile" 2>conftest.err)
7431 cat conftest.err >&5
7432 echo "$as_me:7432: \$? = $ac_status" >&5
7433 if (exit $ac_status) && test -s "$ac_outfile"; then
7434 # The compiler can only warn and ignore the option if not recognized
7435 # So say no if there are warnings other than the usual output.
7436 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7439 lt_prog_compiler_pic_works=yes
7445 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7446 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7448 if test x"$lt_prog_compiler_pic_works" = xyes; then
7449 case $lt_prog_compiler_pic in
7451 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7454 lt_prog_compiler_pic=
7455 lt_prog_compiler_can_build_shared=no
7460 # For platforms which do not support PIC, -DPIC is meaningless:
7462 lt_prog_compiler_pic=
7465 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7470 # Check to make sure the static flag actually works.
7472 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7473 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7474 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7475 if test "${lt_prog_compiler_static_works+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 lt_prog_compiler_static_works=no
7479 save_LDFLAGS="$LDFLAGS"
7480 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7481 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7482 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7483 # The linker can only warn and ignore the option if not recognized
7484 # So say no if there are warnings
7485 if test -s conftest.err; then
7486 # Append any errors to the config.log.
7487 cat conftest.err 1>&5
7488 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7489 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7490 if diff conftest.exp conftest.er2 >/dev/null; then
7491 lt_prog_compiler_static_works=yes
7494 lt_prog_compiler_static_works=yes
7498 LDFLAGS="$save_LDFLAGS"
7501 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7502 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7504 if test x"$lt_prog_compiler_static_works" = xyes; then
7507 lt_prog_compiler_static=
7511 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7512 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7513 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 lt_cv_prog_compiler_c_o=no
7517 $rm -r conftest 2>/dev/null
7521 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7523 lt_compiler_flag="-o out/conftest2.$ac_objext"
7524 # Insert the option either (1) after the last *FLAGS variable, or
7525 # (2) before a word containing "conftest.", or (3) at the end.
7526 # Note that $ac_compile itself does not contain backslashes and begins
7527 # with a dollar sign (not a hyphen), so the echo should work correctly.
7528 lt_compile=`echo "$ac_compile" | $SED \
7529 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7530 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7531 -e 's:$: $lt_compiler_flag:'`
7532 (eval echo "\"\$as_me:7532: $lt_compile\"" >&5)
7533 (eval "$lt_compile" 2>out/conftest.err)
7535 cat out/conftest.err >&5
7536 echo "$as_me:7536: \$? = $ac_status" >&5
7537 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7539 # The compiler can only warn and ignore the option if not recognized
7540 # So say no if there are warnings
7541 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7542 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7543 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7544 lt_cv_prog_compiler_c_o=yes
7549 # SGI C++ compiler will create directory out/ii_files/ for
7550 # template instantiation
7551 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7552 $rm out/* && rmdir out
7558 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7559 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7562 hard_links="nottested"
7563 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7564 # do not overwrite the value of need_locks provided by the user
7565 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7566 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7571 ln conftest.a conftest.b 2>&5 || hard_links=no
7572 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7573 { echo "$as_me:$LINENO: result: $hard_links" >&5
7574 echo "${ECHO_T}$hard_links" >&6; }
7575 if test "$hard_links" = no; then
7576 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7577 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7584 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7585 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7588 allow_undefined_flag=
7589 enable_shared_with_static_runtimes=no
7591 archive_expsym_cmds=
7592 old_archive_From_new_cmds=
7593 old_archive_from_expsyms_cmds=
7594 export_dynamic_flag_spec=
7595 whole_archive_flag_spec=
7596 thread_safe_flag_spec=
7597 hardcode_libdir_flag_spec=
7598 hardcode_libdir_flag_spec_ld=
7599 hardcode_libdir_separator=
7602 hardcode_shlibpath_var=unsupported
7603 link_all_deplibs=unknown
7604 hardcode_automatic=no
7607 always_export_symbols=no
7608 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7609 # include_expsyms should be a list of space-separated symbols to be *always*
7610 # included in the symbol list
7612 # exclude_expsyms can be an extended regexp of symbols to exclude
7613 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7614 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7615 # as well as any symbol that contains `d'.
7616 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7617 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7618 # platforms (ab)use it in PIC code, but their linkers get confused if
7619 # the symbol is explicitly referenced. Since portable code cannot
7620 # rely on this symbol name, it's probably fine to never include it in
7621 # preloaded symbol tables.
7622 extract_expsyms_cmds=
7623 # Just being paranoid about ensuring that cc_basename is set.
7624 for cc_temp in $compiler""; do
7626 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7627 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7632 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7635 cygwin* | mingw* | pw32*)
7636 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7637 # When not using gcc, we currently assume that we are using
7638 # Microsoft Visual C++.
7639 if test "$GCC" != yes; then
7644 # we just hope/assume this is gcc and not c89 (= MSVC++)
7653 if test "$with_gnu_ld" = yes; then
7654 # If archive_cmds runs LD, not CC, wlarc should be empty
7657 # Set some defaults for GNU ld with shared library support. These
7658 # are reset later if shared libraries are not supported. Putting them
7659 # here allows them to be overridden if necessary.
7660 runpath_var=LD_RUN_PATH
7661 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7662 export_dynamic_flag_spec='${wl}--export-dynamic'
7663 # ancient GNU ld didn't support --whole-archive et. al.
7664 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7665 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7667 whole_archive_flag_spec=
7669 supports_anon_versioning=no
7670 case `$LD -v 2>/dev/null` in
7671 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7672 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7673 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7674 *\ 2.11.*) ;; # other 2.11 versions
7675 *) supports_anon_versioning=yes ;;
7678 # See if GNU ld supports shared libraries.
7680 aix3* | aix4* | aix5*)
7681 # On AIX/PPC, the GNU linker is very broken
7682 if test "$host_cpu" != ia64; then
7686 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7687 *** to be unable to reliably create shared libraries on AIX.
7688 *** Therefore, libtool is disabling shared libraries support. If you
7689 *** really care for shared libraries, you may want to modify your PATH
7690 *** so that a non-GNU linker is found, and then restart.
7697 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)'
7698 hardcode_libdir_flag_spec='-L$libdir'
7699 hardcode_minus_L=yes
7701 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7702 # that the semantics of dynamic libraries on AmigaOS, at least up
7703 # to version 4, is to share data among multiple programs linked
7704 # with the same dynamic library. Since this doesn't match the
7705 # behavior of shared libraries on other platforms, we can't use
7711 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7712 allow_undefined_flag=unsupported
7713 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7714 # support --undefined. This deserves some investigation. FIXME
7715 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7721 cygwin* | mingw* | pw32*)
7722 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7723 # as there is no search path for DLLs.
7724 hardcode_libdir_flag_spec='-L$libdir'
7725 allow_undefined_flag=unsupported
7726 always_export_symbols=no
7727 enable_shared_with_static_runtimes=yes
7728 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7730 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7731 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7732 # If the export-symbols file already is a .def file (1st line
7733 # is EXPORTS), use it as is; otherwise, prepend...
7734 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7735 cp $export_symbols $output_objdir/$soname.def;
7737 echo EXPORTS > $output_objdir/$soname.def;
7738 cat $export_symbols >> $output_objdir/$soname.def;
7740 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7748 hardcode_shlibpath_var=no
7749 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7750 export_dynamic_flag_spec='${wl}-E'
7751 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7752 # Instead, shared libraries are loaded at an image base (0x10000000 by
7753 # default) and relocated if they conflict, which is a slow very memory
7754 # consuming and fragmenting process. To avoid this, we pick a random,
7755 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7756 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7757 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7758 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'
7761 linux* | k*bsd*-gnu)
7762 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7764 case $cc_basename,$host_cpu in
7765 pgcc*) # Portland Group C compiler
7766 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'
7767 tmp_addflag=' $pic_flag'
7769 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7770 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'
7771 tmp_addflag=' $pic_flag -Mnomain' ;;
7772 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7773 tmp_addflag=' -i_dynamic' ;;
7774 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7775 tmp_addflag=' -i_dynamic -nofor_main' ;;
7776 ifc* | ifort*) # Intel Fortran compiler
7777 tmp_addflag=' -nofor_main' ;;
7779 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7781 if test $supports_anon_versioning = yes; then
7782 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7783 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7784 $echo "local: *; };" >> $output_objdir/$libname.ver~
7785 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7793 netbsd* | netbsdelf*-gnu)
7794 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7795 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7798 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7799 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7804 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7808 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7809 *** create shared libraries on Solaris systems. Therefore, libtool
7810 *** is disabling shared libraries support. We urge you to upgrade GNU
7811 *** binutils to release 2.9.1 or newer. Another option is to modify
7812 *** your PATH or compiler configuration so that the native linker is
7813 *** used, and then restart.
7816 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7817 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7818 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7824 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7825 case `$LD -v 2>&1` in
7826 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7830 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7831 *** reliably create shared libraries on SCO systems. Therefore, libtool
7832 *** is disabling shared libraries support. We urge you to upgrade GNU
7833 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7834 *** your PATH or compiler configuration so that the native linker is
7835 *** used, and then restart.
7840 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7841 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7842 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7843 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7852 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7855 hardcode_shlibpath_var=no
7859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7860 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7861 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7868 if test "$ld_shlibs" = no; then
7870 hardcode_libdir_flag_spec=
7871 export_dynamic_flag_spec=
7872 whole_archive_flag_spec=
7875 # PORTME fill in a description of your system's linker (not GNU ld)
7878 allow_undefined_flag=unsupported
7879 always_export_symbols=yes
7880 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'
7881 # Note: this linker hardcodes the directories in LIBPATH if there
7882 # are no directories specified by -L.
7883 hardcode_minus_L=yes
7884 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7885 # Neither direct hardcoding nor static linking is supported with a
7887 hardcode_direct=unsupported
7892 if test "$host_cpu" = ia64; then
7893 # On IA64, the linker does run time linking by default, so we don't
7894 # have to do anything special.
7895 aix_use_runtimelinking=no
7896 exp_sym_flag='-Bexport'
7899 # If we're using GNU nm, then we don't want the "-C" option.
7900 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7901 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7902 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'
7904 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'
7906 aix_use_runtimelinking=no
7908 # Test if we are trying to use run time linking or normal
7909 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7910 # need to do runtime linking.
7911 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7912 for ld_flag in $LDFLAGS; do
7913 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7914 aix_use_runtimelinking=yes
7921 exp_sym_flag='-bexport'
7922 no_entry_flag='-bnoentry'
7925 # When large executables or shared objects are built, AIX ld can
7926 # have problems creating the table of contents. If linking a library
7927 # or program results in "error TOC overflow" add -mminimal-toc to
7928 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7929 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7933 hardcode_libdir_separator=':'
7934 link_all_deplibs=yes
7936 if test "$GCC" = yes; then
7937 case $host_os in aix4.[012]|aix4.[012].*)
7938 # We only want to do this on AIX 4.2 and lower, the check
7939 # below for broken collect2 doesn't work under 4.3+
7940 collect2name=`${CC} -print-prog-name=collect2`
7941 if test -f "$collect2name" && \
7942 strings "$collect2name" | grep resolve_lib_name >/dev/null
7944 # We have reworked collect2
7947 # We have old collect2
7948 hardcode_direct=unsupported
7949 # It fails to find uninstalled libraries when the uninstalled
7950 # path is not listed in the libpath. Setting hardcode_minus_L
7951 # to unsupported forces relinking
7952 hardcode_minus_L=yes
7953 hardcode_libdir_flag_spec='-L$libdir'
7954 hardcode_libdir_separator=
7958 shared_flag='-shared'
7959 if test "$aix_use_runtimelinking" = yes; then
7960 shared_flag="$shared_flag "'${wl}-G'
7964 if test "$host_cpu" = ia64; then
7965 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7966 # chokes on -Wl,-G. The following line is correct:
7969 if test "$aix_use_runtimelinking" = yes; then
7970 shared_flag='${wl}-G'
7972 shared_flag='${wl}-bM:SRE'
7977 # It seems that -bexpall does not export symbols beginning with
7978 # underscore (_), so it is better to generate a list of symbols to export.
7979 always_export_symbols=yes
7980 if test "$aix_use_runtimelinking" = yes; then
7981 # Warning - without using the other runtime loading flags (-brtl),
7982 # -berok will link without error, but may produce a broken library.
7983 allow_undefined_flag='-berok'
7984 # Determine the default libpath from the value encoded in an empty executable.
7985 cat >conftest.$ac_ext <<_ACEOF
7988 cat confdefs.h >>conftest.$ac_ext
7989 cat >>conftest.$ac_ext <<_ACEOF
7990 /* end confdefs.h. */
8000 rm -f conftest.$ac_objext conftest$ac_exeext
8001 if { (ac_try="$ac_link"
8003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_link") 2>conftest.er1
8009 grep -v '^ *+' conftest.er1 >conftest.err
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest$ac_exeext &&
8017 $as_test_x conftest$ac_exeext; then
8019 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8021 # Check for a 64-bit object if we didn't find anything.
8022 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; }
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8032 conftest$ac_exeext conftest.$ac_ext
8033 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8035 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8036 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"
8038 if test "$host_cpu" = ia64; then
8039 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8040 allow_undefined_flag="-z nodefs"
8041 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"
8043 # Determine the default libpath from the value encoded in an empty executable.
8044 cat >conftest.$ac_ext <<_ACEOF
8047 cat confdefs.h >>conftest.$ac_ext
8048 cat >>conftest.$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8059 rm -f conftest.$ac_objext conftest$ac_exeext
8060 if { (ac_try="$ac_link"
8062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8063 *) ac_try_echo=$ac_try;;
8065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8066 (eval "$ac_link") 2>conftest.er1
8068 grep -v '^ *+' conftest.er1 >conftest.err
8070 cat conftest.err >&5
8071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8072 (exit $ac_status); } && {
8073 test -z "$ac_c_werror_flag" ||
8074 test ! -s conftest.err
8075 } && test -s conftest$ac_exeext &&
8076 $as_test_x conftest$ac_exeext; then
8078 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8080 # Check for a 64-bit object if we didn't find anything.
8081 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; }
8084 echo "$as_me: failed program was:" >&5
8085 sed 's/^/| /' conftest.$ac_ext >&5
8090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8091 conftest$ac_exeext conftest.$ac_ext
8092 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8094 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8095 # Warning - without using the other run time loading flags,
8096 # -berok will link without error, but may produce a broken library.
8097 no_undefined_flag=' ${wl}-bernotok'
8098 allow_undefined_flag=' ${wl}-berok'
8099 # Exported symbols can be pulled into shared objects from archives
8100 whole_archive_flag_spec='$convenience'
8101 archive_cmds_need_lc=yes
8102 # This is similar to how AIX traditionally builds its shared libraries.
8103 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'
8109 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)'
8110 hardcode_libdir_flag_spec='-L$libdir'
8111 hardcode_minus_L=yes
8112 # see comment about different semantics on the GNU ld section
8117 export_dynamic_flag_spec=-rdynamic
8120 cygwin* | mingw* | pw32*)
8121 # When not using gcc, we currently assume that we are using
8122 # Microsoft Visual C++.
8123 # hardcode_libdir_flag_spec is actually meaningless, as there is
8124 # no search path for DLLs.
8125 hardcode_libdir_flag_spec=' '
8126 allow_undefined_flag=unsupported
8127 # Tell ltmain to make .lib files, not .a files.
8129 # Tell ltmain to make .dll files, not .so files.
8131 # FIXME: Setting linknames here is a bad hack.
8132 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8133 # The linker will automatically build a .lib file if we build a DLL.
8134 old_archive_From_new_cmds='true'
8135 # FIXME: Should let the user specify the lib program.
8136 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8137 fix_srcfile_path='`cygpath -w "$srcfile"`'
8138 enable_shared_with_static_runtimes=yes
8141 darwin* | rhapsody*)
8143 rhapsody* | darwin1.[012])
8144 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8147 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8148 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8150 case ${MACOSX_DEPLOYMENT_TARGET} in
8152 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8155 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8161 archive_cmds_need_lc=no
8163 hardcode_automatic=yes
8164 hardcode_shlibpath_var=unsupported
8165 whole_archive_flag_spec=''
8166 link_all_deplibs=yes
8167 if test "$GCC" = yes ; then
8168 output_verbose_link_cmd='echo'
8169 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8170 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8171 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8172 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}'
8173 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}'
8175 case $cc_basename in
8177 output_verbose_link_cmd='echo'
8178 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8179 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8180 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8181 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}'
8182 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}'
8192 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8193 hardcode_libdir_flag_spec='-L$libdir'
8194 hardcode_shlibpath_var=no
8201 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8202 # support. Future versions do this automatically, but an explicit c++rt0.o
8203 # does not break anything, and helps significantly (at the cost of a little
8206 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8207 hardcode_libdir_flag_spec='-R$libdir'
8209 hardcode_shlibpath_var=no
8212 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8216 hardcode_minus_L=yes
8217 hardcode_shlibpath_var=no
8220 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8221 freebsd* | dragonfly*)
8222 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8223 hardcode_libdir_flag_spec='-R$libdir'
8225 hardcode_shlibpath_var=no
8229 if test "$GCC" = yes; then
8230 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'
8232 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'
8234 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8235 hardcode_libdir_separator=:
8238 # hardcode_minus_L: Not really in the search PATH,
8239 # but as the default location of the library.
8240 hardcode_minus_L=yes
8241 export_dynamic_flag_spec='${wl}-E'
8245 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8246 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8248 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8250 if test "$with_gnu_ld" = no; then
8251 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8252 hardcode_libdir_separator=:
8255 export_dynamic_flag_spec='${wl}-E'
8257 # hardcode_minus_L: Not really in the search PATH,
8258 # but as the default location of the library.
8259 hardcode_minus_L=yes
8264 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8267 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8270 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8273 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8279 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8282 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8285 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8289 if test "$with_gnu_ld" = no; then
8290 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8291 hardcode_libdir_separator=:
8295 hardcode_libdir_flag_spec_ld='+b $libdir'
8297 hardcode_shlibpath_var=no
8301 export_dynamic_flag_spec='${wl}-E'
8303 # hardcode_minus_L: Not really in the search PATH,
8304 # but as the default location of the library.
8305 hardcode_minus_L=yes
8311 irix5* | irix6* | nonstopux*)
8312 if test "$GCC" = yes; then
8313 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'
8315 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'
8316 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8318 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8319 hardcode_libdir_separator=:
8320 link_all_deplibs=yes
8323 netbsd* | netbsdelf*-gnu)
8324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8327 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8329 hardcode_libdir_flag_spec='-R$libdir'
8331 hardcode_shlibpath_var=no
8335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8338 hardcode_libdir_separator=:
8339 hardcode_shlibpath_var=no
8344 hardcode_shlibpath_var=no
8345 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8346 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8347 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8348 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8349 export_dynamic_flag_spec='${wl}-E'
8352 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8353 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8354 hardcode_libdir_flag_spec='-R$libdir'
8357 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8358 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8365 hardcode_libdir_flag_spec='-L$libdir'
8366 hardcode_minus_L=yes
8367 allow_undefined_flag=unsupported
8368 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'
8369 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8373 if test "$GCC" = yes; then
8374 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8375 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'
8377 allow_undefined_flag=' -expect_unresolved \*'
8378 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'
8380 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8381 hardcode_libdir_separator=:
8384 osf4* | osf5*) # as osf3* with the addition of -msym flag
8385 if test "$GCC" = yes; then
8386 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8387 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'
8388 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8390 allow_undefined_flag=' -expect_unresolved \*'
8391 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'
8392 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8393 $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'
8395 # Both c and cxx compiler support -rpath directly
8396 hardcode_libdir_flag_spec='-rpath $libdir'
8398 hardcode_libdir_separator=:
8402 no_undefined_flag=' -z text'
8403 if test "$GCC" = yes; then
8405 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8406 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8407 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8410 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8411 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8412 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8414 hardcode_libdir_flag_spec='-R$libdir'
8415 hardcode_shlibpath_var=no
8417 solaris2.[0-5] | solaris2.[0-5].*) ;;
8419 # The compiler driver will combine linker options so we
8420 # cannot just pass the convience library names through
8421 # without $wl, iff we do not link with $LD.
8422 # Luckily, gcc supports the same syntax we need for Sun Studio.
8423 # Supported since Solaris 2.6 (maybe 2.5.1?)
8426 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8428 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' ;;
8431 link_all_deplibs=yes
8435 if test "x$host_vendor" = xsequent; then
8436 # Use $CC to link under sequent, because it throws in some extra .o
8437 # files that make .init and .fini sections work.
8438 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8440 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8442 hardcode_libdir_flag_spec='-L$libdir'
8444 hardcode_minus_L=yes
8445 hardcode_shlibpath_var=no
8449 case $host_vendor in
8451 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8452 hardcode_direct=yes # is this really true???
8455 ## LD is ld it makes a PLAMLIB
8456 ## CC just makes a GrossModule.
8457 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8458 reload_cmds='$CC -r -o $output$reload_objs'
8462 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8463 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8466 runpath_var='LD_RUN_PATH'
8467 hardcode_shlibpath_var=no
8471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8472 hardcode_shlibpath_var=no
8473 export_dynamic_flag_spec='-Bexport'
8477 if test -d /usr/nec; then
8478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8479 hardcode_shlibpath_var=no
8480 runpath_var=LD_RUN_PATH
8481 hardcode_runpath_var=yes
8486 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8487 no_undefined_flag='${wl}-z,text'
8488 archive_cmds_need_lc=no
8489 hardcode_shlibpath_var=no
8490 runpath_var='LD_RUN_PATH'
8492 if test "$GCC" = yes; then
8493 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8494 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8496 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8497 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8501 sysv5* | sco3.2v5* | sco5v6*)
8502 # Note: We can NOT use -z defs as we might desire, because we do not
8503 # link with -lc, and that would cause any symbols used from libc to
8504 # always be unresolved, which means just about no library would
8505 # ever link correctly. If we're not using GNU ld we use -z text
8506 # though, which does catch some bad symbols but isn't as heavy-handed
8508 no_undefined_flag='${wl}-z,text'
8509 allow_undefined_flag='${wl}-z,nodefs'
8510 archive_cmds_need_lc=no
8511 hardcode_shlibpath_var=no
8512 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8513 hardcode_libdir_separator=':'
8514 link_all_deplibs=yes
8515 export_dynamic_flag_spec='${wl}-Bexport'
8516 runpath_var='LD_RUN_PATH'
8518 if test "$GCC" = yes; then
8519 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8520 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8522 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8523 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8528 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8529 hardcode_libdir_flag_spec='-L$libdir'
8530 hardcode_shlibpath_var=no
8539 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8540 echo "${ECHO_T}$ld_shlibs" >&6; }
8541 test "$ld_shlibs" = no && can_build_shared=no
8544 # Do we need to explicitly link libc?
8546 case "x$archive_cmds_need_lc" in
8548 # Assume -lc should be added
8549 archive_cmds_need_lc=yes
8551 if test "$enable_shared" = yes && test "$GCC" = yes; then
8552 case $archive_cmds in
8554 # FIXME: we may have to deal with multi-command sequences.
8557 # Test whether the compiler implicitly links with -lc since on some
8558 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8559 # to ld, don't add -lc before -lgcc.
8560 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8561 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8566 (eval $ac_compile) 2>&5
8568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569 (exit $ac_status); } 2>conftest.err; then
8572 libobjs=conftest.$ac_objext
8574 wl=$lt_prog_compiler_wl
8575 pic_flag=$lt_prog_compiler_pic
8581 lt_save_allow_undefined_flag=$allow_undefined_flag
8582 allow_undefined_flag=
8583 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8584 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }
8589 archive_cmds_need_lc=no
8591 archive_cmds_need_lc=yes
8593 allow_undefined_flag=$lt_save_allow_undefined_flag
8595 cat conftest.err 1>&5
8598 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8599 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8606 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8607 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8609 libname_spec='lib$name'
8617 shlibpath_overrides_runpath=unknown
8619 dynamic_linker="$host_os ld.so"
8620 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8621 if test "$GCC" = yes; then
8622 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8623 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8624 # if the path contains ";" then we assume it to be the separator
8625 # otherwise default to the standard path separator (i.e. ":") - it is
8626 # assumed that no part of a normal pathname contains ";" but that should
8627 # okay in the real world where ";" in dirpaths is itself problematic.
8628 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8630 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8633 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8635 need_lib_prefix=unknown
8636 hardcode_into_libs=no
8638 # when you set need_version to no, make sure it does not cause -set_version
8639 # flags to be left without arguments
8640 need_version=unknown
8645 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8646 shlibpath_var=LIBPATH
8648 # AIX 3 has no versioning support, so we append a major version to the name.
8649 soname_spec='${libname}${release}${shared_ext}$major'
8656 hardcode_into_libs=yes
8657 if test "$host_cpu" = ia64; then
8658 # AIX 5 supports IA64
8659 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8660 shlibpath_var=LD_LIBRARY_PATH
8662 # With GCC up to 2.95.x, collect2 would create an import file
8663 # for dependence libraries. The import file would start with
8664 # the line `#! .'. This would cause the generated library to
8665 # depend on `.', always an invalid library. This was fixed in
8666 # development snapshots of GCC prior to 3.0.
8668 aix4 | aix4.[01] | aix4.[01].*)
8669 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8671 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8678 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8679 # soname into executable. Probably we can add versioning support to
8680 # collect2, so additional links can be useful in future.
8681 if test "$aix_use_runtimelinking" = yes; then
8682 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8683 # instead of lib<name>.a to let people know that these are not
8684 # typical AIX shared libraries.
8685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8687 # We preserve .a as extension for shared libraries through AIX4.2
8688 # and later when we are not doing run time linking.
8689 library_names_spec='${libname}${release}.a $libname.a'
8690 soname_spec='${libname}${release}${shared_ext}$major'
8692 shlibpath_var=LIBPATH
8697 library_names_spec='$libname.ixlibrary $libname.a'
8698 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8699 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'
8703 library_names_spec='${libname}${shared_ext}'
8704 dynamic_linker="$host_os ld.so"
8705 shlibpath_var=LIBRARY_PATH
8711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8712 soname_spec='${libname}${release}${shared_ext}$major'
8713 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8714 shlibpath_var=LD_LIBRARY_PATH
8715 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8716 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8717 # the default ld.so.conf also contains /usr/contrib/lib and
8718 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8719 # libtool to hard-code these into programs
8722 cygwin* | mingw* | pw32*)
8723 version_type=windows
8728 case $GCC,$host_os in
8729 yes,cygwin* | yes,mingw* | yes,pw32*)
8730 library_names_spec='$libname.dll.a'
8731 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8732 postinstall_cmds='base_file=`basename \${file}`~
8733 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8734 dldir=$destdir/`dirname \$dlpath`~
8735 test -d \$dldir || mkdir -p \$dldir~
8736 $install_prog $dir/$dlname \$dldir/$dlname~
8737 chmod a+x \$dldir/$dlname'
8738 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8739 dlpath=$dir/\$dldll~
8741 shlibpath_overrides_runpath=yes
8745 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8746 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8747 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8750 # MinGW DLLs use traditional 'lib' prefix
8751 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8752 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8753 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8754 # It is most probably a Windows format PATH printed by
8755 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8756 # path with ; separators, and with drive letters. We can handle the
8757 # drive letters (cygwin fileutils understands them), so leave them,
8758 # especially as we might pass files found there to a mingw objdump,
8759 # which wouldn't understand a cygwinified path. Ahh.
8760 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8762 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8766 # pw32 DLLs use 'pw' prefix rather than 'lib'
8767 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8773 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8776 dynamic_linker='Win32 ld.exe'
8777 # FIXME: first we should search . and the directory the executable is in
8781 darwin* | rhapsody*)
8782 dynamic_linker="$host_os dyld"
8786 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8787 soname_spec='${libname}${release}${major}$shared_ext'
8788 shlibpath_overrides_runpath=yes
8789 shlibpath_var=DYLD_LIBRARY_PATH
8790 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8791 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8792 if test "$GCC" = yes; then
8793 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"`
8795 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8797 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8804 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8805 soname_spec='${libname}${release}${shared_ext}$major'
8806 shlibpath_var=LD_LIBRARY_PATH
8813 freebsd* | dragonfly*)
8814 # DragonFly does not have aout. When/if they implement a new
8815 # versioning mechanism, adjust this.
8816 if test -x /usr/bin/objformat; then
8817 objformat=`/usr/bin/objformat`
8820 freebsd[123]*) objformat=aout ;;
8824 version_type=freebsd-$objformat
8825 case $version_type in
8827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8832 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8836 shlibpath_var=LD_LIBRARY_PATH
8839 shlibpath_overrides_runpath=yes
8841 freebsd3.[01]* | freebsdelf3.[01]*)
8842 shlibpath_overrides_runpath=yes
8843 hardcode_into_libs=yes
8845 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8846 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8847 shlibpath_overrides_runpath=no
8848 hardcode_into_libs=yes
8850 freebsd*) # from 4.6 on
8851 shlibpath_overrides_runpath=yes
8852 hardcode_into_libs=yes
8861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8862 soname_spec='${libname}${release}${shared_ext}$major'
8863 shlibpath_var=LD_LIBRARY_PATH
8864 hardcode_into_libs=yes
8867 hpux9* | hpux10* | hpux11*)
8868 # Give a soname corresponding to the major version so that dld.sl refuses to
8869 # link against other versions.
8876 hardcode_into_libs=yes
8877 dynamic_linker="$host_os dld.so"
8878 shlibpath_var=LD_LIBRARY_PATH
8879 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8882 if test "X$HPUX_IA64_MODE" = X32; then
8883 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8885 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8887 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8891 hardcode_into_libs=yes
8892 dynamic_linker="$host_os dld.sl"
8893 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8896 soname_spec='${libname}${release}${shared_ext}$major'
8897 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8902 dynamic_linker="$host_os dld.sl"
8903 shlibpath_var=SHLIB_PATH
8904 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8906 soname_spec='${libname}${release}${shared_ext}$major'
8909 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8910 postinstall_cmds='chmod 555 $lib'
8917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8918 soname_spec='${libname}${release}${shared_ext}$major'
8919 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8920 shlibpath_var=LD_LIBRARY_PATH
8921 shlibpath_overrides_runpath=no
8922 hardcode_into_libs=yes
8925 irix5* | irix6* | nonstopux*)
8927 nonstopux*) version_type=nonstopux ;;
8929 if test "$lt_cv_prog_gnu_ld" = yes; then
8937 soname_spec='${libname}${release}${shared_ext}$major'
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8940 irix5* | nonstopux*)
8944 case $LD in # libtool.m4 will add one of these switches to LD
8945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8946 libsuff= shlibsuff= libmagic=32-bit;;
8947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8948 libsuff=32 shlibsuff=N32 libmagic=N32;;
8949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8951 *) libsuff= shlibsuff= libmagic=never-match;;
8955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8956 shlibpath_overrides_runpath=no
8957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8959 hardcode_into_libs=yes
8962 # No shared lib support for Linux oldld, aout, or coff.
8963 linux*oldld* | linux*aout* | linux*coff*)
8967 # This must be Linux ELF.
8968 linux* | k*bsd*-gnu)
8972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8973 soname_spec='${libname}${release}${shared_ext}$major'
8974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8975 shlibpath_var=LD_LIBRARY_PATH
8976 shlibpath_overrides_runpath=no
8977 # This implies no fast_install, which is unacceptable.
8978 # Some rework will be needed to allow for fast_install
8979 # before this can be enabled.
8980 hardcode_into_libs=yes
8982 # Append ld.so.conf contents to the search path
8983 if test -f /etc/ld.so.conf; then
8984 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' ' '`
8985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8988 # We used to test for /lib/ld.so.1 and disable shared libraries on
8989 # powerpc, because MkLinux only supported shared libraries with the
8990 # GNU dynamic linker. Since this was broken with cross compilers,
8991 # most powerpc-linux boxes support dynamic linking these days and
8992 # people can always --disable-shared, the test was removed, and we
8993 # assume the GNU/Linux dynamic linker is in use.
8994 dynamic_linker='GNU/Linux ld.so'
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 shlibpath_overrides_runpath=no
9005 hardcode_into_libs=yes
9006 dynamic_linker='NetBSD ld.elf_so'
9013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9016 dynamic_linker='NetBSD (a.out) ld.so'
9018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9019 soname_spec='${libname}${release}${shared_ext}$major'
9020 dynamic_linker='NetBSD ld.elf_so'
9022 shlibpath_var=LD_LIBRARY_PATH
9023 shlibpath_overrides_runpath=yes
9024 hardcode_into_libs=yes
9029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 shlibpath_overrides_runpath=yes
9038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9039 soname_spec='${libname}${release}${shared_ext}$major'
9040 shlibpath_var=LD_LIBRARY_PATH
9041 shlibpath_overrides_runpath=yes
9046 sys_lib_dlsearch_path_spec="/usr/lib"
9048 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9050 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9051 *) need_version=no ;;
9053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9054 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9055 shlibpath_var=LD_LIBRARY_PATH
9056 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9058 openbsd2.[89] | openbsd2.[89].*)
9059 shlibpath_overrides_runpath=no
9062 shlibpath_overrides_runpath=yes
9066 shlibpath_overrides_runpath=yes
9071 libname_spec='$name'
9074 library_names_spec='$libname${shared_ext} $libname.a'
9075 dynamic_linker='OS/2 ld.exe'
9076 shlibpath_var=LIBPATH
9079 osf3* | osf4* | osf5*)
9083 soname_spec='${libname}${release}${shared_ext}$major'
9084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9085 shlibpath_var=LD_LIBRARY_PATH
9086 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9087 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9095 soname_spec='${libname}${release}${shared_ext}$major'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 shlibpath_overrides_runpath=yes
9098 hardcode_into_libs=yes
9099 # ldd complains unless libraries are executable
9100 postinstall_cmds='chmod +x $lib'
9105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9107 shlibpath_var=LD_LIBRARY_PATH
9108 shlibpath_overrides_runpath=yes
9109 if test "$with_gnu_ld" = yes; then
9117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9118 soname_spec='${libname}${release}${shared_ext}$major'
9119 shlibpath_var=LD_LIBRARY_PATH
9120 case $host_vendor in
9122 shlibpath_overrides_runpath=no
9124 export_dynamic_flag_spec='${wl}-Blargedynsym'
9125 runpath_var=LD_RUN_PATH
9133 shlibpath_overrides_runpath=no
9134 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9140 if test -d /usr/nec ;then
9142 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9143 soname_spec='$libname${shared_ext}.$major'
9144 shlibpath_var=LD_LIBRARY_PATH
9148 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9149 version_type=freebsd-elf
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 shlibpath_var=LD_LIBRARY_PATH
9155 hardcode_into_libs=yes
9156 if test "$with_gnu_ld" = yes; then
9157 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9158 shlibpath_overrides_runpath=no
9160 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9161 shlibpath_overrides_runpath=yes
9164 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9168 sys_lib_dlsearch_path_spec='/usr/lib'
9173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9174 soname_spec='${libname}${release}${shared_ext}$major'
9175 shlibpath_var=LD_LIBRARY_PATH
9182 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9183 echo "${ECHO_T}$dynamic_linker" >&6; }
9184 test "$dynamic_linker" = no && can_build_shared=no
9186 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9187 if test "$GCC" = yes; then
9188 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9191 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9192 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9194 if test -n "$hardcode_libdir_flag_spec" || \
9195 test -n "$runpath_var" || \
9196 test "X$hardcode_automatic" = "Xyes" ; then
9198 # We can hardcode non-existant directories.
9199 if test "$hardcode_direct" != no &&
9200 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9201 # have to relink, otherwise we might link with an installed library
9202 # when we should be linking with a yet-to-be-installed one
9203 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9204 test "$hardcode_minus_L" != no; then
9205 # Linking always hardcodes the temporary library directory.
9206 hardcode_action=relink
9208 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9209 hardcode_action=immediate
9212 # We cannot hardcode anything, or else we can only hardcode existing
9214 hardcode_action=unsupported
9216 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9217 echo "${ECHO_T}$hardcode_action" >&6; }
9219 if test "$hardcode_action" = relink; then
9220 # Fast installation is not supported
9221 enable_fast_install=no
9222 elif test "$shlibpath_overrides_runpath" = yes ||
9223 test "$enable_shared" = no; then
9224 # Fast installation is not necessary
9225 enable_fast_install=needless
9230 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9231 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9232 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9233 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9234 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9235 { echo "$as_me:$LINENO: result: yes" >&5
9236 echo "${ECHO_T}yes" >&6; }
9238 # FIXME - insert some real tests, host_os isn't really good enough
9241 if test -n "$STRIP" ; then
9242 striplib="$STRIP -x"
9243 { echo "$as_me:$LINENO: result: yes" >&5
9244 echo "${ECHO_T}yes" >&6; }
9246 { echo "$as_me:$LINENO: result: no" >&5
9247 echo "${ECHO_T}no" >&6; }
9251 { echo "$as_me:$LINENO: result: no" >&5
9252 echo "${ECHO_T}no" >&6; }
9257 if test "x$enable_dlopen" != xyes; then
9258 enable_dlopen=unknown
9259 enable_dlopen_self=unknown
9260 enable_dlopen_self_static=unknown
9267 lt_cv_dlopen="load_add_on"
9269 lt_cv_dlopen_self=yes
9273 lt_cv_dlopen="LoadLibrary"
9278 lt_cv_dlopen="dlopen"
9283 # if libdl is installed we need to link against it
9284 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9285 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9286 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 ac_check_lib_save_LIBS=$LIBS
9291 cat >conftest.$ac_ext <<_ACEOF
9294 cat confdefs.h >>conftest.$ac_ext
9295 cat >>conftest.$ac_ext <<_ACEOF
9296 /* end confdefs.h. */
9298 /* Override any GCC internal prototype to avoid an error.
9299 Use char because int might match the return type of a GCC
9300 builtin and then its argument prototype would still apply. */
9313 rm -f conftest.$ac_objext conftest$ac_exeext
9314 if { (ac_try="$ac_link"
9316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9317 *) ac_try_echo=$ac_try;;
9319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9320 (eval "$ac_link") 2>conftest.er1
9322 grep -v '^ *+' conftest.er1 >conftest.err
9324 cat conftest.err >&5
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && {
9327 test -z "$ac_c_werror_flag" ||
9328 test ! -s conftest.err
9329 } && test -s conftest$ac_exeext &&
9330 $as_test_x conftest$ac_exeext; then
9331 ac_cv_lib_dl_dlopen=yes
9333 echo "$as_me: failed program was:" >&5
9334 sed 's/^/| /' conftest.$ac_ext >&5
9336 ac_cv_lib_dl_dlopen=no
9339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9340 conftest$ac_exeext conftest.$ac_ext
9341 LIBS=$ac_check_lib_save_LIBS
9343 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9344 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9345 if test $ac_cv_lib_dl_dlopen = yes; then
9346 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9351 lt_cv_dlopen_self=yes
9358 { echo "$as_me:$LINENO: checking for shl_load" >&5
9359 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9360 if test "${ac_cv_func_shl_load+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9363 cat >conftest.$ac_ext <<_ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9371 #define shl_load innocuous_shl_load
9373 /* System header to define __stub macros and hopefully few prototypes,
9374 which can conflict with char shl_load (); below.
9375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9376 <limits.h> exists even on freestanding compilers. */
9379 # include <limits.h>
9381 # include <assert.h>
9386 /* Override any GCC internal prototype to avoid an error.
9387 Use char because int might match the return type of a GCC
9388 builtin and then its argument prototype would still apply. */
9393 /* The GNU C library defines this for functions which it implements
9394 to always fail with ENOSYS. Some functions are actually named
9395 something starting with __ and the normal name is an alias. */
9396 #if defined __stub_shl_load || defined __stub___shl_load
9408 rm -f conftest.$ac_objext conftest$ac_exeext
9409 if { (ac_try="$ac_link"
9411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_link") 2>conftest.er1
9417 grep -v '^ *+' conftest.er1 >conftest.err
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } && {
9422 test -z "$ac_c_werror_flag" ||
9423 test ! -s conftest.err
9424 } && test -s conftest$ac_exeext &&
9425 $as_test_x conftest$ac_exeext; then
9426 ac_cv_func_shl_load=yes
9428 echo "$as_me: failed program was:" >&5
9429 sed 's/^/| /' conftest.$ac_ext >&5
9431 ac_cv_func_shl_load=no
9434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9435 conftest$ac_exeext conftest.$ac_ext
9437 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9438 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9439 if test $ac_cv_func_shl_load = yes; then
9440 lt_cv_dlopen="shl_load"
9442 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9443 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9444 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 ac_check_lib_save_LIBS=$LIBS
9449 cat >conftest.$ac_ext <<_ACEOF
9452 cat confdefs.h >>conftest.$ac_ext
9453 cat >>conftest.$ac_ext <<_ACEOF
9454 /* end confdefs.h. */
9456 /* Override any GCC internal prototype to avoid an error.
9457 Use char because int might match the return type of a GCC
9458 builtin and then its argument prototype would still apply. */
9471 rm -f conftest.$ac_objext conftest$ac_exeext
9472 if { (ac_try="$ac_link"
9474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9475 *) ac_try_echo=$ac_try;;
9477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9478 (eval "$ac_link") 2>conftest.er1
9480 grep -v '^ *+' conftest.er1 >conftest.err
9482 cat conftest.err >&5
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); } && {
9485 test -z "$ac_c_werror_flag" ||
9486 test ! -s conftest.err
9487 } && test -s conftest$ac_exeext &&
9488 $as_test_x conftest$ac_exeext; then
9489 ac_cv_lib_dld_shl_load=yes
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9494 ac_cv_lib_dld_shl_load=no
9497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9498 conftest$ac_exeext conftest.$ac_ext
9499 LIBS=$ac_check_lib_save_LIBS
9501 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9502 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9503 if test $ac_cv_lib_dld_shl_load = yes; then
9504 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9506 { echo "$as_me:$LINENO: checking for dlopen" >&5
9507 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9508 if test "${ac_cv_func_dlopen+set}" = set; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 cat >conftest.$ac_ext <<_ACEOF
9514 cat confdefs.h >>conftest.$ac_ext
9515 cat >>conftest.$ac_ext <<_ACEOF
9516 /* end confdefs.h. */
9517 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9518 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9519 #define dlopen innocuous_dlopen
9521 /* System header to define __stub macros and hopefully few prototypes,
9522 which can conflict with char dlopen (); below.
9523 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9524 <limits.h> exists even on freestanding compilers. */
9527 # include <limits.h>
9529 # include <assert.h>
9534 /* Override any GCC internal prototype to avoid an error.
9535 Use char because int might match the return type of a GCC
9536 builtin and then its argument prototype would still apply. */
9541 /* The GNU C library defines this for functions which it implements
9542 to always fail with ENOSYS. Some functions are actually named
9543 something starting with __ and the normal name is an alias. */
9544 #if defined __stub_dlopen || defined __stub___dlopen
9556 rm -f conftest.$ac_objext conftest$ac_exeext
9557 if { (ac_try="$ac_link"
9559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9560 *) ac_try_echo=$ac_try;;
9562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9563 (eval "$ac_link") 2>conftest.er1
9565 grep -v '^ *+' conftest.er1 >conftest.err
9567 cat conftest.err >&5
9568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } && {
9570 test -z "$ac_c_werror_flag" ||
9571 test ! -s conftest.err
9572 } && test -s conftest$ac_exeext &&
9573 $as_test_x conftest$ac_exeext; then
9574 ac_cv_func_dlopen=yes
9576 echo "$as_me: failed program was:" >&5
9577 sed 's/^/| /' conftest.$ac_ext >&5
9579 ac_cv_func_dlopen=no
9582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9583 conftest$ac_exeext conftest.$ac_ext
9585 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9586 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9587 if test $ac_cv_func_dlopen = yes; then
9588 lt_cv_dlopen="dlopen"
9590 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9591 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9592 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9593 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 ac_check_lib_save_LIBS=$LIBS
9597 cat >conftest.$ac_ext <<_ACEOF
9600 cat confdefs.h >>conftest.$ac_ext
9601 cat >>conftest.$ac_ext <<_ACEOF
9602 /* end confdefs.h. */
9604 /* Override any GCC internal prototype to avoid an error.
9605 Use char because int might match the return type of a GCC
9606 builtin and then its argument prototype would still apply. */
9619 rm -f conftest.$ac_objext conftest$ac_exeext
9620 if { (ac_try="$ac_link"
9622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_link") 2>conftest.er1
9628 grep -v '^ *+' conftest.er1 >conftest.err
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest$ac_exeext &&
9636 $as_test_x conftest$ac_exeext; then
9637 ac_cv_lib_dl_dlopen=yes
9639 echo "$as_me: failed program was:" >&5
9640 sed 's/^/| /' conftest.$ac_ext >&5
9642 ac_cv_lib_dl_dlopen=no
9645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9646 conftest$ac_exeext conftest.$ac_ext
9647 LIBS=$ac_check_lib_save_LIBS
9649 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9650 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9651 if test $ac_cv_lib_dl_dlopen = yes; then
9652 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9654 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9655 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9656 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9659 ac_check_lib_save_LIBS=$LIBS
9661 cat >conftest.$ac_ext <<_ACEOF
9664 cat confdefs.h >>conftest.$ac_ext
9665 cat >>conftest.$ac_ext <<_ACEOF
9666 /* end confdefs.h. */
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9683 rm -f conftest.$ac_objext conftest$ac_exeext
9684 if { (ac_try="$ac_link"
9686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_link") 2>conftest.er1
9692 grep -v '^ *+' conftest.er1 >conftest.err
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest$ac_exeext &&
9700 $as_test_x conftest$ac_exeext; then
9701 ac_cv_lib_svld_dlopen=yes
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 ac_cv_lib_svld_dlopen=no
9709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9710 conftest$ac_exeext conftest.$ac_ext
9711 LIBS=$ac_check_lib_save_LIBS
9713 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9714 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9715 if test $ac_cv_lib_svld_dlopen = yes; then
9716 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9718 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9719 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9720 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 ac_check_lib_save_LIBS=$LIBS
9725 cat >conftest.$ac_ext <<_ACEOF
9728 cat confdefs.h >>conftest.$ac_ext
9729 cat >>conftest.$ac_ext <<_ACEOF
9730 /* end confdefs.h. */
9732 /* Override any GCC internal prototype to avoid an error.
9733 Use char because int might match the return type of a GCC
9734 builtin and then its argument prototype would still apply. */
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_link") 2>conftest.er1
9756 grep -v '^ *+' conftest.er1 >conftest.err
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest$ac_exeext &&
9764 $as_test_x conftest$ac_exeext; then
9765 ac_cv_lib_dld_dld_link=yes
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9770 ac_cv_lib_dld_dld_link=no
9773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9774 conftest$ac_exeext conftest.$ac_ext
9775 LIBS=$ac_check_lib_save_LIBS
9777 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9778 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9779 if test $ac_cv_lib_dld_dld_link = yes; then
9780 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9801 if test "x$lt_cv_dlopen" != xno; then
9807 case $lt_cv_dlopen in
9809 save_CPPFLAGS="$CPPFLAGS"
9810 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9812 save_LDFLAGS="$LDFLAGS"
9813 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9816 LIBS="$lt_cv_dlopen_libs $LIBS"
9818 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9819 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9820 if test "${lt_cv_dlopen_self+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9823 if test "$cross_compiling" = yes; then :
9824 lt_cv_dlopen_self=cross
9826 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9827 lt_status=$lt_dlunknown
9828 cat > conftest.$ac_ext <<EOF
9829 #line 9829 "configure"
9830 #include "confdefs.h"
9839 # define LT_DLGLOBAL RTLD_GLOBAL
9842 # define LT_DLGLOBAL DL_GLOBAL
9844 # define LT_DLGLOBAL 0
9848 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9849 find out it does not work in some platform. */
9850 #ifndef LT_DLLAZY_OR_NOW
9852 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9855 # define LT_DLLAZY_OR_NOW DL_LAZY
9858 # define LT_DLLAZY_OR_NOW RTLD_NOW
9861 # define LT_DLLAZY_OR_NOW DL_NOW
9863 # define LT_DLLAZY_OR_NOW 0
9871 extern "C" void exit (int);
9874 void fnord() { int i=42;}
9877 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9878 int status = $lt_dlunknown;
9882 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9883 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9884 /* dlclose (self); */
9892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9893 (eval $ac_link) 2>&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9897 (./conftest; exit; ) >&5 2>/dev/null
9900 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9901 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9902 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9905 # compilation failed
9906 lt_cv_dlopen_self=no
9913 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9914 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9916 if test "x$lt_cv_dlopen_self" = xyes; then
9917 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9918 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9919 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9920 if test "${lt_cv_dlopen_self_static+set}" = set; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 if test "$cross_compiling" = yes; then :
9924 lt_cv_dlopen_self_static=cross
9926 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9927 lt_status=$lt_dlunknown
9928 cat > conftest.$ac_ext <<EOF
9929 #line 9929 "configure"
9930 #include "confdefs.h"
9939 # define LT_DLGLOBAL RTLD_GLOBAL
9942 # define LT_DLGLOBAL DL_GLOBAL
9944 # define LT_DLGLOBAL 0
9948 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9949 find out it does not work in some platform. */
9950 #ifndef LT_DLLAZY_OR_NOW
9952 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9955 # define LT_DLLAZY_OR_NOW DL_LAZY
9958 # define LT_DLLAZY_OR_NOW RTLD_NOW
9961 # define LT_DLLAZY_OR_NOW DL_NOW
9963 # define LT_DLLAZY_OR_NOW 0
9971 extern "C" void exit (int);
9974 void fnord() { int i=42;}
9977 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9978 int status = $lt_dlunknown;
9982 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9983 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9984 /* dlclose (self); */
9992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9993 (eval $ac_link) 2>&5
9995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9996 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9997 (./conftest; exit; ) >&5 2>/dev/null
10000 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10001 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10002 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10005 # compilation failed
10006 lt_cv_dlopen_self_static=no
10013 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10014 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10017 CPPFLAGS="$save_CPPFLAGS"
10018 LDFLAGS="$save_LDFLAGS"
10023 case $lt_cv_dlopen_self in
10024 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10025 *) enable_dlopen_self=unknown ;;
10028 case $lt_cv_dlopen_self_static in
10029 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10030 *) enable_dlopen_self_static=unknown ;;
10035 # Report which library types will actually be built
10036 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10037 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10038 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10039 echo "${ECHO_T}$can_build_shared" >&6; }
10041 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10042 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10043 test "$can_build_shared" = "no" && enable_shared=no
10045 # On AIX, shared libraries and static libraries use the same namespace, and
10046 # are all built from PIC.
10049 test "$enable_shared" = yes && enable_static=no
10050 if test -n "$RANLIB"; then
10051 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10052 postinstall_cmds='$RANLIB $lib'
10057 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10058 test "$enable_shared" = yes && enable_static=no
10062 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10063 echo "${ECHO_T}$enable_shared" >&6; }
10065 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10066 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10067 # Make sure either enable_shared or enable_static is yes.
10068 test "$enable_shared" = yes || enable_static=yes
10069 { echo "$as_me:$LINENO: result: $enable_static" >&5
10070 echo "${ECHO_T}$enable_static" >&6; }
10072 # The else clause should only fire when bootstrapping the
10073 # libtool distribution, otherwise you forgot to ship ltmain.sh
10074 # with your package, and you will get complaints that there are
10075 # no rules to generate ltmain.sh.
10076 if test -f "$ltmain"; then
10077 # See if we are running on zsh, and set the options which allow our commands through
10078 # without removal of \ escapes.
10079 if test -n "${ZSH_VERSION+set}" ; then
10080 setopt NO_GLOB_SUBST
10082 # Now quote all the things that may contain metacharacters while being
10083 # careful not to overquote the AC_SUBSTed values. We take copies of the
10084 # variables and quote the copies for generation of the libtool script.
10085 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10087 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10088 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10089 deplibs_check_method reload_flag reload_cmds need_locks \
10090 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10091 lt_cv_sys_global_symbol_to_c_name_address \
10092 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10093 old_postinstall_cmds old_postuninstall_cmds \
10097 lt_prog_compiler_wl \
10098 lt_prog_compiler_pic \
10099 lt_prog_compiler_static \
10100 lt_prog_compiler_no_builtin_flag \
10101 export_dynamic_flag_spec \
10102 thread_safe_flag_spec \
10103 whole_archive_flag_spec \
10104 enable_shared_with_static_runtimes \
10106 old_archive_from_new_cmds \
10111 compiler_lib_search_path \
10113 archive_expsym_cmds \
10115 postuninstall_cmds \
10116 old_archive_from_expsyms_cmds \
10117 allow_undefined_flag \
10118 no_undefined_flag \
10119 export_symbols_cmds \
10120 hardcode_libdir_flag_spec \
10121 hardcode_libdir_flag_spec_ld \
10122 hardcode_libdir_separator \
10123 hardcode_automatic \
10125 module_expsym_cmds \
10126 lt_cv_prog_compiler_c_o \
10128 include_expsyms; do
10131 old_archive_cmds | \
10132 old_archive_from_new_cmds | \
10134 archive_expsym_cmds | \
10136 module_expsym_cmds | \
10137 old_archive_from_expsyms_cmds | \
10138 export_symbols_cmds | \
10139 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10140 postinstall_cmds | postuninstall_cmds | \
10141 old_postinstall_cmds | old_postuninstall_cmds | \
10142 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10143 # Double-quote double-evaled strings.
10144 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10147 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10153 *'\$0 --fallback-echo"')
10154 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10158 cfgfile="${ofile}T"
10159 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10161 { echo "$as_me:$LINENO: creating $ofile" >&5
10162 echo "$as_me: creating $ofile" >&6;}
10164 cat <<__EOF__ >> "$cfgfile"
10167 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10168 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10169 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10171 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10172 # Free Software Foundation, Inc.
10174 # This file is part of GNU Libtool:
10175 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10177 # This program is free software; you can redistribute it and/or modify
10178 # it under the terms of the GNU General Public License as published by
10179 # the Free Software Foundation; either version 2 of the License, or
10180 # (at your option) any later version.
10182 # This program is distributed in the hope that it will be useful, but
10183 # WITHOUT ANY WARRANTY; without even the implied warranty of
10184 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10185 # General Public License for more details.
10187 # You should have received a copy of the GNU General Public License
10188 # along with this program; if not, write to the Free Software
10189 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10191 # As a special exception to the GNU General Public License, if you
10192 # distribute this file as part of a program that contains a
10193 # configuration script generated by Autoconf, you may include it under
10194 # the same distribution terms that you use for the rest of that program.
10196 # A sed program that does not truncate output.
10199 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10200 Xsed="$SED -e 1s/^X//"
10202 # The HP-UX ksh and POSIX shell print the target directory to stdout
10203 # if CDPATH is set.
10204 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10206 # The names of the tagged configurations supported by this script.
10209 # ### BEGIN LIBTOOL CONFIG
10211 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10213 # Shell to use when invoking shell scripts.
10216 # Whether or not to build shared libraries.
10217 build_libtool_libs=$enable_shared
10219 # Whether or not to build static libraries.
10220 build_old_libs=$enable_static
10222 # Whether or not to add -lc for building shared libraries.
10223 build_libtool_need_lc=$archive_cmds_need_lc
10225 # Whether or not to disallow shared libs when runtime libs are static
10226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10228 # Whether or not to optimize for fast installation.
10229 fast_install=$enable_fast_install
10232 host_alias=$host_alias
10236 # The build system.
10237 build_alias=$build_alias
10241 # An echo program that does not interpret backslashes.
10246 AR_FLAGS=$lt_AR_FLAGS
10251 # LTCC compiler flags.
10252 LTCFLAGS=$lt_LTCFLAGS
10254 # A language-specific compiler.
10257 # Is the compiler the GNU C compiler?
10263 # The linker used to build libraries.
10266 # Whether we need hard or soft links.
10269 # A BSD-compatible nm program.
10272 # A symbol stripping program
10275 # Used to examine libraries when file_magic_cmd begins "file"
10276 MAGIC_CMD=$MAGIC_CMD
10278 # Used on cygwin: DLL creation program.
10281 # Used on cygwin: object dumper.
10284 # Used on cygwin: assembler.
10287 # The name of the directory that contains temporary libtool files.
10290 # How to create reloadable object files.
10291 reload_flag=$lt_reload_flag
10292 reload_cmds=$lt_reload_cmds
10294 # How to pass a linker flag through the compiler.
10295 wl=$lt_lt_prog_compiler_wl
10297 # Object file suffix (normally "o").
10298 objext="$ac_objext"
10300 # Old archive suffix (normally "a").
10303 # Shared library suffix (normally ".so").
10304 shrext_cmds='$shrext_cmds'
10306 # Executable file suffix (normally "").
10309 # Additional compiler flags for building library objects.
10310 pic_flag=$lt_lt_prog_compiler_pic
10313 # What is the maximum length of a command?
10314 max_cmd_len=$lt_cv_sys_max_cmd_len
10316 # Does compiler simultaneously support -c and -o options?
10317 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10319 # Must we lock files when doing compilation?
10320 need_locks=$lt_need_locks
10322 # Do we need the lib prefix for modules?
10323 need_lib_prefix=$need_lib_prefix
10325 # Do we need a version for libraries?
10326 need_version=$need_version
10328 # Whether dlopen is supported.
10329 dlopen_support=$enable_dlopen
10331 # Whether dlopen of programs is supported.
10332 dlopen_self=$enable_dlopen_self
10334 # Whether dlopen of statically linked programs is supported.
10335 dlopen_self_static=$enable_dlopen_self_static
10337 # Compiler flag to prevent dynamic linking.
10338 link_static_flag=$lt_lt_prog_compiler_static
10340 # Compiler flag to turn off builtin functions.
10341 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10343 # Compiler flag to allow reflexive dlopens.
10344 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10346 # Compiler flag to generate shared objects directly from archives.
10347 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10349 # Compiler flag to generate thread-safe objects.
10350 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10352 # Library versioning type.
10353 version_type=$version_type
10355 # Format of library name prefix.
10356 libname_spec=$lt_libname_spec
10358 # List of archive names. First name is the real one, the rest are links.
10359 # The last name is the one that the linker finds with -lNAME.
10360 library_names_spec=$lt_library_names_spec
10362 # The coded name of the library, if different from the real name.
10363 soname_spec=$lt_soname_spec
10365 # Commands used to build and install an old-style archive.
10367 old_archive_cmds=$lt_old_archive_cmds
10368 old_postinstall_cmds=$lt_old_postinstall_cmds
10369 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10371 # Create an old-style archive from a shared archive.
10372 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10374 # Create a temporary old-style archive to link instead of a shared archive.
10375 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10377 # Commands used to build and install a shared archive.
10378 archive_cmds=$lt_archive_cmds
10379 archive_expsym_cmds=$lt_archive_expsym_cmds
10380 postinstall_cmds=$lt_postinstall_cmds
10381 postuninstall_cmds=$lt_postuninstall_cmds
10383 # Commands used to build a loadable module (assumed same as above if empty)
10384 module_cmds=$lt_module_cmds
10385 module_expsym_cmds=$lt_module_expsym_cmds
10387 # Commands to strip libraries.
10388 old_striplib=$lt_old_striplib
10389 striplib=$lt_striplib
10391 # Dependencies to place before the objects being linked to create a
10393 predep_objects=$lt_predep_objects
10395 # Dependencies to place after the objects being linked to create a
10397 postdep_objects=$lt_postdep_objects
10399 # Dependencies to place before the objects being linked to create a
10401 predeps=$lt_predeps
10403 # Dependencies to place after the objects being linked to create a
10405 postdeps=$lt_postdeps
10407 # The library search path used internally by the compiler when linking
10408 # a shared library.
10409 compiler_lib_search_path=$lt_compiler_lib_search_path
10411 # Method to check whether dependent libraries are shared objects.
10412 deplibs_check_method=$lt_deplibs_check_method
10414 # Command to use when deplibs_check_method == file_magic.
10415 file_magic_cmd=$lt_file_magic_cmd
10417 # Flag that allows shared libraries with undefined symbols to be built.
10418 allow_undefined_flag=$lt_allow_undefined_flag
10420 # Flag that forces no undefined symbols.
10421 no_undefined_flag=$lt_no_undefined_flag
10423 # Commands used to finish a libtool library installation in a directory.
10424 finish_cmds=$lt_finish_cmds
10426 # Same as above, but a single script fragment to be evaled but not shown.
10427 finish_eval=$lt_finish_eval
10429 # Take the output of nm and produce a listing of raw symbols and C names.
10430 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10432 # Transform the output of nm in a proper C declaration
10433 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10435 # Transform the output of nm in a C name address pair
10436 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10438 # This is the shared library runtime path variable.
10439 runpath_var=$runpath_var
10441 # This is the shared library path variable.
10442 shlibpath_var=$shlibpath_var
10444 # Is shlibpath searched before the hard-coded library search path?
10445 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10447 # How to hardcode a shared library path into an executable.
10448 hardcode_action=$hardcode_action
10450 # Whether we should hardcode library paths into libraries.
10451 hardcode_into_libs=$hardcode_into_libs
10453 # Flag to hardcode \$libdir into a binary during linking.
10454 # This must work even if \$libdir does not exist.
10455 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10457 # If ld is used when linking, flag to hardcode \$libdir into
10458 # a binary during linking. This must work even if \$libdir does
10460 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10462 # Whether we need a single -rpath flag with a separated argument.
10463 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10465 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10466 # resulting binary.
10467 hardcode_direct=$hardcode_direct
10469 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10470 # resulting binary.
10471 hardcode_minus_L=$hardcode_minus_L
10473 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10474 # the resulting binary.
10475 hardcode_shlibpath_var=$hardcode_shlibpath_var
10477 # Set to yes if building a shared library automatically hardcodes DIR into the library
10478 # and all subsequent libraries and executables linked against it.
10479 hardcode_automatic=$hardcode_automatic
10481 # Variables whose values should be saved in libtool wrapper scripts and
10482 # restored at relink time.
10483 variables_saved_for_relink="$variables_saved_for_relink"
10485 # Whether libtool must link a program against all its dependency libraries.
10486 link_all_deplibs=$link_all_deplibs
10488 # Compile-time system search path for libraries
10489 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10491 # Run-time system search path for libraries
10492 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10494 # Fix the shell variable \$srcfile for the compiler.
10495 fix_srcfile_path="$fix_srcfile_path"
10497 # Set to yes if exported symbols are required.
10498 always_export_symbols=$always_export_symbols
10500 # The commands to list exported symbols.
10501 export_symbols_cmds=$lt_export_symbols_cmds
10503 # The commands to extract the exported symbol list from a shared archive.
10504 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10506 # Symbols that should not be listed in the preloaded symbols.
10507 exclude_expsyms=$lt_exclude_expsyms
10509 # Symbols that must always be exported.
10510 include_expsyms=$lt_include_expsyms
10512 # ### END LIBTOOL CONFIG
10519 cat <<\EOF >> "$cfgfile"
10521 # AIX sometimes has problems with the GCC collect2 program. For some
10522 # reason, if we set the COLLECT_NAMES environment variable, the problems
10523 # vanish in a puff of smoke.
10524 if test "X${COLLECT_NAMES+set}" != Xset; then
10526 export COLLECT_NAMES
10532 # We use sed instead of cat because bash on DJGPP gets confused if
10533 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10534 # text mode, it properly converts lines to CR/LF. This bash problem
10535 # is reportedly fixed, but why not run on old versions too?
10536 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10538 mv -f "$cfgfile" "$ofile" || \
10539 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10543 # If there is no Makefile yet, we rely on a make rule to execute
10544 # `config.status --recheck' to rerun these tests and create the
10545 # libtool script then.
10546 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10547 if test -f "$ltmain_in"; then
10548 test -f Makefile && make "$ltmain"
10554 ac_cpp='$CPP $CPPFLAGS'
10555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10562 # Check whether --with-tags was given.
10563 if test "${with_tags+set}" = set; then
10564 withval=$with_tags; tagnames="$withval"
10568 if test -f "$ltmain" && test -n "$tagnames"; then
10569 if test ! -f "${ofile}"; then
10570 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10571 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10574 if test -z "$LTCC"; then
10575 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10576 if test -z "$LTCC"; then
10577 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10578 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10581 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10584 if test -z "$LTCFLAGS"; then
10585 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10588 # Extract list of available tagged configurations in $ofile.
10589 # Note that this assumes the entire list is on one line.
10590 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10592 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10593 for tagname in $tagnames; do
10595 # Check whether tagname contains only valid characters
10596 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10598 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10599 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10600 { (exit 1); exit 1; }; }
10604 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10606 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10607 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10608 { (exit 1); exit 1; }; }
10611 # Update the list of available tags.
10612 if test -n "$tagname"; then
10613 echo appending configuration tag \"$tagname\" to $ofile
10617 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10618 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10619 (test "X$CXX" != "Xg++"))) ; then
10621 ac_cpp='$CXXCPP $CPPFLAGS'
10622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10629 archive_cmds_need_lc_CXX=no
10630 allow_undefined_flag_CXX=
10631 always_export_symbols_CXX=no
10632 archive_expsym_cmds_CXX=
10633 export_dynamic_flag_spec_CXX=
10634 hardcode_direct_CXX=no
10635 hardcode_libdir_flag_spec_CXX=
10636 hardcode_libdir_flag_spec_ld_CXX=
10637 hardcode_libdir_separator_CXX=
10638 hardcode_minus_L_CXX=no
10639 hardcode_shlibpath_var_CXX=unsupported
10640 hardcode_automatic_CXX=no
10642 module_expsym_cmds_CXX=
10643 link_all_deplibs_CXX=unknown
10644 old_archive_cmds_CXX=$old_archive_cmds
10645 no_undefined_flag_CXX=
10646 whole_archive_flag_spec_CXX=
10647 enable_shared_with_static_runtimes_CXX=no
10649 # Dependencies to place before and after the object being linked:
10650 predep_objects_CXX=
10651 postdep_objects_CXX=
10654 compiler_lib_search_path_CXX=
10656 # Source file extension for C++ test sources.
10659 # Object file extension for compiled C++ test sources.
10663 # Code to be used in simple compile tests
10664 lt_simple_compile_test_code="int some_variable = 0;\n"
10666 # Code to be used in simple link tests
10667 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10669 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10671 # If no C compiler was specified, use CC.
10674 # If no C compiler flags were specified, use CFLAGS.
10675 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10677 # Allow CC to be a program name with arguments.
10681 # save warnings/boilerplate of simple test code
10682 ac_outfile=conftest.$ac_objext
10683 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10684 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10685 _lt_compiler_boilerplate=`cat conftest.err`
10688 ac_outfile=conftest.$ac_objext
10689 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10690 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10691 _lt_linker_boilerplate=`cat conftest.err`
10695 # Allow CC to be a program name with arguments.
10700 lt_save_with_gnu_ld=$with_gnu_ld
10701 lt_save_path_LD=$lt_cv_path_LD
10702 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10703 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10705 $as_unset lt_cv_prog_gnu_ld
10707 if test -n "${lt_cv_path_LDCXX+set}"; then
10708 lt_cv_path_LD=$lt_cv_path_LDCXX
10710 $as_unset lt_cv_path_LD
10712 test -z "${LDCXX+set}" || LD=$LDCXX
10716 for cc_temp in $compiler""; do
10718 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10719 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10724 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10727 # We don't want -fno-exception wen compiling C++ code, so set the
10728 # no_builtin_flag separately
10729 if test "$GXX" = yes; then
10730 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10732 lt_prog_compiler_no_builtin_flag_CXX=
10735 if test "$GXX" = yes; then
10736 # Set up default GNU C++ configuration
10739 # Check whether --with-gnu-ld was given.
10740 if test "${with_gnu_ld+set}" = set; then
10741 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10747 if test "$GCC" = yes; then
10748 # Check if gcc -print-prog-name=ld gives a path.
10749 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10750 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10753 # gcc leaves a trailing carriage return which upsets mingw
10754 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10756 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10759 # Accept absolute paths.
10761 re_direlt='/[^/][^/]*/\.\./'
10762 # Canonicalize the pathname of ld
10763 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10764 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10765 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10767 test -z "$LD" && LD="$ac_prog"
10770 # If it fails, then pretend we aren't using GCC.
10774 # If it is relative, then search for the first ld in PATH.
10775 with_gnu_ld=unknown
10778 elif test "$with_gnu_ld" = yes; then
10779 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10780 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10782 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10783 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10785 if test "${lt_cv_path_LD+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 if test -z "$LD"; then
10789 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10790 for ac_dir in $PATH; do
10792 test -z "$ac_dir" && ac_dir=.
10793 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10794 lt_cv_path_LD="$ac_dir/$ac_prog"
10795 # Check to see if the program is GNU ld. I'd rather use --version,
10796 # but apparently some variants of GNU ld only accept -v.
10797 # Break only if it was the GNU/non-GNU ld that we prefer.
10798 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10799 *GNU* | *'with BFD'*)
10800 test "$with_gnu_ld" != no && break
10803 test "$with_gnu_ld" != yes && break
10810 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10814 LD="$lt_cv_path_LD"
10815 if test -n "$LD"; then
10816 { echo "$as_me:$LINENO: result: $LD" >&5
10817 echo "${ECHO_T}$LD" >&6; }
10819 { echo "$as_me:$LINENO: result: no" >&5
10820 echo "${ECHO_T}no" >&6; }
10822 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10823 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10824 { (exit 1); exit 1; }; }
10825 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10826 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10827 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10828 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10831 case `$LD -v 2>&1 </dev/null` in
10832 *GNU* | *'with BFD'*)
10833 lt_cv_prog_gnu_ld=yes
10836 lt_cv_prog_gnu_ld=no
10840 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10841 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10842 with_gnu_ld=$lt_cv_prog_gnu_ld
10846 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10847 # archiving commands below assume that GNU ld is being used.
10848 if test "$with_gnu_ld" = yes; then
10849 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10850 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'
10852 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10853 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10855 # If archive_cmds runs LD, not CC, wlarc should be empty
10856 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10857 # investigate it a little bit more. (MM)
10860 # ancient GNU ld didn't support --whole-archive et. al.
10861 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10862 grep 'no-whole-archive' > /dev/null; then
10863 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10865 whole_archive_flag_spec_CXX=
10871 # A generic and very simple default shared library creation
10872 # command for GNU C++ for the case where it uses the native
10873 # linker, instead of GNU ld. If possible, this setting should
10874 # overridden to take advantage of the native linker features on
10875 # the platform it is being used on.
10876 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10879 # Commands to make compiler produce verbose output that lists
10880 # what "hidden" libraries, object files and flags are used when
10881 # linking a shared library.
10882 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10890 # PORTME: fill in a description of your system's C++ link characteristics
10891 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10892 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10896 # FIXME: insert proper C++ library support
10900 if test "$host_cpu" = ia64; then
10901 # On IA64, the linker does run time linking by default, so we don't
10902 # have to do anything special.
10903 aix_use_runtimelinking=no
10904 exp_sym_flag='-Bexport'
10907 aix_use_runtimelinking=no
10909 # Test if we are trying to use run time linking or normal
10910 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10911 # need to do runtime linking.
10912 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10913 for ld_flag in $LDFLAGS; do
10916 aix_use_runtimelinking=yes
10924 exp_sym_flag='-bexport'
10925 no_entry_flag='-bnoentry'
10928 # When large executables or shared objects are built, AIX ld can
10929 # have problems creating the table of contents. If linking a library
10930 # or program results in "error TOC overflow" add -mminimal-toc to
10931 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10932 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10934 archive_cmds_CXX=''
10935 hardcode_direct_CXX=yes
10936 hardcode_libdir_separator_CXX=':'
10937 link_all_deplibs_CXX=yes
10939 if test "$GXX" = yes; then
10940 case $host_os in aix4.[012]|aix4.[012].*)
10941 # We only want to do this on AIX 4.2 and lower, the check
10942 # below for broken collect2 doesn't work under 4.3+
10943 collect2name=`${CC} -print-prog-name=collect2`
10944 if test -f "$collect2name" && \
10945 strings "$collect2name" | grep resolve_lib_name >/dev/null
10947 # We have reworked collect2
10948 hardcode_direct_CXX=yes
10950 # We have old collect2
10951 hardcode_direct_CXX=unsupported
10952 # It fails to find uninstalled libraries when the uninstalled
10953 # path is not listed in the libpath. Setting hardcode_minus_L
10954 # to unsupported forces relinking
10955 hardcode_minus_L_CXX=yes
10956 hardcode_libdir_flag_spec_CXX='-L$libdir'
10957 hardcode_libdir_separator_CXX=
10961 shared_flag='-shared'
10962 if test "$aix_use_runtimelinking" = yes; then
10963 shared_flag="$shared_flag "'${wl}-G'
10967 if test "$host_cpu" = ia64; then
10968 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10969 # chokes on -Wl,-G. The following line is correct:
10972 if test "$aix_use_runtimelinking" = yes; then
10973 shared_flag='${wl}-G'
10975 shared_flag='${wl}-bM:SRE'
10980 # It seems that -bexpall does not export symbols beginning with
10981 # underscore (_), so it is better to generate a list of symbols to export.
10982 always_export_symbols_CXX=yes
10983 if test "$aix_use_runtimelinking" = yes; then
10984 # Warning - without using the other runtime loading flags (-brtl),
10985 # -berok will link without error, but may produce a broken library.
10986 allow_undefined_flag_CXX='-berok'
10987 # Determine the default libpath from the value encoded in an empty executable.
10988 cat >conftest.$ac_ext <<_ACEOF
10991 cat confdefs.h >>conftest.$ac_ext
10992 cat >>conftest.$ac_ext <<_ACEOF
10993 /* end confdefs.h. */
11003 rm -f conftest.$ac_objext conftest$ac_exeext
11004 if { (ac_try="$ac_link"
11005 case "(($ac_try" in
11006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11007 *) ac_try_echo=$ac_try;;
11009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11010 (eval "$ac_link") 2>conftest.er1
11012 grep -v '^ *+' conftest.er1 >conftest.err
11014 cat conftest.err >&5
11015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11016 (exit $ac_status); } && {
11017 test -z "$ac_cxx_werror_flag" ||
11018 test ! -s conftest.err
11019 } && test -s conftest$ac_exeext &&
11020 $as_test_x conftest$ac_exeext; then
11022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11024 # Check for a 64-bit object if we didn't find anything.
11025 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; }
11028 echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11035 conftest$ac_exeext conftest.$ac_ext
11036 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11038 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11040 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"
11042 if test "$host_cpu" = ia64; then
11043 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11044 allow_undefined_flag_CXX="-z nodefs"
11045 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"
11047 # Determine the default libpath from the value encoded in an empty executable.
11048 cat >conftest.$ac_ext <<_ACEOF
11051 cat confdefs.h >>conftest.$ac_ext
11052 cat >>conftest.$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11063 rm -f conftest.$ac_objext conftest$ac_exeext
11064 if { (ac_try="$ac_link"
11065 case "(($ac_try" in
11066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11067 *) ac_try_echo=$ac_try;;
11069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11070 (eval "$ac_link") 2>conftest.er1
11072 grep -v '^ *+' conftest.er1 >conftest.err
11074 cat conftest.err >&5
11075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11076 (exit $ac_status); } && {
11077 test -z "$ac_cxx_werror_flag" ||
11078 test ! -s conftest.err
11079 } && test -s conftest$ac_exeext &&
11080 $as_test_x conftest$ac_exeext; then
11082 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11084 # Check for a 64-bit object if we didn't find anything.
11085 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; }
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.$ac_ext >&5
11094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11095 conftest$ac_exeext conftest.$ac_ext
11096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11098 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11099 # Warning - without using the other run time loading flags,
11100 # -berok will link without error, but may produce a broken library.
11101 no_undefined_flag_CXX=' ${wl}-bernotok'
11102 allow_undefined_flag_CXX=' ${wl}-berok'
11103 # Exported symbols can be pulled into shared objects from archives
11104 whole_archive_flag_spec_CXX='$convenience'
11105 archive_cmds_need_lc_CXX=yes
11106 # This is similar to how AIX traditionally builds its shared libraries.
11107 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'
11113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11114 allow_undefined_flag_CXX=unsupported
11115 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11116 # support --undefined. This deserves some investigation. FIXME
11117 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11124 case $cc_basename in
11126 # FIXME: insert proper C++ library support
11132 cygwin* | mingw* | pw32*)
11133 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11134 # as there is no search path for DLLs.
11135 hardcode_libdir_flag_spec_CXX='-L$libdir'
11136 allow_undefined_flag_CXX=unsupported
11137 always_export_symbols_CXX=no
11138 enable_shared_with_static_runtimes_CXX=yes
11140 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11141 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'
11142 # If the export-symbols file already is a .def file (1st line
11143 # is EXPORTS), use it as is; otherwise, prepend...
11144 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11145 cp $export_symbols $output_objdir/$soname.def;
11147 echo EXPORTS > $output_objdir/$soname.def;
11148 cat $export_symbols >> $output_objdir/$soname.def;
11150 $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'
11155 darwin* | rhapsody*)
11157 rhapsody* | darwin1.[012])
11158 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11161 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11162 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11164 case ${MACOSX_DEPLOYMENT_TARGET} in
11166 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11169 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11175 archive_cmds_need_lc_CXX=no
11176 hardcode_direct_CXX=no
11177 hardcode_automatic_CXX=yes
11178 hardcode_shlibpath_var_CXX=unsupported
11179 whole_archive_flag_spec_CXX=''
11180 link_all_deplibs_CXX=yes
11182 if test "$GXX" = yes ; then
11183 lt_int_apple_cc_single_mod=no
11184 output_verbose_link_cmd='echo'
11185 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11186 lt_int_apple_cc_single_mod=yes
11188 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11189 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11191 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'
11193 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11194 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11195 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11196 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}'
11198 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}'
11200 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}'
11202 case $cc_basename in
11204 output_verbose_link_cmd='echo'
11205 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'
11206 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11207 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11208 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}'
11209 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}'
11219 case $cc_basename in
11221 # FIXME: insert proper C++ library support
11225 # Green Hills C++ Compiler
11226 # FIXME: insert proper C++ library support
11230 # FIXME: insert proper C++ library support
11236 # C++ shared libraries reported to be fairly broken before switch to ELF
11240 archive_cmds_need_lc_CXX=no
11242 freebsd* | dragonfly*)
11243 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11250 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11251 hardcode_libdir_separator_CXX=:
11252 export_dynamic_flag_spec_CXX='${wl}-E'
11253 hardcode_direct_CXX=yes
11254 hardcode_minus_L_CXX=yes # Not in the search PATH,
11255 # but as the default
11256 # location of the library.
11258 case $cc_basename in
11260 # FIXME: insert proper C++ library support
11264 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'
11265 # Commands to make compiler produce verbose output that lists
11266 # what "hidden" libraries, object files and flags are used when
11267 # linking a shared library.
11269 # There doesn't appear to be a way to prevent this compiler from
11270 # explicitly linking system object files so we need to strip them
11271 # from the output so that they don't get included in the library
11273 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'
11276 if test "$GXX" = yes; then
11277 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'
11279 # FIXME: insert proper C++ library support
11286 if test $with_gnu_ld = no; then
11287 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11288 hardcode_libdir_separator_CXX=:
11292 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11295 export_dynamic_flag_spec_CXX='${wl}-E'
11301 hardcode_direct_CXX=no
11302 hardcode_shlibpath_var_CXX=no
11305 hardcode_direct_CXX=yes
11306 hardcode_minus_L_CXX=yes # Not in the search PATH,
11307 # but as the default
11308 # location of the library.
11312 case $cc_basename in
11314 # FIXME: insert proper C++ library support
11320 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11323 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11326 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11329 # Commands to make compiler produce verbose output that lists
11330 # what "hidden" libraries, object files and flags are used when
11331 # linking a shared library.
11333 # There doesn't appear to be a way to prevent this compiler from
11334 # explicitly linking system object files so we need to strip them
11335 # from the output so that they don't get included in the library
11337 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'
11340 if test "$GXX" = yes; then
11341 if test $with_gnu_ld = no; then
11344 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11347 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11350 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'
11355 # FIXME: insert proper C++ library support
11362 hardcode_direct_CXX=no
11363 hardcode_shlibpath_var_CXX=no
11364 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11365 export_dynamic_flag_spec_CXX='${wl}-E'
11366 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11367 # Instead, shared libraries are loaded at an image base (0x10000000 by
11368 # default) and relocated if they conflict, which is a slow very memory
11369 # consuming and fragmenting process. To avoid this, we pick a random,
11370 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11371 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11372 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'
11373 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'
11376 case $cc_basename in
11379 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'
11381 # Archives containing C++ object files must be created using
11382 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11383 # necessary to make sure instantiated templates are included
11385 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11388 if test "$GXX" = yes; then
11389 if test "$with_gnu_ld" = no; then
11390 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'
11392 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'
11395 link_all_deplibs_CXX=yes
11398 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11399 hardcode_libdir_separator_CXX=:
11401 linux* | k*bsd*-gnu)
11402 case $cc_basename in
11404 # Kuck and Associates, Inc. (KAI) C++ Compiler
11406 # KCC will only create a shared library if the output file
11407 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11408 # to its proper name (with version) after linking.
11409 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'
11410 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'
11411 # Commands to make compiler produce verbose output that lists
11412 # what "hidden" libraries, object files and flags are used when
11413 # linking a shared library.
11415 # There doesn't appear to be a way to prevent this compiler from
11416 # explicitly linking system object files so we need to strip them
11417 # from the output so that they don't get included in the library
11419 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'
11421 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11424 # Archives containing C++ object files must be created using
11425 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11426 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11431 # version 8.0 and above of icpc choke on multiply defined symbols
11432 # if we add $predep_objects and $postdep_objects, however 7.1 and
11433 # earlier do not add the objects themselves.
11434 case `$CC -V 2>&1` in
11436 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11437 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'
11439 *) # Version 8.0 or newer
11442 ia64*) tmp_idyn=' -i_dynamic';;
11444 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11445 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'
11448 archive_cmds_need_lc_CXX=no
11449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11450 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11451 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11454 # Portland Group C++ compiler
11455 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11456 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'
11458 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11459 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11460 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'
11464 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11465 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'
11467 runpath_var=LD_RUN_PATH
11468 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11469 hardcode_libdir_separator_CXX=:
11471 # Commands to make compiler produce verbose output that lists
11472 # what "hidden" libraries, object files and flags are used when
11473 # linking a shared library.
11475 # There doesn't appear to be a way to prevent this compiler from
11476 # explicitly linking system object files so we need to strip them
11477 # from the output so that they don't get included in the library
11479 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'
11484 # FIXME: insert proper C++ library support
11488 # FIXME: insert proper C++ library support
11492 case $cc_basename in
11494 # FIXME: insert proper C++ library support
11498 # FIXME: insert proper C++ library support
11503 netbsd* | netbsdelf*-gnu)
11504 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11505 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11507 hardcode_libdir_flag_spec_CXX='-R$libdir'
11508 hardcode_direct_CXX=yes
11509 hardcode_shlibpath_var_CXX=no
11511 # Workaround some broken pre-1.5 toolchains
11512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11515 # C++ shared libraries are fairly broken
11519 hardcode_direct_CXX=yes
11520 hardcode_shlibpath_var_CXX=no
11521 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11522 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11523 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11524 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11525 export_dynamic_flag_spec_CXX='${wl}-E'
11526 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11528 output_verbose_link_cmd='echo'
11531 case $cc_basename in
11533 # Kuck and Associates, Inc. (KAI) C++ Compiler
11535 # KCC will only create a shared library if the output file
11536 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11537 # to its proper name (with version) after linking.
11538 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'
11540 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11541 hardcode_libdir_separator_CXX=:
11543 # Archives containing C++ object files must be created using
11544 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11545 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11549 # Rational C++ 2.4.1
11550 # FIXME: insert proper C++ library support
11554 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11555 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'
11557 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11558 hardcode_libdir_separator_CXX=:
11560 # Commands to make compiler produce verbose output that lists
11561 # what "hidden" libraries, object files and flags are used when
11562 # linking a shared library.
11564 # There doesn't appear to be a way to prevent this compiler from
11565 # explicitly linking system object files so we need to strip them
11566 # from the output so that they don't get included in the library
11568 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'
11571 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11572 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11573 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'
11575 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11576 hardcode_libdir_separator_CXX=:
11578 # Commands to make compiler produce verbose output that lists
11579 # what "hidden" libraries, object files and flags are used when
11580 # linking a shared library.
11581 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11584 # FIXME: insert proper C++ library support
11591 case $cc_basename in
11593 # Kuck and Associates, Inc. (KAI) C++ Compiler
11595 # KCC will only create a shared library if the output file
11596 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11597 # to its proper name (with version) after linking.
11598 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'
11600 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11601 hardcode_libdir_separator_CXX=:
11603 # Archives containing C++ object files must be created using
11604 # the KAI C++ compiler.
11605 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11608 # Rational C++ 2.4.1
11609 # FIXME: insert proper C++ library support
11613 allow_undefined_flag_CXX=' -expect_unresolved \*'
11614 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'
11615 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11616 echo "-hidden">> $lib.exp~
11617 $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~
11620 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11621 hardcode_libdir_separator_CXX=:
11623 # Commands to make compiler produce verbose output that lists
11624 # what "hidden" libraries, object files and flags are used when
11625 # linking a shared library.
11627 # There doesn't appear to be a way to prevent this compiler from
11628 # explicitly linking system object files so we need to strip them
11629 # from the output so that they don't get included in the library
11631 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'
11634 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11635 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11636 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'
11638 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11639 hardcode_libdir_separator_CXX=:
11641 # Commands to make compiler produce verbose output that lists
11642 # what "hidden" libraries, object files and flags are used when
11643 # linking a shared library.
11644 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11647 # FIXME: insert proper C++ library support
11654 # FIXME: insert proper C++ library support
11658 case $cc_basename in
11661 # FIXME: insert proper C++ library support
11666 # FIXME: insert proper C++ library support
11670 # FIXME: insert proper C++ library support
11676 case $cc_basename in
11678 # Sun C++ 4.2, 5.x and Centerline C++
11679 archive_cmds_need_lc_CXX=yes
11680 no_undefined_flag_CXX=' -zdefs'
11681 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11682 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11683 $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'
11685 hardcode_libdir_flag_spec_CXX='-R$libdir'
11686 hardcode_shlibpath_var_CXX=no
11688 solaris2.[0-5] | solaris2.[0-5].*) ;;
11690 # The C++ compiler is used as linker so we must use $wl
11691 # flag to pass the commands to the underlying system
11692 # linker. We must also pass each convience library through
11693 # to the system linker between allextract/defaultextract.
11694 # The C++ compiler will combine linker options so we
11695 # cannot just pass the convience library names through
11697 # Supported since Solaris 2.6 (maybe 2.5.1?)
11698 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'
11701 link_all_deplibs_CXX=yes
11703 output_verbose_link_cmd='echo'
11705 # Archives containing C++ object files must be created using
11706 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11707 # necessary to make sure instantiated templates are included
11709 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11712 # Green Hills C++ Compiler
11713 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11715 # The C++ compiler must be used to create the archive.
11716 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11719 # GNU C++ compiler with Solaris linker
11720 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11721 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11722 if $CC --version | grep -v '^2\.7' > /dev/null; then
11723 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11724 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11725 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11727 # Commands to make compiler produce verbose output that lists
11728 # what "hidden" libraries, object files and flags are used when
11729 # linking a shared library.
11730 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11732 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11734 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11735 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11736 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11738 # Commands to make compiler produce verbose output that lists
11739 # what "hidden" libraries, object files and flags are used when
11740 # linking a shared library.
11741 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11744 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11749 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11750 no_undefined_flag_CXX='${wl}-z,text'
11751 archive_cmds_need_lc_CXX=no
11752 hardcode_shlibpath_var_CXX=no
11753 runpath_var='LD_RUN_PATH'
11755 case $cc_basename in
11757 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11758 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11761 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11762 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11766 sysv5* | sco3.2v5* | sco5v6*)
11767 # Note: We can NOT use -z defs as we might desire, because we do not
11768 # link with -lc, and that would cause any symbols used from libc to
11769 # always be unresolved, which means just about no library would
11770 # ever link correctly. If we're not using GNU ld we use -z text
11771 # though, which does catch some bad symbols but isn't as heavy-handed
11773 # For security reasons, it is highly recommended that you always
11774 # use absolute paths for naming shared libraries, and exclude the
11775 # DT_RUNPATH tag from executables and libraries. But doing so
11776 # requires that you compile everything twice, which is a pain.
11777 # So that behaviour is only enabled if SCOABSPATH is set to a
11778 # non-empty value in the environment. Most likely only useful for
11779 # creating official distributions of packages.
11780 # This is a hack until libtool officially supports absolute path
11781 # names for shared libraries.
11782 no_undefined_flag_CXX='${wl}-z,text'
11783 allow_undefined_flag_CXX='${wl}-z,nodefs'
11784 archive_cmds_need_lc_CXX=no
11785 hardcode_shlibpath_var_CXX=no
11786 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11787 hardcode_libdir_separator_CXX=':'
11788 link_all_deplibs_CXX=yes
11789 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11790 runpath_var='LD_RUN_PATH'
11792 case $cc_basename in
11794 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11795 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11798 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11799 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11804 case $cc_basename in
11806 # NonStop-UX NCC 3.20
11807 # FIXME: insert proper C++ library support
11811 # FIXME: insert proper C++ library support
11817 # FIXME: insert proper C++ library support
11821 # FIXME: insert proper C++ library support
11825 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11826 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11827 test "$ld_shlibs_CXX" = no && can_build_shared=no
11833 cat > conftest.$ac_ext <<EOF
11837 Foo (void) { a = 0; }
11843 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11844 (eval $ac_compile) 2>&5
11846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847 (exit $ac_status); }; then
11848 # Parse the compiler output and extract the necessary
11849 # objects, libraries and library flags.
11851 # Sentinel used to keep track of whether or not we are before
11852 # the conftest object file.
11853 pre_test_object_deps_done=no
11855 # The `*' in the case matches for architectures that use `case' in
11856 # $output_verbose_cmd can trigger glob expansion during the loop
11857 # eval without this substitution.
11858 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11860 for p in `eval $output_verbose_link_cmd`; do
11864 # Some compilers place space between "-{L,R}" and the path.
11865 # Remove the space.
11866 if test $p = "-L" \
11867 || test $p = "-R"; then
11874 if test "$pre_test_object_deps_done" = no; then
11877 # Internal compiler library paths should come after those
11878 # provided the user. The postdeps already come after the
11879 # user supplied libs so there is no need to process them.
11880 if test -z "$compiler_lib_search_path_CXX"; then
11881 compiler_lib_search_path_CXX="${prev}${p}"
11883 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11886 # The "-l" case would never come before the object being
11887 # linked, so don't bother handling this case.
11890 if test -z "$postdeps_CXX"; then
11891 postdeps_CXX="${prev}${p}"
11893 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11899 # This assumes that the test object file only shows up
11900 # once in the compiler output.
11901 if test "$p" = "conftest.$objext"; then
11902 pre_test_object_deps_done=yes
11906 if test "$pre_test_object_deps_done" = no; then
11907 if test -z "$predep_objects_CXX"; then
11908 predep_objects_CXX="$p"
11910 predep_objects_CXX="$predep_objects_CXX $p"
11913 if test -z "$postdep_objects_CXX"; then
11914 postdep_objects_CXX="$p"
11916 postdep_objects_CXX="$postdep_objects_CXX $p"
11921 *) ;; # Ignore the rest.
11929 echo "libtool.m4: error: problem compiling CXX test program"
11932 $rm -f confest.$objext
11934 # PORTME: override above test on systems where it is broken
11937 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11938 # hack all around it, let's just trust "g++" to DTRT.
11939 predep_objects_CXX=
11940 postdep_objects_CXX=
11945 case $cc_basename in
11947 # Adding this requires a known-good setup of shared libraries for
11948 # Sun compiler versions before 5.6, else PIC objects from an old
11949 # archive will be linked into the output, leading to subtle bugs.
11950 postdeps_CXX='-lCstd -lCrun'
11957 case " $postdeps_CXX " in
11958 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11961 lt_prog_compiler_wl_CXX=
11962 lt_prog_compiler_pic_CXX=
11963 lt_prog_compiler_static_CXX=
11965 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11966 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11968 # C++ specific cases for pic, static, wl, etc.
11969 if test "$GXX" = yes; then
11970 lt_prog_compiler_wl_CXX='-Wl,'
11971 lt_prog_compiler_static_CXX='-static'
11975 # All AIX code is PIC.
11976 if test "$host_cpu" = ia64; then
11977 # AIX 5 now supports IA64 processor
11978 lt_prog_compiler_static_CXX='-Bstatic'
11982 # FIXME: we need at least 68020 code to build shared libraries, but
11983 # adding the `-m68020' flag to GCC prevents building anything better,
11985 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11987 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11988 # PIC is the default for these OSes.
11990 mingw* | os2* | pw32*)
11991 # This hack is so that the source file can tell whether it is being
11992 # built for inclusion in a dll (and should export symbols for example).
11993 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11995 darwin* | rhapsody*)
11996 # PIC is the default on this platform
11997 # Common symbols not allowed in MH_DYLIB files
11998 lt_prog_compiler_pic_CXX='-fno-common'
12001 # DJGPP does not support shared libraries at all
12002 lt_prog_compiler_pic_CXX=
12005 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12006 # Instead, we relocate shared libraries at runtime.
12009 if test -d /usr/nec; then
12010 lt_prog_compiler_pic_CXX=-Kconform_pic
12014 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12015 # not for PA HP-UX.
12020 lt_prog_compiler_pic_CXX='-fPIC'
12025 lt_prog_compiler_pic_CXX='-fPIC'
12031 # All AIX code is PIC.
12032 if test "$host_cpu" = ia64; then
12033 # AIX 5 now supports IA64 processor
12034 lt_prog_compiler_static_CXX='-Bstatic'
12036 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12040 case $cc_basename in
12042 # Green Hills C++ Compiler
12043 # _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"
12048 # PIC is the default on this platform
12049 # Common symbols not allowed in MH_DYLIB files
12050 case $cc_basename in
12052 lt_prog_compiler_pic_CXX='-qnocommon'
12053 lt_prog_compiler_wl_CXX='-Wl,'
12058 case $cc_basename in
12060 lt_prog_compiler_pic_CXX='-KPIC'
12063 # Green Hills C++ Compiler
12064 lt_prog_compiler_pic_CXX='-pic'
12070 freebsd* | dragonfly*)
12071 # FreeBSD uses GNU C++
12073 hpux9* | hpux10* | hpux11*)
12074 case $cc_basename in
12076 lt_prog_compiler_wl_CXX='-Wl,'
12077 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12078 if test "$host_cpu" != ia64; then
12079 lt_prog_compiler_pic_CXX='+Z'
12083 lt_prog_compiler_wl_CXX='-Wl,'
12084 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12090 lt_prog_compiler_pic_CXX='+Z'
12099 # This is c89, which is MS Visual C++ (no shared libs)
12100 # Anyone wants to do a port?
12102 irix5* | irix6* | nonstopux*)
12103 case $cc_basename in
12105 lt_prog_compiler_wl_CXX='-Wl,'
12106 lt_prog_compiler_static_CXX='-non_shared'
12107 # CC pic flag -KPIC is the default.
12113 linux* | k*bsd*-gnu)
12114 case $cc_basename in
12117 lt_prog_compiler_wl_CXX='--backend -Wl,'
12118 lt_prog_compiler_pic_CXX='-fPIC'
12122 lt_prog_compiler_wl_CXX='-Wl,'
12123 lt_prog_compiler_pic_CXX='-KPIC'
12124 lt_prog_compiler_static_CXX='-static'
12127 # Portland Group C++ compiler.
12128 lt_prog_compiler_wl_CXX='-Wl,'
12129 lt_prog_compiler_pic_CXX='-fpic'
12130 lt_prog_compiler_static_CXX='-Bstatic'
12134 # Make sure the PIC flag is empty. It appears that all Alpha
12135 # Linux and Compaq Tru64 Unix objects are PIC.
12136 lt_prog_compiler_pic_CXX=
12137 lt_prog_compiler_static_CXX='-non_shared'
12148 case $cc_basename in
12150 lt_prog_compiler_pic_CXX='-W c,exportall'
12156 netbsd* | netbsdelf*-gnu)
12158 osf3* | osf4* | osf5*)
12159 case $cc_basename in
12161 lt_prog_compiler_wl_CXX='--backend -Wl,'
12164 # Rational C++ 2.4.1
12165 lt_prog_compiler_pic_CXX='-pic'
12168 # Digital/Compaq C++
12169 lt_prog_compiler_wl_CXX='-Wl,'
12170 # Make sure the PIC flag is empty. It appears that all Alpha
12171 # Linux and Compaq Tru64 Unix objects are PIC.
12172 lt_prog_compiler_pic_CXX=
12173 lt_prog_compiler_static_CXX='-non_shared'
12182 case $cc_basename in
12184 # Sun C++ 4.2, 5.x and Centerline C++
12185 lt_prog_compiler_pic_CXX='-KPIC'
12186 lt_prog_compiler_static_CXX='-Bstatic'
12187 lt_prog_compiler_wl_CXX='-Qoption ld '
12190 # Green Hills C++ Compiler
12191 lt_prog_compiler_pic_CXX='-PIC'
12198 case $cc_basename in
12201 lt_prog_compiler_pic_CXX='-pic'
12202 lt_prog_compiler_static_CXX='-Bstatic'
12206 lt_prog_compiler_pic_CXX='-pic'
12213 case $cc_basename in
12215 # NonStop-UX NCC 3.20
12216 lt_prog_compiler_pic_CXX='-KPIC'
12222 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12223 case $cc_basename in
12225 lt_prog_compiler_wl_CXX='-Wl,'
12226 lt_prog_compiler_pic_CXX='-KPIC'
12227 lt_prog_compiler_static_CXX='-Bstatic'
12234 lt_prog_compiler_can_build_shared_CXX=no
12239 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12240 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12243 # Check to make sure the PIC flag actually works.
12245 if test -n "$lt_prog_compiler_pic_CXX"; then
12247 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12248 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12249 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12250 echo $ECHO_N "(cached) $ECHO_C" >&6
12252 lt_prog_compiler_pic_works_CXX=no
12253 ac_outfile=conftest.$ac_objext
12254 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12255 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12256 # Insert the option either (1) after the last *FLAGS variable, or
12257 # (2) before a word containing "conftest.", or (3) at the end.
12258 # Note that $ac_compile itself does not contain backslashes and begins
12259 # with a dollar sign (not a hyphen), so the echo should work correctly.
12260 # The option is referenced via a variable to avoid confusing sed.
12261 lt_compile=`echo "$ac_compile" | $SED \
12262 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12263 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12264 -e 's:$: $lt_compiler_flag:'`
12265 (eval echo "\"\$as_me:12265: $lt_compile\"" >&5)
12266 (eval "$lt_compile" 2>conftest.err)
12268 cat conftest.err >&5
12269 echo "$as_me:12269: \$? = $ac_status" >&5
12270 if (exit $ac_status) && test -s "$ac_outfile"; then
12271 # The compiler can only warn and ignore the option if not recognized
12272 # So say no if there are warnings other than the usual output.
12273 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12274 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12275 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12276 lt_prog_compiler_pic_works_CXX=yes
12282 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12283 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12285 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12286 case $lt_prog_compiler_pic_CXX in
12288 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12291 lt_prog_compiler_pic_CXX=
12292 lt_prog_compiler_can_build_shared_CXX=no
12297 # For platforms which do not support PIC, -DPIC is meaningless:
12299 lt_prog_compiler_pic_CXX=
12302 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12307 # Check to make sure the static flag actually works.
12309 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12310 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12311 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12312 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12313 echo $ECHO_N "(cached) $ECHO_C" >&6
12315 lt_prog_compiler_static_works_CXX=no
12316 save_LDFLAGS="$LDFLAGS"
12317 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12318 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12319 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12320 # The linker can only warn and ignore the option if not recognized
12321 # So say no if there are warnings
12322 if test -s conftest.err; then
12323 # Append any errors to the config.log.
12324 cat conftest.err 1>&5
12325 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12326 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12327 if diff conftest.exp conftest.er2 >/dev/null; then
12328 lt_prog_compiler_static_works_CXX=yes
12331 lt_prog_compiler_static_works_CXX=yes
12335 LDFLAGS="$save_LDFLAGS"
12338 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12339 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12341 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12344 lt_prog_compiler_static_CXX=
12348 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12349 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12350 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 lt_cv_prog_compiler_c_o_CXX=no
12354 $rm -r conftest 2>/dev/null
12358 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12360 lt_compiler_flag="-o out/conftest2.$ac_objext"
12361 # Insert the option either (1) after the last *FLAGS variable, or
12362 # (2) before a word containing "conftest.", or (3) at the end.
12363 # Note that $ac_compile itself does not contain backslashes and begins
12364 # with a dollar sign (not a hyphen), so the echo should work correctly.
12365 lt_compile=`echo "$ac_compile" | $SED \
12366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12368 -e 's:$: $lt_compiler_flag:'`
12369 (eval echo "\"\$as_me:12369: $lt_compile\"" >&5)
12370 (eval "$lt_compile" 2>out/conftest.err)
12372 cat out/conftest.err >&5
12373 echo "$as_me:12373: \$? = $ac_status" >&5
12374 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12376 # The compiler can only warn and ignore the option if not recognized
12377 # So say no if there are warnings
12378 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12379 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12380 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12381 lt_cv_prog_compiler_c_o_CXX=yes
12386 # SGI C++ compiler will create directory out/ii_files/ for
12387 # template instantiation
12388 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12389 $rm out/* && rmdir out
12395 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12396 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12399 hard_links="nottested"
12400 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12401 # do not overwrite the value of need_locks provided by the user
12402 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12403 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12408 ln conftest.a conftest.b 2>&5 || hard_links=no
12409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12410 { echo "$as_me:$LINENO: result: $hard_links" >&5
12411 echo "${ECHO_T}$hard_links" >&6; }
12412 if test "$hard_links" = no; then
12413 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12414 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12421 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12422 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12424 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12427 # If we're using GNU nm, then we don't want the "-C" option.
12428 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12429 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12430 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'
12432 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'
12436 export_symbols_cmds_CXX="$ltdll_cmds"
12439 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'
12441 linux* | k*bsd*-gnu)
12442 link_all_deplibs_CXX=no
12445 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12449 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12450 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12451 test "$ld_shlibs_CXX" = no && can_build_shared=no
12454 # Do we need to explicitly link libc?
12456 case "x$archive_cmds_need_lc_CXX" in
12458 # Assume -lc should be added
12459 archive_cmds_need_lc_CXX=yes
12461 if test "$enable_shared" = yes && test "$GCC" = yes; then
12462 case $archive_cmds_CXX in
12464 # FIXME: we may have to deal with multi-command sequences.
12467 # Test whether the compiler implicitly links with -lc since on some
12468 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12469 # to ld, don't add -lc before -lgcc.
12470 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12471 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12476 (eval $ac_compile) 2>&5
12478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479 (exit $ac_status); } 2>conftest.err; then
12482 libobjs=conftest.$ac_objext
12484 wl=$lt_prog_compiler_wl_CXX
12485 pic_flag=$lt_prog_compiler_pic_CXX
12491 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12492 allow_undefined_flag_CXX=
12493 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12494 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); }
12499 archive_cmds_need_lc_CXX=no
12501 archive_cmds_need_lc_CXX=yes
12503 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12505 cat conftest.err 1>&5
12508 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12509 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12516 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12517 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12518 library_names_spec=
12519 libname_spec='lib$name'
12523 postuninstall_cmds=
12527 shlibpath_overrides_runpath=unknown
12529 dynamic_linker="$host_os ld.so"
12530 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12531 if test "$GCC" = yes; then
12532 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12533 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12534 # if the path contains ";" then we assume it to be the separator
12535 # otherwise default to the standard path separator (i.e. ":") - it is
12536 # assumed that no part of a normal pathname contains ";" but that should
12537 # okay in the real world where ";" in dirpaths is itself problematic.
12538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12543 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12545 need_lib_prefix=unknown
12546 hardcode_into_libs=no
12548 # when you set need_version to no, make sure it does not cause -set_version
12549 # flags to be left without arguments
12550 need_version=unknown
12555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12556 shlibpath_var=LIBPATH
12558 # AIX 3 has no versioning support, so we append a major version to the name.
12559 soname_spec='${libname}${release}${shared_ext}$major'
12566 hardcode_into_libs=yes
12567 if test "$host_cpu" = ia64; then
12568 # AIX 5 supports IA64
12569 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12570 shlibpath_var=LD_LIBRARY_PATH
12572 # With GCC up to 2.95.x, collect2 would create an import file
12573 # for dependence libraries. The import file would start with
12574 # the line `#! .'. This would cause the generated library to
12575 # depend on `.', always an invalid library. This was fixed in
12576 # development snapshots of GCC prior to 3.0.
12578 aix4 | aix4.[01] | aix4.[01].*)
12579 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12581 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12584 can_build_shared=no
12588 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12589 # soname into executable. Probably we can add versioning support to
12590 # collect2, so additional links can be useful in future.
12591 if test "$aix_use_runtimelinking" = yes; then
12592 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12593 # instead of lib<name>.a to let people know that these are not
12594 # typical AIX shared libraries.
12595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12597 # We preserve .a as extension for shared libraries through AIX4.2
12598 # and later when we are not doing run time linking.
12599 library_names_spec='${libname}${release}.a $libname.a'
12600 soname_spec='${libname}${release}${shared_ext}$major'
12602 shlibpath_var=LIBPATH
12607 library_names_spec='$libname.ixlibrary $libname.a'
12608 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12609 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'
12613 library_names_spec='${libname}${shared_ext}'
12614 dynamic_linker="$host_os ld.so"
12615 shlibpath_var=LIBRARY_PATH
12621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12622 soname_spec='${libname}${release}${shared_ext}$major'
12623 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12624 shlibpath_var=LD_LIBRARY_PATH
12625 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12626 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12627 # the default ld.so.conf also contains /usr/contrib/lib and
12628 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12629 # libtool to hard-code these into programs
12632 cygwin* | mingw* | pw32*)
12633 version_type=windows
12638 case $GCC,$host_os in
12639 yes,cygwin* | yes,mingw* | yes,pw32*)
12640 library_names_spec='$libname.dll.a'
12641 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12642 postinstall_cmds='base_file=`basename \${file}`~
12643 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12644 dldir=$destdir/`dirname \$dlpath`~
12645 test -d \$dldir || mkdir -p \$dldir~
12646 $install_prog $dir/$dlname \$dldir/$dlname~
12647 chmod a+x \$dldir/$dlname'
12648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12649 dlpath=$dir/\$dldll~
12651 shlibpath_overrides_runpath=yes
12655 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12656 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12657 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12660 # MinGW DLLs use traditional 'lib' prefix
12661 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12662 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12663 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12664 # It is most probably a Windows format PATH printed by
12665 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12666 # path with ; separators, and with drive letters. We can handle the
12667 # drive letters (cygwin fileutils understands them), so leave them,
12668 # especially as we might pass files found there to a mingw objdump,
12669 # which wouldn't understand a cygwinified path. Ahh.
12670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12676 # pw32 DLLs use 'pw' prefix rather than 'lib'
12677 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12683 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12686 dynamic_linker='Win32 ld.exe'
12687 # FIXME: first we should search . and the directory the executable is in
12691 darwin* | rhapsody*)
12692 dynamic_linker="$host_os dyld"
12693 version_type=darwin
12696 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12697 soname_spec='${libname}${release}${major}$shared_ext'
12698 shlibpath_overrides_runpath=yes
12699 shlibpath_var=DYLD_LIBRARY_PATH
12700 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12701 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12702 if test "$GCC" = yes; then
12703 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"`
12705 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12707 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12715 soname_spec='${libname}${release}${shared_ext}$major'
12716 shlibpath_var=LD_LIBRARY_PATH
12723 freebsd* | dragonfly*)
12724 # DragonFly does not have aout. When/if they implement a new
12725 # versioning mechanism, adjust this.
12726 if test -x /usr/bin/objformat; then
12727 objformat=`/usr/bin/objformat`
12730 freebsd[123]*) objformat=aout ;;
12731 *) objformat=elf ;;
12734 version_type=freebsd-$objformat
12735 case $version_type in
12737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12746 shlibpath_var=LD_LIBRARY_PATH
12749 shlibpath_overrides_runpath=yes
12751 freebsd3.[01]* | freebsdelf3.[01]*)
12752 shlibpath_overrides_runpath=yes
12753 hardcode_into_libs=yes
12755 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12756 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12757 shlibpath_overrides_runpath=no
12758 hardcode_into_libs=yes
12760 freebsd*) # from 4.6 on
12761 shlibpath_overrides_runpath=yes
12762 hardcode_into_libs=yes
12771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12772 soname_spec='${libname}${release}${shared_ext}$major'
12773 shlibpath_var=LD_LIBRARY_PATH
12774 hardcode_into_libs=yes
12777 hpux9* | hpux10* | hpux11*)
12778 # Give a soname corresponding to the major version so that dld.sl refuses to
12779 # link against other versions.
12786 hardcode_into_libs=yes
12787 dynamic_linker="$host_os dld.so"
12788 shlibpath_var=LD_LIBRARY_PATH
12789 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12791 soname_spec='${libname}${release}${shared_ext}$major'
12792 if test "X$HPUX_IA64_MODE" = X32; then
12793 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12795 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12801 hardcode_into_libs=yes
12802 dynamic_linker="$host_os dld.sl"
12803 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12806 soname_spec='${libname}${release}${shared_ext}$major'
12807 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12812 dynamic_linker="$host_os dld.sl"
12813 shlibpath_var=SHLIB_PATH
12814 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12816 soname_spec='${libname}${release}${shared_ext}$major'
12819 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12820 postinstall_cmds='chmod 555 $lib'
12827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12828 soname_spec='${libname}${release}${shared_ext}$major'
12829 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12830 shlibpath_var=LD_LIBRARY_PATH
12831 shlibpath_overrides_runpath=no
12832 hardcode_into_libs=yes
12835 irix5* | irix6* | nonstopux*)
12837 nonstopux*) version_type=nonstopux ;;
12839 if test "$lt_cv_prog_gnu_ld" = yes; then
12847 soname_spec='${libname}${release}${shared_ext}$major'
12848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12850 irix5* | nonstopux*)
12851 libsuff= shlibsuff=
12854 case $LD in # libtool.m4 will add one of these switches to LD
12855 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12856 libsuff= shlibsuff= libmagic=32-bit;;
12857 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12858 libsuff=32 shlibsuff=N32 libmagic=N32;;
12859 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12860 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12861 *) libsuff= shlibsuff= libmagic=never-match;;
12865 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12866 shlibpath_overrides_runpath=no
12867 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12868 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12869 hardcode_into_libs=yes
12872 # No shared lib support for Linux oldld, aout, or coff.
12873 linux*oldld* | linux*aout* | linux*coff*)
12877 # This must be Linux ELF.
12878 linux* | k*bsd*-gnu)
12882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12883 soname_spec='${libname}${release}${shared_ext}$major'
12884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12885 shlibpath_var=LD_LIBRARY_PATH
12886 shlibpath_overrides_runpath=no
12887 # This implies no fast_install, which is unacceptable.
12888 # Some rework will be needed to allow for fast_install
12889 # before this can be enabled.
12890 hardcode_into_libs=yes
12892 # Append ld.so.conf contents to the search path
12893 if test -f /etc/ld.so.conf; then
12894 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' ' '`
12895 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12898 # We used to test for /lib/ld.so.1 and disable shared libraries on
12899 # powerpc, because MkLinux only supported shared libraries with the
12900 # GNU dynamic linker. Since this was broken with cross compilers,
12901 # most powerpc-linux boxes support dynamic linking these days and
12902 # people can always --disable-shared, the test was removed, and we
12903 # assume the GNU/Linux dynamic linker is in use.
12904 dynamic_linker='GNU/Linux ld.so'
12911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12912 soname_spec='${libname}${release}${shared_ext}$major'
12913 shlibpath_var=LD_LIBRARY_PATH
12914 shlibpath_overrides_runpath=no
12915 hardcode_into_libs=yes
12916 dynamic_linker='NetBSD ld.elf_so'
12923 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12926 dynamic_linker='NetBSD (a.out) ld.so'
12928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12929 soname_spec='${libname}${release}${shared_ext}$major'
12930 dynamic_linker='NetBSD ld.elf_so'
12932 shlibpath_var=LD_LIBRARY_PATH
12933 shlibpath_overrides_runpath=yes
12934 hardcode_into_libs=yes
12939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12940 shlibpath_var=LD_LIBRARY_PATH
12941 shlibpath_overrides_runpath=yes
12948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12949 soname_spec='${libname}${release}${shared_ext}$major'
12950 shlibpath_var=LD_LIBRARY_PATH
12951 shlibpath_overrides_runpath=yes
12956 sys_lib_dlsearch_path_spec="/usr/lib"
12958 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12960 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12961 *) need_version=no ;;
12963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12965 shlibpath_var=LD_LIBRARY_PATH
12966 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12968 openbsd2.[89] | openbsd2.[89].*)
12969 shlibpath_overrides_runpath=no
12972 shlibpath_overrides_runpath=yes
12976 shlibpath_overrides_runpath=yes
12981 libname_spec='$name'
12984 library_names_spec='$libname${shared_ext} $libname.a'
12985 dynamic_linker='OS/2 ld.exe'
12986 shlibpath_var=LIBPATH
12989 osf3* | osf4* | osf5*)
12993 soname_spec='${libname}${release}${shared_ext}$major'
12994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12995 shlibpath_var=LD_LIBRARY_PATH
12996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12997 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13005 soname_spec='${libname}${release}${shared_ext}$major'
13006 shlibpath_var=LD_LIBRARY_PATH
13007 shlibpath_overrides_runpath=yes
13008 hardcode_into_libs=yes
13009 # ldd complains unless libraries are executable
13010 postinstall_cmds='chmod +x $lib'
13015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13016 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13017 shlibpath_var=LD_LIBRARY_PATH
13018 shlibpath_overrides_runpath=yes
13019 if test "$with_gnu_ld" = yes; then
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13028 soname_spec='${libname}${release}${shared_ext}$major'
13029 shlibpath_var=LD_LIBRARY_PATH
13030 case $host_vendor in
13032 shlibpath_overrides_runpath=no
13034 export_dynamic_flag_spec='${wl}-Blargedynsym'
13035 runpath_var=LD_RUN_PATH
13043 shlibpath_overrides_runpath=no
13044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13050 if test -d /usr/nec ;then
13052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13053 soname_spec='$libname${shared_ext}.$major'
13054 shlibpath_var=LD_LIBRARY_PATH
13058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13059 version_type=freebsd-elf
13062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13063 soname_spec='${libname}${release}${shared_ext}$major'
13064 shlibpath_var=LD_LIBRARY_PATH
13065 hardcode_into_libs=yes
13066 if test "$with_gnu_ld" = yes; then
13067 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13068 shlibpath_overrides_runpath=no
13070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13071 shlibpath_overrides_runpath=yes
13074 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13078 sys_lib_dlsearch_path_spec='/usr/lib'
13083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13084 soname_spec='${libname}${release}${shared_ext}$major'
13085 shlibpath_var=LD_LIBRARY_PATH
13092 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13093 echo "${ECHO_T}$dynamic_linker" >&6; }
13094 test "$dynamic_linker" = no && can_build_shared=no
13096 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13097 if test "$GCC" = yes; then
13098 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13101 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13102 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13103 hardcode_action_CXX=
13104 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13105 test -n "$runpath_var_CXX" || \
13106 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13108 # We can hardcode non-existant directories.
13109 if test "$hardcode_direct_CXX" != no &&
13110 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13111 # have to relink, otherwise we might link with an installed library
13112 # when we should be linking with a yet-to-be-installed one
13113 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13114 test "$hardcode_minus_L_CXX" != no; then
13115 # Linking always hardcodes the temporary library directory.
13116 hardcode_action_CXX=relink
13118 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13119 hardcode_action_CXX=immediate
13122 # We cannot hardcode anything, or else we can only hardcode existing
13124 hardcode_action_CXX=unsupported
13126 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13127 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13129 if test "$hardcode_action_CXX" = relink; then
13130 # Fast installation is not supported
13131 enable_fast_install=no
13132 elif test "$shlibpath_overrides_runpath" = yes ||
13133 test "$enable_shared" = no; then
13134 # Fast installation is not necessary
13135 enable_fast_install=needless
13139 # The else clause should only fire when bootstrapping the
13140 # libtool distribution, otherwise you forgot to ship ltmain.sh
13141 # with your package, and you will get complaints that there are
13142 # no rules to generate ltmain.sh.
13143 if test -f "$ltmain"; then
13144 # See if we are running on zsh, and set the options which allow our commands through
13145 # without removal of \ escapes.
13146 if test -n "${ZSH_VERSION+set}" ; then
13147 setopt NO_GLOB_SUBST
13149 # Now quote all the things that may contain metacharacters while being
13150 # careful not to overquote the AC_SUBSTed values. We take copies of the
13151 # variables and quote the copies for generation of the libtool script.
13152 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13154 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13155 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13156 deplibs_check_method reload_flag reload_cmds need_locks \
13157 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13158 lt_cv_sys_global_symbol_to_c_name_address \
13159 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13160 old_postinstall_cmds old_postuninstall_cmds \
13164 lt_prog_compiler_wl_CXX \
13165 lt_prog_compiler_pic_CXX \
13166 lt_prog_compiler_static_CXX \
13167 lt_prog_compiler_no_builtin_flag_CXX \
13168 export_dynamic_flag_spec_CXX \
13169 thread_safe_flag_spec_CXX \
13170 whole_archive_flag_spec_CXX \
13171 enable_shared_with_static_runtimes_CXX \
13172 old_archive_cmds_CXX \
13173 old_archive_from_new_cmds_CXX \
13174 predep_objects_CXX \
13175 postdep_objects_CXX \
13178 compiler_lib_search_path_CXX \
13180 archive_expsym_cmds_CXX \
13181 postinstall_cmds_CXX \
13182 postuninstall_cmds_CXX \
13183 old_archive_from_expsyms_cmds_CXX \
13184 allow_undefined_flag_CXX \
13185 no_undefined_flag_CXX \
13186 export_symbols_cmds_CXX \
13187 hardcode_libdir_flag_spec_CXX \
13188 hardcode_libdir_flag_spec_ld_CXX \
13189 hardcode_libdir_separator_CXX \
13190 hardcode_automatic_CXX \
13192 module_expsym_cmds_CXX \
13193 lt_cv_prog_compiler_c_o_CXX \
13194 exclude_expsyms_CXX \
13195 include_expsyms_CXX; do
13198 old_archive_cmds_CXX | \
13199 old_archive_from_new_cmds_CXX | \
13200 archive_cmds_CXX | \
13201 archive_expsym_cmds_CXX | \
13202 module_cmds_CXX | \
13203 module_expsym_cmds_CXX | \
13204 old_archive_from_expsyms_cmds_CXX | \
13205 export_symbols_cmds_CXX | \
13206 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13207 postinstall_cmds | postuninstall_cmds | \
13208 old_postinstall_cmds | old_postuninstall_cmds | \
13209 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13210 # Double-quote double-evaled strings.
13211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13214 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13220 *'\$0 --fallback-echo"')
13221 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13227 cat <<__EOF__ >> "$cfgfile"
13228 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13230 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13232 # Shell to use when invoking shell scripts.
13235 # Whether or not to build shared libraries.
13236 build_libtool_libs=$enable_shared
13238 # Whether or not to build static libraries.
13239 build_old_libs=$enable_static
13241 # Whether or not to add -lc for building shared libraries.
13242 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13244 # Whether or not to disallow shared libs when runtime libs are static
13245 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13247 # Whether or not to optimize for fast installation.
13248 fast_install=$enable_fast_install
13251 host_alias=$host_alias
13255 # The build system.
13256 build_alias=$build_alias
13260 # An echo program that does not interpret backslashes.
13265 AR_FLAGS=$lt_AR_FLAGS
13270 # LTCC compiler flags.
13271 LTCFLAGS=$lt_LTCFLAGS
13273 # A language-specific compiler.
13274 CC=$lt_compiler_CXX
13276 # Is the compiler the GNU C compiler?
13282 # The linker used to build libraries.
13285 # Whether we need hard or soft links.
13288 # A BSD-compatible nm program.
13291 # A symbol stripping program
13294 # Used to examine libraries when file_magic_cmd begins "file"
13295 MAGIC_CMD=$MAGIC_CMD
13297 # Used on cygwin: DLL creation program.
13300 # Used on cygwin: object dumper.
13303 # Used on cygwin: assembler.
13306 # The name of the directory that contains temporary libtool files.
13309 # How to create reloadable object files.
13310 reload_flag=$lt_reload_flag
13311 reload_cmds=$lt_reload_cmds
13313 # How to pass a linker flag through the compiler.
13314 wl=$lt_lt_prog_compiler_wl_CXX
13316 # Object file suffix (normally "o").
13317 objext="$ac_objext"
13319 # Old archive suffix (normally "a").
13322 # Shared library suffix (normally ".so").
13323 shrext_cmds='$shrext_cmds'
13325 # Executable file suffix (normally "").
13328 # Additional compiler flags for building library objects.
13329 pic_flag=$lt_lt_prog_compiler_pic_CXX
13332 # What is the maximum length of a command?
13333 max_cmd_len=$lt_cv_sys_max_cmd_len
13335 # Does compiler simultaneously support -c and -o options?
13336 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13338 # Must we lock files when doing compilation?
13339 need_locks=$lt_need_locks
13341 # Do we need the lib prefix for modules?
13342 need_lib_prefix=$need_lib_prefix
13344 # Do we need a version for libraries?
13345 need_version=$need_version
13347 # Whether dlopen is supported.
13348 dlopen_support=$enable_dlopen
13350 # Whether dlopen of programs is supported.
13351 dlopen_self=$enable_dlopen_self
13353 # Whether dlopen of statically linked programs is supported.
13354 dlopen_self_static=$enable_dlopen_self_static
13356 # Compiler flag to prevent dynamic linking.
13357 link_static_flag=$lt_lt_prog_compiler_static_CXX
13359 # Compiler flag to turn off builtin functions.
13360 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13362 # Compiler flag to allow reflexive dlopens.
13363 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13365 # Compiler flag to generate shared objects directly from archives.
13366 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13368 # Compiler flag to generate thread-safe objects.
13369 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13371 # Library versioning type.
13372 version_type=$version_type
13374 # Format of library name prefix.
13375 libname_spec=$lt_libname_spec
13377 # List of archive names. First name is the real one, the rest are links.
13378 # The last name is the one that the linker finds with -lNAME.
13379 library_names_spec=$lt_library_names_spec
13381 # The coded name of the library, if different from the real name.
13382 soname_spec=$lt_soname_spec
13384 # Commands used to build and install an old-style archive.
13386 old_archive_cmds=$lt_old_archive_cmds_CXX
13387 old_postinstall_cmds=$lt_old_postinstall_cmds
13388 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13390 # Create an old-style archive from a shared archive.
13391 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13393 # Create a temporary old-style archive to link instead of a shared archive.
13394 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13396 # Commands used to build and install a shared archive.
13397 archive_cmds=$lt_archive_cmds_CXX
13398 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13399 postinstall_cmds=$lt_postinstall_cmds
13400 postuninstall_cmds=$lt_postuninstall_cmds
13402 # Commands used to build a loadable module (assumed same as above if empty)
13403 module_cmds=$lt_module_cmds_CXX
13404 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13406 # Commands to strip libraries.
13407 old_striplib=$lt_old_striplib
13408 striplib=$lt_striplib
13410 # Dependencies to place before the objects being linked to create a
13412 predep_objects=$lt_predep_objects_CXX
13414 # Dependencies to place after the objects being linked to create a
13416 postdep_objects=$lt_postdep_objects_CXX
13418 # Dependencies to place before the objects being linked to create a
13420 predeps=$lt_predeps_CXX
13422 # Dependencies to place after the objects being linked to create a
13424 postdeps=$lt_postdeps_CXX
13426 # The library search path used internally by the compiler when linking
13427 # a shared library.
13428 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13430 # Method to check whether dependent libraries are shared objects.
13431 deplibs_check_method=$lt_deplibs_check_method
13433 # Command to use when deplibs_check_method == file_magic.
13434 file_magic_cmd=$lt_file_magic_cmd
13436 # Flag that allows shared libraries with undefined symbols to be built.
13437 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13439 # Flag that forces no undefined symbols.
13440 no_undefined_flag=$lt_no_undefined_flag_CXX
13442 # Commands used to finish a libtool library installation in a directory.
13443 finish_cmds=$lt_finish_cmds
13445 # Same as above, but a single script fragment to be evaled but not shown.
13446 finish_eval=$lt_finish_eval
13448 # Take the output of nm and produce a listing of raw symbols and C names.
13449 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13451 # Transform the output of nm in a proper C declaration
13452 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13454 # Transform the output of nm in a C name address pair
13455 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13457 # This is the shared library runtime path variable.
13458 runpath_var=$runpath_var
13460 # This is the shared library path variable.
13461 shlibpath_var=$shlibpath_var
13463 # Is shlibpath searched before the hard-coded library search path?
13464 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13466 # How to hardcode a shared library path into an executable.
13467 hardcode_action=$hardcode_action_CXX
13469 # Whether we should hardcode library paths into libraries.
13470 hardcode_into_libs=$hardcode_into_libs
13472 # Flag to hardcode \$libdir into a binary during linking.
13473 # This must work even if \$libdir does not exist.
13474 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13476 # If ld is used when linking, flag to hardcode \$libdir into
13477 # a binary during linking. This must work even if \$libdir does
13479 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13481 # Whether we need a single -rpath flag with a separated argument.
13482 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13484 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13485 # resulting binary.
13486 hardcode_direct=$hardcode_direct_CXX
13488 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13489 # resulting binary.
13490 hardcode_minus_L=$hardcode_minus_L_CXX
13492 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13493 # the resulting binary.
13494 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13496 # Set to yes if building a shared library automatically hardcodes DIR into the library
13497 # and all subsequent libraries and executables linked against it.
13498 hardcode_automatic=$hardcode_automatic_CXX
13500 # Variables whose values should be saved in libtool wrapper scripts and
13501 # restored at relink time.
13502 variables_saved_for_relink="$variables_saved_for_relink"
13504 # Whether libtool must link a program against all its dependency libraries.
13505 link_all_deplibs=$link_all_deplibs_CXX
13507 # Compile-time system search path for libraries
13508 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13510 # Run-time system search path for libraries
13511 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13513 # Fix the shell variable \$srcfile for the compiler.
13514 fix_srcfile_path="$fix_srcfile_path_CXX"
13516 # Set to yes if exported symbols are required.
13517 always_export_symbols=$always_export_symbols_CXX
13519 # The commands to list exported symbols.
13520 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13522 # The commands to extract the exported symbol list from a shared archive.
13523 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13525 # Symbols that should not be listed in the preloaded symbols.
13526 exclude_expsyms=$lt_exclude_expsyms_CXX
13528 # Symbols that must always be exported.
13529 include_expsyms=$lt_include_expsyms_CXX
13531 # ### END LIBTOOL TAG CONFIG: $tagname
13537 # If there is no Makefile yet, we rely on a make rule to execute
13538 # `config.status --recheck' to rerun these tests and create the
13539 # libtool script then.
13540 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13541 if test -f "$ltmain_in"; then
13542 test -f Makefile && make "$ltmain"
13548 ac_cpp='$CPP $CPPFLAGS'
13549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13557 with_gnu_ldcxx=$with_gnu_ld
13558 with_gnu_ld=$lt_save_with_gnu_ld
13559 lt_cv_path_LDCXX=$lt_cv_path_LD
13560 lt_cv_path_LD=$lt_save_path_LD
13561 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13562 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13570 if test -n "$F77" && test "X$F77" != "Xno"; then
13573 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13574 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13575 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13578 archive_cmds_need_lc_F77=no
13579 allow_undefined_flag_F77=
13580 always_export_symbols_F77=no
13581 archive_expsym_cmds_F77=
13582 export_dynamic_flag_spec_F77=
13583 hardcode_direct_F77=no
13584 hardcode_libdir_flag_spec_F77=
13585 hardcode_libdir_flag_spec_ld_F77=
13586 hardcode_libdir_separator_F77=
13587 hardcode_minus_L_F77=no
13588 hardcode_automatic_F77=no
13590 module_expsym_cmds_F77=
13591 link_all_deplibs_F77=unknown
13592 old_archive_cmds_F77=$old_archive_cmds
13593 no_undefined_flag_F77=
13594 whole_archive_flag_spec_F77=
13595 enable_shared_with_static_runtimes_F77=no
13597 # Source file extension for f77 test sources.
13600 # Object file extension for compiled f77 test sources.
13604 # Code to be used in simple compile tests
13605 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13607 # Code to be used in simple link tests
13608 lt_simple_link_test_code=" program t\n end\n"
13610 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13612 # If no C compiler was specified, use CC.
13615 # If no C compiler flags were specified, use CFLAGS.
13616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13618 # Allow CC to be a program name with arguments.
13622 # save warnings/boilerplate of simple test code
13623 ac_outfile=conftest.$ac_objext
13624 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13626 _lt_compiler_boilerplate=`cat conftest.err`
13629 ac_outfile=conftest.$ac_objext
13630 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13632 _lt_linker_boilerplate=`cat conftest.err`
13636 # Allow CC to be a program name with arguments.
13641 for cc_temp in $compiler""; do
13643 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13644 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13649 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13652 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13653 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13654 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13655 echo "${ECHO_T}$can_build_shared" >&6; }
13657 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13658 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13659 test "$can_build_shared" = "no" && enable_shared=no
13661 # On AIX, shared libraries and static libraries use the same namespace, and
13662 # are all built from PIC.
13665 test "$enable_shared" = yes && enable_static=no
13666 if test -n "$RANLIB"; then
13667 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13668 postinstall_cmds='$RANLIB $lib'
13672 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13673 test "$enable_shared" = yes && enable_static=no
13677 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13678 echo "${ECHO_T}$enable_shared" >&6; }
13680 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13681 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13682 # Make sure either enable_shared or enable_static is yes.
13683 test "$enable_shared" = yes || enable_static=yes
13684 { echo "$as_me:$LINENO: result: $enable_static" >&5
13685 echo "${ECHO_T}$enable_static" >&6; }
13690 lt_prog_compiler_wl_F77=
13691 lt_prog_compiler_pic_F77=
13692 lt_prog_compiler_static_F77=
13694 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13695 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13697 if test "$GCC" = yes; then
13698 lt_prog_compiler_wl_F77='-Wl,'
13699 lt_prog_compiler_static_F77='-static'
13703 # All AIX code is PIC.
13704 if test "$host_cpu" = ia64; then
13705 # AIX 5 now supports IA64 processor
13706 lt_prog_compiler_static_F77='-Bstatic'
13711 # FIXME: we need at least 68020 code to build shared libraries, but
13712 # adding the `-m68020' flag to GCC prevents building anything better,
13714 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13717 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13718 # PIC is the default for these OSes.
13721 mingw* | pw32* | os2*)
13722 # This hack is so that the source file can tell whether it is being
13723 # built for inclusion in a dll (and should export symbols for example).
13724 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13727 darwin* | rhapsody*)
13728 # PIC is the default on this platform
13729 # Common symbols not allowed in MH_DYLIB files
13730 lt_prog_compiler_pic_F77='-fno-common'
13734 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13735 # Instead, we relocate shared libraries at runtime.
13739 # Just because we use GCC doesn't mean we suddenly get shared libraries
13740 # on systems that don't support them.
13741 lt_prog_compiler_can_build_shared_F77=no
13746 if test -d /usr/nec; then
13747 lt_prog_compiler_pic_F77=-Kconform_pic
13752 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13753 # not for PA HP-UX.
13759 lt_prog_compiler_pic_F77='-fPIC'
13765 lt_prog_compiler_pic_F77='-fPIC'
13769 # PORTME Check for flag to pass linker flags through the system compiler.
13772 lt_prog_compiler_wl_F77='-Wl,'
13773 if test "$host_cpu" = ia64; then
13774 # AIX 5 now supports IA64 processor
13775 lt_prog_compiler_static_F77='-Bstatic'
13777 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13781 # PIC is the default on this platform
13782 # Common symbols not allowed in MH_DYLIB files
13783 case $cc_basename in
13785 lt_prog_compiler_pic_F77='-qnocommon'
13786 lt_prog_compiler_wl_F77='-Wl,'
13791 mingw* | pw32* | os2*)
13792 # This hack is so that the source file can tell whether it is being
13793 # built for inclusion in a dll (and should export symbols for example).
13794 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13797 hpux9* | hpux10* | hpux11*)
13798 lt_prog_compiler_wl_F77='-Wl,'
13799 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13800 # not for PA HP-UX.
13806 lt_prog_compiler_pic_F77='+Z'
13809 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13810 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13813 irix5* | irix6* | nonstopux*)
13814 lt_prog_compiler_wl_F77='-Wl,'
13815 # PIC (with -KPIC) is the default.
13816 lt_prog_compiler_static_F77='-non_shared'
13820 lt_prog_compiler_pic_F77='-KPIC'
13821 lt_prog_compiler_static_F77='-Bstatic'
13824 linux* | k*bsd*-gnu)
13825 case $cc_basename in
13827 lt_prog_compiler_wl_F77='-Wl,'
13828 lt_prog_compiler_pic_F77='-KPIC'
13829 lt_prog_compiler_static_F77='-static'
13831 pgcc* | pgf77* | pgf90* | pgf95*)
13832 # Portland Group compilers (*not* the Pentium gcc compiler,
13833 # which looks to be a dead project)
13834 lt_prog_compiler_wl_F77='-Wl,'
13835 lt_prog_compiler_pic_F77='-fpic'
13836 lt_prog_compiler_static_F77='-Bstatic'
13839 lt_prog_compiler_wl_F77='-Wl,'
13840 # All Alpha code is PIC.
13841 lt_prog_compiler_static_F77='-non_shared'
13846 osf3* | osf4* | osf5*)
13847 lt_prog_compiler_wl_F77='-Wl,'
13848 # All OSF/1 code is PIC.
13849 lt_prog_compiler_static_F77='-non_shared'
13853 lt_prog_compiler_pic_F77='-KPIC'
13854 lt_prog_compiler_static_F77='-Bstatic'
13855 case $cc_basename in
13856 f77* | f90* | f95*)
13857 lt_prog_compiler_wl_F77='-Qoption ld ';;
13859 lt_prog_compiler_wl_F77='-Wl,';;
13864 lt_prog_compiler_wl_F77='-Qoption ld '
13865 lt_prog_compiler_pic_F77='-PIC'
13866 lt_prog_compiler_static_F77='-Bstatic'
13869 sysv4 | sysv4.2uw2* | sysv4.3*)
13870 lt_prog_compiler_wl_F77='-Wl,'
13871 lt_prog_compiler_pic_F77='-KPIC'
13872 lt_prog_compiler_static_F77='-Bstatic'
13876 if test -d /usr/nec ;then
13877 lt_prog_compiler_pic_F77='-Kconform_pic'
13878 lt_prog_compiler_static_F77='-Bstatic'
13882 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13883 lt_prog_compiler_wl_F77='-Wl,'
13884 lt_prog_compiler_pic_F77='-KPIC'
13885 lt_prog_compiler_static_F77='-Bstatic'
13889 lt_prog_compiler_wl_F77='-Wl,'
13890 lt_prog_compiler_can_build_shared_F77=no
13894 lt_prog_compiler_pic_F77='-pic'
13895 lt_prog_compiler_static_F77='-Bstatic'
13899 lt_prog_compiler_can_build_shared_F77=no
13904 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13905 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13908 # Check to make sure the PIC flag actually works.
13910 if test -n "$lt_prog_compiler_pic_F77"; then
13912 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13913 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13914 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 lt_prog_compiler_pic_works_F77=no
13918 ac_outfile=conftest.$ac_objext
13919 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13920 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13921 # Insert the option either (1) after the last *FLAGS variable, or
13922 # (2) before a word containing "conftest.", or (3) at the end.
13923 # Note that $ac_compile itself does not contain backslashes and begins
13924 # with a dollar sign (not a hyphen), so the echo should work correctly.
13925 # The option is referenced via a variable to avoid confusing sed.
13926 lt_compile=`echo "$ac_compile" | $SED \
13927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13929 -e 's:$: $lt_compiler_flag:'`
13930 (eval echo "\"\$as_me:13930: $lt_compile\"" >&5)
13931 (eval "$lt_compile" 2>conftest.err)
13933 cat conftest.err >&5
13934 echo "$as_me:13934: \$? = $ac_status" >&5
13935 if (exit $ac_status) && test -s "$ac_outfile"; then
13936 # The compiler can only warn and ignore the option if not recognized
13937 # So say no if there are warnings other than the usual output.
13938 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13941 lt_prog_compiler_pic_works_F77=yes
13947 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13948 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13950 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13951 case $lt_prog_compiler_pic_F77 in
13953 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13956 lt_prog_compiler_pic_F77=
13957 lt_prog_compiler_can_build_shared_F77=no
13962 # For platforms which do not support PIC, -DPIC is meaningless:
13964 lt_prog_compiler_pic_F77=
13967 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13972 # Check to make sure the static flag actually works.
13974 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13975 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13976 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13977 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13978 echo $ECHO_N "(cached) $ECHO_C" >&6
13980 lt_prog_compiler_static_works_F77=no
13981 save_LDFLAGS="$LDFLAGS"
13982 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13983 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13984 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13985 # The linker can only warn and ignore the option if not recognized
13986 # So say no if there are warnings
13987 if test -s conftest.err; then
13988 # Append any errors to the config.log.
13989 cat conftest.err 1>&5
13990 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13991 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13992 if diff conftest.exp conftest.er2 >/dev/null; then
13993 lt_prog_compiler_static_works_F77=yes
13996 lt_prog_compiler_static_works_F77=yes
14000 LDFLAGS="$save_LDFLAGS"
14003 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14004 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14006 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14009 lt_prog_compiler_static_F77=
14013 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14014 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14015 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 lt_cv_prog_compiler_c_o_F77=no
14019 $rm -r conftest 2>/dev/null
14023 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14025 lt_compiler_flag="-o out/conftest2.$ac_objext"
14026 # Insert the option either (1) after the last *FLAGS variable, or
14027 # (2) before a word containing "conftest.", or (3) at the end.
14028 # Note that $ac_compile itself does not contain backslashes and begins
14029 # with a dollar sign (not a hyphen), so the echo should work correctly.
14030 lt_compile=`echo "$ac_compile" | $SED \
14031 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14032 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14033 -e 's:$: $lt_compiler_flag:'`
14034 (eval echo "\"\$as_me:14034: $lt_compile\"" >&5)
14035 (eval "$lt_compile" 2>out/conftest.err)
14037 cat out/conftest.err >&5
14038 echo "$as_me:14038: \$? = $ac_status" >&5
14039 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14041 # The compiler can only warn and ignore the option if not recognized
14042 # So say no if there are warnings
14043 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14044 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14045 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14046 lt_cv_prog_compiler_c_o_F77=yes
14051 # SGI C++ compiler will create directory out/ii_files/ for
14052 # template instantiation
14053 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14054 $rm out/* && rmdir out
14060 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14061 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14064 hard_links="nottested"
14065 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14066 # do not overwrite the value of need_locks provided by the user
14067 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14068 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14071 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14073 ln conftest.a conftest.b 2>&5 || hard_links=no
14074 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14075 { echo "$as_me:$LINENO: result: $hard_links" >&5
14076 echo "${ECHO_T}$hard_links" >&6; }
14077 if test "$hard_links" = no; then
14078 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14079 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14086 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14087 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14090 allow_undefined_flag_F77=
14091 enable_shared_with_static_runtimes_F77=no
14093 archive_expsym_cmds_F77=
14094 old_archive_From_new_cmds_F77=
14095 old_archive_from_expsyms_cmds_F77=
14096 export_dynamic_flag_spec_F77=
14097 whole_archive_flag_spec_F77=
14098 thread_safe_flag_spec_F77=
14099 hardcode_libdir_flag_spec_F77=
14100 hardcode_libdir_flag_spec_ld_F77=
14101 hardcode_libdir_separator_F77=
14102 hardcode_direct_F77=no
14103 hardcode_minus_L_F77=no
14104 hardcode_shlibpath_var_F77=unsupported
14105 link_all_deplibs_F77=unknown
14106 hardcode_automatic_F77=no
14108 module_expsym_cmds_F77=
14109 always_export_symbols_F77=no
14110 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14111 # include_expsyms should be a list of space-separated symbols to be *always*
14112 # included in the symbol list
14113 include_expsyms_F77=
14114 # exclude_expsyms can be an extended regexp of symbols to exclude
14115 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14116 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14117 # as well as any symbol that contains `d'.
14118 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14119 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14120 # platforms (ab)use it in PIC code, but their linkers get confused if
14121 # the symbol is explicitly referenced. Since portable code cannot
14122 # rely on this symbol name, it's probably fine to never include it in
14123 # preloaded symbol tables.
14124 extract_expsyms_cmds=
14125 # Just being paranoid about ensuring that cc_basename is set.
14126 for cc_temp in $compiler""; do
14128 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14129 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14134 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14137 cygwin* | mingw* | pw32*)
14138 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14139 # When not using gcc, we currently assume that we are using
14140 # Microsoft Visual C++.
14141 if test "$GCC" != yes; then
14146 # we just hope/assume this is gcc and not c89 (= MSVC++)
14155 if test "$with_gnu_ld" = yes; then
14156 # If archive_cmds runs LD, not CC, wlarc should be empty
14159 # Set some defaults for GNU ld with shared library support. These
14160 # are reset later if shared libraries are not supported. Putting them
14161 # here allows them to be overridden if necessary.
14162 runpath_var=LD_RUN_PATH
14163 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14164 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14165 # ancient GNU ld didn't support --whole-archive et. al.
14166 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14167 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14169 whole_archive_flag_spec_F77=
14171 supports_anon_versioning=no
14172 case `$LD -v 2>/dev/null` in
14173 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14174 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14175 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14176 *\ 2.11.*) ;; # other 2.11 versions
14177 *) supports_anon_versioning=yes ;;
14180 # See if GNU ld supports shared libraries.
14182 aix3* | aix4* | aix5*)
14183 # On AIX/PPC, the GNU linker is very broken
14184 if test "$host_cpu" != ia64; then
14188 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14189 *** to be unable to reliably create shared libraries on AIX.
14190 *** Therefore, libtool is disabling shared libraries support. If you
14191 *** really care for shared libraries, you may want to modify your PATH
14192 *** so that a non-GNU linker is found, and then restart.
14199 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)'
14200 hardcode_libdir_flag_spec_F77='-L$libdir'
14201 hardcode_minus_L_F77=yes
14203 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14204 # that the semantics of dynamic libraries on AmigaOS, at least up
14205 # to version 4, is to share data among multiple programs linked
14206 # with the same dynamic library. Since this doesn't match the
14207 # behavior of shared libraries on other platforms, we can't use
14213 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14214 allow_undefined_flag_F77=unsupported
14215 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14216 # support --undefined. This deserves some investigation. FIXME
14217 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14223 cygwin* | mingw* | pw32*)
14224 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14225 # as there is no search path for DLLs.
14226 hardcode_libdir_flag_spec_F77='-L$libdir'
14227 allow_undefined_flag_F77=unsupported
14228 always_export_symbols_F77=no
14229 enable_shared_with_static_runtimes_F77=yes
14230 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14232 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14233 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14234 # If the export-symbols file already is a .def file (1st line
14235 # is EXPORTS), use it as is; otherwise, prepend...
14236 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14237 cp $export_symbols $output_objdir/$soname.def;
14239 echo EXPORTS > $output_objdir/$soname.def;
14240 cat $export_symbols >> $output_objdir/$soname.def;
14242 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14249 hardcode_direct_F77=no
14250 hardcode_shlibpath_var_F77=no
14251 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14252 export_dynamic_flag_spec_F77='${wl}-E'
14253 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14254 # Instead, shared libraries are loaded at an image base (0x10000000 by
14255 # default) and relocated if they conflict, which is a slow very memory
14256 # consuming and fragmenting process. To avoid this, we pick a random,
14257 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14258 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14259 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'
14260 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'
14263 linux* | k*bsd*-gnu)
14264 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14266 case $cc_basename,$host_cpu in
14267 pgcc*) # Portland Group C compiler
14268 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'
14269 tmp_addflag=' $pic_flag'
14271 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14272 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'
14273 tmp_addflag=' $pic_flag -Mnomain' ;;
14274 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14275 tmp_addflag=' -i_dynamic' ;;
14276 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14277 tmp_addflag=' -i_dynamic -nofor_main' ;;
14278 ifc* | ifort*) # Intel Fortran compiler
14279 tmp_addflag=' -nofor_main' ;;
14281 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14283 if test $supports_anon_versioning = yes; then
14284 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14285 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14286 $echo "local: *; };" >> $output_objdir/$libname.ver~
14287 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14289 link_all_deplibs_F77=no
14295 netbsd* | netbsdelf*-gnu)
14296 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14297 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14300 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14301 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14306 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14310 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14311 *** create shared libraries on Solaris systems. Therefore, libtool
14312 *** is disabling shared libraries support. We urge you to upgrade GNU
14313 *** binutils to release 2.9.1 or newer. Another option is to modify
14314 *** your PATH or compiler configuration so that the native linker is
14315 *** used, and then restart.
14318 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14319 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14320 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14326 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14327 case `$LD -v 2>&1` in
14328 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14332 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14333 *** reliably create shared libraries on SCO systems. Therefore, libtool
14334 *** is disabling shared libraries support. We urge you to upgrade GNU
14335 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14336 *** your PATH or compiler configuration so that the native linker is
14337 *** used, and then restart.
14342 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14343 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14344 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14345 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14354 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14356 hardcode_direct_F77=yes
14357 hardcode_shlibpath_var_F77=no
14361 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14362 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14363 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14370 if test "$ld_shlibs_F77" = no; then
14372 hardcode_libdir_flag_spec_F77=
14373 export_dynamic_flag_spec_F77=
14374 whole_archive_flag_spec_F77=
14377 # PORTME fill in a description of your system's linker (not GNU ld)
14380 allow_undefined_flag_F77=unsupported
14381 always_export_symbols_F77=yes
14382 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'
14383 # Note: this linker hardcodes the directories in LIBPATH if there
14384 # are no directories specified by -L.
14385 hardcode_minus_L_F77=yes
14386 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14387 # Neither direct hardcoding nor static linking is supported with a
14389 hardcode_direct_F77=unsupported
14394 if test "$host_cpu" = ia64; then
14395 # On IA64, the linker does run time linking by default, so we don't
14396 # have to do anything special.
14397 aix_use_runtimelinking=no
14398 exp_sym_flag='-Bexport'
14401 # If we're using GNU nm, then we don't want the "-C" option.
14402 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14403 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14404 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'
14406 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'
14408 aix_use_runtimelinking=no
14410 # Test if we are trying to use run time linking or normal
14411 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14412 # need to do runtime linking.
14413 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14414 for ld_flag in $LDFLAGS; do
14415 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14416 aix_use_runtimelinking=yes
14423 exp_sym_flag='-bexport'
14424 no_entry_flag='-bnoentry'
14427 # When large executables or shared objects are built, AIX ld can
14428 # have problems creating the table of contents. If linking a library
14429 # or program results in "error TOC overflow" add -mminimal-toc to
14430 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14431 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14433 archive_cmds_F77=''
14434 hardcode_direct_F77=yes
14435 hardcode_libdir_separator_F77=':'
14436 link_all_deplibs_F77=yes
14438 if test "$GCC" = yes; then
14439 case $host_os in aix4.[012]|aix4.[012].*)
14440 # We only want to do this on AIX 4.2 and lower, the check
14441 # below for broken collect2 doesn't work under 4.3+
14442 collect2name=`${CC} -print-prog-name=collect2`
14443 if test -f "$collect2name" && \
14444 strings "$collect2name" | grep resolve_lib_name >/dev/null
14446 # We have reworked collect2
14447 hardcode_direct_F77=yes
14449 # We have old collect2
14450 hardcode_direct_F77=unsupported
14451 # It fails to find uninstalled libraries when the uninstalled
14452 # path is not listed in the libpath. Setting hardcode_minus_L
14453 # to unsupported forces relinking
14454 hardcode_minus_L_F77=yes
14455 hardcode_libdir_flag_spec_F77='-L$libdir'
14456 hardcode_libdir_separator_F77=
14460 shared_flag='-shared'
14461 if test "$aix_use_runtimelinking" = yes; then
14462 shared_flag="$shared_flag "'${wl}-G'
14466 if test "$host_cpu" = ia64; then
14467 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14468 # chokes on -Wl,-G. The following line is correct:
14471 if test "$aix_use_runtimelinking" = yes; then
14472 shared_flag='${wl}-G'
14474 shared_flag='${wl}-bM:SRE'
14479 # It seems that -bexpall does not export symbols beginning with
14480 # underscore (_), so it is better to generate a list of symbols to export.
14481 always_export_symbols_F77=yes
14482 if test "$aix_use_runtimelinking" = yes; then
14483 # Warning - without using the other runtime loading flags (-brtl),
14484 # -berok will link without error, but may produce a broken library.
14485 allow_undefined_flag_F77='-berok'
14486 # Determine the default libpath from the value encoded in an empty executable.
14487 cat >conftest.$ac_ext <<_ACEOF
14492 rm -f conftest.$ac_objext conftest$ac_exeext
14493 if { (ac_try="$ac_link"
14494 case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_link") 2>conftest.er1
14501 grep -v '^ *+' conftest.er1 >conftest.err
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } && {
14506 test -z "$ac_f77_werror_flag" ||
14507 test ! -s conftest.err
14508 } && test -s conftest$ac_exeext &&
14509 $as_test_x conftest$ac_exeext; then
14511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14513 # Check for a 64-bit object if we didn't find anything.
14514 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; }
14517 echo "$as_me: failed program was:" >&5
14518 sed 's/^/| /' conftest.$ac_ext >&5
14523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14524 conftest$ac_exeext conftest.$ac_ext
14525 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14527 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14528 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"
14530 if test "$host_cpu" = ia64; then
14531 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14532 allow_undefined_flag_F77="-z nodefs"
14533 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"
14535 # Determine the default libpath from the value encoded in an empty executable.
14536 cat >conftest.$ac_ext <<_ACEOF
14541 rm -f conftest.$ac_objext conftest$ac_exeext
14542 if { (ac_try="$ac_link"
14543 case "(($ac_try" in
14544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14545 *) ac_try_echo=$ac_try;;
14547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14548 (eval "$ac_link") 2>conftest.er1
14550 grep -v '^ *+' conftest.er1 >conftest.err
14552 cat conftest.err >&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); } && {
14555 test -z "$ac_f77_werror_flag" ||
14556 test ! -s conftest.err
14557 } && test -s conftest$ac_exeext &&
14558 $as_test_x conftest$ac_exeext; then
14560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14562 # Check for a 64-bit object if we didn't find anything.
14563 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; }
14566 echo "$as_me: failed program was:" >&5
14567 sed 's/^/| /' conftest.$ac_ext >&5
14572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14573 conftest$ac_exeext conftest.$ac_ext
14574 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14576 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14577 # Warning - without using the other run time loading flags,
14578 # -berok will link without error, but may produce a broken library.
14579 no_undefined_flag_F77=' ${wl}-bernotok'
14580 allow_undefined_flag_F77=' ${wl}-berok'
14581 # Exported symbols can be pulled into shared objects from archives
14582 whole_archive_flag_spec_F77='$convenience'
14583 archive_cmds_need_lc_F77=yes
14584 # This is similar to how AIX traditionally builds its shared libraries.
14585 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'
14591 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)'
14592 hardcode_libdir_flag_spec_F77='-L$libdir'
14593 hardcode_minus_L_F77=yes
14594 # see comment about different semantics on the GNU ld section
14599 export_dynamic_flag_spec_F77=-rdynamic
14602 cygwin* | mingw* | pw32*)
14603 # When not using gcc, we currently assume that we are using
14604 # Microsoft Visual C++.
14605 # hardcode_libdir_flag_spec is actually meaningless, as there is
14606 # no search path for DLLs.
14607 hardcode_libdir_flag_spec_F77=' '
14608 allow_undefined_flag_F77=unsupported
14609 # Tell ltmain to make .lib files, not .a files.
14611 # Tell ltmain to make .dll files, not .so files.
14613 # FIXME: Setting linknames here is a bad hack.
14614 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14615 # The linker will automatically build a .lib file if we build a DLL.
14616 old_archive_From_new_cmds_F77='true'
14617 # FIXME: Should let the user specify the lib program.
14618 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14619 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14620 enable_shared_with_static_runtimes_F77=yes
14623 darwin* | rhapsody*)
14625 rhapsody* | darwin1.[012])
14626 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14629 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14630 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14632 case ${MACOSX_DEPLOYMENT_TARGET} in
14634 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14637 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14643 archive_cmds_need_lc_F77=no
14644 hardcode_direct_F77=no
14645 hardcode_automatic_F77=yes
14646 hardcode_shlibpath_var_F77=unsupported
14647 whole_archive_flag_spec_F77=''
14648 link_all_deplibs_F77=yes
14649 if test "$GCC" = yes ; then
14650 output_verbose_link_cmd='echo'
14651 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14652 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14653 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14654 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}'
14655 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}'
14657 case $cc_basename in
14659 output_verbose_link_cmd='echo'
14660 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14661 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14662 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14663 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}'
14664 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}'
14674 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14675 hardcode_libdir_flag_spec_F77='-L$libdir'
14676 hardcode_shlibpath_var_F77=no
14683 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14684 # support. Future versions do this automatically, but an explicit c++rt0.o
14685 # does not break anything, and helps significantly (at the cost of a little
14688 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14689 hardcode_libdir_flag_spec_F77='-R$libdir'
14690 hardcode_direct_F77=yes
14691 hardcode_shlibpath_var_F77=no
14694 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14696 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14697 hardcode_direct_F77=yes
14698 hardcode_minus_L_F77=yes
14699 hardcode_shlibpath_var_F77=no
14702 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14703 freebsd* | dragonfly*)
14704 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14705 hardcode_libdir_flag_spec_F77='-R$libdir'
14706 hardcode_direct_F77=yes
14707 hardcode_shlibpath_var_F77=no
14711 if test "$GCC" = yes; then
14712 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'
14714 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'
14716 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14717 hardcode_libdir_separator_F77=:
14718 hardcode_direct_F77=yes
14720 # hardcode_minus_L: Not really in the search PATH,
14721 # but as the default location of the library.
14722 hardcode_minus_L_F77=yes
14723 export_dynamic_flag_spec_F77='${wl}-E'
14727 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14728 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14730 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14732 if test "$with_gnu_ld" = no; then
14733 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14734 hardcode_libdir_separator_F77=:
14736 hardcode_direct_F77=yes
14737 export_dynamic_flag_spec_F77='${wl}-E'
14739 # hardcode_minus_L: Not really in the search PATH,
14740 # but as the default location of the library.
14741 hardcode_minus_L_F77=yes
14746 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14749 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14752 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14755 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14761 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14764 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14767 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14771 if test "$with_gnu_ld" = no; then
14772 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14773 hardcode_libdir_separator_F77=:
14777 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14778 hardcode_direct_F77=no
14779 hardcode_shlibpath_var_F77=no
14782 hardcode_direct_F77=yes
14783 export_dynamic_flag_spec_F77='${wl}-E'
14785 # hardcode_minus_L: Not really in the search PATH,
14786 # but as the default location of the library.
14787 hardcode_minus_L_F77=yes
14793 irix5* | irix6* | nonstopux*)
14794 if test "$GCC" = yes; then
14795 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'
14797 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'
14798 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14800 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14801 hardcode_libdir_separator_F77=:
14802 link_all_deplibs_F77=yes
14805 netbsd* | netbsdelf*-gnu)
14806 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14807 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14809 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14811 hardcode_libdir_flag_spec_F77='-R$libdir'
14812 hardcode_direct_F77=yes
14813 hardcode_shlibpath_var_F77=no
14817 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14818 hardcode_direct_F77=yes
14819 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14820 hardcode_libdir_separator_F77=:
14821 hardcode_shlibpath_var_F77=no
14825 hardcode_direct_F77=yes
14826 hardcode_shlibpath_var_F77=no
14827 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14828 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14829 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14830 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14831 export_dynamic_flag_spec_F77='${wl}-E'
14834 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14835 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14836 hardcode_libdir_flag_spec_F77='-R$libdir'
14839 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14840 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14847 hardcode_libdir_flag_spec_F77='-L$libdir'
14848 hardcode_minus_L_F77=yes
14849 allow_undefined_flag_F77=unsupported
14850 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'
14851 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14855 if test "$GCC" = yes; then
14856 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14857 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'
14859 allow_undefined_flag_F77=' -expect_unresolved \*'
14860 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'
14862 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14863 hardcode_libdir_separator_F77=:
14866 osf4* | osf5*) # as osf3* with the addition of -msym flag
14867 if test "$GCC" = yes; then
14868 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14869 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'
14870 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14872 allow_undefined_flag_F77=' -expect_unresolved \*'
14873 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'
14874 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~
14875 $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'
14877 # Both c and cxx compiler support -rpath directly
14878 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14880 hardcode_libdir_separator_F77=:
14884 no_undefined_flag_F77=' -z text'
14885 if test "$GCC" = yes; then
14887 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14888 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14889 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14892 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14893 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14894 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14896 hardcode_libdir_flag_spec_F77='-R$libdir'
14897 hardcode_shlibpath_var_F77=no
14899 solaris2.[0-5] | solaris2.[0-5].*) ;;
14901 # The compiler driver will combine linker options so we
14902 # cannot just pass the convience library names through
14903 # without $wl, iff we do not link with $LD.
14904 # Luckily, gcc supports the same syntax we need for Sun Studio.
14905 # Supported since Solaris 2.6 (maybe 2.5.1?)
14908 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14910 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' ;;
14913 link_all_deplibs_F77=yes
14917 if test "x$host_vendor" = xsequent; then
14918 # Use $CC to link under sequent, because it throws in some extra .o
14919 # files that make .init and .fini sections work.
14920 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14922 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14924 hardcode_libdir_flag_spec_F77='-L$libdir'
14925 hardcode_direct_F77=yes
14926 hardcode_minus_L_F77=yes
14927 hardcode_shlibpath_var_F77=no
14931 case $host_vendor in
14933 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14934 hardcode_direct_F77=yes # is this really true???
14937 ## LD is ld it makes a PLAMLIB
14938 ## CC just makes a GrossModule.
14939 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14940 reload_cmds_F77='$CC -r -o $output$reload_objs'
14941 hardcode_direct_F77=no
14944 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14945 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14948 runpath_var='LD_RUN_PATH'
14949 hardcode_shlibpath_var_F77=no
14953 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14954 hardcode_shlibpath_var_F77=no
14955 export_dynamic_flag_spec_F77='-Bexport'
14959 if test -d /usr/nec; then
14960 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14961 hardcode_shlibpath_var_F77=no
14962 runpath_var=LD_RUN_PATH
14963 hardcode_runpath_var=yes
14968 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14969 no_undefined_flag_F77='${wl}-z,text'
14970 archive_cmds_need_lc_F77=no
14971 hardcode_shlibpath_var_F77=no
14972 runpath_var='LD_RUN_PATH'
14974 if test "$GCC" = yes; then
14975 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14976 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14978 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14979 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14983 sysv5* | sco3.2v5* | sco5v6*)
14984 # Note: We can NOT use -z defs as we might desire, because we do not
14985 # link with -lc, and that would cause any symbols used from libc to
14986 # always be unresolved, which means just about no library would
14987 # ever link correctly. If we're not using GNU ld we use -z text
14988 # though, which does catch some bad symbols but isn't as heavy-handed
14990 no_undefined_flag_F77='${wl}-z,text'
14991 allow_undefined_flag_F77='${wl}-z,nodefs'
14992 archive_cmds_need_lc_F77=no
14993 hardcode_shlibpath_var_F77=no
14994 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14995 hardcode_libdir_separator_F77=':'
14996 link_all_deplibs_F77=yes
14997 export_dynamic_flag_spec_F77='${wl}-Bexport'
14998 runpath_var='LD_RUN_PATH'
15000 if test "$GCC" = yes; then
15001 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15002 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15004 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15005 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15010 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15011 hardcode_libdir_flag_spec_F77='-L$libdir'
15012 hardcode_shlibpath_var_F77=no
15021 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15022 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15023 test "$ld_shlibs_F77" = no && can_build_shared=no
15026 # Do we need to explicitly link libc?
15028 case "x$archive_cmds_need_lc_F77" in
15030 # Assume -lc should be added
15031 archive_cmds_need_lc_F77=yes
15033 if test "$enable_shared" = yes && test "$GCC" = yes; then
15034 case $archive_cmds_F77 in
15036 # FIXME: we may have to deal with multi-command sequences.
15039 # Test whether the compiler implicitly links with -lc since on some
15040 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15041 # to ld, don't add -lc before -lgcc.
15042 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15043 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15048 (eval $ac_compile) 2>&5
15050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15051 (exit $ac_status); } 2>conftest.err; then
15054 libobjs=conftest.$ac_objext
15056 wl=$lt_prog_compiler_wl_F77
15057 pic_flag=$lt_prog_compiler_pic_F77
15063 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15064 allow_undefined_flag_F77=
15065 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15066 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15069 (exit $ac_status); }
15071 archive_cmds_need_lc_F77=no
15073 archive_cmds_need_lc_F77=yes
15075 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15077 cat conftest.err 1>&5
15080 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15081 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15088 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15089 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15090 library_names_spec=
15091 libname_spec='lib$name'
15095 postuninstall_cmds=
15099 shlibpath_overrides_runpath=unknown
15101 dynamic_linker="$host_os ld.so"
15102 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15103 if test "$GCC" = yes; then
15104 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15105 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15106 # if the path contains ";" then we assume it to be the separator
15107 # otherwise default to the standard path separator (i.e. ":") - it is
15108 # assumed that no part of a normal pathname contains ";" but that should
15109 # okay in the real world where ";" in dirpaths is itself problematic.
15110 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15115 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15117 need_lib_prefix=unknown
15118 hardcode_into_libs=no
15120 # when you set need_version to no, make sure it does not cause -set_version
15121 # flags to be left without arguments
15122 need_version=unknown
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15128 shlibpath_var=LIBPATH
15130 # AIX 3 has no versioning support, so we append a major version to the name.
15131 soname_spec='${libname}${release}${shared_ext}$major'
15138 hardcode_into_libs=yes
15139 if test "$host_cpu" = ia64; then
15140 # AIX 5 supports IA64
15141 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15142 shlibpath_var=LD_LIBRARY_PATH
15144 # With GCC up to 2.95.x, collect2 would create an import file
15145 # for dependence libraries. The import file would start with
15146 # the line `#! .'. This would cause the generated library to
15147 # depend on `.', always an invalid library. This was fixed in
15148 # development snapshots of GCC prior to 3.0.
15150 aix4 | aix4.[01] | aix4.[01].*)
15151 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15153 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15156 can_build_shared=no
15160 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15161 # soname into executable. Probably we can add versioning support to
15162 # collect2, so additional links can be useful in future.
15163 if test "$aix_use_runtimelinking" = yes; then
15164 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15165 # instead of lib<name>.a to let people know that these are not
15166 # typical AIX shared libraries.
15167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15169 # We preserve .a as extension for shared libraries through AIX4.2
15170 # and later when we are not doing run time linking.
15171 library_names_spec='${libname}${release}.a $libname.a'
15172 soname_spec='${libname}${release}${shared_ext}$major'
15174 shlibpath_var=LIBPATH
15179 library_names_spec='$libname.ixlibrary $libname.a'
15180 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15181 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'
15185 library_names_spec='${libname}${shared_ext}'
15186 dynamic_linker="$host_os ld.so"
15187 shlibpath_var=LIBRARY_PATH
15193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15194 soname_spec='${libname}${release}${shared_ext}$major'
15195 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15196 shlibpath_var=LD_LIBRARY_PATH
15197 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15198 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15199 # the default ld.so.conf also contains /usr/contrib/lib and
15200 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15201 # libtool to hard-code these into programs
15204 cygwin* | mingw* | pw32*)
15205 version_type=windows
15210 case $GCC,$host_os in
15211 yes,cygwin* | yes,mingw* | yes,pw32*)
15212 library_names_spec='$libname.dll.a'
15213 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15214 postinstall_cmds='base_file=`basename \${file}`~
15215 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15216 dldir=$destdir/`dirname \$dlpath`~
15217 test -d \$dldir || mkdir -p \$dldir~
15218 $install_prog $dir/$dlname \$dldir/$dlname~
15219 chmod a+x \$dldir/$dlname'
15220 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15221 dlpath=$dir/\$dldll~
15223 shlibpath_overrides_runpath=yes
15227 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15228 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15229 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15232 # MinGW DLLs use traditional 'lib' prefix
15233 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15234 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15235 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15236 # It is most probably a Windows format PATH printed by
15237 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15238 # path with ; separators, and with drive letters. We can handle the
15239 # drive letters (cygwin fileutils understands them), so leave them,
15240 # especially as we might pass files found there to a mingw objdump,
15241 # which wouldn't understand a cygwinified path. Ahh.
15242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15244 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15248 # pw32 DLLs use 'pw' prefix rather than 'lib'
15249 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15255 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15258 dynamic_linker='Win32 ld.exe'
15259 # FIXME: first we should search . and the directory the executable is in
15263 darwin* | rhapsody*)
15264 dynamic_linker="$host_os dyld"
15265 version_type=darwin
15268 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15269 soname_spec='${libname}${release}${major}$shared_ext'
15270 shlibpath_overrides_runpath=yes
15271 shlibpath_var=DYLD_LIBRARY_PATH
15272 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15273 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15274 if test "$GCC" = yes; then
15275 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"`
15277 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15279 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15287 soname_spec='${libname}${release}${shared_ext}$major'
15288 shlibpath_var=LD_LIBRARY_PATH
15295 freebsd* | dragonfly*)
15296 # DragonFly does not have aout. When/if they implement a new
15297 # versioning mechanism, adjust this.
15298 if test -x /usr/bin/objformat; then
15299 objformat=`/usr/bin/objformat`
15302 freebsd[123]*) objformat=aout ;;
15303 *) objformat=elf ;;
15306 version_type=freebsd-$objformat
15307 case $version_type in
15309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15318 shlibpath_var=LD_LIBRARY_PATH
15321 shlibpath_overrides_runpath=yes
15323 freebsd3.[01]* | freebsdelf3.[01]*)
15324 shlibpath_overrides_runpath=yes
15325 hardcode_into_libs=yes
15327 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15328 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15329 shlibpath_overrides_runpath=no
15330 hardcode_into_libs=yes
15332 freebsd*) # from 4.6 on
15333 shlibpath_overrides_runpath=yes
15334 hardcode_into_libs=yes
15343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15344 soname_spec='${libname}${release}${shared_ext}$major'
15345 shlibpath_var=LD_LIBRARY_PATH
15346 hardcode_into_libs=yes
15349 hpux9* | hpux10* | hpux11*)
15350 # Give a soname corresponding to the major version so that dld.sl refuses to
15351 # link against other versions.
15358 hardcode_into_libs=yes
15359 dynamic_linker="$host_os dld.so"
15360 shlibpath_var=LD_LIBRARY_PATH
15361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15363 soname_spec='${libname}${release}${shared_ext}$major'
15364 if test "X$HPUX_IA64_MODE" = X32; then
15365 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15367 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15369 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15373 hardcode_into_libs=yes
15374 dynamic_linker="$host_os dld.sl"
15375 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15376 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15378 soname_spec='${libname}${release}${shared_ext}$major'
15379 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15384 dynamic_linker="$host_os dld.sl"
15385 shlibpath_var=SHLIB_PATH
15386 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15388 soname_spec='${libname}${release}${shared_ext}$major'
15391 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15392 postinstall_cmds='chmod 555 $lib'
15399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15400 soname_spec='${libname}${release}${shared_ext}$major'
15401 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 shlibpath_overrides_runpath=no
15404 hardcode_into_libs=yes
15407 irix5* | irix6* | nonstopux*)
15409 nonstopux*) version_type=nonstopux ;;
15411 if test "$lt_cv_prog_gnu_ld" = yes; then
15419 soname_spec='${libname}${release}${shared_ext}$major'
15420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15422 irix5* | nonstopux*)
15423 libsuff= shlibsuff=
15426 case $LD in # libtool.m4 will add one of these switches to LD
15427 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15428 libsuff= shlibsuff= libmagic=32-bit;;
15429 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15430 libsuff=32 shlibsuff=N32 libmagic=N32;;
15431 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15432 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15433 *) libsuff= shlibsuff= libmagic=never-match;;
15437 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15438 shlibpath_overrides_runpath=no
15439 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15440 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15441 hardcode_into_libs=yes
15444 # No shared lib support for Linux oldld, aout, or coff.
15445 linux*oldld* | linux*aout* | linux*coff*)
15449 # This must be Linux ELF.
15450 linux* | k*bsd*-gnu)
15454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15455 soname_spec='${libname}${release}${shared_ext}$major'
15456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15457 shlibpath_var=LD_LIBRARY_PATH
15458 shlibpath_overrides_runpath=no
15459 # This implies no fast_install, which is unacceptable.
15460 # Some rework will be needed to allow for fast_install
15461 # before this can be enabled.
15462 hardcode_into_libs=yes
15464 # Append ld.so.conf contents to the search path
15465 if test -f /etc/ld.so.conf; then
15466 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' ' '`
15467 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15470 # We used to test for /lib/ld.so.1 and disable shared libraries on
15471 # powerpc, because MkLinux only supported shared libraries with the
15472 # GNU dynamic linker. Since this was broken with cross compilers,
15473 # most powerpc-linux boxes support dynamic linking these days and
15474 # people can always --disable-shared, the test was removed, and we
15475 # assume the GNU/Linux dynamic linker is in use.
15476 dynamic_linker='GNU/Linux ld.so'
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 shlibpath_overrides_runpath=no
15487 hardcode_into_libs=yes
15488 dynamic_linker='NetBSD ld.elf_so'
15495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15497 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15498 dynamic_linker='NetBSD (a.out) ld.so'
15500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15501 soname_spec='${libname}${release}${shared_ext}$major'
15502 dynamic_linker='NetBSD ld.elf_so'
15504 shlibpath_var=LD_LIBRARY_PATH
15505 shlibpath_overrides_runpath=yes
15506 hardcode_into_libs=yes
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15512 shlibpath_var=LD_LIBRARY_PATH
15513 shlibpath_overrides_runpath=yes
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521 soname_spec='${libname}${release}${shared_ext}$major'
15522 shlibpath_var=LD_LIBRARY_PATH
15523 shlibpath_overrides_runpath=yes
15528 sys_lib_dlsearch_path_spec="/usr/lib"
15530 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15532 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15533 *) need_version=no ;;
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15537 shlibpath_var=LD_LIBRARY_PATH
15538 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15540 openbsd2.[89] | openbsd2.[89].*)
15541 shlibpath_overrides_runpath=no
15544 shlibpath_overrides_runpath=yes
15548 shlibpath_overrides_runpath=yes
15553 libname_spec='$name'
15556 library_names_spec='$libname${shared_ext} $libname.a'
15557 dynamic_linker='OS/2 ld.exe'
15558 shlibpath_var=LIBPATH
15561 osf3* | osf4* | osf5*)
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15569 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15577 soname_spec='${libname}${release}${shared_ext}$major'
15578 shlibpath_var=LD_LIBRARY_PATH
15579 shlibpath_overrides_runpath=yes
15580 hardcode_into_libs=yes
15581 # ldd complains unless libraries are executable
15582 postinstall_cmds='chmod +x $lib'
15587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15588 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15589 shlibpath_var=LD_LIBRARY_PATH
15590 shlibpath_overrides_runpath=yes
15591 if test "$with_gnu_ld" = yes; then
15599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15600 soname_spec='${libname}${release}${shared_ext}$major'
15601 shlibpath_var=LD_LIBRARY_PATH
15602 case $host_vendor in
15604 shlibpath_overrides_runpath=no
15606 export_dynamic_flag_spec='${wl}-Blargedynsym'
15607 runpath_var=LD_RUN_PATH
15615 shlibpath_overrides_runpath=no
15616 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15622 if test -d /usr/nec ;then
15624 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15625 soname_spec='$libname${shared_ext}.$major'
15626 shlibpath_var=LD_LIBRARY_PATH
15630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15631 version_type=freebsd-elf
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 shlibpath_var=LD_LIBRARY_PATH
15637 hardcode_into_libs=yes
15638 if test "$with_gnu_ld" = yes; then
15639 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15640 shlibpath_overrides_runpath=no
15642 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15643 shlibpath_overrides_runpath=yes
15646 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15650 sys_lib_dlsearch_path_spec='/usr/lib'
15655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656 soname_spec='${libname}${release}${shared_ext}$major'
15657 shlibpath_var=LD_LIBRARY_PATH
15664 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15665 echo "${ECHO_T}$dynamic_linker" >&6; }
15666 test "$dynamic_linker" = no && can_build_shared=no
15668 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15669 if test "$GCC" = yes; then
15670 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15673 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15674 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15675 hardcode_action_F77=
15676 if test -n "$hardcode_libdir_flag_spec_F77" || \
15677 test -n "$runpath_var_F77" || \
15678 test "X$hardcode_automatic_F77" = "Xyes" ; then
15680 # We can hardcode non-existant directories.
15681 if test "$hardcode_direct_F77" != no &&
15682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15683 # have to relink, otherwise we might link with an installed library
15684 # when we should be linking with a yet-to-be-installed one
15685 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15686 test "$hardcode_minus_L_F77" != no; then
15687 # Linking always hardcodes the temporary library directory.
15688 hardcode_action_F77=relink
15690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15691 hardcode_action_F77=immediate
15694 # We cannot hardcode anything, or else we can only hardcode existing
15696 hardcode_action_F77=unsupported
15698 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15699 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15701 if test "$hardcode_action_F77" = relink; then
15702 # Fast installation is not supported
15703 enable_fast_install=no
15704 elif test "$shlibpath_overrides_runpath" = yes ||
15705 test "$enable_shared" = no; then
15706 # Fast installation is not necessary
15707 enable_fast_install=needless
15711 # The else clause should only fire when bootstrapping the
15712 # libtool distribution, otherwise you forgot to ship ltmain.sh
15713 # with your package, and you will get complaints that there are
15714 # no rules to generate ltmain.sh.
15715 if test -f "$ltmain"; then
15716 # See if we are running on zsh, and set the options which allow our commands through
15717 # without removal of \ escapes.
15718 if test -n "${ZSH_VERSION+set}" ; then
15719 setopt NO_GLOB_SUBST
15721 # Now quote all the things that may contain metacharacters while being
15722 # careful not to overquote the AC_SUBSTed values. We take copies of the
15723 # variables and quote the copies for generation of the libtool script.
15724 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15726 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15727 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15728 deplibs_check_method reload_flag reload_cmds need_locks \
15729 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15730 lt_cv_sys_global_symbol_to_c_name_address \
15731 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15732 old_postinstall_cmds old_postuninstall_cmds \
15736 lt_prog_compiler_wl_F77 \
15737 lt_prog_compiler_pic_F77 \
15738 lt_prog_compiler_static_F77 \
15739 lt_prog_compiler_no_builtin_flag_F77 \
15740 export_dynamic_flag_spec_F77 \
15741 thread_safe_flag_spec_F77 \
15742 whole_archive_flag_spec_F77 \
15743 enable_shared_with_static_runtimes_F77 \
15744 old_archive_cmds_F77 \
15745 old_archive_from_new_cmds_F77 \
15746 predep_objects_F77 \
15747 postdep_objects_F77 \
15750 compiler_lib_search_path_F77 \
15752 archive_expsym_cmds_F77 \
15753 postinstall_cmds_F77 \
15754 postuninstall_cmds_F77 \
15755 old_archive_from_expsyms_cmds_F77 \
15756 allow_undefined_flag_F77 \
15757 no_undefined_flag_F77 \
15758 export_symbols_cmds_F77 \
15759 hardcode_libdir_flag_spec_F77 \
15760 hardcode_libdir_flag_spec_ld_F77 \
15761 hardcode_libdir_separator_F77 \
15762 hardcode_automatic_F77 \
15764 module_expsym_cmds_F77 \
15765 lt_cv_prog_compiler_c_o_F77 \
15766 exclude_expsyms_F77 \
15767 include_expsyms_F77; do
15770 old_archive_cmds_F77 | \
15771 old_archive_from_new_cmds_F77 | \
15772 archive_cmds_F77 | \
15773 archive_expsym_cmds_F77 | \
15774 module_cmds_F77 | \
15775 module_expsym_cmds_F77 | \
15776 old_archive_from_expsyms_cmds_F77 | \
15777 export_symbols_cmds_F77 | \
15778 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15779 postinstall_cmds | postuninstall_cmds | \
15780 old_postinstall_cmds | old_postuninstall_cmds | \
15781 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15782 # Double-quote double-evaled strings.
15783 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15786 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15792 *'\$0 --fallback-echo"')
15793 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15799 cat <<__EOF__ >> "$cfgfile"
15800 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15802 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15804 # Shell to use when invoking shell scripts.
15807 # Whether or not to build shared libraries.
15808 build_libtool_libs=$enable_shared
15810 # Whether or not to build static libraries.
15811 build_old_libs=$enable_static
15813 # Whether or not to add -lc for building shared libraries.
15814 build_libtool_need_lc=$archive_cmds_need_lc_F77
15816 # Whether or not to disallow shared libs when runtime libs are static
15817 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15819 # Whether or not to optimize for fast installation.
15820 fast_install=$enable_fast_install
15823 host_alias=$host_alias
15827 # The build system.
15828 build_alias=$build_alias
15832 # An echo program that does not interpret backslashes.
15837 AR_FLAGS=$lt_AR_FLAGS
15842 # LTCC compiler flags.
15843 LTCFLAGS=$lt_LTCFLAGS
15845 # A language-specific compiler.
15846 CC=$lt_compiler_F77
15848 # Is the compiler the GNU C compiler?
15854 # The linker used to build libraries.
15857 # Whether we need hard or soft links.
15860 # A BSD-compatible nm program.
15863 # A symbol stripping program
15866 # Used to examine libraries when file_magic_cmd begins "file"
15867 MAGIC_CMD=$MAGIC_CMD
15869 # Used on cygwin: DLL creation program.
15872 # Used on cygwin: object dumper.
15875 # Used on cygwin: assembler.
15878 # The name of the directory that contains temporary libtool files.
15881 # How to create reloadable object files.
15882 reload_flag=$lt_reload_flag
15883 reload_cmds=$lt_reload_cmds
15885 # How to pass a linker flag through the compiler.
15886 wl=$lt_lt_prog_compiler_wl_F77
15888 # Object file suffix (normally "o").
15889 objext="$ac_objext"
15891 # Old archive suffix (normally "a").
15894 # Shared library suffix (normally ".so").
15895 shrext_cmds='$shrext_cmds'
15897 # Executable file suffix (normally "").
15900 # Additional compiler flags for building library objects.
15901 pic_flag=$lt_lt_prog_compiler_pic_F77
15904 # What is the maximum length of a command?
15905 max_cmd_len=$lt_cv_sys_max_cmd_len
15907 # Does compiler simultaneously support -c and -o options?
15908 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15910 # Must we lock files when doing compilation?
15911 need_locks=$lt_need_locks
15913 # Do we need the lib prefix for modules?
15914 need_lib_prefix=$need_lib_prefix
15916 # Do we need a version for libraries?
15917 need_version=$need_version
15919 # Whether dlopen is supported.
15920 dlopen_support=$enable_dlopen
15922 # Whether dlopen of programs is supported.
15923 dlopen_self=$enable_dlopen_self
15925 # Whether dlopen of statically linked programs is supported.
15926 dlopen_self_static=$enable_dlopen_self_static
15928 # Compiler flag to prevent dynamic linking.
15929 link_static_flag=$lt_lt_prog_compiler_static_F77
15931 # Compiler flag to turn off builtin functions.
15932 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15934 # Compiler flag to allow reflexive dlopens.
15935 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15937 # Compiler flag to generate shared objects directly from archives.
15938 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15940 # Compiler flag to generate thread-safe objects.
15941 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15943 # Library versioning type.
15944 version_type=$version_type
15946 # Format of library name prefix.
15947 libname_spec=$lt_libname_spec
15949 # List of archive names. First name is the real one, the rest are links.
15950 # The last name is the one that the linker finds with -lNAME.
15951 library_names_spec=$lt_library_names_spec
15953 # The coded name of the library, if different from the real name.
15954 soname_spec=$lt_soname_spec
15956 # Commands used to build and install an old-style archive.
15958 old_archive_cmds=$lt_old_archive_cmds_F77
15959 old_postinstall_cmds=$lt_old_postinstall_cmds
15960 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15962 # Create an old-style archive from a shared archive.
15963 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15965 # Create a temporary old-style archive to link instead of a shared archive.
15966 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15968 # Commands used to build and install a shared archive.
15969 archive_cmds=$lt_archive_cmds_F77
15970 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15971 postinstall_cmds=$lt_postinstall_cmds
15972 postuninstall_cmds=$lt_postuninstall_cmds
15974 # Commands used to build a loadable module (assumed same as above if empty)
15975 module_cmds=$lt_module_cmds_F77
15976 module_expsym_cmds=$lt_module_expsym_cmds_F77
15978 # Commands to strip libraries.
15979 old_striplib=$lt_old_striplib
15980 striplib=$lt_striplib
15982 # Dependencies to place before the objects being linked to create a
15984 predep_objects=$lt_predep_objects_F77
15986 # Dependencies to place after the objects being linked to create a
15988 postdep_objects=$lt_postdep_objects_F77
15990 # Dependencies to place before the objects being linked to create a
15992 predeps=$lt_predeps_F77
15994 # Dependencies to place after the objects being linked to create a
15996 postdeps=$lt_postdeps_F77
15998 # The library search path used internally by the compiler when linking
15999 # a shared library.
16000 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16002 # Method to check whether dependent libraries are shared objects.
16003 deplibs_check_method=$lt_deplibs_check_method
16005 # Command to use when deplibs_check_method == file_magic.
16006 file_magic_cmd=$lt_file_magic_cmd
16008 # Flag that allows shared libraries with undefined symbols to be built.
16009 allow_undefined_flag=$lt_allow_undefined_flag_F77
16011 # Flag that forces no undefined symbols.
16012 no_undefined_flag=$lt_no_undefined_flag_F77
16014 # Commands used to finish a libtool library installation in a directory.
16015 finish_cmds=$lt_finish_cmds
16017 # Same as above, but a single script fragment to be evaled but not shown.
16018 finish_eval=$lt_finish_eval
16020 # Take the output of nm and produce a listing of raw symbols and C names.
16021 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16023 # Transform the output of nm in a proper C declaration
16024 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16026 # Transform the output of nm in a C name address pair
16027 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16029 # This is the shared library runtime path variable.
16030 runpath_var=$runpath_var
16032 # This is the shared library path variable.
16033 shlibpath_var=$shlibpath_var
16035 # Is shlibpath searched before the hard-coded library search path?
16036 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16038 # How to hardcode a shared library path into an executable.
16039 hardcode_action=$hardcode_action_F77
16041 # Whether we should hardcode library paths into libraries.
16042 hardcode_into_libs=$hardcode_into_libs
16044 # Flag to hardcode \$libdir into a binary during linking.
16045 # This must work even if \$libdir does not exist.
16046 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16048 # If ld is used when linking, flag to hardcode \$libdir into
16049 # a binary during linking. This must work even if \$libdir does
16051 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16053 # Whether we need a single -rpath flag with a separated argument.
16054 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16056 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16057 # resulting binary.
16058 hardcode_direct=$hardcode_direct_F77
16060 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16061 # resulting binary.
16062 hardcode_minus_L=$hardcode_minus_L_F77
16064 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16065 # the resulting binary.
16066 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16068 # Set to yes if building a shared library automatically hardcodes DIR into the library
16069 # and all subsequent libraries and executables linked against it.
16070 hardcode_automatic=$hardcode_automatic_F77
16072 # Variables whose values should be saved in libtool wrapper scripts and
16073 # restored at relink time.
16074 variables_saved_for_relink="$variables_saved_for_relink"
16076 # Whether libtool must link a program against all its dependency libraries.
16077 link_all_deplibs=$link_all_deplibs_F77
16079 # Compile-time system search path for libraries
16080 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16082 # Run-time system search path for libraries
16083 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16085 # Fix the shell variable \$srcfile for the compiler.
16086 fix_srcfile_path="$fix_srcfile_path_F77"
16088 # Set to yes if exported symbols are required.
16089 always_export_symbols=$always_export_symbols_F77
16091 # The commands to list exported symbols.
16092 export_symbols_cmds=$lt_export_symbols_cmds_F77
16094 # The commands to extract the exported symbol list from a shared archive.
16095 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16097 # Symbols that should not be listed in the preloaded symbols.
16098 exclude_expsyms=$lt_exclude_expsyms_F77
16100 # Symbols that must always be exported.
16101 include_expsyms=$lt_include_expsyms_F77
16103 # ### END LIBTOOL TAG CONFIG: $tagname
16109 # If there is no Makefile yet, we rely on a make rule to execute
16110 # `config.status --recheck' to rerun these tests and create the
16111 # libtool script then.
16112 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16113 if test -f "$ltmain_in"; then
16114 test -f Makefile && make "$ltmain"
16120 ac_cpp='$CPP $CPPFLAGS'
16121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16133 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16136 # Source file extension for Java test sources.
16139 # Object file extension for compiled Java test sources.
16143 # Code to be used in simple compile tests
16144 lt_simple_compile_test_code="class foo {}\n"
16146 # Code to be used in simple link tests
16147 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16149 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16151 # If no C compiler was specified, use CC.
16154 # If no C compiler flags were specified, use CFLAGS.
16155 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16157 # Allow CC to be a program name with arguments.
16161 # save warnings/boilerplate of simple test code
16162 ac_outfile=conftest.$ac_objext
16163 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16164 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16165 _lt_compiler_boilerplate=`cat conftest.err`
16168 ac_outfile=conftest.$ac_objext
16169 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16170 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16171 _lt_linker_boilerplate=`cat conftest.err`
16175 # Allow CC to be a program name with arguments.
16180 for cc_temp in $compiler""; do
16182 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16183 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16188 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16191 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16192 archive_cmds_need_lc_GCJ=no
16194 old_archive_cmds_GCJ=$old_archive_cmds
16197 lt_prog_compiler_no_builtin_flag_GCJ=
16199 if test "$GCC" = yes; then
16200 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16203 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16204 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16205 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16206 echo $ECHO_N "(cached) $ECHO_C" >&6
16208 lt_cv_prog_compiler_rtti_exceptions=no
16209 ac_outfile=conftest.$ac_objext
16210 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16211 lt_compiler_flag="-fno-rtti -fno-exceptions"
16212 # Insert the option either (1) after the last *FLAGS variable, or
16213 # (2) before a word containing "conftest.", or (3) at the end.
16214 # Note that $ac_compile itself does not contain backslashes and begins
16215 # with a dollar sign (not a hyphen), so the echo should work correctly.
16216 # The option is referenced via a variable to avoid confusing sed.
16217 lt_compile=`echo "$ac_compile" | $SED \
16218 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16219 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16220 -e 's:$: $lt_compiler_flag:'`
16221 (eval echo "\"\$as_me:16221: $lt_compile\"" >&5)
16222 (eval "$lt_compile" 2>conftest.err)
16224 cat conftest.err >&5
16225 echo "$as_me:16225: \$? = $ac_status" >&5
16226 if (exit $ac_status) && test -s "$ac_outfile"; then
16227 # The compiler can only warn and ignore the option if not recognized
16228 # So say no if there are warnings other than the usual output.
16229 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16230 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16231 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16232 lt_cv_prog_compiler_rtti_exceptions=yes
16238 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16239 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16241 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16242 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16249 lt_prog_compiler_wl_GCJ=
16250 lt_prog_compiler_pic_GCJ=
16251 lt_prog_compiler_static_GCJ=
16253 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16254 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16256 if test "$GCC" = yes; then
16257 lt_prog_compiler_wl_GCJ='-Wl,'
16258 lt_prog_compiler_static_GCJ='-static'
16262 # All AIX code is PIC.
16263 if test "$host_cpu" = ia64; then
16264 # AIX 5 now supports IA64 processor
16265 lt_prog_compiler_static_GCJ='-Bstatic'
16270 # FIXME: we need at least 68020 code to build shared libraries, but
16271 # adding the `-m68020' flag to GCC prevents building anything better,
16273 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16276 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16277 # PIC is the default for these OSes.
16280 mingw* | pw32* | os2*)
16281 # This hack is so that the source file can tell whether it is being
16282 # built for inclusion in a dll (and should export symbols for example).
16283 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16286 darwin* | rhapsody*)
16287 # PIC is the default on this platform
16288 # Common symbols not allowed in MH_DYLIB files
16289 lt_prog_compiler_pic_GCJ='-fno-common'
16293 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16294 # Instead, we relocate shared libraries at runtime.
16298 # Just because we use GCC doesn't mean we suddenly get shared libraries
16299 # on systems that don't support them.
16300 lt_prog_compiler_can_build_shared_GCJ=no
16305 if test -d /usr/nec; then
16306 lt_prog_compiler_pic_GCJ=-Kconform_pic
16311 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16312 # not for PA HP-UX.
16318 lt_prog_compiler_pic_GCJ='-fPIC'
16324 lt_prog_compiler_pic_GCJ='-fPIC'
16328 # PORTME Check for flag to pass linker flags through the system compiler.
16331 lt_prog_compiler_wl_GCJ='-Wl,'
16332 if test "$host_cpu" = ia64; then
16333 # AIX 5 now supports IA64 processor
16334 lt_prog_compiler_static_GCJ='-Bstatic'
16336 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16340 # PIC is the default on this platform
16341 # Common symbols not allowed in MH_DYLIB files
16342 case $cc_basename in
16344 lt_prog_compiler_pic_GCJ='-qnocommon'
16345 lt_prog_compiler_wl_GCJ='-Wl,'
16350 mingw* | pw32* | os2*)
16351 # This hack is so that the source file can tell whether it is being
16352 # built for inclusion in a dll (and should export symbols for example).
16353 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16356 hpux9* | hpux10* | hpux11*)
16357 lt_prog_compiler_wl_GCJ='-Wl,'
16358 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16359 # not for PA HP-UX.
16365 lt_prog_compiler_pic_GCJ='+Z'
16368 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16369 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16372 irix5* | irix6* | nonstopux*)
16373 lt_prog_compiler_wl_GCJ='-Wl,'
16374 # PIC (with -KPIC) is the default.
16375 lt_prog_compiler_static_GCJ='-non_shared'
16379 lt_prog_compiler_pic_GCJ='-KPIC'
16380 lt_prog_compiler_static_GCJ='-Bstatic'
16383 linux* | k*bsd*-gnu)
16384 case $cc_basename in
16386 lt_prog_compiler_wl_GCJ='-Wl,'
16387 lt_prog_compiler_pic_GCJ='-KPIC'
16388 lt_prog_compiler_static_GCJ='-static'
16390 pgcc* | pgf77* | pgf90* | pgf95*)
16391 # Portland Group compilers (*not* the Pentium gcc compiler,
16392 # which looks to be a dead project)
16393 lt_prog_compiler_wl_GCJ='-Wl,'
16394 lt_prog_compiler_pic_GCJ='-fpic'
16395 lt_prog_compiler_static_GCJ='-Bstatic'
16398 lt_prog_compiler_wl_GCJ='-Wl,'
16399 # All Alpha code is PIC.
16400 lt_prog_compiler_static_GCJ='-non_shared'
16405 osf3* | osf4* | osf5*)
16406 lt_prog_compiler_wl_GCJ='-Wl,'
16407 # All OSF/1 code is PIC.
16408 lt_prog_compiler_static_GCJ='-non_shared'
16412 lt_prog_compiler_pic_GCJ='-KPIC'
16413 lt_prog_compiler_static_GCJ='-Bstatic'
16414 case $cc_basename in
16415 f77* | f90* | f95*)
16416 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16418 lt_prog_compiler_wl_GCJ='-Wl,';;
16423 lt_prog_compiler_wl_GCJ='-Qoption ld '
16424 lt_prog_compiler_pic_GCJ='-PIC'
16425 lt_prog_compiler_static_GCJ='-Bstatic'
16428 sysv4 | sysv4.2uw2* | sysv4.3*)
16429 lt_prog_compiler_wl_GCJ='-Wl,'
16430 lt_prog_compiler_pic_GCJ='-KPIC'
16431 lt_prog_compiler_static_GCJ='-Bstatic'
16435 if test -d /usr/nec ;then
16436 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16437 lt_prog_compiler_static_GCJ='-Bstatic'
16441 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16442 lt_prog_compiler_wl_GCJ='-Wl,'
16443 lt_prog_compiler_pic_GCJ='-KPIC'
16444 lt_prog_compiler_static_GCJ='-Bstatic'
16448 lt_prog_compiler_wl_GCJ='-Wl,'
16449 lt_prog_compiler_can_build_shared_GCJ=no
16453 lt_prog_compiler_pic_GCJ='-pic'
16454 lt_prog_compiler_static_GCJ='-Bstatic'
16458 lt_prog_compiler_can_build_shared_GCJ=no
16463 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16464 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16467 # Check to make sure the PIC flag actually works.
16469 if test -n "$lt_prog_compiler_pic_GCJ"; then
16471 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16472 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16473 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 lt_prog_compiler_pic_works_GCJ=no
16477 ac_outfile=conftest.$ac_objext
16478 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16479 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16480 # Insert the option either (1) after the last *FLAGS variable, or
16481 # (2) before a word containing "conftest.", or (3) at the end.
16482 # Note that $ac_compile itself does not contain backslashes and begins
16483 # with a dollar sign (not a hyphen), so the echo should work correctly.
16484 # The option is referenced via a variable to avoid confusing sed.
16485 lt_compile=`echo "$ac_compile" | $SED \
16486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16488 -e 's:$: $lt_compiler_flag:'`
16489 (eval echo "\"\$as_me:16489: $lt_compile\"" >&5)
16490 (eval "$lt_compile" 2>conftest.err)
16492 cat conftest.err >&5
16493 echo "$as_me:16493: \$? = $ac_status" >&5
16494 if (exit $ac_status) && test -s "$ac_outfile"; then
16495 # The compiler can only warn and ignore the option if not recognized
16496 # So say no if there are warnings other than the usual output.
16497 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16499 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16500 lt_prog_compiler_pic_works_GCJ=yes
16506 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16507 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16509 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16510 case $lt_prog_compiler_pic_GCJ in
16512 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16515 lt_prog_compiler_pic_GCJ=
16516 lt_prog_compiler_can_build_shared_GCJ=no
16521 # For platforms which do not support PIC, -DPIC is meaningless:
16523 lt_prog_compiler_pic_GCJ=
16526 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16531 # Check to make sure the static flag actually works.
16533 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16534 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16535 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16536 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16537 echo $ECHO_N "(cached) $ECHO_C" >&6
16539 lt_prog_compiler_static_works_GCJ=no
16540 save_LDFLAGS="$LDFLAGS"
16541 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16542 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16543 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16544 # The linker can only warn and ignore the option if not recognized
16545 # So say no if there are warnings
16546 if test -s conftest.err; then
16547 # Append any errors to the config.log.
16548 cat conftest.err 1>&5
16549 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16551 if diff conftest.exp conftest.er2 >/dev/null; then
16552 lt_prog_compiler_static_works_GCJ=yes
16555 lt_prog_compiler_static_works_GCJ=yes
16559 LDFLAGS="$save_LDFLAGS"
16562 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16563 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16565 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16568 lt_prog_compiler_static_GCJ=
16572 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16573 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16574 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 lt_cv_prog_compiler_c_o_GCJ=no
16578 $rm -r conftest 2>/dev/null
16582 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16584 lt_compiler_flag="-o out/conftest2.$ac_objext"
16585 # Insert the option either (1) after the last *FLAGS variable, or
16586 # (2) before a word containing "conftest.", or (3) at the end.
16587 # Note that $ac_compile itself does not contain backslashes and begins
16588 # with a dollar sign (not a hyphen), so the echo should work correctly.
16589 lt_compile=`echo "$ac_compile" | $SED \
16590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16591 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16592 -e 's:$: $lt_compiler_flag:'`
16593 (eval echo "\"\$as_me:16593: $lt_compile\"" >&5)
16594 (eval "$lt_compile" 2>out/conftest.err)
16596 cat out/conftest.err >&5
16597 echo "$as_me:16597: \$? = $ac_status" >&5
16598 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16600 # The compiler can only warn and ignore the option if not recognized
16601 # So say no if there are warnings
16602 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16603 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16604 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16605 lt_cv_prog_compiler_c_o_GCJ=yes
16610 # SGI C++ compiler will create directory out/ii_files/ for
16611 # template instantiation
16612 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16613 $rm out/* && rmdir out
16619 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16620 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16623 hard_links="nottested"
16624 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16625 # do not overwrite the value of need_locks provided by the user
16626 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16627 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16632 ln conftest.a conftest.b 2>&5 || hard_links=no
16633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16634 { echo "$as_me:$LINENO: result: $hard_links" >&5
16635 echo "${ECHO_T}$hard_links" >&6; }
16636 if test "$hard_links" = no; then
16637 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16638 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16645 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16646 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16649 allow_undefined_flag_GCJ=
16650 enable_shared_with_static_runtimes_GCJ=no
16652 archive_expsym_cmds_GCJ=
16653 old_archive_From_new_cmds_GCJ=
16654 old_archive_from_expsyms_cmds_GCJ=
16655 export_dynamic_flag_spec_GCJ=
16656 whole_archive_flag_spec_GCJ=
16657 thread_safe_flag_spec_GCJ=
16658 hardcode_libdir_flag_spec_GCJ=
16659 hardcode_libdir_flag_spec_ld_GCJ=
16660 hardcode_libdir_separator_GCJ=
16661 hardcode_direct_GCJ=no
16662 hardcode_minus_L_GCJ=no
16663 hardcode_shlibpath_var_GCJ=unsupported
16664 link_all_deplibs_GCJ=unknown
16665 hardcode_automatic_GCJ=no
16667 module_expsym_cmds_GCJ=
16668 always_export_symbols_GCJ=no
16669 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16670 # include_expsyms should be a list of space-separated symbols to be *always*
16671 # included in the symbol list
16672 include_expsyms_GCJ=
16673 # exclude_expsyms can be an extended regexp of symbols to exclude
16674 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16675 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16676 # as well as any symbol that contains `d'.
16677 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16678 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16679 # platforms (ab)use it in PIC code, but their linkers get confused if
16680 # the symbol is explicitly referenced. Since portable code cannot
16681 # rely on this symbol name, it's probably fine to never include it in
16682 # preloaded symbol tables.
16683 extract_expsyms_cmds=
16684 # Just being paranoid about ensuring that cc_basename is set.
16685 for cc_temp in $compiler""; do
16687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16693 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16696 cygwin* | mingw* | pw32*)
16697 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16698 # When not using gcc, we currently assume that we are using
16699 # Microsoft Visual C++.
16700 if test "$GCC" != yes; then
16705 # we just hope/assume this is gcc and not c89 (= MSVC++)
16714 if test "$with_gnu_ld" = yes; then
16715 # If archive_cmds runs LD, not CC, wlarc should be empty
16718 # Set some defaults for GNU ld with shared library support. These
16719 # are reset later if shared libraries are not supported. Putting them
16720 # here allows them to be overridden if necessary.
16721 runpath_var=LD_RUN_PATH
16722 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16723 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16724 # ancient GNU ld didn't support --whole-archive et. al.
16725 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16726 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16728 whole_archive_flag_spec_GCJ=
16730 supports_anon_versioning=no
16731 case `$LD -v 2>/dev/null` in
16732 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16733 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16734 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16735 *\ 2.11.*) ;; # other 2.11 versions
16736 *) supports_anon_versioning=yes ;;
16739 # See if GNU ld supports shared libraries.
16741 aix3* | aix4* | aix5*)
16742 # On AIX/PPC, the GNU linker is very broken
16743 if test "$host_cpu" != ia64; then
16747 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16748 *** to be unable to reliably create shared libraries on AIX.
16749 *** Therefore, libtool is disabling shared libraries support. If you
16750 *** really care for shared libraries, you may want to modify your PATH
16751 *** so that a non-GNU linker is found, and then restart.
16758 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)'
16759 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16760 hardcode_minus_L_GCJ=yes
16762 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16763 # that the semantics of dynamic libraries on AmigaOS, at least up
16764 # to version 4, is to share data among multiple programs linked
16765 # with the same dynamic library. Since this doesn't match the
16766 # behavior of shared libraries on other platforms, we can't use
16772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16773 allow_undefined_flag_GCJ=unsupported
16774 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16775 # support --undefined. This deserves some investigation. FIXME
16776 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16782 cygwin* | mingw* | pw32*)
16783 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16784 # as there is no search path for DLLs.
16785 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16786 allow_undefined_flag_GCJ=unsupported
16787 always_export_symbols_GCJ=no
16788 enable_shared_with_static_runtimes_GCJ=yes
16789 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16791 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16792 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16793 # If the export-symbols file already is a .def file (1st line
16794 # is EXPORTS), use it as is; otherwise, prepend...
16795 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16796 cp $export_symbols $output_objdir/$soname.def;
16798 echo EXPORTS > $output_objdir/$soname.def;
16799 cat $export_symbols >> $output_objdir/$soname.def;
16801 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16808 hardcode_direct_GCJ=no
16809 hardcode_shlibpath_var_GCJ=no
16810 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16811 export_dynamic_flag_spec_GCJ='${wl}-E'
16812 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16813 # Instead, shared libraries are loaded at an image base (0x10000000 by
16814 # default) and relocated if they conflict, which is a slow very memory
16815 # consuming and fragmenting process. To avoid this, we pick a random,
16816 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16817 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16818 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'
16819 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'
16822 linux* | k*bsd*-gnu)
16823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16825 case $cc_basename,$host_cpu in
16826 pgcc*) # Portland Group C compiler
16827 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'
16828 tmp_addflag=' $pic_flag'
16830 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16831 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'
16832 tmp_addflag=' $pic_flag -Mnomain' ;;
16833 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16834 tmp_addflag=' -i_dynamic' ;;
16835 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16836 tmp_addflag=' -i_dynamic -nofor_main' ;;
16837 ifc* | ifort*) # Intel Fortran compiler
16838 tmp_addflag=' -nofor_main' ;;
16840 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16842 if test $supports_anon_versioning = yes; then
16843 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16844 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16845 $echo "local: *; };" >> $output_objdir/$libname.ver~
16846 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16848 link_all_deplibs_GCJ=no
16854 netbsd* | netbsdelf*-gnu)
16855 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16856 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16859 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16860 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16865 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16869 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16870 *** create shared libraries on Solaris systems. Therefore, libtool
16871 *** is disabling shared libraries support. We urge you to upgrade GNU
16872 *** binutils to release 2.9.1 or newer. Another option is to modify
16873 *** your PATH or compiler configuration so that the native linker is
16874 *** used, and then restart.
16877 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16878 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16879 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16885 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16886 case `$LD -v 2>&1` in
16887 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16891 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16892 *** reliably create shared libraries on SCO systems. Therefore, libtool
16893 *** is disabling shared libraries support. We urge you to upgrade GNU
16894 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16895 *** your PATH or compiler configuration so that the native linker is
16896 *** used, and then restart.
16901 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16902 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16903 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16904 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16913 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16915 hardcode_direct_GCJ=yes
16916 hardcode_shlibpath_var_GCJ=no
16920 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16921 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16922 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16929 if test "$ld_shlibs_GCJ" = no; then
16931 hardcode_libdir_flag_spec_GCJ=
16932 export_dynamic_flag_spec_GCJ=
16933 whole_archive_flag_spec_GCJ=
16936 # PORTME fill in a description of your system's linker (not GNU ld)
16939 allow_undefined_flag_GCJ=unsupported
16940 always_export_symbols_GCJ=yes
16941 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'
16942 # Note: this linker hardcodes the directories in LIBPATH if there
16943 # are no directories specified by -L.
16944 hardcode_minus_L_GCJ=yes
16945 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16946 # Neither direct hardcoding nor static linking is supported with a
16948 hardcode_direct_GCJ=unsupported
16953 if test "$host_cpu" = ia64; then
16954 # On IA64, the linker does run time linking by default, so we don't
16955 # have to do anything special.
16956 aix_use_runtimelinking=no
16957 exp_sym_flag='-Bexport'
16960 # If we're using GNU nm, then we don't want the "-C" option.
16961 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16962 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16963 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'
16965 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'
16967 aix_use_runtimelinking=no
16969 # Test if we are trying to use run time linking or normal
16970 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16971 # need to do runtime linking.
16972 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16973 for ld_flag in $LDFLAGS; do
16974 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16975 aix_use_runtimelinking=yes
16982 exp_sym_flag='-bexport'
16983 no_entry_flag='-bnoentry'
16986 # When large executables or shared objects are built, AIX ld can
16987 # have problems creating the table of contents. If linking a library
16988 # or program results in "error TOC overflow" add -mminimal-toc to
16989 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16990 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16992 archive_cmds_GCJ=''
16993 hardcode_direct_GCJ=yes
16994 hardcode_libdir_separator_GCJ=':'
16995 link_all_deplibs_GCJ=yes
16997 if test "$GCC" = yes; then
16998 case $host_os in aix4.[012]|aix4.[012].*)
16999 # We only want to do this on AIX 4.2 and lower, the check
17000 # below for broken collect2 doesn't work under 4.3+
17001 collect2name=`${CC} -print-prog-name=collect2`
17002 if test -f "$collect2name" && \
17003 strings "$collect2name" | grep resolve_lib_name >/dev/null
17005 # We have reworked collect2
17006 hardcode_direct_GCJ=yes
17008 # We have old collect2
17009 hardcode_direct_GCJ=unsupported
17010 # It fails to find uninstalled libraries when the uninstalled
17011 # path is not listed in the libpath. Setting hardcode_minus_L
17012 # to unsupported forces relinking
17013 hardcode_minus_L_GCJ=yes
17014 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17015 hardcode_libdir_separator_GCJ=
17019 shared_flag='-shared'
17020 if test "$aix_use_runtimelinking" = yes; then
17021 shared_flag="$shared_flag "'${wl}-G'
17025 if test "$host_cpu" = ia64; then
17026 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17027 # chokes on -Wl,-G. The following line is correct:
17030 if test "$aix_use_runtimelinking" = yes; then
17031 shared_flag='${wl}-G'
17033 shared_flag='${wl}-bM:SRE'
17038 # It seems that -bexpall does not export symbols beginning with
17039 # underscore (_), so it is better to generate a list of symbols to export.
17040 always_export_symbols_GCJ=yes
17041 if test "$aix_use_runtimelinking" = yes; then
17042 # Warning - without using the other runtime loading flags (-brtl),
17043 # -berok will link without error, but may produce a broken library.
17044 allow_undefined_flag_GCJ='-berok'
17045 # Determine the default libpath from the value encoded in an empty executable.
17046 cat >conftest.$ac_ext <<_ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h. */
17061 rm -f conftest.$ac_objext conftest$ac_exeext
17062 if { (ac_try="$ac_link"
17063 case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_link") 2>conftest.er1
17070 grep -v '^ *+' conftest.er1 >conftest.err
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } && {
17075 test -z "$ac_c_werror_flag" ||
17076 test ! -s conftest.err
17077 } && test -s conftest$ac_exeext &&
17078 $as_test_x conftest$ac_exeext; then
17080 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17082 # Check for a 64-bit object if we didn't find anything.
17083 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; }
17086 echo "$as_me: failed program was:" >&5
17087 sed 's/^/| /' conftest.$ac_ext >&5
17092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17093 conftest$ac_exeext conftest.$ac_ext
17094 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17096 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17097 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"
17099 if test "$host_cpu" = ia64; then
17100 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17101 allow_undefined_flag_GCJ="-z nodefs"
17102 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"
17104 # Determine the default libpath from the value encoded in an empty executable.
17105 cat >conftest.$ac_ext <<_ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17120 rm -f conftest.$ac_objext conftest$ac_exeext
17121 if { (ac_try="$ac_link"
17122 case "(($ac_try" in
17123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_link") 2>conftest.er1
17129 grep -v '^ *+' conftest.er1 >conftest.err
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133 (exit $ac_status); } && {
17134 test -z "$ac_c_werror_flag" ||
17135 test ! -s conftest.err
17136 } && test -s conftest$ac_exeext &&
17137 $as_test_x conftest$ac_exeext; then
17139 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17141 # Check for a 64-bit object if we didn't find anything.
17142 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; }
17145 echo "$as_me: failed program was:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17152 conftest$ac_exeext conftest.$ac_ext
17153 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17155 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17156 # Warning - without using the other run time loading flags,
17157 # -berok will link without error, but may produce a broken library.
17158 no_undefined_flag_GCJ=' ${wl}-bernotok'
17159 allow_undefined_flag_GCJ=' ${wl}-berok'
17160 # Exported symbols can be pulled into shared objects from archives
17161 whole_archive_flag_spec_GCJ='$convenience'
17162 archive_cmds_need_lc_GCJ=yes
17163 # This is similar to how AIX traditionally builds its shared libraries.
17164 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'
17170 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)'
17171 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17172 hardcode_minus_L_GCJ=yes
17173 # see comment about different semantics on the GNU ld section
17178 export_dynamic_flag_spec_GCJ=-rdynamic
17181 cygwin* | mingw* | pw32*)
17182 # When not using gcc, we currently assume that we are using
17183 # Microsoft Visual C++.
17184 # hardcode_libdir_flag_spec is actually meaningless, as there is
17185 # no search path for DLLs.
17186 hardcode_libdir_flag_spec_GCJ=' '
17187 allow_undefined_flag_GCJ=unsupported
17188 # Tell ltmain to make .lib files, not .a files.
17190 # Tell ltmain to make .dll files, not .so files.
17192 # FIXME: Setting linknames here is a bad hack.
17193 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17194 # The linker will automatically build a .lib file if we build a DLL.
17195 old_archive_From_new_cmds_GCJ='true'
17196 # FIXME: Should let the user specify the lib program.
17197 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17198 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17199 enable_shared_with_static_runtimes_GCJ=yes
17202 darwin* | rhapsody*)
17204 rhapsody* | darwin1.[012])
17205 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17208 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17209 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17211 case ${MACOSX_DEPLOYMENT_TARGET} in
17213 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17216 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17222 archive_cmds_need_lc_GCJ=no
17223 hardcode_direct_GCJ=no
17224 hardcode_automatic_GCJ=yes
17225 hardcode_shlibpath_var_GCJ=unsupported
17226 whole_archive_flag_spec_GCJ=''
17227 link_all_deplibs_GCJ=yes
17228 if test "$GCC" = yes ; then
17229 output_verbose_link_cmd='echo'
17230 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17231 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17232 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17233 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}'
17234 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}'
17236 case $cc_basename in
17238 output_verbose_link_cmd='echo'
17239 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17240 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17241 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17242 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}'
17243 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}'
17253 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17254 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17255 hardcode_shlibpath_var_GCJ=no
17262 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17263 # support. Future versions do this automatically, but an explicit c++rt0.o
17264 # does not break anything, and helps significantly (at the cost of a little
17267 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17268 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17269 hardcode_direct_GCJ=yes
17270 hardcode_shlibpath_var_GCJ=no
17273 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17275 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17276 hardcode_direct_GCJ=yes
17277 hardcode_minus_L_GCJ=yes
17278 hardcode_shlibpath_var_GCJ=no
17281 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17282 freebsd* | dragonfly*)
17283 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17284 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17285 hardcode_direct_GCJ=yes
17286 hardcode_shlibpath_var_GCJ=no
17290 if test "$GCC" = yes; then
17291 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'
17293 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'
17295 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17296 hardcode_libdir_separator_GCJ=:
17297 hardcode_direct_GCJ=yes
17299 # hardcode_minus_L: Not really in the search PATH,
17300 # but as the default location of the library.
17301 hardcode_minus_L_GCJ=yes
17302 export_dynamic_flag_spec_GCJ='${wl}-E'
17306 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17307 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17309 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17311 if test "$with_gnu_ld" = no; then
17312 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17313 hardcode_libdir_separator_GCJ=:
17315 hardcode_direct_GCJ=yes
17316 export_dynamic_flag_spec_GCJ='${wl}-E'
17318 # hardcode_minus_L: Not really in the search PATH,
17319 # but as the default location of the library.
17320 hardcode_minus_L_GCJ=yes
17325 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17328 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17331 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17334 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17340 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17343 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17346 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17350 if test "$with_gnu_ld" = no; then
17351 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17352 hardcode_libdir_separator_GCJ=:
17356 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17357 hardcode_direct_GCJ=no
17358 hardcode_shlibpath_var_GCJ=no
17361 hardcode_direct_GCJ=yes
17362 export_dynamic_flag_spec_GCJ='${wl}-E'
17364 # hardcode_minus_L: Not really in the search PATH,
17365 # but as the default location of the library.
17366 hardcode_minus_L_GCJ=yes
17372 irix5* | irix6* | nonstopux*)
17373 if test "$GCC" = yes; then
17374 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'
17376 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'
17377 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17379 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17380 hardcode_libdir_separator_GCJ=:
17381 link_all_deplibs_GCJ=yes
17384 netbsd* | netbsdelf*-gnu)
17385 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17386 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17388 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17390 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17391 hardcode_direct_GCJ=yes
17392 hardcode_shlibpath_var_GCJ=no
17396 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17397 hardcode_direct_GCJ=yes
17398 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17399 hardcode_libdir_separator_GCJ=:
17400 hardcode_shlibpath_var_GCJ=no
17404 hardcode_direct_GCJ=yes
17405 hardcode_shlibpath_var_GCJ=no
17406 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17407 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17408 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17409 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17410 export_dynamic_flag_spec_GCJ='${wl}-E'
17413 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17414 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17415 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17418 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17419 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17426 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17427 hardcode_minus_L_GCJ=yes
17428 allow_undefined_flag_GCJ=unsupported
17429 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'
17430 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17434 if test "$GCC" = yes; then
17435 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17436 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'
17438 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17439 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'
17441 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17442 hardcode_libdir_separator_GCJ=:
17445 osf4* | osf5*) # as osf3* with the addition of -msym flag
17446 if test "$GCC" = yes; then
17447 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17448 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'
17449 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17451 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17452 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'
17453 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~
17454 $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'
17456 # Both c and cxx compiler support -rpath directly
17457 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17459 hardcode_libdir_separator_GCJ=:
17463 no_undefined_flag_GCJ=' -z text'
17464 if test "$GCC" = yes; then
17466 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17467 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17468 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17471 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17472 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17473 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17475 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17476 hardcode_shlibpath_var_GCJ=no
17478 solaris2.[0-5] | solaris2.[0-5].*) ;;
17480 # The compiler driver will combine linker options so we
17481 # cannot just pass the convience library names through
17482 # without $wl, iff we do not link with $LD.
17483 # Luckily, gcc supports the same syntax we need for Sun Studio.
17484 # Supported since Solaris 2.6 (maybe 2.5.1?)
17487 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17489 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' ;;
17492 link_all_deplibs_GCJ=yes
17496 if test "x$host_vendor" = xsequent; then
17497 # Use $CC to link under sequent, because it throws in some extra .o
17498 # files that make .init and .fini sections work.
17499 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17501 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17503 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17504 hardcode_direct_GCJ=yes
17505 hardcode_minus_L_GCJ=yes
17506 hardcode_shlibpath_var_GCJ=no
17510 case $host_vendor in
17512 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17513 hardcode_direct_GCJ=yes # is this really true???
17516 ## LD is ld it makes a PLAMLIB
17517 ## CC just makes a GrossModule.
17518 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17519 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17520 hardcode_direct_GCJ=no
17523 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17524 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17527 runpath_var='LD_RUN_PATH'
17528 hardcode_shlibpath_var_GCJ=no
17532 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17533 hardcode_shlibpath_var_GCJ=no
17534 export_dynamic_flag_spec_GCJ='-Bexport'
17538 if test -d /usr/nec; then
17539 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17540 hardcode_shlibpath_var_GCJ=no
17541 runpath_var=LD_RUN_PATH
17542 hardcode_runpath_var=yes
17547 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17548 no_undefined_flag_GCJ='${wl}-z,text'
17549 archive_cmds_need_lc_GCJ=no
17550 hardcode_shlibpath_var_GCJ=no
17551 runpath_var='LD_RUN_PATH'
17553 if test "$GCC" = yes; then
17554 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17555 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17557 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17558 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17562 sysv5* | sco3.2v5* | sco5v6*)
17563 # Note: We can NOT use -z defs as we might desire, because we do not
17564 # link with -lc, and that would cause any symbols used from libc to
17565 # always be unresolved, which means just about no library would
17566 # ever link correctly. If we're not using GNU ld we use -z text
17567 # though, which does catch some bad symbols but isn't as heavy-handed
17569 no_undefined_flag_GCJ='${wl}-z,text'
17570 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17571 archive_cmds_need_lc_GCJ=no
17572 hardcode_shlibpath_var_GCJ=no
17573 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17574 hardcode_libdir_separator_GCJ=':'
17575 link_all_deplibs_GCJ=yes
17576 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17577 runpath_var='LD_RUN_PATH'
17579 if test "$GCC" = yes; then
17580 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17581 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17583 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17584 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17589 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17590 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17591 hardcode_shlibpath_var_GCJ=no
17600 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17601 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17602 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17605 # Do we need to explicitly link libc?
17607 case "x$archive_cmds_need_lc_GCJ" in
17609 # Assume -lc should be added
17610 archive_cmds_need_lc_GCJ=yes
17612 if test "$enable_shared" = yes && test "$GCC" = yes; then
17613 case $archive_cmds_GCJ in
17615 # FIXME: we may have to deal with multi-command sequences.
17618 # Test whether the compiler implicitly links with -lc since on some
17619 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17620 # to ld, don't add -lc before -lgcc.
17621 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17622 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17624 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17627 (eval $ac_compile) 2>&5
17629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17630 (exit $ac_status); } 2>conftest.err; then
17633 libobjs=conftest.$ac_objext
17635 wl=$lt_prog_compiler_wl_GCJ
17636 pic_flag=$lt_prog_compiler_pic_GCJ
17642 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17643 allow_undefined_flag_GCJ=
17644 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17645 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17648 (exit $ac_status); }
17650 archive_cmds_need_lc_GCJ=no
17652 archive_cmds_need_lc_GCJ=yes
17654 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17656 cat conftest.err 1>&5
17659 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17660 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17667 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17668 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17669 library_names_spec=
17670 libname_spec='lib$name'
17674 postuninstall_cmds=
17678 shlibpath_overrides_runpath=unknown
17680 dynamic_linker="$host_os ld.so"
17681 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17682 if test "$GCC" = yes; then
17683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17684 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17685 # if the path contains ";" then we assume it to be the separator
17686 # otherwise default to the standard path separator (i.e. ":") - it is
17687 # assumed that no part of a normal pathname contains ";" but that should
17688 # okay in the real world where ";" in dirpaths is itself problematic.
17689 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17694 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17696 need_lib_prefix=unknown
17697 hardcode_into_libs=no
17699 # when you set need_version to no, make sure it does not cause -set_version
17700 # flags to be left without arguments
17701 need_version=unknown
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17707 shlibpath_var=LIBPATH
17709 # AIX 3 has no versioning support, so we append a major version to the name.
17710 soname_spec='${libname}${release}${shared_ext}$major'
17717 hardcode_into_libs=yes
17718 if test "$host_cpu" = ia64; then
17719 # AIX 5 supports IA64
17720 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17721 shlibpath_var=LD_LIBRARY_PATH
17723 # With GCC up to 2.95.x, collect2 would create an import file
17724 # for dependence libraries. The import file would start with
17725 # the line `#! .'. This would cause the generated library to
17726 # depend on `.', always an invalid library. This was fixed in
17727 # development snapshots of GCC prior to 3.0.
17729 aix4 | aix4.[01] | aix4.[01].*)
17730 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17732 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17735 can_build_shared=no
17739 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17740 # soname into executable. Probably we can add versioning support to
17741 # collect2, so additional links can be useful in future.
17742 if test "$aix_use_runtimelinking" = yes; then
17743 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17744 # instead of lib<name>.a to let people know that these are not
17745 # typical AIX shared libraries.
17746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17748 # We preserve .a as extension for shared libraries through AIX4.2
17749 # and later when we are not doing run time linking.
17750 library_names_spec='${libname}${release}.a $libname.a'
17751 soname_spec='${libname}${release}${shared_ext}$major'
17753 shlibpath_var=LIBPATH
17758 library_names_spec='$libname.ixlibrary $libname.a'
17759 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17760 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'
17764 library_names_spec='${libname}${shared_ext}'
17765 dynamic_linker="$host_os ld.so"
17766 shlibpath_var=LIBRARY_PATH
17772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17773 soname_spec='${libname}${release}${shared_ext}$major'
17774 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17775 shlibpath_var=LD_LIBRARY_PATH
17776 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17777 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17778 # the default ld.so.conf also contains /usr/contrib/lib and
17779 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17780 # libtool to hard-code these into programs
17783 cygwin* | mingw* | pw32*)
17784 version_type=windows
17789 case $GCC,$host_os in
17790 yes,cygwin* | yes,mingw* | yes,pw32*)
17791 library_names_spec='$libname.dll.a'
17792 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17793 postinstall_cmds='base_file=`basename \${file}`~
17794 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17795 dldir=$destdir/`dirname \$dlpath`~
17796 test -d \$dldir || mkdir -p \$dldir~
17797 $install_prog $dir/$dlname \$dldir/$dlname~
17798 chmod a+x \$dldir/$dlname'
17799 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17800 dlpath=$dir/\$dldll~
17802 shlibpath_overrides_runpath=yes
17806 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17807 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17808 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17811 # MinGW DLLs use traditional 'lib' prefix
17812 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17813 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17814 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17815 # It is most probably a Windows format PATH printed by
17816 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17817 # path with ; separators, and with drive letters. We can handle the
17818 # drive letters (cygwin fileutils understands them), so leave them,
17819 # especially as we might pass files found there to a mingw objdump,
17820 # which wouldn't understand a cygwinified path. Ahh.
17821 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17823 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17827 # pw32 DLLs use 'pw' prefix rather than 'lib'
17828 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17834 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17837 dynamic_linker='Win32 ld.exe'
17838 # FIXME: first we should search . and the directory the executable is in
17842 darwin* | rhapsody*)
17843 dynamic_linker="$host_os dyld"
17844 version_type=darwin
17847 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17848 soname_spec='${libname}${release}${major}$shared_ext'
17849 shlibpath_overrides_runpath=yes
17850 shlibpath_var=DYLD_LIBRARY_PATH
17851 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17852 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17853 if test "$GCC" = yes; then
17854 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"`
17856 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17858 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17866 soname_spec='${libname}${release}${shared_ext}$major'
17867 shlibpath_var=LD_LIBRARY_PATH
17874 freebsd* | dragonfly*)
17875 # DragonFly does not have aout. When/if they implement a new
17876 # versioning mechanism, adjust this.
17877 if test -x /usr/bin/objformat; then
17878 objformat=`/usr/bin/objformat`
17881 freebsd[123]*) objformat=aout ;;
17882 *) objformat=elf ;;
17885 version_type=freebsd-$objformat
17886 case $version_type in
17888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17893 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17897 shlibpath_var=LD_LIBRARY_PATH
17900 shlibpath_overrides_runpath=yes
17902 freebsd3.[01]* | freebsdelf3.[01]*)
17903 shlibpath_overrides_runpath=yes
17904 hardcode_into_libs=yes
17906 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17907 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17908 shlibpath_overrides_runpath=no
17909 hardcode_into_libs=yes
17911 freebsd*) # from 4.6 on
17912 shlibpath_overrides_runpath=yes
17913 hardcode_into_libs=yes
17922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17923 soname_spec='${libname}${release}${shared_ext}$major'
17924 shlibpath_var=LD_LIBRARY_PATH
17925 hardcode_into_libs=yes
17928 hpux9* | hpux10* | hpux11*)
17929 # Give a soname corresponding to the major version so that dld.sl refuses to
17930 # link against other versions.
17937 hardcode_into_libs=yes
17938 dynamic_linker="$host_os dld.so"
17939 shlibpath_var=LD_LIBRARY_PATH
17940 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17942 soname_spec='${libname}${release}${shared_ext}$major'
17943 if test "X$HPUX_IA64_MODE" = X32; then
17944 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17946 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17948 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17952 hardcode_into_libs=yes
17953 dynamic_linker="$host_os dld.sl"
17954 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17955 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17957 soname_spec='${libname}${release}${shared_ext}$major'
17958 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17959 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17963 dynamic_linker="$host_os dld.sl"
17964 shlibpath_var=SHLIB_PATH
17965 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17967 soname_spec='${libname}${release}${shared_ext}$major'
17970 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17971 postinstall_cmds='chmod 555 $lib'
17978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17979 soname_spec='${libname}${release}${shared_ext}$major'
17980 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17981 shlibpath_var=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath=no
17983 hardcode_into_libs=yes
17986 irix5* | irix6* | nonstopux*)
17988 nonstopux*) version_type=nonstopux ;;
17990 if test "$lt_cv_prog_gnu_ld" = yes; then
17998 soname_spec='${libname}${release}${shared_ext}$major'
17999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18001 irix5* | nonstopux*)
18002 libsuff= shlibsuff=
18005 case $LD in # libtool.m4 will add one of these switches to LD
18006 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18007 libsuff= shlibsuff= libmagic=32-bit;;
18008 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18009 libsuff=32 shlibsuff=N32 libmagic=N32;;
18010 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18011 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18012 *) libsuff= shlibsuff= libmagic=never-match;;
18016 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18017 shlibpath_overrides_runpath=no
18018 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18019 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18020 hardcode_into_libs=yes
18023 # No shared lib support for Linux oldld, aout, or coff.
18024 linux*oldld* | linux*aout* | linux*coff*)
18028 # This must be Linux ELF.
18029 linux* | k*bsd*-gnu)
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18034 soname_spec='${libname}${release}${shared_ext}$major'
18035 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18036 shlibpath_var=LD_LIBRARY_PATH
18037 shlibpath_overrides_runpath=no
18038 # This implies no fast_install, which is unacceptable.
18039 # Some rework will be needed to allow for fast_install
18040 # before this can be enabled.
18041 hardcode_into_libs=yes
18043 # Append ld.so.conf contents to the search path
18044 if test -f /etc/ld.so.conf; then
18045 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' ' '`
18046 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18049 # We used to test for /lib/ld.so.1 and disable shared libraries on
18050 # powerpc, because MkLinux only supported shared libraries with the
18051 # GNU dynamic linker. Since this was broken with cross compilers,
18052 # most powerpc-linux boxes support dynamic linking these days and
18053 # people can always --disable-shared, the test was removed, and we
18054 # assume the GNU/Linux dynamic linker is in use.
18055 dynamic_linker='GNU/Linux ld.so'
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 shlibpath_var=LD_LIBRARY_PATH
18065 shlibpath_overrides_runpath=no
18066 hardcode_into_libs=yes
18067 dynamic_linker='NetBSD ld.elf_so'
18074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18077 dynamic_linker='NetBSD (a.out) ld.so'
18079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18080 soname_spec='${libname}${release}${shared_ext}$major'
18081 dynamic_linker='NetBSD ld.elf_so'
18083 shlibpath_var=LD_LIBRARY_PATH
18084 shlibpath_overrides_runpath=yes
18085 hardcode_into_libs=yes
18090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18091 shlibpath_var=LD_LIBRARY_PATH
18092 shlibpath_overrides_runpath=yes
18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100 soname_spec='${libname}${release}${shared_ext}$major'
18101 shlibpath_var=LD_LIBRARY_PATH
18102 shlibpath_overrides_runpath=yes
18107 sys_lib_dlsearch_path_spec="/usr/lib"
18109 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18111 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18112 *) need_version=no ;;
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18116 shlibpath_var=LD_LIBRARY_PATH
18117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18119 openbsd2.[89] | openbsd2.[89].*)
18120 shlibpath_overrides_runpath=no
18123 shlibpath_overrides_runpath=yes
18127 shlibpath_overrides_runpath=yes
18132 libname_spec='$name'
18135 library_names_spec='$libname${shared_ext} $libname.a'
18136 dynamic_linker='OS/2 ld.exe'
18137 shlibpath_var=LIBPATH
18140 osf3* | osf4* | osf5*)
18144 soname_spec='${libname}${release}${shared_ext}$major'
18145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18146 shlibpath_var=LD_LIBRARY_PATH
18147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156 soname_spec='${libname}${release}${shared_ext}$major'
18157 shlibpath_var=LD_LIBRARY_PATH
18158 shlibpath_overrides_runpath=yes
18159 hardcode_into_libs=yes
18160 # ldd complains unless libraries are executable
18161 postinstall_cmds='chmod +x $lib'
18166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18167 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18168 shlibpath_var=LD_LIBRARY_PATH
18169 shlibpath_overrides_runpath=yes
18170 if test "$with_gnu_ld" = yes; then
18178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18179 soname_spec='${libname}${release}${shared_ext}$major'
18180 shlibpath_var=LD_LIBRARY_PATH
18181 case $host_vendor in
18183 shlibpath_overrides_runpath=no
18185 export_dynamic_flag_spec='${wl}-Blargedynsym'
18186 runpath_var=LD_RUN_PATH
18194 shlibpath_overrides_runpath=no
18195 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18201 if test -d /usr/nec ;then
18203 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18204 soname_spec='$libname${shared_ext}.$major'
18205 shlibpath_var=LD_LIBRARY_PATH
18209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18210 version_type=freebsd-elf
18213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18214 soname_spec='${libname}${release}${shared_ext}$major'
18215 shlibpath_var=LD_LIBRARY_PATH
18216 hardcode_into_libs=yes
18217 if test "$with_gnu_ld" = yes; then
18218 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18219 shlibpath_overrides_runpath=no
18221 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18222 shlibpath_overrides_runpath=yes
18225 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18229 sys_lib_dlsearch_path_spec='/usr/lib'
18234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18235 soname_spec='${libname}${release}${shared_ext}$major'
18236 shlibpath_var=LD_LIBRARY_PATH
18243 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18244 echo "${ECHO_T}$dynamic_linker" >&6; }
18245 test "$dynamic_linker" = no && can_build_shared=no
18247 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18248 if test "$GCC" = yes; then
18249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18252 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18253 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18254 hardcode_action_GCJ=
18255 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18256 test -n "$runpath_var_GCJ" || \
18257 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18259 # We can hardcode non-existant directories.
18260 if test "$hardcode_direct_GCJ" != no &&
18261 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18262 # have to relink, otherwise we might link with an installed library
18263 # when we should be linking with a yet-to-be-installed one
18264 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18265 test "$hardcode_minus_L_GCJ" != no; then
18266 # Linking always hardcodes the temporary library directory.
18267 hardcode_action_GCJ=relink
18269 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18270 hardcode_action_GCJ=immediate
18273 # We cannot hardcode anything, or else we can only hardcode existing
18275 hardcode_action_GCJ=unsupported
18277 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18278 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18280 if test "$hardcode_action_GCJ" = relink; then
18281 # Fast installation is not supported
18282 enable_fast_install=no
18283 elif test "$shlibpath_overrides_runpath" = yes ||
18284 test "$enable_shared" = no; then
18285 # Fast installation is not necessary
18286 enable_fast_install=needless
18290 # The else clause should only fire when bootstrapping the
18291 # libtool distribution, otherwise you forgot to ship ltmain.sh
18292 # with your package, and you will get complaints that there are
18293 # no rules to generate ltmain.sh.
18294 if test -f "$ltmain"; then
18295 # See if we are running on zsh, and set the options which allow our commands through
18296 # without removal of \ escapes.
18297 if test -n "${ZSH_VERSION+set}" ; then
18298 setopt NO_GLOB_SUBST
18300 # Now quote all the things that may contain metacharacters while being
18301 # careful not to overquote the AC_SUBSTed values. We take copies of the
18302 # variables and quote the copies for generation of the libtool script.
18303 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18305 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18306 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18307 deplibs_check_method reload_flag reload_cmds need_locks \
18308 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18309 lt_cv_sys_global_symbol_to_c_name_address \
18310 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18311 old_postinstall_cmds old_postuninstall_cmds \
18315 lt_prog_compiler_wl_GCJ \
18316 lt_prog_compiler_pic_GCJ \
18317 lt_prog_compiler_static_GCJ \
18318 lt_prog_compiler_no_builtin_flag_GCJ \
18319 export_dynamic_flag_spec_GCJ \
18320 thread_safe_flag_spec_GCJ \
18321 whole_archive_flag_spec_GCJ \
18322 enable_shared_with_static_runtimes_GCJ \
18323 old_archive_cmds_GCJ \
18324 old_archive_from_new_cmds_GCJ \
18325 predep_objects_GCJ \
18326 postdep_objects_GCJ \
18329 compiler_lib_search_path_GCJ \
18331 archive_expsym_cmds_GCJ \
18332 postinstall_cmds_GCJ \
18333 postuninstall_cmds_GCJ \
18334 old_archive_from_expsyms_cmds_GCJ \
18335 allow_undefined_flag_GCJ \
18336 no_undefined_flag_GCJ \
18337 export_symbols_cmds_GCJ \
18338 hardcode_libdir_flag_spec_GCJ \
18339 hardcode_libdir_flag_spec_ld_GCJ \
18340 hardcode_libdir_separator_GCJ \
18341 hardcode_automatic_GCJ \
18343 module_expsym_cmds_GCJ \
18344 lt_cv_prog_compiler_c_o_GCJ \
18345 exclude_expsyms_GCJ \
18346 include_expsyms_GCJ; do
18349 old_archive_cmds_GCJ | \
18350 old_archive_from_new_cmds_GCJ | \
18351 archive_cmds_GCJ | \
18352 archive_expsym_cmds_GCJ | \
18353 module_cmds_GCJ | \
18354 module_expsym_cmds_GCJ | \
18355 old_archive_from_expsyms_cmds_GCJ | \
18356 export_symbols_cmds_GCJ | \
18357 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18358 postinstall_cmds | postuninstall_cmds | \
18359 old_postinstall_cmds | old_postuninstall_cmds | \
18360 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18361 # Double-quote double-evaled strings.
18362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18365 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18371 *'\$0 --fallback-echo"')
18372 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18378 cat <<__EOF__ >> "$cfgfile"
18379 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18381 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18383 # Shell to use when invoking shell scripts.
18386 # Whether or not to build shared libraries.
18387 build_libtool_libs=$enable_shared
18389 # Whether or not to build static libraries.
18390 build_old_libs=$enable_static
18392 # Whether or not to add -lc for building shared libraries.
18393 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18395 # Whether or not to disallow shared libs when runtime libs are static
18396 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18398 # Whether or not to optimize for fast installation.
18399 fast_install=$enable_fast_install
18402 host_alias=$host_alias
18406 # The build system.
18407 build_alias=$build_alias
18411 # An echo program that does not interpret backslashes.
18416 AR_FLAGS=$lt_AR_FLAGS
18421 # LTCC compiler flags.
18422 LTCFLAGS=$lt_LTCFLAGS
18424 # A language-specific compiler.
18425 CC=$lt_compiler_GCJ
18427 # Is the compiler the GNU C compiler?
18433 # The linker used to build libraries.
18436 # Whether we need hard or soft links.
18439 # A BSD-compatible nm program.
18442 # A symbol stripping program
18445 # Used to examine libraries when file_magic_cmd begins "file"
18446 MAGIC_CMD=$MAGIC_CMD
18448 # Used on cygwin: DLL creation program.
18451 # Used on cygwin: object dumper.
18454 # Used on cygwin: assembler.
18457 # The name of the directory that contains temporary libtool files.
18460 # How to create reloadable object files.
18461 reload_flag=$lt_reload_flag
18462 reload_cmds=$lt_reload_cmds
18464 # How to pass a linker flag through the compiler.
18465 wl=$lt_lt_prog_compiler_wl_GCJ
18467 # Object file suffix (normally "o").
18468 objext="$ac_objext"
18470 # Old archive suffix (normally "a").
18473 # Shared library suffix (normally ".so").
18474 shrext_cmds='$shrext_cmds'
18476 # Executable file suffix (normally "").
18479 # Additional compiler flags for building library objects.
18480 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18483 # What is the maximum length of a command?
18484 max_cmd_len=$lt_cv_sys_max_cmd_len
18486 # Does compiler simultaneously support -c and -o options?
18487 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18489 # Must we lock files when doing compilation?
18490 need_locks=$lt_need_locks
18492 # Do we need the lib prefix for modules?
18493 need_lib_prefix=$need_lib_prefix
18495 # Do we need a version for libraries?
18496 need_version=$need_version
18498 # Whether dlopen is supported.
18499 dlopen_support=$enable_dlopen
18501 # Whether dlopen of programs is supported.
18502 dlopen_self=$enable_dlopen_self
18504 # Whether dlopen of statically linked programs is supported.
18505 dlopen_self_static=$enable_dlopen_self_static
18507 # Compiler flag to prevent dynamic linking.
18508 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18510 # Compiler flag to turn off builtin functions.
18511 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18513 # Compiler flag to allow reflexive dlopens.
18514 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18516 # Compiler flag to generate shared objects directly from archives.
18517 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18519 # Compiler flag to generate thread-safe objects.
18520 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18522 # Library versioning type.
18523 version_type=$version_type
18525 # Format of library name prefix.
18526 libname_spec=$lt_libname_spec
18528 # List of archive names. First name is the real one, the rest are links.
18529 # The last name is the one that the linker finds with -lNAME.
18530 library_names_spec=$lt_library_names_spec
18532 # The coded name of the library, if different from the real name.
18533 soname_spec=$lt_soname_spec
18535 # Commands used to build and install an old-style archive.
18537 old_archive_cmds=$lt_old_archive_cmds_GCJ
18538 old_postinstall_cmds=$lt_old_postinstall_cmds
18539 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18541 # Create an old-style archive from a shared archive.
18542 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18544 # Create a temporary old-style archive to link instead of a shared archive.
18545 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18547 # Commands used to build and install a shared archive.
18548 archive_cmds=$lt_archive_cmds_GCJ
18549 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18550 postinstall_cmds=$lt_postinstall_cmds
18551 postuninstall_cmds=$lt_postuninstall_cmds
18553 # Commands used to build a loadable module (assumed same as above if empty)
18554 module_cmds=$lt_module_cmds_GCJ
18555 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18557 # Commands to strip libraries.
18558 old_striplib=$lt_old_striplib
18559 striplib=$lt_striplib
18561 # Dependencies to place before the objects being linked to create a
18563 predep_objects=$lt_predep_objects_GCJ
18565 # Dependencies to place after the objects being linked to create a
18567 postdep_objects=$lt_postdep_objects_GCJ
18569 # Dependencies to place before the objects being linked to create a
18571 predeps=$lt_predeps_GCJ
18573 # Dependencies to place after the objects being linked to create a
18575 postdeps=$lt_postdeps_GCJ
18577 # The library search path used internally by the compiler when linking
18578 # a shared library.
18579 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18581 # Method to check whether dependent libraries are shared objects.
18582 deplibs_check_method=$lt_deplibs_check_method
18584 # Command to use when deplibs_check_method == file_magic.
18585 file_magic_cmd=$lt_file_magic_cmd
18587 # Flag that allows shared libraries with undefined symbols to be built.
18588 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18590 # Flag that forces no undefined symbols.
18591 no_undefined_flag=$lt_no_undefined_flag_GCJ
18593 # Commands used to finish a libtool library installation in a directory.
18594 finish_cmds=$lt_finish_cmds
18596 # Same as above, but a single script fragment to be evaled but not shown.
18597 finish_eval=$lt_finish_eval
18599 # Take the output of nm and produce a listing of raw symbols and C names.
18600 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18602 # Transform the output of nm in a proper C declaration
18603 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18605 # Transform the output of nm in a C name address pair
18606 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18608 # This is the shared library runtime path variable.
18609 runpath_var=$runpath_var
18611 # This is the shared library path variable.
18612 shlibpath_var=$shlibpath_var
18614 # Is shlibpath searched before the hard-coded library search path?
18615 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18617 # How to hardcode a shared library path into an executable.
18618 hardcode_action=$hardcode_action_GCJ
18620 # Whether we should hardcode library paths into libraries.
18621 hardcode_into_libs=$hardcode_into_libs
18623 # Flag to hardcode \$libdir into a binary during linking.
18624 # This must work even if \$libdir does not exist.
18625 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18627 # If ld is used when linking, flag to hardcode \$libdir into
18628 # a binary during linking. This must work even if \$libdir does
18630 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18632 # Whether we need a single -rpath flag with a separated argument.
18633 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18635 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18636 # resulting binary.
18637 hardcode_direct=$hardcode_direct_GCJ
18639 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18640 # resulting binary.
18641 hardcode_minus_L=$hardcode_minus_L_GCJ
18643 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18644 # the resulting binary.
18645 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18647 # Set to yes if building a shared library automatically hardcodes DIR into the library
18648 # and all subsequent libraries and executables linked against it.
18649 hardcode_automatic=$hardcode_automatic_GCJ
18651 # Variables whose values should be saved in libtool wrapper scripts and
18652 # restored at relink time.
18653 variables_saved_for_relink="$variables_saved_for_relink"
18655 # Whether libtool must link a program against all its dependency libraries.
18656 link_all_deplibs=$link_all_deplibs_GCJ
18658 # Compile-time system search path for libraries
18659 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18661 # Run-time system search path for libraries
18662 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18664 # Fix the shell variable \$srcfile for the compiler.
18665 fix_srcfile_path="$fix_srcfile_path_GCJ"
18667 # Set to yes if exported symbols are required.
18668 always_export_symbols=$always_export_symbols_GCJ
18670 # The commands to list exported symbols.
18671 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18673 # The commands to extract the exported symbol list from a shared archive.
18674 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18676 # Symbols that should not be listed in the preloaded symbols.
18677 exclude_expsyms=$lt_exclude_expsyms_GCJ
18679 # Symbols that must always be exported.
18680 include_expsyms=$lt_include_expsyms_GCJ
18682 # ### END LIBTOOL TAG CONFIG: $tagname
18688 # If there is no Makefile yet, we rely on a make rule to execute
18689 # `config.status --recheck' to rerun these tests and create the
18690 # libtool script then.
18691 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18692 if test -f "$ltmain_in"; then
18693 test -f Makefile && make "$ltmain"
18699 ac_cpp='$CPP $CPPFLAGS'
18700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18714 # Source file extension for RC test sources.
18717 # Object file extension for compiled RC test sources.
18721 # Code to be used in simple compile tests
18722 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18724 # Code to be used in simple link tests
18725 lt_simple_link_test_code="$lt_simple_compile_test_code"
18727 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18729 # If no C compiler was specified, use CC.
18732 # If no C compiler flags were specified, use CFLAGS.
18733 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18735 # Allow CC to be a program name with arguments.
18739 # save warnings/boilerplate of simple test code
18740 ac_outfile=conftest.$ac_objext
18741 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18742 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18743 _lt_compiler_boilerplate=`cat conftest.err`
18746 ac_outfile=conftest.$ac_objext
18747 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18748 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18749 _lt_linker_boilerplate=`cat conftest.err`
18753 # Allow CC to be a program name with arguments.
18758 for cc_temp in $compiler""; do
18760 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18761 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18766 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18768 lt_cv_prog_compiler_c_o_RC=yes
18770 # The else clause should only fire when bootstrapping the
18771 # libtool distribution, otherwise you forgot to ship ltmain.sh
18772 # with your package, and you will get complaints that there are
18773 # no rules to generate ltmain.sh.
18774 if test -f "$ltmain"; then
18775 # See if we are running on zsh, and set the options which allow our commands through
18776 # without removal of \ escapes.
18777 if test -n "${ZSH_VERSION+set}" ; then
18778 setopt NO_GLOB_SUBST
18780 # Now quote all the things that may contain metacharacters while being
18781 # careful not to overquote the AC_SUBSTed values. We take copies of the
18782 # variables and quote the copies for generation of the libtool script.
18783 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18785 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18786 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18787 deplibs_check_method reload_flag reload_cmds need_locks \
18788 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18789 lt_cv_sys_global_symbol_to_c_name_address \
18790 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18791 old_postinstall_cmds old_postuninstall_cmds \
18795 lt_prog_compiler_wl_RC \
18796 lt_prog_compiler_pic_RC \
18797 lt_prog_compiler_static_RC \
18798 lt_prog_compiler_no_builtin_flag_RC \
18799 export_dynamic_flag_spec_RC \
18800 thread_safe_flag_spec_RC \
18801 whole_archive_flag_spec_RC \
18802 enable_shared_with_static_runtimes_RC \
18803 old_archive_cmds_RC \
18804 old_archive_from_new_cmds_RC \
18805 predep_objects_RC \
18806 postdep_objects_RC \
18809 compiler_lib_search_path_RC \
18811 archive_expsym_cmds_RC \
18812 postinstall_cmds_RC \
18813 postuninstall_cmds_RC \
18814 old_archive_from_expsyms_cmds_RC \
18815 allow_undefined_flag_RC \
18816 no_undefined_flag_RC \
18817 export_symbols_cmds_RC \
18818 hardcode_libdir_flag_spec_RC \
18819 hardcode_libdir_flag_spec_ld_RC \
18820 hardcode_libdir_separator_RC \
18821 hardcode_automatic_RC \
18823 module_expsym_cmds_RC \
18824 lt_cv_prog_compiler_c_o_RC \
18825 exclude_expsyms_RC \
18826 include_expsyms_RC; do
18829 old_archive_cmds_RC | \
18830 old_archive_from_new_cmds_RC | \
18831 archive_cmds_RC | \
18832 archive_expsym_cmds_RC | \
18834 module_expsym_cmds_RC | \
18835 old_archive_from_expsyms_cmds_RC | \
18836 export_symbols_cmds_RC | \
18837 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18838 postinstall_cmds | postuninstall_cmds | \
18839 old_postinstall_cmds | old_postuninstall_cmds | \
18840 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18841 # Double-quote double-evaled strings.
18842 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18845 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18851 *'\$0 --fallback-echo"')
18852 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18858 cat <<__EOF__ >> "$cfgfile"
18859 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18861 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18863 # Shell to use when invoking shell scripts.
18866 # Whether or not to build shared libraries.
18867 build_libtool_libs=$enable_shared
18869 # Whether or not to build static libraries.
18870 build_old_libs=$enable_static
18872 # Whether or not to add -lc for building shared libraries.
18873 build_libtool_need_lc=$archive_cmds_need_lc_RC
18875 # Whether or not to disallow shared libs when runtime libs are static
18876 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18878 # Whether or not to optimize for fast installation.
18879 fast_install=$enable_fast_install
18882 host_alias=$host_alias
18886 # The build system.
18887 build_alias=$build_alias
18891 # An echo program that does not interpret backslashes.
18896 AR_FLAGS=$lt_AR_FLAGS
18901 # LTCC compiler flags.
18902 LTCFLAGS=$lt_LTCFLAGS
18904 # A language-specific compiler.
18907 # Is the compiler the GNU C compiler?
18913 # The linker used to build libraries.
18916 # Whether we need hard or soft links.
18919 # A BSD-compatible nm program.
18922 # A symbol stripping program
18925 # Used to examine libraries when file_magic_cmd begins "file"
18926 MAGIC_CMD=$MAGIC_CMD
18928 # Used on cygwin: DLL creation program.
18931 # Used on cygwin: object dumper.
18934 # Used on cygwin: assembler.
18937 # The name of the directory that contains temporary libtool files.
18940 # How to create reloadable object files.
18941 reload_flag=$lt_reload_flag
18942 reload_cmds=$lt_reload_cmds
18944 # How to pass a linker flag through the compiler.
18945 wl=$lt_lt_prog_compiler_wl_RC
18947 # Object file suffix (normally "o").
18948 objext="$ac_objext"
18950 # Old archive suffix (normally "a").
18953 # Shared library suffix (normally ".so").
18954 shrext_cmds='$shrext_cmds'
18956 # Executable file suffix (normally "").
18959 # Additional compiler flags for building library objects.
18960 pic_flag=$lt_lt_prog_compiler_pic_RC
18963 # What is the maximum length of a command?
18964 max_cmd_len=$lt_cv_sys_max_cmd_len
18966 # Does compiler simultaneously support -c and -o options?
18967 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18969 # Must we lock files when doing compilation?
18970 need_locks=$lt_need_locks
18972 # Do we need the lib prefix for modules?
18973 need_lib_prefix=$need_lib_prefix
18975 # Do we need a version for libraries?
18976 need_version=$need_version
18978 # Whether dlopen is supported.
18979 dlopen_support=$enable_dlopen
18981 # Whether dlopen of programs is supported.
18982 dlopen_self=$enable_dlopen_self
18984 # Whether dlopen of statically linked programs is supported.
18985 dlopen_self_static=$enable_dlopen_self_static
18987 # Compiler flag to prevent dynamic linking.
18988 link_static_flag=$lt_lt_prog_compiler_static_RC
18990 # Compiler flag to turn off builtin functions.
18991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18993 # Compiler flag to allow reflexive dlopens.
18994 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18996 # Compiler flag to generate shared objects directly from archives.
18997 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18999 # Compiler flag to generate thread-safe objects.
19000 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19002 # Library versioning type.
19003 version_type=$version_type
19005 # Format of library name prefix.
19006 libname_spec=$lt_libname_spec
19008 # List of archive names. First name is the real one, the rest are links.
19009 # The last name is the one that the linker finds with -lNAME.
19010 library_names_spec=$lt_library_names_spec
19012 # The coded name of the library, if different from the real name.
19013 soname_spec=$lt_soname_spec
19015 # Commands used to build and install an old-style archive.
19017 old_archive_cmds=$lt_old_archive_cmds_RC
19018 old_postinstall_cmds=$lt_old_postinstall_cmds
19019 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19021 # Create an old-style archive from a shared archive.
19022 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19024 # Create a temporary old-style archive to link instead of a shared archive.
19025 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19027 # Commands used to build and install a shared archive.
19028 archive_cmds=$lt_archive_cmds_RC
19029 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19030 postinstall_cmds=$lt_postinstall_cmds
19031 postuninstall_cmds=$lt_postuninstall_cmds
19033 # Commands used to build a loadable module (assumed same as above if empty)
19034 module_cmds=$lt_module_cmds_RC
19035 module_expsym_cmds=$lt_module_expsym_cmds_RC
19037 # Commands to strip libraries.
19038 old_striplib=$lt_old_striplib
19039 striplib=$lt_striplib
19041 # Dependencies to place before the objects being linked to create a
19043 predep_objects=$lt_predep_objects_RC
19045 # Dependencies to place after the objects being linked to create a
19047 postdep_objects=$lt_postdep_objects_RC
19049 # Dependencies to place before the objects being linked to create a
19051 predeps=$lt_predeps_RC
19053 # Dependencies to place after the objects being linked to create a
19055 postdeps=$lt_postdeps_RC
19057 # The library search path used internally by the compiler when linking
19058 # a shared library.
19059 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19061 # Method to check whether dependent libraries are shared objects.
19062 deplibs_check_method=$lt_deplibs_check_method
19064 # Command to use when deplibs_check_method == file_magic.
19065 file_magic_cmd=$lt_file_magic_cmd
19067 # Flag that allows shared libraries with undefined symbols to be built.
19068 allow_undefined_flag=$lt_allow_undefined_flag_RC
19070 # Flag that forces no undefined symbols.
19071 no_undefined_flag=$lt_no_undefined_flag_RC
19073 # Commands used to finish a libtool library installation in a directory.
19074 finish_cmds=$lt_finish_cmds
19076 # Same as above, but a single script fragment to be evaled but not shown.
19077 finish_eval=$lt_finish_eval
19079 # Take the output of nm and produce a listing of raw symbols and C names.
19080 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19082 # Transform the output of nm in a proper C declaration
19083 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19085 # Transform the output of nm in a C name address pair
19086 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19088 # This is the shared library runtime path variable.
19089 runpath_var=$runpath_var
19091 # This is the shared library path variable.
19092 shlibpath_var=$shlibpath_var
19094 # Is shlibpath searched before the hard-coded library search path?
19095 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19097 # How to hardcode a shared library path into an executable.
19098 hardcode_action=$hardcode_action_RC
19100 # Whether we should hardcode library paths into libraries.
19101 hardcode_into_libs=$hardcode_into_libs
19103 # Flag to hardcode \$libdir into a binary during linking.
19104 # This must work even if \$libdir does not exist.
19105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19107 # If ld is used when linking, flag to hardcode \$libdir into
19108 # a binary during linking. This must work even if \$libdir does
19110 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19112 # Whether we need a single -rpath flag with a separated argument.
19113 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19115 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19116 # resulting binary.
19117 hardcode_direct=$hardcode_direct_RC
19119 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19120 # resulting binary.
19121 hardcode_minus_L=$hardcode_minus_L_RC
19123 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19124 # the resulting binary.
19125 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19127 # Set to yes if building a shared library automatically hardcodes DIR into the library
19128 # and all subsequent libraries and executables linked against it.
19129 hardcode_automatic=$hardcode_automatic_RC
19131 # Variables whose values should be saved in libtool wrapper scripts and
19132 # restored at relink time.
19133 variables_saved_for_relink="$variables_saved_for_relink"
19135 # Whether libtool must link a program against all its dependency libraries.
19136 link_all_deplibs=$link_all_deplibs_RC
19138 # Compile-time system search path for libraries
19139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19141 # Run-time system search path for libraries
19142 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19144 # Fix the shell variable \$srcfile for the compiler.
19145 fix_srcfile_path="$fix_srcfile_path_RC"
19147 # Set to yes if exported symbols are required.
19148 always_export_symbols=$always_export_symbols_RC
19150 # The commands to list exported symbols.
19151 export_symbols_cmds=$lt_export_symbols_cmds_RC
19153 # The commands to extract the exported symbol list from a shared archive.
19154 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19156 # Symbols that should not be listed in the preloaded symbols.
19157 exclude_expsyms=$lt_exclude_expsyms_RC
19159 # Symbols that must always be exported.
19160 include_expsyms=$lt_include_expsyms_RC
19162 # ### END LIBTOOL TAG CONFIG: $tagname
19168 # If there is no Makefile yet, we rely on a make rule to execute
19169 # `config.status --recheck' to rerun these tests and create the
19170 # libtool script then.
19171 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19172 if test -f "$ltmain_in"; then
19173 test -f Makefile && make "$ltmain"
19179 ac_cpp='$CPP $CPPFLAGS'
19180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19189 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19190 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19191 { (exit 1); exit 1; }; }
19195 # Append the new tag name to the list of available tags.
19196 if test -n "$tagname" ; then
19197 available_tags="$available_tags $tagname"
19203 # Now substitute the updated list of available tags.
19204 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19205 mv "${ofile}T" "$ofile"
19209 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19210 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19211 { (exit 1); exit 1; }; }
19217 # This can be used to rebuild libtool when needed
19218 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19220 # Always use our own libtool.
19221 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19223 # Prevent multiple expansion
19245 # Checks for libraries.
19247 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
19248 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
19249 if test "${ac_cv_lib_apr_1_main+set}" = set; then
19250 echo $ECHO_N "(cached) $ECHO_C" >&6
19252 ac_check_lib_save_LIBS=$LIBS
19253 LIBS="-lapr-1 $LIBS"
19254 cat >conftest.$ac_ext <<_ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19270 rm -f conftest.$ac_objext conftest$ac_exeext
19271 if { (ac_try="$ac_link"
19272 case "(($ac_try" in
19273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19274 *) ac_try_echo=$ac_try;;
19276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19277 (eval "$ac_link") 2>conftest.er1
19279 grep -v '^ *+' conftest.er1 >conftest.err
19281 cat conftest.err >&5
19282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19283 (exit $ac_status); } && {
19284 test -z "$ac_c_werror_flag" ||
19285 test ! -s conftest.err
19286 } && test -s conftest$ac_exeext &&
19287 $as_test_x conftest$ac_exeext; then
19288 ac_cv_lib_apr_1_main=yes
19290 echo "$as_me: failed program was:" >&5
19291 sed 's/^/| /' conftest.$ac_ext >&5
19293 ac_cv_lib_apr_1_main=no
19296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19297 conftest$ac_exeext conftest.$ac_ext
19298 LIBS=$ac_check_lib_save_LIBS
19300 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
19301 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
19302 if test $ac_cv_lib_apr_1_main = yes; then
19303 cat >>confdefs.h <<_ACEOF
19304 #define HAVE_LIBAPR_1 1
19307 LIBS="-lapr-1 $LIBS"
19313 # Check whether --with-apache-header was given.
19314 if test "${with_apache_header+set}" = set; then
19315 withval=$with_apache_header;
19318 #[, ACTION-IF-GIVEN[, ACTION-IF-NOT-GIVEN]])
19319 if test "x$with_apache_header" = "x"; then
19320 { { echo "$as_me:$LINENO: error:
19321 Please specify the --with-apache-header option.
19323 echo "$as_me: error:
19324 Please specify the --with-apache-header option.
19326 { (exit 1); exit 1; }; }
19328 if test "x$with_apache_header" = "xyes"; then
19329 { { echo "$as_me:$LINENO: error:
19330 Please specify the --with-apache-header option. And, please specify the place of the header file.
19333 echo "$as_me: error:
19334 Please specify the --with-apache-header option. And, please specify the place of the header file.
19337 { (exit 1); exit 1; }; }
19341 # Check whether --with-apxs was given.
19342 if test "${with_apxs+set}" = set; then
19343 withval=$with_apxs;
19346 if test "x$with_apxs" = "x" ; then
19349 if test "x$with_apxs" = "xyes" ; then
19350 { { echo "$as_me:$LINENO: error:
19351 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19353 echo "$as_me: error:
19354 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19356 { (exit 1); exit 1; }; }
19360 # Check whether --with-apr-config was given.
19361 if test "${with_apr_config+set}" = set; then
19362 withval=$with_apr_config;
19365 if test "x$with_apr_config" = "xyes" ; then
19366 { { echo "$as_me:$LINENO: error:
19367 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19369 echo "$as_me: error:
19370 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19372 { (exit 1); exit 1; }; }
19376 # Check whether --with-apu-config was given.
19377 if test "${with_apu_config+set}" = set; then
19378 withval=$with_apu_config;
19381 if test "x$with_apu_config" = "xyes" ; then
19382 { { echo "$as_me:$LINENO: error:
19383 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19385 echo "$as_me: error:
19386 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19388 { (exit 1); exit 1; }; }
19392 # Check whether --enable-img-conv-f was given.
19393 if test "${enable_img_conv_f+set}" = set; then
19394 enableval=$enable_img_conv_f;
19397 if test "x$enable_img_conv_f" = "xyes"; then
19400 QDEFS="-DIMG_NOT_CONVERT_FILENAME"
19403 # Check whether --enable-dump-log was given.
19404 if test "${enable_dump_log+set}" = set; then
19405 enableval=$enable_dump_log;
19408 if test "x$enable_dump_log" = "xyes"; then
19409 DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
19411 if test "x$enable_dump_log" != "x" ; then
19412 DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
19417 if test "x$with_apxs" = "x" ; then
19418 # Extract the first word of "apxs", so it can be a program name with args.
19419 set dummy apxs; ac_word=$2
19420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19422 if test "${ac_cv_path_APXS+set}" = set; then
19423 echo $ECHO_N "(cached) $ECHO_C" >&6
19427 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
19430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19431 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19432 for as_dir in $as_dummy
19435 test -z "$as_dir" && as_dir=.
19436 for ac_exec_ext in '' $ac_executable_extensions; do
19437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19438 ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
19439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19446 test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
19450 APXS=$ac_cv_path_APXS
19451 if test -n "$APXS"; then
19452 { echo "$as_me:$LINENO: result: $APXS" >&5
19453 echo "${ECHO_T}$APXS" >&6; }
19455 { echo "$as_me:$LINENO: result: no" >&5
19456 echo "${ECHO_T}no" >&6; }
19460 if test "x$APXS" = "xno"; then
19461 { { echo "$as_me:$LINENO: error: apxs not found." >&5
19462 echo "$as_me: error: apxs not found." >&2;}
19463 { (exit 1); exit 1; }; }
19466 if test "x$with_apxs" != "x" ; then
19470 # Extract the first word of "libtool", so it can be a program name with args.
19471 set dummy libtool; ac_word=$2
19472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19474 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19475 echo $ECHO_N "(cached) $ECHO_C" >&6
19479 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19483 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19484 for as_dir in $as_dummy
19487 test -z "$as_dir" && as_dir=.
19488 for ac_exec_ext in '' $ac_executable_extensions; do
19489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19490 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19498 test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
19502 LIBTOOL=$ac_cv_path_LIBTOOL
19503 if test -n "$LIBTOOL"; then
19504 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19505 echo "${ECHO_T}$LIBTOOL" >&6; }
19507 { echo "$as_me:$LINENO: result: no" >&5
19508 echo "${ECHO_T}no" >&6; }
19512 if test "x$LIBTOOL" = "xno"; then
19513 { { echo "$as_me:$LINENO: error: libtool not found." >&5
19514 echo "$as_me: error: libtool not found." >&2;}
19515 { (exit 1); exit 1; }; }
19519 # Extract the first word of "Wand-config", so it can be a program name with args.
19520 set dummy Wand-config; ac_word=$2
19521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19523 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19526 case $WAND_CONFIG in
19528 ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
19531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19532 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19533 for as_dir in $as_dummy
19536 test -z "$as_dir" && as_dir=.
19537 for ac_exec_ext in '' $ac_executable_extensions; do
19538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19539 ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19547 test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
19551 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
19552 if test -n "$WAND_CONFIG"; then
19553 { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
19554 echo "${ECHO_T}$WAND_CONFIG" >&6; }
19556 { echo "$as_me:$LINENO: result: no" >&5
19557 echo "${ECHO_T}no" >&6; }
19561 if test "x$WAND_CONFIG" = "xno" ; then
19562 { { echo "$as_me:$LINENO: error: wand-config not found." >&5
19563 echo "$as_me: error: wand-config not found." >&2;}
19564 { (exit 1); exit 1; }; }
19567 if test "x$with_apr_config" = "x" ; then
19568 # Extract the first word of "apr-config", so it can be a program name with args.
19569 set dummy apr-config; ac_word=$2
19570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19572 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
19573 echo $ECHO_N "(cached) $ECHO_C" >&6
19575 case $APR_CONFIG in
19577 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
19580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19581 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19582 for as_dir in $as_dummy
19585 test -z "$as_dir" && as_dir=.
19586 for ac_exec_ext in '' $ac_executable_extensions; do
19587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19588 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19596 test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
19600 APR_CONFIG=$ac_cv_path_APR_CONFIG
19601 if test -n "$APR_CONFIG"; then
19602 { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
19603 echo "${ECHO_T}$APR_CONFIG" >&6; }
19605 { echo "$as_me:$LINENO: result: no" >&5
19606 echo "${ECHO_T}no" >&6; }
19610 if test "x$APR_CONFIG" = "xno" ; then
19611 # Extract the first word of "apr-1-config", so it can be a program name with args.
19612 set dummy apr-1-config; ac_word=$2
19613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19615 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
19616 echo $ECHO_N "(cached) $ECHO_C" >&6
19618 case $APR_1_CONFIG in
19620 ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
19623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19624 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19625 for as_dir in $as_dummy
19628 test -z "$as_dir" && as_dir=.
19629 for ac_exec_ext in '' $ac_executable_extensions; do
19630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19631 ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19639 test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
19643 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
19644 if test -n "$APR_1_CONFIG"; then
19645 { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
19646 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
19648 { echo "$as_me:$LINENO: result: no" >&5
19649 echo "${ECHO_T}no" >&6; }
19653 if test "x$APR_1_CONFIG" = "xno" ; then
19654 { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
19655 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
19656 { (exit 1); exit 1; }; }
19658 APR_CONFIG="$APR_1_CONFIG"
19662 if test "x$with_apr_config" != "x" ; then
19663 APR_CONFIG=$with_apr_config
19665 if test "x$with_apu_config" = "x" ; then
19666 # Extract the first word of "apu-config", so it can be a program name with args.
19667 set dummy apu-config; ac_word=$2
19668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19670 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
19671 echo $ECHO_N "(cached) $ECHO_C" >&6
19673 case $APU_CONFIG in
19675 ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
19678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19679 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19680 for as_dir in $as_dummy
19683 test -z "$as_dir" && as_dir=.
19684 for ac_exec_ext in '' $ac_executable_extensions; do
19685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19686 ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19687 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19694 test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
19698 APU_CONFIG=$ac_cv_path_APU_CONFIG
19699 if test -n "$APU_CONFIG"; then
19700 { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
19701 echo "${ECHO_T}$APU_CONFIG" >&6; }
19703 { echo "$as_me:$LINENO: result: no" >&5
19704 echo "${ECHO_T}no" >&6; }
19708 if test "x$APU_CONFIG" = "xno" ; then
19709 # Extract the first word of "apu-1-config", so it can be a program name with args.
19710 set dummy apu-1-config; ac_word=$2
19711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19713 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 case $APU_1_CONFIG in
19718 ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
19721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19722 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19723 for as_dir in $as_dummy
19726 test -z "$as_dir" && as_dir=.
19727 for ac_exec_ext in '' $ac_executable_extensions; do
19728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19729 ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19737 test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
19741 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
19742 if test -n "$APU_1_CONFIG"; then
19743 { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
19744 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
19746 { echo "$as_me:$LINENO: result: no" >&5
19747 echo "${ECHO_T}no" >&6; }
19751 if test "x$APU_1_CONFIG" = "xno" ; then
19752 { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
19753 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
19754 { (exit 1); exit 1; }; }
19756 APU_CONFIG="$APU_1_CONFIG"
19760 if test "x$with_apu_config" != "x" ; then
19761 APU_CONFIG=$with_apu_config
19765 # Check whether --with-iconv was given.
19766 if test "${with_iconv+set}" = set; then
19767 withval=$with_iconv;
19771 # Check whether --with-iconv_hook was given.
19772 if test "${with_iconv_hook+set}" = set; then
19773 withval=$with_iconv_hook;
19776 if test "x$with_iconv" = "x" -a "x$with_iconv_hook" = "x" ; then
19777 { echo "$as_me:$LINENO: checking for iconv_open in -liconv_hook" >&5
19778 echo $ECHO_N "checking for iconv_open in -liconv_hook... $ECHO_C" >&6; }
19779 if test "${ac_cv_lib_iconv_hook_iconv_open+set}" = set; then
19780 echo $ECHO_N "(cached) $ECHO_C" >&6
19782 ac_check_lib_save_LIBS=$LIBS
19783 LIBS="-liconv_hook $LIBS"
19784 cat >conftest.$ac_ext <<_ACEOF
19787 cat confdefs.h >>conftest.$ac_ext
19788 cat >>conftest.$ac_ext <<_ACEOF
19789 /* end confdefs.h. */
19791 /* Override any GCC internal prototype to avoid an error.
19792 Use char because int might match the return type of a GCC
19793 builtin and then its argument prototype would still apply. */
19797 char iconv_open ();
19801 return iconv_open ();
19806 rm -f conftest.$ac_objext conftest$ac_exeext
19807 if { (ac_try="$ac_link"
19808 case "(($ac_try" in
19809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19810 *) ac_try_echo=$ac_try;;
19812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19813 (eval "$ac_link") 2>conftest.er1
19815 grep -v '^ *+' conftest.er1 >conftest.err
19817 cat conftest.err >&5
19818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19819 (exit $ac_status); } && {
19820 test -z "$ac_c_werror_flag" ||
19821 test ! -s conftest.err
19822 } && test -s conftest$ac_exeext &&
19823 $as_test_x conftest$ac_exeext; then
19824 ac_cv_lib_iconv_hook_iconv_open=yes
19826 echo "$as_me: failed program was:" >&5
19827 sed 's/^/| /' conftest.$ac_ext >&5
19829 ac_cv_lib_iconv_hook_iconv_open=no
19832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19833 conftest$ac_exeext conftest.$ac_ext
19834 LIBS=$ac_check_lib_save_LIBS
19836 { echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_hook_iconv_open" >&5
19837 echo "${ECHO_T}$ac_cv_lib_iconv_hook_iconv_open" >&6; }
19838 if test $ac_cv_lib_iconv_hook_iconv_open = yes; then
19842 cat >>confdefs.h <<\_ACEOF
19843 #define HAVE_LIBICONV_HOOK
19846 LIBS="${LIBS} -liconv_hook"
19850 { echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
19851 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6; }
19852 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
19853 echo $ECHO_N "(cached) $ECHO_C" >&6
19855 ac_check_lib_save_LIBS=$LIBS
19856 LIBS="-liconv $LIBS"
19857 cat >conftest.$ac_ext <<_ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19864 /* Override any GCC internal prototype to avoid an error.
19865 Use char because int might match the return type of a GCC
19866 builtin and then its argument prototype would still apply. */
19870 char iconv_open ();
19874 return iconv_open ();
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (ac_try="$ac_link"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_link") 2>conftest.er1
19888 grep -v '^ *+' conftest.er1 >conftest.err
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); } && {
19893 test -z "$ac_c_werror_flag" ||
19894 test ! -s conftest.err
19895 } && test -s conftest$ac_exeext &&
19896 $as_test_x conftest$ac_exeext; then
19897 ac_cv_lib_iconv_iconv_open=yes
19899 echo "$as_me: failed program was:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_cv_lib_iconv_iconv_open=no
19905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19906 conftest$ac_exeext conftest.$ac_ext
19907 LIBS=$ac_check_lib_save_LIBS
19909 { echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
19910 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6; }
19911 if test $ac_cv_lib_iconv_iconv_open = yes; then
19915 cat >>confdefs.h <<\_ACEOF
19916 #define HAVE_LIBICONV
19919 LIBS="${LIBS} -liconv"
19932 if test "x$with_iconv" != "xok" ; then
19933 if test "x$with_iconv" = "xyes" ; then
19934 { { echo "$as_me:$LINENO: error:
19935 Please specify the --with-iconv option. And, please specify the place of the libiconv program.
19937 echo "$as_me: error:
19938 Please specify the --with-iconv option. And, please specify the place of the libiconv program.
19940 { (exit 1); exit 1; }; }
19942 if test "x$with_iconv" != "x" ; then
19943 LIBS="${LIBS} -L$with_iconv -liconv "
19945 cat >>confdefs.h <<\_ACEOF
19946 #define HAVE_LIBICONV
19951 if test "x$with_iconv" = "x" ; then
19952 if test "x$with_iconv_hook" = "xyes" ; then
19953 { { echo "$as_me:$LINENO: error:
19954 Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
19956 echo "$as_me: error:
19957 Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
19959 { (exit 1); exit 1; }; }
19961 if test "x$with_iconv_hook" != "x" ; then
19962 LIBS="${LIBS} -L${with_iconv_hook} -liconv_hook "
19964 cat >>confdefs.h <<\_ACEOF
19965 #define HAVE_LIBICONV_HOOK
19969 if test "x$with_iconv_hook" = "x" ; then
19970 { { echo "$as_me:$LINENO: error:
19971 Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
19973 echo "$as_me: error:
19974 Please specify the --with-iconv-hook option. And, please specify the place of the libiconv_hook program.
19976 { (exit 1); exit 1; }; }
19983 CFLAGS="${CFLAGS} -I/usr/local/include "
19988 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
19989 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
19990 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
19991 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
19992 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
19993 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
19994 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` -I${with_apache_header}"
20002 # Checks for header files.
20003 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20004 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20005 if test "${ac_cv_header_stdc+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 cat >conftest.$ac_ext <<_ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20014 #include <stdlib.h>
20015 #include <stdarg.h>
20016 #include <string.h>
20027 rm -f conftest.$ac_objext
20028 if { (ac_try="$ac_compile"
20029 case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20034 (eval "$ac_compile") 2>conftest.er1
20036 grep -v '^ *+' conftest.er1 >conftest.err
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); } && {
20041 test -z "$ac_c_werror_flag" ||
20042 test ! -s conftest.err
20043 } && test -s conftest.$ac_objext; then
20044 ac_cv_header_stdc=yes
20046 echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20049 ac_cv_header_stdc=no
20052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20054 if test $ac_cv_header_stdc = yes; then
20055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20056 cat >conftest.$ac_ext <<_ACEOF
20059 cat confdefs.h >>conftest.$ac_ext
20060 cat >>conftest.$ac_ext <<_ACEOF
20061 /* end confdefs.h. */
20062 #include <string.h>
20065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20066 $EGREP "memchr" >/dev/null 2>&1; then
20069 ac_cv_header_stdc=no
20075 if test $ac_cv_header_stdc = yes; then
20076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20077 cat >conftest.$ac_ext <<_ACEOF
20080 cat confdefs.h >>conftest.$ac_ext
20081 cat >>conftest.$ac_ext <<_ACEOF
20082 /* end confdefs.h. */
20083 #include <stdlib.h>
20086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20087 $EGREP "free" >/dev/null 2>&1; then
20090 ac_cv_header_stdc=no
20096 if test $ac_cv_header_stdc = yes; then
20097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20098 if test "$cross_compiling" = yes; then
20101 cat >conftest.$ac_ext <<_ACEOF
20104 cat confdefs.h >>conftest.$ac_ext
20105 cat >>conftest.$ac_ext <<_ACEOF
20106 /* end confdefs.h. */
20108 #include <stdlib.h>
20109 #if ((' ' & 0x0FF) == 0x020)
20110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20113 # define ISLOWER(c) \
20114 (('a' <= (c) && (c) <= 'i') \
20115 || ('j' <= (c) && (c) <= 'r') \
20116 || ('s' <= (c) && (c) <= 'z'))
20117 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20125 for (i = 0; i < 256; i++)
20126 if (XOR (islower (i), ISLOWER (i))
20127 || toupper (i) != TOUPPER (i))
20132 rm -f conftest$ac_exeext
20133 if { (ac_try="$ac_link"
20134 case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20139 (eval "$ac_link") 2>&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20143 { (case "(($ac_try" in
20144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20145 *) ac_try_echo=$ac_try;;
20147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20148 (eval "$ac_try") 2>&5
20150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20151 (exit $ac_status); }; }; then
20154 echo "$as_me: program exited with status $ac_status" >&5
20155 echo "$as_me: failed program was:" >&5
20156 sed 's/^/| /' conftest.$ac_ext >&5
20158 ( exit $ac_status )
20159 ac_cv_header_stdc=no
20161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20167 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20168 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20169 if test $ac_cv_header_stdc = yes; then
20171 cat >>confdefs.h <<\_ACEOF
20172 #define STDC_HEADERS 1
20185 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20192 echo $ECHO_N "(cached) $ECHO_C" >&6
20194 ac_res=`eval echo '${'$as_ac_Header'}'`
20195 { echo "$as_me:$LINENO: result: $ac_res" >&5
20196 echo "${ECHO_T}$ac_res" >&6; }
20198 # Is the header compilable?
20199 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20201 cat >conftest.$ac_ext <<_ACEOF
20204 cat confdefs.h >>conftest.$ac_ext
20205 cat >>conftest.$ac_ext <<_ACEOF
20206 /* end confdefs.h. */
20207 $ac_includes_default
20208 #include <$ac_header>
20210 rm -f conftest.$ac_objext
20211 if { (ac_try="$ac_compile"
20212 case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_compile") 2>conftest.er1
20219 grep -v '^ *+' conftest.er1 >conftest.err
20221 cat conftest.err >&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } && {
20224 test -z "$ac_c_werror_flag" ||
20225 test ! -s conftest.err
20226 } && test -s conftest.$ac_objext; then
20227 ac_header_compiler=yes
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20232 ac_header_compiler=no
20235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20237 echo "${ECHO_T}$ac_header_compiler" >&6; }
20239 # Is the header present?
20240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20242 cat >conftest.$ac_ext <<_ACEOF
20245 cat confdefs.h >>conftest.$ac_ext
20246 cat >>conftest.$ac_ext <<_ACEOF
20247 /* end confdefs.h. */
20248 #include <$ac_header>
20250 if { (ac_try="$ac_cpp conftest.$ac_ext"
20251 case "(($ac_try" in
20252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20253 *) ac_try_echo=$ac_try;;
20255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20258 grep -v '^ *+' conftest.er1 >conftest.err
20260 cat conftest.err >&5
20261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); } >/dev/null && {
20263 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20264 test ! -s conftest.err
20266 ac_header_preproc=yes
20268 echo "$as_me: failed program was:" >&5
20269 sed 's/^/| /' conftest.$ac_ext >&5
20271 ac_header_preproc=no
20274 rm -f conftest.err conftest.$ac_ext
20275 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20276 echo "${ECHO_T}$ac_header_preproc" >&6; }
20278 # So? What about this header?
20279 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20281 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20282 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20283 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20284 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20285 ac_header_preproc=yes
20288 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20289 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20290 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20291 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20292 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20293 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20294 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20295 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20297 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20298 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20299 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20306 echo $ECHO_N "(cached) $ECHO_C" >&6
20308 eval "$as_ac_Header=\$ac_header_preproc"
20310 ac_res=`eval echo '${'$as_ac_Header'}'`
20311 { echo "$as_me:$LINENO: result: $ac_res" >&5
20312 echo "${ECHO_T}$ac_res" >&6; }
20315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20316 cat >>confdefs.h <<_ACEOF
20317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20324 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
20327 for ac_header in apr_shm.h apr_global_mutex.h
20329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20334 echo $ECHO_N "(cached) $ECHO_C" >&6
20336 ac_res=`eval echo '${'$as_ac_Header'}'`
20337 { echo "$as_me:$LINENO: result: $ac_res" >&5
20338 echo "${ECHO_T}$ac_res" >&6; }
20340 # Is the header compilable?
20341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20343 cat >conftest.$ac_ext <<_ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20349 $ac_includes_default
20350 #include <$ac_header>
20352 rm -f conftest.$ac_objext
20353 if { (ac_try="$ac_compile"
20354 case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_compile") 2>conftest.er1
20361 grep -v '^ *+' conftest.er1 >conftest.err
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest.$ac_objext; then
20369 ac_header_compiler=yes
20371 echo "$as_me: failed program was:" >&5
20372 sed 's/^/| /' conftest.$ac_ext >&5
20374 ac_header_compiler=no
20377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20379 echo "${ECHO_T}$ac_header_compiler" >&6; }
20381 # Is the header present?
20382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20384 cat >conftest.$ac_ext <<_ACEOF
20387 cat confdefs.h >>conftest.$ac_ext
20388 cat >>conftest.$ac_ext <<_ACEOF
20389 /* end confdefs.h. */
20390 #include <$ac_header>
20392 if { (ac_try="$ac_cpp conftest.$ac_ext"
20393 case "(($ac_try" in
20394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20395 *) ac_try_echo=$ac_try;;
20397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20400 grep -v '^ *+' conftest.er1 >conftest.err
20402 cat conftest.err >&5
20403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20404 (exit $ac_status); } >/dev/null && {
20405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20406 test ! -s conftest.err
20408 ac_header_preproc=yes
20410 echo "$as_me: failed program was:" >&5
20411 sed 's/^/| /' conftest.$ac_ext >&5
20413 ac_header_preproc=no
20416 rm -f conftest.err conftest.$ac_ext
20417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20418 echo "${ECHO_T}$ac_header_preproc" >&6; }
20420 # So? What about this header?
20421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20427 ac_header_preproc=yes
20430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20448 echo $ECHO_N "(cached) $ECHO_C" >&6
20450 eval "$as_ac_Header=\$ac_header_preproc"
20452 ac_res=`eval echo '${'$as_ac_Header'}'`
20453 { echo "$as_me:$LINENO: result: $ac_res" >&5
20454 echo "${ECHO_T}$ac_res" >&6; }
20457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20458 cat >>confdefs.h <<_ACEOF
20459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20467 for ac_header in apr.h
20469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20476 ac_res=`eval echo '${'$as_ac_Header'}'`
20477 { echo "$as_me:$LINENO: result: $ac_res" >&5
20478 echo "${ECHO_T}$ac_res" >&6; }
20480 # Is the header compilable?
20481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20483 cat >conftest.$ac_ext <<_ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20489 $ac_includes_default
20490 #include <$ac_header>
20492 rm -f conftest.$ac_objext
20493 if { (ac_try="$ac_compile"
20494 case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_compile") 2>conftest.er1
20501 grep -v '^ *+' conftest.er1 >conftest.err
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } && {
20506 test -z "$ac_c_werror_flag" ||
20507 test ! -s conftest.err
20508 } && test -s conftest.$ac_objext; then
20509 ac_header_compiler=yes
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20514 ac_header_compiler=no
20517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20519 echo "${ECHO_T}$ac_header_compiler" >&6; }
20521 # Is the header present?
20522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20524 cat >conftest.$ac_ext <<_ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h. */
20530 #include <$ac_header>
20532 if { (ac_try="$ac_cpp conftest.$ac_ext"
20533 case "(($ac_try" in
20534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20540 grep -v '^ *+' conftest.er1 >conftest.err
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } >/dev/null && {
20545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20546 test ! -s conftest.err
20548 ac_header_preproc=yes
20550 echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20553 ac_header_preproc=no
20556 rm -f conftest.err conftest.$ac_ext
20557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20558 echo "${ECHO_T}$ac_header_preproc" >&6; }
20560 # So? What about this header?
20561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20567 ac_header_preproc=yes
20570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20588 echo $ECHO_N "(cached) $ECHO_C" >&6
20590 eval "$as_ac_Header=\$ac_header_preproc"
20592 ac_res=`eval echo '${'$as_ac_Header'}'`
20593 { echo "$as_me:$LINENO: result: $ac_res" >&5
20594 echo "${ECHO_T}$ac_res" >&6; }
20597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20598 cat >>confdefs.h <<_ACEOF
20599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20607 for ac_header in ap_config.h
20609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20614 echo $ECHO_N "(cached) $ECHO_C" >&6
20616 ac_res=`eval echo '${'$as_ac_Header'}'`
20617 { echo "$as_me:$LINENO: result: $ac_res" >&5
20618 echo "${ECHO_T}$ac_res" >&6; }
20620 # Is the header compilable?
20621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20623 cat >conftest.$ac_ext <<_ACEOF
20626 cat confdefs.h >>conftest.$ac_ext
20627 cat >>conftest.$ac_ext <<_ACEOF
20628 /* end confdefs.h. */
20629 $ac_includes_default
20630 #include <$ac_header>
20632 rm -f conftest.$ac_objext
20633 if { (ac_try="$ac_compile"
20634 case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_compile") 2>conftest.er1
20641 grep -v '^ *+' conftest.er1 >conftest.err
20643 cat conftest.err >&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } && {
20646 test -z "$ac_c_werror_flag" ||
20647 test ! -s conftest.err
20648 } && test -s conftest.$ac_objext; then
20649 ac_header_compiler=yes
20651 echo "$as_me: failed program was:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ac_header_compiler=no
20657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20659 echo "${ECHO_T}$ac_header_compiler" >&6; }
20661 # Is the header present?
20662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20664 cat >conftest.$ac_ext <<_ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h. */
20670 #include <$ac_header>
20672 if { (ac_try="$ac_cpp conftest.$ac_ext"
20673 case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20680 grep -v '^ *+' conftest.er1 >conftest.err
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } >/dev/null && {
20685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20686 test ! -s conftest.err
20688 ac_header_preproc=yes
20690 echo "$as_me: failed program was:" >&5
20691 sed 's/^/| /' conftest.$ac_ext >&5
20693 ac_header_preproc=no
20696 rm -f conftest.err conftest.$ac_ext
20697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20698 echo "${ECHO_T}$ac_header_preproc" >&6; }
20700 # So? What about this header?
20701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20707 ac_header_preproc=yes
20710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20728 echo $ECHO_N "(cached) $ECHO_C" >&6
20730 eval "$as_ac_Header=\$ac_header_preproc"
20732 ac_res=`eval echo '${'$as_ac_Header'}'`
20733 { echo "$as_me:$LINENO: result: $ac_res" >&5
20734 echo "${ECHO_T}$ac_res" >&6; }
20737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20738 cat >>confdefs.h <<_ACEOF
20739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20747 for ac_header in ap_regex.h
20749 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 cat >conftest.$ac_ext <<_ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h. */
20765 #ifdef HAVE_AP_CONFIG_H
20766 #include "ap_config.h"
20770 #include <$ac_header>
20772 rm -f conftest.$ac_objext
20773 if { (ac_try="$ac_compile"
20774 case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779 (eval "$ac_compile") 2>conftest.er1
20781 grep -v '^ *+' conftest.er1 >conftest.err
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); } && {
20786 test -z "$ac_c_werror_flag" ||
20787 test ! -s conftest.err
20788 } && test -s conftest.$ac_objext; then
20789 eval "$as_ac_Header=yes"
20791 echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20794 eval "$as_ac_Header=no"
20797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20799 ac_res=`eval echo '${'$as_ac_Header'}'`
20800 { echo "$as_me:$LINENO: result: $ac_res" >&5
20801 echo "${ECHO_T}$ac_res" >&6; }
20802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20803 cat >>confdefs.h <<_ACEOF
20804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20807 cat >>confdefs.h <<\_ACEOF
20808 #define HAVE_AP_REGEX_H
20816 # Checks for typedefs, structures, and compiler characteristics.
20817 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20818 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20819 if test "${ac_cv_c_const+set}" = set; then
20820 echo $ECHO_N "(cached) $ECHO_C" >&6
20822 cat >conftest.$ac_ext <<_ACEOF
20825 cat confdefs.h >>conftest.$ac_ext
20826 cat >>conftest.$ac_ext <<_ACEOF
20827 /* end confdefs.h. */
20832 /* FIXME: Include the comments suggested by Paul. */
20833 #ifndef __cplusplus
20834 /* Ultrix mips cc rejects this. */
20835 typedef int charset[2];
20837 /* SunOS 4.1.1 cc rejects this. */
20838 char const *const *pcpcc;
20840 /* NEC SVR4.0.2 mips cc rejects this. */
20841 struct point {int x, y;};
20842 static struct point const zero = {0,0};
20843 /* AIX XL C 1.02.0.0 rejects this.
20844 It does not let you subtract one const X* pointer from another in
20845 an arm of an if-expression whose if-part is not a constant
20847 const char *g = "string";
20848 pcpcc = &g + (g ? g-g : 0);
20849 /* HPUX 7.0 cc rejects these. */
20851 ppc = (char**) pcpcc;
20852 pcpcc = (char const *const *) ppc;
20853 { /* SCO 3.2v4 cc rejects this. */
20855 char const *s = 0 ? (char *) 0 : (char const *) 0;
20860 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20861 int x[] = {25, 17};
20862 const int *foo = &x[0];
20865 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20866 typedef const int *iptr;
20870 { /* AIX XL C 1.02.0.0 rejects this saying
20871 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20872 struct s { int j; const int *ap[3]; };
20873 struct s *b; b->j = 5;
20875 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20876 const int foo = 10;
20877 if (!foo) return 0;
20879 return !cs[0] && !zero.x;
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_compile") 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } && {
20900 test -z "$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20902 } && test -s conftest.$ac_objext; then
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20914 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20915 if test $ac_cv_c_const = no; then
20917 cat >>confdefs.h <<\_ACEOF
20924 # Checks for library functions.
20926 for ac_header in stdlib.h
20928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20933 echo $ECHO_N "(cached) $ECHO_C" >&6
20935 ac_res=`eval echo '${'$as_ac_Header'}'`
20936 { echo "$as_me:$LINENO: result: $ac_res" >&5
20937 echo "${ECHO_T}$ac_res" >&6; }
20939 # Is the header compilable?
20940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20942 cat >conftest.$ac_ext <<_ACEOF
20945 cat confdefs.h >>conftest.$ac_ext
20946 cat >>conftest.$ac_ext <<_ACEOF
20947 /* end confdefs.h. */
20948 $ac_includes_default
20949 #include <$ac_header>
20951 rm -f conftest.$ac_objext
20952 if { (ac_try="$ac_compile"
20953 case "(($ac_try" in
20954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20955 *) ac_try_echo=$ac_try;;
20957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20958 (eval "$ac_compile") 2>conftest.er1
20960 grep -v '^ *+' conftest.er1 >conftest.err
20962 cat conftest.err >&5
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); } && {
20965 test -z "$ac_c_werror_flag" ||
20966 test ! -s conftest.err
20967 } && test -s conftest.$ac_objext; then
20968 ac_header_compiler=yes
20970 echo "$as_me: failed program was:" >&5
20971 sed 's/^/| /' conftest.$ac_ext >&5
20973 ac_header_compiler=no
20976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20978 echo "${ECHO_T}$ac_header_compiler" >&6; }
20980 # Is the header present?
20981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20983 cat >conftest.$ac_ext <<_ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20989 #include <$ac_header>
20991 if { (ac_try="$ac_cpp conftest.$ac_ext"
20992 case "(($ac_try" in
20993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20994 *) ac_try_echo=$ac_try;;
20996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20999 grep -v '^ *+' conftest.er1 >conftest.err
21001 cat conftest.err >&5
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } >/dev/null && {
21004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21005 test ! -s conftest.err
21007 ac_header_preproc=yes
21009 echo "$as_me: failed program was:" >&5
21010 sed 's/^/| /' conftest.$ac_ext >&5
21012 ac_header_preproc=no
21015 rm -f conftest.err conftest.$ac_ext
21016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21017 echo "${ECHO_T}$ac_header_preproc" >&6; }
21019 # So? What about this header?
21020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21026 ac_header_preproc=yes
21029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21047 echo $ECHO_N "(cached) $ECHO_C" >&6
21049 eval "$as_ac_Header=\$ac_header_preproc"
21051 ac_res=`eval echo '${'$as_ac_Header'}'`
21052 { echo "$as_me:$LINENO: result: $ac_res" >&5
21053 echo "${ECHO_T}$ac_res" >&6; }
21056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21057 cat >>confdefs.h <<_ACEOF
21058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21065 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21066 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21067 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21068 echo $ECHO_N "(cached) $ECHO_C" >&6
21070 if test "$cross_compiling" = yes; then
21071 ac_cv_func_malloc_0_nonnull=no
21073 cat >conftest.$ac_ext <<_ACEOF
21076 cat confdefs.h >>conftest.$ac_ext
21077 cat >>conftest.$ac_ext <<_ACEOF
21078 /* end confdefs.h. */
21079 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21080 # include <stdlib.h>
21088 return ! malloc (0);
21093 rm -f conftest$ac_exeext
21094 if { (ac_try="$ac_link"
21095 case "(($ac_try" in
21096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21097 *) ac_try_echo=$ac_try;;
21099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21100 (eval "$ac_link") 2>&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21104 { (case "(($ac_try" in
21105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21106 *) ac_try_echo=$ac_try;;
21108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21109 (eval "$ac_try") 2>&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; }; then
21113 ac_cv_func_malloc_0_nonnull=yes
21115 echo "$as_me: program exited with status $ac_status" >&5
21116 echo "$as_me: failed program was:" >&5
21117 sed 's/^/| /' conftest.$ac_ext >&5
21119 ( exit $ac_status )
21120 ac_cv_func_malloc_0_nonnull=no
21122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21127 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21128 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21129 if test $ac_cv_func_malloc_0_nonnull = yes; then
21131 cat >>confdefs.h <<\_ACEOF
21132 #define HAVE_MALLOC 1
21136 cat >>confdefs.h <<\_ACEOF
21137 #define HAVE_MALLOC 0
21140 case " $LIBOBJS " in
21141 *" malloc.$ac_objext "* ) ;;
21142 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21147 cat >>confdefs.h <<\_ACEOF
21148 #define malloc rpl_malloc
21163 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
21165 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21166 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21167 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21168 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21169 echo $ECHO_N "(cached) $ECHO_C" >&6
21171 cat >conftest.$ac_ext <<_ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h. */
21177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21179 #define $ac_func innocuous_$ac_func
21181 /* System header to define __stub macros and hopefully few prototypes,
21182 which can conflict with char $ac_func (); below.
21183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21184 <limits.h> exists even on freestanding compilers. */
21187 # include <limits.h>
21189 # include <assert.h>
21194 /* Override any GCC internal prototype to avoid an error.
21195 Use char because int might match the return type of a GCC
21196 builtin and then its argument prototype would still apply. */
21201 /* The GNU C library defines this for functions which it implements
21202 to always fail with ENOSYS. Some functions are actually named
21203 something starting with __ and the normal name is an alias. */
21204 #if defined __stub_$ac_func || defined __stub___$ac_func
21211 return $ac_func ();
21216 rm -f conftest.$ac_objext conftest$ac_exeext
21217 if { (ac_try="$ac_link"
21218 case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_link") 2>conftest.er1
21225 grep -v '^ *+' conftest.er1 >conftest.err
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21229 (exit $ac_status); } && {
21230 test -z "$ac_c_werror_flag" ||
21231 test ! -s conftest.err
21232 } && test -s conftest$ac_exeext &&
21233 $as_test_x conftest$ac_exeext; then
21234 eval "$as_ac_var=yes"
21236 echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 eval "$as_ac_var=no"
21242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21243 conftest$ac_exeext conftest.$ac_ext
21245 ac_res=`eval echo '${'$as_ac_var'}'`
21246 { echo "$as_me:$LINENO: result: $ac_res" >&5
21247 echo "${ECHO_T}$ac_res" >&6; }
21248 if test `eval echo '${'$as_ac_var'}'` = yes; then
21249 cat >>confdefs.h <<_ACEOF
21250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21259 ac_config_files="$ac_config_files Makefile src/Makefile"
21261 cat >confcache <<\_ACEOF
21262 # This file is a shell script that caches the results of configure
21263 # tests run on this system so they can be shared between configure
21264 # scripts and configure runs, see configure's option --config-cache.
21265 # It is not useful on other systems. If it contains results you don't
21266 # want to keep, you may remove or edit it.
21268 # config.status only pays attention to the cache file if you give it
21269 # the --recheck option to rerun configure.
21271 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21272 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21273 # following values.
21277 # The following way of writing the cache mishandles newlines in values,
21278 # but we know of no workaround that is simple, portable, and efficient.
21279 # So, we kill variables containing newlines.
21280 # Ultrix sh set writes to stderr and can't be redirected directly,
21281 # and sets the high bit in the cache file unless we assign to the vars.
21283 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21284 eval ac_val=\$$ac_var
21288 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21289 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21292 _ | IFS | as_nl) ;; #(
21293 *) $as_unset $ac_var ;;
21299 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21300 *${as_nl}ac_space=\ *)
21301 # `set' does not quote correctly, so add quotes (double-quote
21302 # substitution turns \\\\ into \\, and sed turns \\ into \).
21305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21308 # `set' quotes correctly as required by POSIX, so do not add quotes.
21309 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21318 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21320 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21322 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21323 if test -w "$cache_file"; then
21324 test "x$cache_file" != "x/dev/null" &&
21325 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21326 echo "$as_me: updating cache $cache_file" >&6;}
21327 cat confcache >$cache_file
21329 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21330 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21335 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21336 # Let make expand exec_prefix.
21337 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21339 DEFS=-DHAVE_CONFIG_H
21343 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21344 # 1. Remove the extension, and $U if already installed.
21345 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21346 ac_i=`echo "$ac_i" | sed "$ac_script"`
21347 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21348 # will be set to the directory where LIBOBJS objects are built.
21349 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21350 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21352 LIBOBJS=$ac_libobjs
21354 LTLIBOBJS=$ac_ltlibobjs
21357 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21358 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21359 Usually this means the macro was only invoked conditionally." >&5
21360 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21361 Usually this means the macro was only invoked conditionally." >&2;}
21362 { (exit 1); exit 1; }; }
21364 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21365 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21366 Usually this means the macro was only invoked conditionally." >&5
21367 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21368 Usually this means the macro was only invoked conditionally." >&2;}
21369 { (exit 1); exit 1; }; }
21371 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21372 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21373 Usually this means the macro was only invoked conditionally." >&5
21374 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21375 Usually this means the macro was only invoked conditionally." >&2;}
21376 { (exit 1); exit 1; }; }
21379 : ${CONFIG_STATUS=./config.status}
21380 ac_clean_files_save=$ac_clean_files
21381 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21382 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21383 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21384 cat >$CONFIG_STATUS <<_ACEOF
21386 # Generated by $as_me.
21387 # Run this file to recreate the current configuration.
21388 # Compiler output produced by configure, useful for debugging
21389 # configure, is in config.log if it exists.
21392 ac_cs_recheck=false
21394 SHELL=\${CONFIG_SHELL-$SHELL}
21397 cat >>$CONFIG_STATUS <<\_ACEOF
21398 ## --------------------- ##
21399 ## M4sh Initialization. ##
21400 ## --------------------- ##
21402 # Be more Bourne compatible
21403 DUALCASE=1; export DUALCASE # for MKS sh
21404 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21407 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21408 # is contrary to our usage. Disable this feature.
21409 alias -g '${1+"$@"}'='"$@"'
21410 setopt NO_GLOB_SUBST
21412 case `(set -o) 2>/dev/null` in
21413 *posix*) set -o posix ;;
21422 # Avoid depending upon Character Ranges.
21423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21426 as_cr_digits='0123456789'
21427 as_cr_alnum=$as_cr_Letters$as_cr_digits
21429 # The user is always right.
21430 if test "${PATH_SEPARATOR+set}" != set; then
21431 echo "#! /bin/sh" >conf$$.sh
21432 echo "exit 0" >>conf$$.sh
21434 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21442 # Support unset when possible.
21443 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21451 # We need space, tab and new line, in precisely that order. Quoting is
21452 # there to prevent editors from complaining about space-tab.
21453 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21454 # splitting by setting IFS to empty value.)
21459 # Find who we are. Look in the path if we contain no directory separator.
21461 *[\\/]* ) as_myself=$0 ;;
21462 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21463 for as_dir in $PATH
21466 test -z "$as_dir" && as_dir=.
21467 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21473 # We did not find ourselves, most probably we were run as `sh COMMAND'
21474 # in which case we are not to be found in the path.
21475 if test "x$as_myself" = x; then
21478 if test ! -f "$as_myself"; then
21479 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21480 { (exit 1); exit 1; }
21483 # Work around bugs in pre-3.0 UWIN ksh.
21484 for as_var in ENV MAIL MAILPATH
21485 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21493 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21494 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21495 LC_TELEPHONE LC_TIME
21497 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21498 eval $as_var=C; export $as_var
21500 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21504 # Required to use basename.
21505 if expr a : '\(a\)' >/dev/null 2>&1 &&
21506 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21512 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21513 as_basename=basename
21519 # Name of the executable.
21520 as_me=`$as_basename -- "$0" ||
21521 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21522 X"$0" : 'X\(//\)$' \| \
21523 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21525 sed '/^.*\/\([^/][^/]*\)\/*$/{
21544 as_lineno_1=$LINENO
21545 as_lineno_2=$LINENO
21546 test "x$as_lineno_1" != "x$as_lineno_2" &&
21547 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21549 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21550 # uniformly replaced by the line number. The first 'sed' inserts a
21551 # line-number line after each line using $LINENO; the second 'sed'
21552 # does the real work. The second script uses 'N' to pair each
21553 # line-number line with the line containing $LINENO, and appends
21554 # trailing '-' during substitution so that $LINENO is not a special
21555 # case at line end.
21556 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21557 # scripts with optimization help from Paolo Bonzini. Blame Lee
21558 # E. McMahon (1931-1989) for sed's syntax. :-)
21570 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21573 ' >$as_me.lineno &&
21574 chmod +x "$as_me.lineno" ||
21575 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21576 { (exit 1); exit 1; }; }
21578 # Don't try to exec as it changes $[0], causing all sort of problems
21579 # (the dirname of $[0] is not the place where we might find the
21580 # original and so on. Autoconf is especially sensitive to this).
21581 . "./$as_me.lineno"
21582 # Exit status is that of the last command.
21587 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21593 ECHO_C= ECHO_N= ECHO_T=
21594 case `echo -n x` in
21596 case `echo 'x\c'` in
21597 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21604 if expr a : '\(a\)' >/dev/null 2>&1 &&
21605 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21611 rm -f conf$$ conf$$.exe conf$$.file
21612 if test -d conf$$.dir; then
21613 rm -f conf$$.dir/conf$$.file
21619 if ln -s conf$$.file conf$$ 2>/dev/null; then
21621 # ... but there are two gotchas:
21622 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21623 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21624 # In both cases, we have to default to `cp -p'.
21625 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21627 elif ln conf$$.file conf$$ 2>/dev/null; then
21632 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21633 rmdir conf$$.dir 2>/dev/null
21635 if mkdir -p . 2>/dev/null; then
21638 test -d ./-p && rmdir ./-p
21642 if test -x / >/dev/null 2>&1; then
21643 as_test_x='test -x'
21645 if ls -dL / >/dev/null 2>&1; then
21652 if test -d "$1"; then
21658 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21659 ???[sx]*):;;*)false;;esac;fi
21663 as_executable_p=$as_test_x
21665 # Sed expression to map a string onto a valid CPP name.
21666 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21668 # Sed expression to map a string onto a valid variable name.
21669 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21674 # Save the log message, to keep $[0] and so on meaningful, and to
21675 # report actual input values of CONFIG_FILES etc. instead of their
21676 # values after options handling.
21678 This file was extended by mod_chxj $as_me 0.8.3-1, which was
21679 generated by GNU Autoconf 2.61. Invocation command line was
21681 CONFIG_FILES = $CONFIG_FILES
21682 CONFIG_HEADERS = $CONFIG_HEADERS
21683 CONFIG_LINKS = $CONFIG_LINKS
21684 CONFIG_COMMANDS = $CONFIG_COMMANDS
21687 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21692 cat >>$CONFIG_STATUS <<_ACEOF
21693 # Files that config.status was made for.
21694 config_files="$ac_config_files"
21695 config_headers="$ac_config_headers"
21696 config_commands="$ac_config_commands"
21700 cat >>$CONFIG_STATUS <<\_ACEOF
21702 \`$as_me' instantiates files from templates according to the
21703 current configuration.
21705 Usage: $0 [OPTIONS] [FILE]...
21707 -h, --help print this help, then exit
21708 -V, --version print version number and configuration settings, then exit
21709 -q, --quiet do not print progress messages
21710 -d, --debug don't remove temporary files
21711 --recheck update $as_me by reconfiguring in the same conditions
21712 --file=FILE[:TEMPLATE]
21713 instantiate the configuration file FILE
21714 --header=FILE[:TEMPLATE]
21715 instantiate the configuration header FILE
21717 Configuration files:
21720 Configuration headers:
21723 Configuration commands:
21726 Report bugs to <bug-autoconf@gnu.org>."
21729 cat >>$CONFIG_STATUS <<_ACEOF
21731 mod_chxj config.status 0.8.3-1
21732 configured by $0, generated by GNU Autoconf 2.61,
21733 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21735 Copyright (C) 2006 Free Software Foundation, Inc.
21736 This config.status script is free software; the Free Software Foundation
21737 gives unlimited permission to copy, distribute and modify it."
21744 cat >>$CONFIG_STATUS <<\_ACEOF
21745 # If no file are specified by the user, then we need to provide default
21746 # value. By we need to know if files were specified by the user.
21752 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21753 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21764 # Handling of the options.
21765 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21767 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21768 echo "$ac_cs_version"; exit ;;
21769 --debug | --debu | --deb | --de | --d | -d )
21771 --file | --fil | --fi | --f )
21773 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21774 ac_need_defaults=false;;
21775 --header | --heade | --head | --hea )
21777 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21778 ac_need_defaults=false;;
21780 # Conflict between --help and --header
21781 { echo "$as_me: error: ambiguous option: $1
21782 Try \`$0 --help' for more information." >&2
21783 { (exit 1); exit 1; }; };;
21784 --help | --hel | -h )
21785 echo "$ac_cs_usage"; exit ;;
21786 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21787 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21790 # This is an error.
21791 -*) { echo "$as_me: error: unrecognized option: $1
21792 Try \`$0 --help' for more information." >&2
21793 { (exit 1); exit 1; }; } ;;
21795 *) ac_config_targets="$ac_config_targets $1"
21796 ac_need_defaults=false ;;
21802 ac_configure_extra_args=
21804 if $ac_cs_silent; then
21806 ac_configure_extra_args="$ac_configure_extra_args --silent"
21810 cat >>$CONFIG_STATUS <<_ACEOF
21811 if \$ac_cs_recheck; then
21812 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21813 CONFIG_SHELL=$SHELL
21814 export CONFIG_SHELL
21815 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21819 cat >>$CONFIG_STATUS <<\_ACEOF
21823 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21824 ## Running $as_me. ##
21830 cat >>$CONFIG_STATUS <<_ACEOF
21834 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21838 cat >>$CONFIG_STATUS <<\_ACEOF
21840 # Handling of arguments.
21841 for ac_config_target in $ac_config_targets
21843 case $ac_config_target in
21844 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
21845 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21846 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21847 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21849 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21850 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21851 { (exit 1); exit 1; }; };;
21856 # If the user did not use the arguments to specify the items to instantiate,
21857 # then the envvar interface is used. Set only those that are not.
21858 # We use the long form for the default assignment because of an extremely
21859 # bizarre bug on SunOS 4.1.3.
21860 if $ac_need_defaults; then
21861 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21862 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21863 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21866 # Have a temporary directory for convenience. Make it in the build tree
21867 # simply because there is no reason against having it here, and in addition,
21868 # creating and moving files from /tmp can sometimes cause problems.
21869 # Hook for its removal unless debugging.
21870 # Note that there is a small window in which the directory will not be cleaned:
21871 # after its creation but before its name has been assigned to `$tmp'.
21875 trap 'exit_status=$?
21876 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21878 trap '{ (exit 1); exit 1; }' 1 2 13 15
21880 # Create a (secure) tmp directory for tmp files.
21883 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21884 test -n "$tmp" && test -d "$tmp"
21887 tmp=./conf$$-$RANDOM
21888 (umask 077 && mkdir "$tmp")
21891 echo "$me: cannot create a temporary directory in ." >&2
21892 { (exit 1); exit 1; }
21896 # Set up the sed scripts for CONFIG_FILES section.
21899 # No need to generate the scripts if there are no CONFIG_FILES.
21900 # This happens for instance when ./config.status config.h
21901 if test -n "$CONFIG_FILES"; then
21908 for ac_last_try in false false false false false :; do
21909 cat >conf$$subs.sed <<_ACEOF
21910 SHELL!$SHELL$ac_delim
21911 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21912 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21913 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21914 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21915 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21916 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21917 exec_prefix!$exec_prefix$ac_delim
21918 prefix!$prefix$ac_delim
21919 program_transform_name!$program_transform_name$ac_delim
21920 bindir!$bindir$ac_delim
21921 sbindir!$sbindir$ac_delim
21922 libexecdir!$libexecdir$ac_delim
21923 datarootdir!$datarootdir$ac_delim
21924 datadir!$datadir$ac_delim
21925 sysconfdir!$sysconfdir$ac_delim
21926 sharedstatedir!$sharedstatedir$ac_delim
21927 localstatedir!$localstatedir$ac_delim
21928 includedir!$includedir$ac_delim
21929 oldincludedir!$oldincludedir$ac_delim
21930 docdir!$docdir$ac_delim
21931 infodir!$infodir$ac_delim
21932 htmldir!$htmldir$ac_delim
21933 dvidir!$dvidir$ac_delim
21934 pdfdir!$pdfdir$ac_delim
21935 psdir!$psdir$ac_delim
21936 libdir!$libdir$ac_delim
21937 localedir!$localedir$ac_delim
21938 mandir!$mandir$ac_delim
21939 DEFS!$DEFS$ac_delim
21940 ECHO_C!$ECHO_C$ac_delim
21941 ECHO_N!$ECHO_N$ac_delim
21942 ECHO_T!$ECHO_T$ac_delim
21943 LIBS!$LIBS$ac_delim
21944 build_alias!$build_alias$ac_delim
21945 host_alias!$host_alias$ac_delim
21946 target_alias!$target_alias$ac_delim
21947 build!$build$ac_delim
21948 build_cpu!$build_cpu$ac_delim
21949 build_vendor!$build_vendor$ac_delim
21950 build_os!$build_os$ac_delim
21951 host!$host$ac_delim
21952 host_cpu!$host_cpu$ac_delim
21953 host_vendor!$host_vendor$ac_delim
21954 host_os!$host_os$ac_delim
21955 target!$target$ac_delim
21956 target_cpu!$target_cpu$ac_delim
21957 target_vendor!$target_vendor$ac_delim
21958 target_os!$target_os$ac_delim
21959 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21960 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21961 INSTALL_DATA!$INSTALL_DATA$ac_delim
21962 CYGPATH_W!$CYGPATH_W$ac_delim
21963 PACKAGE!$PACKAGE$ac_delim
21964 VERSION!$VERSION$ac_delim
21965 ACLOCAL!$ACLOCAL$ac_delim
21966 AUTOCONF!$AUTOCONF$ac_delim
21967 AUTOMAKE!$AUTOMAKE$ac_delim
21968 AUTOHEADER!$AUTOHEADER$ac_delim
21969 MAKEINFO!$MAKEINFO$ac_delim
21970 install_sh!$install_sh$ac_delim
21971 STRIP!$STRIP$ac_delim
21972 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
21973 mkdir_p!$mkdir_p$ac_delim
21975 SET_MAKE!$SET_MAKE$ac_delim
21976 am__leading_dot!$am__leading_dot$ac_delim
21977 AMTAR!$AMTAR$ac_delim
21978 am__tar!$am__tar$ac_delim
21979 am__untar!$am__untar$ac_delim
21981 CFLAGS!$CFLAGS$ac_delim
21982 LDFLAGS!$LDFLAGS$ac_delim
21983 CPPFLAGS!$CPPFLAGS$ac_delim
21984 ac_ct_CC!$ac_ct_CC$ac_delim
21985 EXEEXT!$EXEEXT$ac_delim
21986 OBJEXT!$OBJEXT$ac_delim
21987 DEPDIR!$DEPDIR$ac_delim
21988 am__include!$am__include$ac_delim
21989 am__quote!$am__quote$ac_delim
21990 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
21991 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
21992 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
21993 CCDEPMODE!$CCDEPMODE$ac_delim
21994 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
21995 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
21996 GREP!$GREP$ac_delim
21997 EGREP!$EGREP$ac_delim
21998 LN_S!$LN_S$ac_delim
21999 ECHO!$ECHO$ac_delim
22001 RANLIB!$RANLIB$ac_delim
22004 CXXFLAGS!$CXXFLAGS$ac_delim
22005 ac_ct_CXX!$ac_ct_CXX$ac_delim
22006 CXXDEPMODE!$CXXDEPMODE$ac_delim
22009 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22011 elif $ac_last_try; then
22012 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22013 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22014 { (exit 1); exit 1; }; }
22016 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22020 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22021 if test -n "$ac_eof"; then
22022 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22023 ac_eof=`expr $ac_eof + 1`
22026 cat >>$CONFIG_STATUS <<_ACEOF
22027 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22031 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22032 s/^/s,@/; s/!/@,|#_!!_#|/
22035 s/'"$ac_delim"'$/,g/; t
22037 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22038 ' >>$CONFIG_STATUS <conf$$subs.sed
22039 rm -f conf$$subs.sed
22040 cat >>$CONFIG_STATUS <<_ACEOF
22046 for ac_last_try in false false false false false :; do
22047 cat >conf$$subs.sed <<_ACEOF
22048 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22049 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22050 CXXCPP!$CXXCPP$ac_delim
22052 FFLAGS!$FFLAGS$ac_delim
22053 ac_ct_F77!$ac_ct_F77$ac_delim
22054 LIBTOOL!$LIBTOOL$ac_delim
22055 APXS!$APXS$ac_delim
22056 WAND_CONFIG!$WAND_CONFIG$ac_delim
22057 APR_CONFIG!$APR_CONFIG$ac_delim
22058 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22059 APU_CONFIG!$APU_CONFIG$ac_delim
22060 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22061 with_apache_header!$with_apache_header$ac_delim
22062 QDEFS!$QDEFS$ac_delim
22063 DDEFS!$DDEFS$ac_delim
22064 LIBOBJS!$LIBOBJS$ac_delim
22065 LTLIBOBJS!$LTLIBOBJS$ac_delim
22068 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 18; then
22070 elif $ac_last_try; then
22071 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22072 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22073 { (exit 1); exit 1; }; }
22075 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22079 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22080 if test -n "$ac_eof"; then
22081 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22082 ac_eof=`expr $ac_eof + 1`
22085 cat >>$CONFIG_STATUS <<_ACEOF
22086 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22087 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22090 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22091 s/^/s,@/; s/!/@,|#_!!_#|/
22094 s/'"$ac_delim"'$/,g/; t
22096 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22097 ' >>$CONFIG_STATUS <conf$$subs.sed
22098 rm -f conf$$subs.sed
22099 cat >>$CONFIG_STATUS <<_ACEOF
22106 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22107 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22108 # trailing colons and then remove the whole line if VPATH becomes empty
22109 # (actually we leave an empty line to preserve line numbers).
22110 if test "x$srcdir" = x.; then
22111 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22112 s/:*\$(srcdir):*/:/
22113 s/:*\${srcdir}:*/:/
22115 s/^\([^=]*=[ ]*\):*/\1/
22121 cat >>$CONFIG_STATUS <<\_ACEOF
22122 fi # test -n "$CONFIG_FILES"
22125 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22128 :[FHLC]) ac_mode=$ac_tag; continue;;
22130 case $ac_mode$ac_tag in
22132 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22133 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22134 { (exit 1); exit 1; }; };;
22135 :[FH]-) ac_tag=-:-;;
22136 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22153 -) ac_f="$tmp/stdin";;
22154 *) # Look for the file first in the build tree, then in the source tree
22155 # (if the path is not absolute). The absolute path cannot be DOS-style,
22156 # because $ac_f cannot contain `:'.
22160 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22162 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22163 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22164 { (exit 1); exit 1; }; };;
22166 ac_file_inputs="$ac_file_inputs $ac_f"
22169 # Let's still pretend it is `configure' which instantiates (i.e., don't
22170 # use $as_me), people would be surprised to read:
22171 # /* config.h. Generated by config.status. */
22172 configure_input="Generated from "`IFS=:
22173 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22174 if test x"$ac_file" != x-; then
22175 configure_input="$ac_file. $configure_input"
22176 { echo "$as_me:$LINENO: creating $ac_file" >&5
22177 echo "$as_me: creating $ac_file" >&6;}
22181 *:-:* | *:-) cat >"$tmp/stdin";;
22186 ac_dir=`$as_dirname -- "$ac_file" ||
22187 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22188 X"$ac_file" : 'X\(//\)[^/]' \| \
22189 X"$ac_file" : 'X\(//\)$' \| \
22190 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22196 /^X\(\/\/\)[^/].*/{
22211 -*) as_dir=./$as_dir;;
22213 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22217 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22218 *) as_qdir=$as_dir;;
22220 as_dirs="'$as_qdir' $as_dirs"
22221 as_dir=`$as_dirname -- "$as_dir" ||
22222 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22223 X"$as_dir" : 'X\(//\)[^/]' \| \
22224 X"$as_dir" : 'X\(//\)$' \| \
22225 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22227 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22231 /^X\(\/\/\)[^/].*/{
22244 test -d "$as_dir" && break
22246 test -z "$as_dirs" || eval "mkdir $as_dirs"
22247 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22248 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22249 { (exit 1); exit 1; }; }; }
22253 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22255 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22256 # A ".." for each directory in $ac_dir_suffix.
22257 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22258 case $ac_top_builddir_sub in
22259 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22260 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22263 ac_abs_top_builddir=$ac_pwd
22264 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22265 # for backward compatibility:
22266 ac_top_builddir=$ac_top_build_prefix
22269 .) # We are building in place.
22271 ac_top_srcdir=$ac_top_builddir_sub
22272 ac_abs_top_srcdir=$ac_pwd ;;
22273 [\\/]* | ?:[\\/]* ) # Absolute name.
22274 ac_srcdir=$srcdir$ac_dir_suffix;
22275 ac_top_srcdir=$srcdir
22276 ac_abs_top_srcdir=$srcdir ;;
22277 *) # Relative name.
22278 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22279 ac_top_srcdir=$ac_top_build_prefix$srcdir
22280 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22282 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22292 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22293 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22297 cat >>$CONFIG_STATUS <<\_ACEOF
22298 # If the template does not know about datarootdir, expand it.
22299 # FIXME: This hack should be removed a few years after 2.60.
22300 ac_datarootdir_hack=; ac_datarootdir_seen=
22302 case `sed -n '/datarootdir/ {
22311 ' $ac_file_inputs` in
22312 *datarootdir*) ac_datarootdir_seen=yes;;
22313 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22314 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22315 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22317 cat >>$CONFIG_STATUS <<_ACEOF
22318 ac_datarootdir_hack='
22319 s&@datadir@&$datadir&g
22320 s&@docdir@&$docdir&g
22321 s&@infodir@&$infodir&g
22322 s&@localedir@&$localedir&g
22323 s&@mandir@&$mandir&g
22324 s&\\\${datarootdir}&$datarootdir&g' ;;
22328 # Neutralize VPATH when `$srcdir' = `.'.
22329 # Shell code in configure.ac might set extrasub.
22330 # FIXME: do we really want to maintain this feature?
22331 cat >>$CONFIG_STATUS <<_ACEOF
22335 cat >>$CONFIG_STATUS <<\_ACEOF
22337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22338 s&@configure_input@&$configure_input&;t t
22339 s&@top_builddir@&$ac_top_builddir_sub&;t t
22340 s&@srcdir@&$ac_srcdir&;t t
22341 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22342 s&@top_srcdir@&$ac_top_srcdir&;t t
22343 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22344 s&@builddir@&$ac_builddir&;t t
22345 s&@abs_builddir@&$ac_abs_builddir&;t t
22346 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22347 s&@INSTALL@&$ac_INSTALL&;t t
22348 $ac_datarootdir_hack
22349 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22351 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22352 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22353 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22354 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22355 which seems to be undefined. Please make sure it is defined." >&5
22356 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22357 which seems to be undefined. Please make sure it is defined." >&2;}
22361 -) cat "$tmp/out"; rm -f "$tmp/out";;
22362 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22371 # Transform confdefs.h into a sed script `conftest.defines', that
22372 # substitutes the proper values into config.h.in to produce config.h.
22373 rm -f conftest.defines conftest.tail
22374 # First, append a space to every undef/define line, to ease matching.
22375 echo 's/$/ /' >conftest.defines
22376 # Then, protect against being on the right side of a sed subst, or in
22377 # an unquoted here document, in config.status. If some macros were
22378 # called several times there might be several #defines for the same
22379 # symbol, which is useless. But do not sort them, since the last
22380 # AC_DEFINE must be honored.
22381 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22382 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22383 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22384 # PARAMS is the parameter list in the macro definition--in most cases, it's
22385 # just an empty string.
22386 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22387 ac_dB='\\)[ (].*,\\1define\\2'
22395 s/^[ ]*#[ ]*define[ ][ ]*//
22400 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22401 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22402 ' >>conftest.defines
22404 # Remove the space that was appended to ease matching.
22405 # Then replace #undef with comments. This is necessary, for
22406 # example, in the case of _POSIX_SOURCE, which is predefined and required
22407 # on some systems where configure will not decide to define it.
22408 # (The regexp can be short, since the line contains either #define or #undef.)
22410 s,^[ #]*u.*,/* & */,' >>conftest.defines
22412 # Break up conftest.defines:
22413 ac_max_sed_lines=50
22415 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22416 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22417 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22419 ac_in='$ac_file_inputs'
22420 ac_out='"$tmp/out1"'
22421 ac_nxt='"$tmp/out2"'
22425 # Write a here document:
22426 cat >>$CONFIG_STATUS <<_ACEOF
22427 # First, check the format of the line:
22428 cat >"\$tmp/defines.sed" <<\\CEOF
22429 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22430 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22434 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22436 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22437 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22438 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22439 grep . conftest.tail >/dev/null || break
22440 rm -f conftest.defines
22441 mv conftest.tail conftest.defines
22443 rm -f conftest.defines conftest.tail
22445 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22446 cat >>$CONFIG_STATUS <<\_ACEOF
22447 if test x"$ac_file" != x-; then
22448 echo "/* $configure_input */" >"$tmp/config.h"
22449 cat "$ac_result" >>"$tmp/config.h"
22450 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22451 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22452 echo "$as_me: $ac_file is unchanged" >&6;}
22455 mv "$tmp/config.h" $ac_file
22458 echo "/* $configure_input */"
22462 # Compute $ac_file's index in $config_headers.
22464 for _am_header in $config_headers :; do
22465 case $_am_header in
22466 $ac_file | $ac_file:* )
22469 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22472 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22473 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22474 X$ac_file : 'X\(//\)[^/]' \| \
22475 X$ac_file : 'X\(//\)$' \| \
22476 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22478 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22482 /^X\(\/\/\)[^/].*/{
22494 s/.*/./; q'`/stamp-h$_am_stamp_count
22497 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22498 echo "$as_me: executing $ac_file commands" >&6;}
22503 case $ac_file$ac_mode in
22504 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22505 # Strip MF so we end up with the name of the file.
22506 mf=`echo "$mf" | sed -e 's/:.*$//'`
22507 # Check whether this is an Automake generated Makefile or not.
22508 # We used to match only the files named `Makefile.in', but
22509 # some people rename them; so instead we look at the file content.
22510 # Grep'ing the first line is not enough: some people post-process
22511 # each Makefile.in and add a new line on top of each file to say so.
22512 # So let's grep whole file.
22513 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22514 dirpart=`$as_dirname -- "$mf" ||
22515 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22516 X"$mf" : 'X\(//\)[^/]' \| \
22517 X"$mf" : 'X\(//\)$' \| \
22518 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22524 /^X\(\/\/\)[^/].*/{
22540 # Extract the definition of DEPDIR, am__include, and am__quote
22541 # from the Makefile without running `make'.
22542 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22543 test -z "$DEPDIR" && continue
22544 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22545 test -z "am__include" && continue
22546 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22547 # When using ansi2knr, U may be empty or an underscore; expand it
22548 U=`sed -n 's/^U = //p' < "$mf"`
22549 # Find all dependency output files, they are included files with
22550 # $(DEPDIR) in their names. We invoke sed twice because it is the
22551 # simplest approach to changing $(DEPDIR) to its actual value in the
22553 for file in `sed -n "
22554 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22555 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22556 # Make sure the directory exists.
22557 test -f "$dirpart/$file" && continue
22558 fdir=`$as_dirname -- "$file" ||
22559 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22560 X"$file" : 'X\(//\)[^/]' \| \
22561 X"$file" : 'X\(//\)$' \| \
22562 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22564 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22568 /^X\(\/\/\)[^/].*/{
22581 { as_dir=$dirpart/$fdir
22583 -*) as_dir=./$as_dir;;
22585 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22589 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22590 *) as_qdir=$as_dir;;
22592 as_dirs="'$as_qdir' $as_dirs"
22593 as_dir=`$as_dirname -- "$as_dir" ||
22594 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22595 X"$as_dir" : 'X\(//\)[^/]' \| \
22596 X"$as_dir" : 'X\(//\)$' \| \
22597 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22603 /^X\(\/\/\)[^/].*/{
22616 test -d "$as_dir" && break
22618 test -z "$as_dirs" || eval "mkdir $as_dirs"
22619 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22620 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22621 { (exit 1); exit 1; }; }; }
22622 # echo "creating $dirpart/$file"
22623 echo '# dummy' > "$dirpart/$file"
22632 { (exit 0); exit 0; }
22634 chmod +x $CONFIG_STATUS
22635 ac_clean_files=$ac_clean_files_save
22638 # configure is writing to config.log, and then calls config.status.
22639 # config.status does its own redirection, appending to config.log.
22640 # Unfortunately, on DOS this fails, as config.log is still kept open
22641 # by configure, so config.status won't be able to write to it; its
22642 # output is simply discarded. So we exec the FD to /dev/null,
22643 # effectively closing config.log, so it can be properly (re)opened and
22644 # appended to by config.status. When coming back to configure, we
22645 # need to make the FD available again.
22646 if test "$no_create" != yes; then
22648 ac_config_status_args=
22649 test "$silent" = yes &&
22650 ac_config_status_args="$ac_config_status_args --quiet"
22652 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22654 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22655 # would make configure fail if this is the last instruction.
22656 $ac_cs_success || { (exit 1); exit 1; }