2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for mod_chxj 0.12.35.
5 # Report bugs to <konn@users.sourceforge.jp>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55 # Support unset when possible.
56 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself=$0 ;;
75 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir=.
80 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C; export $as_var
113 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a : '\(a\)' >/dev/null 2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001; then
125 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x; then
157 if (eval ":") 2>/dev/null; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev/null; then
223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir=.
230 for as_base in sh bash ksh sh5; do
231 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238 for as_shell in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev/null <<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix*) set -o posix ;;
260 CONFIG_SHELL=$as_shell
262 if { "$as_shell" 2> /dev/null <<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix*) set -o posix ;;
288 as_func_ret_success () {
291 as_func_ret_failure () {
296 if as_func_success; then
300 echo as_func_success failed.
303 if as_func_failure; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure; then
317 echo as_func_ret_failure succeeded.
320 if ( set x; as_func_ret_success y && test x = "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) || { (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x; then
345 for as_var in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no; then
354 echo This script requires a shell more modern than all the
355 echo shells that I found on your system. Please install a
356 echo modern shell, or manually run the script under such a
357 echo shell if you do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") || {
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x "$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474 ECHO_C= ECHO_N= ECHO_T=
478 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
485 if expr a : '\(a\)' >/dev/null 2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001; then
492 rm -f conf$$ conf$$.exe conf$$.file
493 if test -d conf$$.dir; then
494 rm -f conf$$.dir/conf$$.file
500 if ln -s conf$$.file conf$$ 2>/dev/null; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508 elif ln conf$$.file conf$$ 2>/dev/null; then
513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514 rmdir conf$$.dir 2>/dev/null
516 if mkdir -p . 2>/dev/null; then
519 test -d ./-p && rmdir ./-p
523 if test -x / >/dev/null 2>&1; then
526 if ls -dL / >/dev/null 2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
599 echo_test_string=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
619 for dir in $PATH /usr/ucb; do
621 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X/bin/ksh; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL=/bin/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
660 SHELL="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames=${tagnames+${tagnames},}CXX
706 tagnames=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev/null 6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix=/usr/local
720 ac_config_libobj_dir=.
726 SHELL=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME='mod_chxj'
730 PACKAGE_TARNAME='mod_chxj'
731 PACKAGE_VERSION='0.12.35'
732 PACKAGE_STRING='mod_chxj 0.12.35'
733 PACKAGE_BUGREPORT='konn@users.sourceforge.jp'
735 ac_unique_file="src/mod_chxj.c"
736 # Factoring default headers for most tests.
737 ac_includes_default="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
835 INSTALL_STRIP_PROGRAM
894 ac_precious_vars='build_alias
911 # Initialize some variables set by options.
913 ac_init_version=false
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
923 program_transform_name=s,x,x,
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir='${exec_prefix}/bin'
938 sbindir='${exec_prefix}/sbin'
939 libexecdir='${exec_prefix}/libexec'
940 datarootdir='${prefix}/share'
941 datadir='${datarootdir}'
942 sysconfdir='${prefix}/etc'
943 sharedstatedir='${prefix}/com'
944 localstatedir='${prefix}/var'
945 includedir='${prefix}/include'
946 oldincludedir='/usr/include'
947 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
948 infodir='${datarootdir}/info'
953 libdir='${exec_prefix}/lib'
954 localedir='${datarootdir}/locale'
955 mandir='${datarootdir}/man'
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\$ac_option
969 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
979 -bindir | --bindir | --bindi | --bind | --bin | --bi)
981 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
984 -build | --build | --buil | --bui | --bu)
985 ac_prev=build_alias ;;
986 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
987 build_alias=$ac_optarg ;;
989 -cache-file | --cache-file | --cache-fil | --cache-fi \
990 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
991 ac_prev=cache_file ;;
992 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
993 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
994 cache_file=$ac_optarg ;;
997 cache_file=config.cache ;;
999 -datadir | --datadir | --datadi | --datad)
1001 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1002 datadir=$ac_optarg ;;
1004 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1005 | --dataroo | --dataro | --datar)
1006 ac_prev=datarootdir ;;
1007 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1008 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1009 datarootdir=$ac_optarg ;;
1011 -disable-* | --disable-*)
1012 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1015 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1016 { (exit 1); exit 1; }; }
1017 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1018 eval enable_$ac_feature=no ;;
1020 -docdir | --docdir | --docdi | --doc | --do)
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1030 -enable-* | --enable-*)
1031 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1034 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1035 { (exit 1); exit 1; }; }
1036 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1037 eval enable_$ac_feature=\$ac_optarg ;;
1039 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1040 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1041 | --exec | --exe | --ex)
1042 ac_prev=exec_prefix ;;
1043 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1044 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1045 | --exec=* | --exe=* | --ex=*)
1046 exec_prefix=$ac_optarg ;;
1048 -gas | --gas | --ga | --g)
1049 # Obsolete; use --with-gas.
1052 -help | --help | --hel | --he | -h)
1053 ac_init_help=long ;;
1054 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1055 ac_init_help=recursive ;;
1056 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1057 ac_init_help=short ;;
1059 -host | --host | --hos | --ho)
1060 ac_prev=host_alias ;;
1061 -host=* | --host=* | --hos=* | --ho=*)
1062 host_alias=$ac_optarg ;;
1064 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1066 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1068 htmldir=$ac_optarg ;;
1070 -includedir | --includedir | --includedi | --included | --include \
1071 | --includ | --inclu | --incl | --inc)
1072 ac_prev=includedir ;;
1073 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1074 | --includ=* | --inclu=* | --incl=* | --inc=*)
1075 includedir=$ac_optarg ;;
1077 -infodir | --infodir | --infodi | --infod | --info | --inf)
1079 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1080 infodir=$ac_optarg ;;
1082 -libdir | --libdir | --libdi | --libd)
1084 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1085 libdir=$ac_optarg ;;
1087 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1088 | --libexe | --libex | --libe)
1089 ac_prev=libexecdir ;;
1090 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1091 | --libexe=* | --libex=* | --libe=*)
1092 libexecdir=$ac_optarg ;;
1094 -localedir | --localedir | --localedi | --localed | --locale)
1095 ac_prev=localedir ;;
1096 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1097 localedir=$ac_optarg ;;
1099 -localstatedir | --localstatedir | --localstatedi | --localstated \
1100 | --localstate | --localstat | --localsta | --localst | --locals)
1101 ac_prev=localstatedir ;;
1102 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1103 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1104 localstatedir=$ac_optarg ;;
1106 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1108 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1109 mandir=$ac_optarg ;;
1111 -nfp | --nfp | --nf)
1112 # Obsolete; use --without-fp.
1115 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1116 | --no-cr | --no-c | -n)
1119 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1120 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1123 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1124 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1125 | --oldin | --oldi | --old | --ol | --o)
1126 ac_prev=oldincludedir ;;
1127 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1128 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1129 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1130 oldincludedir=$ac_optarg ;;
1132 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1134 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1135 prefix=$ac_optarg ;;
1137 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1138 | --program-pre | --program-pr | --program-p)
1139 ac_prev=program_prefix ;;
1140 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1141 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1142 program_prefix=$ac_optarg ;;
1144 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1145 | --program-suf | --program-su | --program-s)
1146 ac_prev=program_suffix ;;
1147 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1148 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1149 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1159 -program-transform-name=* | --program-transform-name=* \
1160 | --program-transform-nam=* | --program-transform-na=* \
1161 | --program-transform-n=* | --program-transform-=* \
1162 | --program-transform=* | --program-transfor=* \
1163 | --program-transfo=* | --program-transf=* \
1164 | --program-trans=* | --program-tran=* \
1165 | --progr-tra=* | --program-tr=* | --program-t=*)
1166 program_transform_name=$ac_optarg ;;
1168 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1170 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1171 pdfdir=$ac_optarg ;;
1173 -psdir | --psdir | --psdi | --psd | --ps)
1175 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1179 | -silent | --silent | --silen | --sile | --sil)
1182 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1184 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1186 sbindir=$ac_optarg ;;
1188 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1189 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1190 | --sharedst | --shareds | --shared | --share | --shar \
1192 ac_prev=sharedstatedir ;;
1193 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1194 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1195 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1197 sharedstatedir=$ac_optarg ;;
1199 -site | --site | --sit)
1201 -site=* | --site=* | --sit=*)
1204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1207 srcdir=$ac_optarg ;;
1209 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1210 | --syscon | --sysco | --sysc | --sys | --sy)
1211 ac_prev=sysconfdir ;;
1212 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1213 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1214 sysconfdir=$ac_optarg ;;
1216 -target | --target | --targe | --targ | --tar | --ta | --t)
1217 ac_prev=target_alias ;;
1218 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1219 target_alias=$ac_optarg ;;
1221 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1224 -version | --version | --versio | --versi | --vers | -V)
1225 ac_init_version=: ;;
1228 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1229 # Reject names that are not valid shell variable names.
1230 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 { echo "$as_me: error: invalid package name: $ac_package" >&2
1232 { (exit 1); exit 1; }; }
1233 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1234 eval with_$ac_package=\$ac_optarg ;;
1236 -without-* | --without-*)
1237 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1238 # Reject names that are not valid shell variable names.
1239 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1240 { echo "$as_me: error: invalid package name: $ac_package" >&2
1241 { (exit 1); exit 1; }; }
1242 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1243 eval with_$ac_package=no ;;
1246 # Obsolete; use --with-x.
1249 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1250 | --x-incl | --x-inc | --x-in | --x-i)
1251 ac_prev=x_includes ;;
1252 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1253 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1254 x_includes=$ac_optarg ;;
1256 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1257 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1258 ac_prev=x_libraries ;;
1259 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1260 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1261 x_libraries=$ac_optarg ;;
1263 -*) { echo "$as_me: error: unrecognized option: $ac_option
1264 Try \`$0 --help' for more information." >&2
1265 { (exit 1); exit 1; }; }
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1272 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1273 { (exit 1); exit 1; }; }
1274 eval $ac_envvar=\$ac_optarg
1275 export $ac_envvar ;;
1278 # FIXME: should be removed in autoconf 3.0.
1279 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1280 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1281 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1282 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1288 if test -n "$ac_prev"; then
1289 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1290 { echo "$as_me: error: missing argument to $ac_option" >&2
1291 { (exit 1); exit 1; }; }
1294 # Be sure to have absolute directory names.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1300 eval ac_val=\$$ac_var
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1305 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1306 { (exit 1); exit 1; }; }
1309 # There might be people who depend on the old broken behavior: `$host'
1310 # used to hold the argument of --host etc.
1311 # FIXME: To remove some day.
1314 target=$target_alias
1316 # FIXME: To remove some day.
1317 if test "x$host_alias" != x; then
1318 if test "x$build_alias" = x; then
1319 cross_compiling=maybe
1320 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1321 If a cross compiler is detected then cross compile mode will be used." >&2
1322 elif test "x$build_alias" != "x$host_alias"; then
1328 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1330 test "$silent" = yes && exec 6>/dev/null
1333 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1334 ac_ls_di=`ls -di .` &&
1335 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1336 { echo "$as_me: error: Working directory cannot be determined" >&2
1337 { (exit 1); exit 1; }; }
1338 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1339 { echo "$as_me: error: pwd does not report name of working directory" >&2
1340 { (exit 1); exit 1; }; }
1343 # Find the source files, if location was not specified.
1344 if test -z "$srcdir"; then
1345 ac_srcdir_defaulted=yes
1346 # Try the directory containing this script, then the parent directory.
1347 ac_confdir=`$as_dirname -- "$0" ||
1348 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1349 X"$0" : 'X\(//\)[^/]' \| \
1350 X"$0" : 'X\(//\)$' \| \
1351 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1371 if test ! -r "$srcdir/$ac_unique_file"; then
1375 ac_srcdir_defaulted=no
1377 if test ! -r "$srcdir/$ac_unique_file"; then
1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1379 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1380 { (exit 1); exit 1; }; }
1382 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1384 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1385 { (exit 1); exit 1; }; }
1387 # When building in place, set srcdir=.
1388 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 # Remove unnecessary trailing slashes from srcdir.
1392 # Double slashes in file names in object file debugging info
1393 # mess up M-x gdb in Emacs.
1395 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1397 for ac_var in $ac_precious_vars; do
1398 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1399 eval ac_env_${ac_var}_value=\$${ac_var}
1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 # Report the --help message.
1407 if test "$ac_init_help" = "long"; then
1408 # Omit some internal or obsolete options to make the list less imposing.
1409 # This message is too long to be a string in the A/UX 3.1 sh.
1411 \`configure' configures mod_chxj 0.12.35 to adapt to many kinds of systems.
1413 Usage: $0 [OPTION]... [VAR=VALUE]...
1415 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1416 VAR=VALUE. See below for descriptions of some of the useful variables.
1418 Defaults for the options are specified in brackets.
1421 -h, --help display this help and exit
1422 --help=short display options specific to this package
1423 --help=recursive display the short help of all the included packages
1424 -V, --version display version information and exit
1425 -q, --quiet, --silent do not print \`checking...' messages
1426 --cache-file=FILE cache test results in FILE [disabled]
1427 -C, --config-cache alias for \`--cache-file=config.cache'
1428 -n, --no-create do not create output files
1429 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1431 Installation directories:
1432 --prefix=PREFIX install architecture-independent files in PREFIX
1433 [$ac_default_prefix]
1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 By default, \`make install' will install all the files in
1438 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1439 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1440 for instance \`--prefix=\$HOME'.
1442 For better control, use the options below.
1444 Fine tuning of the installation directories:
1445 --bindir=DIR user executables [EPREFIX/bin]
1446 --sbindir=DIR system admin executables [EPREFIX/sbin]
1447 --libexecdir=DIR program executables [EPREFIX/libexec]
1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1451 --libdir=DIR object code libraries [EPREFIX/lib]
1452 --includedir=DIR C header files [PREFIX/include]
1453 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1456 --infodir=DIR info documentation [DATAROOTDIR/info]
1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1458 --mandir=DIR man documentation [DATAROOTDIR/man]
1459 --docdir=DIR documentation root [DATAROOTDIR/doc/mod_chxj]
1460 --htmldir=DIR html documentation [DOCDIR]
1461 --dvidir=DIR dvi documentation [DOCDIR]
1462 --pdfdir=DIR pdf documentation [DOCDIR]
1463 --psdir=DIR ps documentation [DOCDIR]
1469 --program-prefix=PREFIX prepend PREFIX to installed program names
1470 --program-suffix=SUFFIX append SUFFIX to installed program names
1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1474 --build=BUILD configure for building on BUILD [guessed]
1475 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1476 --target=TARGET configure for building compilers for TARGET [HOST]
1480 if test -n "$ac_init_help"; then
1481 case $ac_init_help in
1482 short | recursive ) echo "Configuration of mod_chxj 0.12.35:";;
1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1489 --disable-dependency-tracking speeds up one-time build
1490 --enable-dependency-tracking do not reject slow dependency extractors
1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-static[=PKGS] build static libraries [default=yes]
1493 --enable-fast-install[=PKGS]
1494 optimize for fast installation [default=yes]
1495 --disable-libtool-lock avoid locking (might break parallel builds)
1496 --enable-img-conv-f Please specify it when you change the file name of the image being written in the
1497 source by the automatic operation.
1498 --enable-memcache-cookie Please specify it when you save Cookie in memcached.
1499 --enable-memcached-static use static link.
1500 --enable-mysql-cookie Please specify it when you save Cookie in MySQL.
1501 --enable-dump-log When the log of conversion is output, it specifies it with the output file.
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1507 --with-pic try to use only PIC/non-PIC objects [default=use
1509 --with-tags[=TAGS] include additional configurations [automatic]
1510 --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1511 --with-apxs=ARG Path of apxs program file.
1512 --with-apr-config=ARG Path of apr-config program file.
1513 --with-apu-config=ARG Path of apu-config program file.
1514 --with-pcre-config=ARG Path of pcre-config program file.
1515 --with-memcached-header Path of "memcached.h"
1516 --with-memcached-lib-dir Path of "libmemcached.so"
1517 --with-mysql-header=ARG Path of "mysql.h"
1518 --with-mysql-lib-dir=ARG Path of libmysqlclient
1519 APR_HELP_STRING(--with-openssl=PATH,Path to OpenSSL (eg. /usr/local/ssl))
1521 Some influential environment variables:
1522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
1526 LIBS libraries to pass to the linker, e.g. -l<library>
1527 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1528 you have headers in a nonstandard directory <include dir>
1530 CXX C++ compiler command
1531 CXXFLAGS C++ compiler flags
1532 CXXCPP C++ preprocessor
1533 F77 Fortran 77 compiler command
1534 FFLAGS Fortran 77 compiler flags
1536 Use these variables to override the choices made by `configure' or to help
1537 it to find libraries and programs with nonstandard names/locations.
1539 Report bugs to <konn@users.sourceforge.jp>.
1544 if test "$ac_init_help" = "recursive"; then
1545 # If there are subdirs, report their specific --help.
1546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1547 test -d "$ac_dir" || continue
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1567 .) # We are building in place.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for guested configure.
1584 if test -f "$ac_srcdir/configure.gnu"; then
1586 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1587 elif test -f "$ac_srcdir/configure"; then
1589 $SHELL "$ac_srcdir/configure" --help=recursive
1591 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 cd "$ac_pwd" || { ac_status=$?; break; }
1597 test -n "$ac_init_help" && exit $ac_status
1598 if $ac_init_version; then
1600 mod_chxj configure 0.12.35
1601 generated by GNU Autoconf 2.61
1603 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1604 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1610 cat >config.log <<_ACEOF
1611 This file contains any messages produced by compilers while
1612 running configure, to aid debugging if configure makes a mistake.
1614 It was created by mod_chxj $as_me 0.12.35, which was
1615 generated by GNU Autoconf 2.61. Invocation command line was
1627 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1628 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1629 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1630 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1631 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1633 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1634 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1636 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1637 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1638 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1639 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1640 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1641 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1642 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1650 test -z "$as_dir" && as_dir=.
1651 echo "PATH: $as_dir"
1667 # Keep a trace of the command line.
1668 # Strip out --no-create and --no-recursion so they do not pile up.
1669 # Strip out --silent because we don't want to record it for future runs.
1670 # Also quote any args containing shell meta-characters.
1671 # Make two passes to allow for proper duplicate-argument suppression.
1675 ac_must_keep_next=false
1681 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1682 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1683 | -silent | --silent | --silen | --sile | --sil)
1686 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1689 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1691 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1692 if test $ac_must_keep_next = true; then
1693 ac_must_keep_next=false # Got value, back to normal.
1696 *=* | --config-cache | -C | -disable-* | --disable-* \
1697 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1698 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1699 | -with-* | --with-* | -without-* | --without-* | --x)
1700 case "$ac_configure_args0 " in
1701 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1704 -* ) ac_must_keep_next=true ;;
1707 ac_configure_args="$ac_configure_args '$ac_arg'"
1712 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1713 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1715 # When interrupted or exit'd, cleanup temporary files, and complete
1716 # config.log. We remove comments because anyway the quotes in there
1717 # would cause problems or look ugly.
1718 # WARNING: Use '\'' to represent an apostrophe within the trap.
1719 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1720 trap 'exit_status=$?
1721 # Save into config.log some information that might help in debugging.
1726 ## ---------------- ##
1727 ## Cache variables. ##
1728 ## ---------------- ##
1731 # The following way of writing the cache mishandles newlines in values,
1733 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1734 eval ac_val=\$$ac_var
1738 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1739 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1742 _ | IFS | as_nl) ;; #(
1743 *) $as_unset $ac_var ;;
1748 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1749 *${as_nl}ac_space=\ *)
1751 "s/'\''/'\''\\\\'\'''\''/g;
1752 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1755 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1763 ## ----------------- ##
1764 ## Output variables. ##
1765 ## ----------------- ##
1768 for ac_var in $ac_subst_vars
1770 eval ac_val=\$$ac_var
1772 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1774 echo "$ac_var='\''$ac_val'\''"
1778 if test -n "$ac_subst_files"; then
1780 ## ------------------- ##
1781 ## File substitutions. ##
1782 ## ------------------- ##
1785 for ac_var in $ac_subst_files
1787 eval ac_val=\$$ac_var
1789 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1791 echo "$ac_var='\''$ac_val'\''"
1796 if test -s confdefs.h; then
1806 test "$ac_signal" != 0 &&
1807 echo "$as_me: caught signal $ac_signal"
1808 echo "$as_me: exit $exit_status"
1810 rm -f core *.core core.conftest.* &&
1811 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1814 for ac_signal in 1 2 13 15; do
1815 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1819 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1820 rm -f -r conftest* confdefs.h
1822 # Predefined preprocessor variables.
1824 cat >>confdefs.h <<_ACEOF
1825 #define PACKAGE_NAME "$PACKAGE_NAME"
1829 cat >>confdefs.h <<_ACEOF
1830 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1834 cat >>confdefs.h <<_ACEOF
1835 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1839 cat >>confdefs.h <<_ACEOF
1840 #define PACKAGE_STRING "$PACKAGE_STRING"
1844 cat >>confdefs.h <<_ACEOF
1845 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1849 # Let the site file select an alternate cache file if it wants to.
1850 # Prefer explicitly selected file to automatically selected ones.
1851 if test -n "$CONFIG_SITE"; then
1852 set x "$CONFIG_SITE"
1853 elif test "x$prefix" != xNONE; then
1854 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1856 set x "$ac_default_prefix/share/config.site" \
1857 "$ac_default_prefix/etc/config.site"
1862 if test -r "$ac_site_file"; then
1863 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1864 echo "$as_me: loading site script $ac_site_file" >&6;}
1865 sed 's/^/| /' "$ac_site_file" >&5
1870 if test -r "$cache_file"; then
1871 # Some versions of bash will fail to source /dev/null (special
1872 # files actually), so we avoid doing that.
1873 if test -f "$cache_file"; then
1874 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1875 echo "$as_me: loading cache $cache_file" >&6;}
1877 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1878 *) . "./$cache_file";;
1882 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1883 echo "$as_me: creating cache $cache_file" >&6;}
1887 # Check that the precious variables saved in the cache have kept the same
1889 ac_cache_corrupted=false
1890 for ac_var in $ac_precious_vars; do
1891 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1892 eval ac_new_set=\$ac_env_${ac_var}_set
1893 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1894 eval ac_new_val=\$ac_env_${ac_var}_value
1895 case $ac_old_set,$ac_new_set in
1897 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1898 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1899 ac_cache_corrupted=: ;;
1901 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1902 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1903 ac_cache_corrupted=: ;;
1906 if test "x$ac_old_val" != "x$ac_new_val"; then
1907 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1908 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1909 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1910 echo "$as_me: former value: $ac_old_val" >&2;}
1911 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1912 echo "$as_me: current value: $ac_new_val" >&2;}
1913 ac_cache_corrupted=:
1916 # Pass precious variables to config.status.
1917 if test "$ac_new_set" = set; then
1919 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1920 *) ac_arg=$ac_var=$ac_new_val ;;
1922 case " $ac_configure_args " in
1923 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1924 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1928 if $ac_cache_corrupted; then
1929 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1930 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1931 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1932 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1933 { (exit 1); exit 1; }; }
1961 ac_cpp='$CPP $CPPFLAGS'
1962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1970 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1971 if test -f "$ac_dir/install-sh"; then
1973 ac_install_sh="$ac_aux_dir/install-sh -c"
1975 elif test -f "$ac_dir/install.sh"; then
1977 ac_install_sh="$ac_aux_dir/install.sh -c"
1979 elif test -f "$ac_dir/shtool"; then
1981 ac_install_sh="$ac_aux_dir/shtool install -c"
1985 if test -z "$ac_aux_dir"; then
1986 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1987 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1988 { (exit 1); exit 1; }; }
1991 # These three variables are undocumented and unsupported,
1992 # and are intended to be withdrawn in a future Autoconf release.
1993 # They can cause serious problems if a builder's source tree is in a directory
1994 # whose full name contains unusual characters.
1995 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1996 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1997 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2000 # Make sure we can run config.sub.
2001 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2002 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2003 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2004 { (exit 1); exit 1; }; }
2006 { echo "$as_me:$LINENO: checking build system type" >&5
2007 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2008 if test "${ac_cv_build+set}" = set; then
2009 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 ac_build_alias=$build_alias
2012 test "x$ac_build_alias" = x &&
2013 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2014 test "x$ac_build_alias" = x &&
2015 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2016 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2017 { (exit 1); exit 1; }; }
2018 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2019 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2020 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2021 { (exit 1); exit 1; }; }
2024 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2025 echo "${ECHO_T}$ac_cv_build" >&6; }
2026 case $ac_cv_build in
2028 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2029 echo "$as_me: error: invalid value of canonical build" >&2;}
2030 { (exit 1); exit 1; }; };;
2033 ac_save_IFS=$IFS; IFS='-'
2039 # Remember, the first character of IFS is used to create $*,
2040 # except with old shells:
2043 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2046 { echo "$as_me:$LINENO: checking host system type" >&5
2047 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2048 if test "${ac_cv_host+set}" = set; then
2049 echo $ECHO_N "(cached) $ECHO_C" >&6
2051 if test "x$host_alias" = x; then
2052 ac_cv_host=$ac_cv_build
2054 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2055 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2056 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2057 { (exit 1); exit 1; }; }
2061 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2062 echo "${ECHO_T}$ac_cv_host" >&6; }
2065 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2066 echo "$as_me: error: invalid value of canonical host" >&2;}
2067 { (exit 1); exit 1; }; };;
2070 ac_save_IFS=$IFS; IFS='-'
2076 # Remember, the first character of IFS is used to create $*,
2077 # except with old shells:
2080 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2083 { echo "$as_me:$LINENO: checking target system type" >&5
2084 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2085 if test "${ac_cv_target+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 if test "x$target_alias" = x; then
2089 ac_cv_target=$ac_cv_host
2091 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2092 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2093 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2094 { (exit 1); exit 1; }; }
2098 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2099 echo "${ECHO_T}$ac_cv_target" >&6; }
2100 case $ac_cv_target in
2102 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2103 echo "$as_me: error: invalid value of canonical target" >&2;}
2104 { (exit 1); exit 1; }; };;
2106 target=$ac_cv_target
2107 ac_save_IFS=$IFS; IFS='-'
2113 # Remember, the first character of IFS is used to create $*,
2114 # except with old shells:
2117 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2120 # The aliases save the names the user supplied, while $host etc.
2121 # will get canonicalized.
2122 test -n "$target_alias" &&
2123 test "$program_prefix$program_suffix$program_transform_name" = \
2125 program_prefix=${target_alias}-
2126 am__api_version='1.10'
2128 # Find a good install program. We prefer a C program (faster),
2129 # so one script is as good as another. But avoid the broken or
2130 # incompatible versions:
2131 # SysV /etc/install, /usr/sbin/install
2132 # SunOS /usr/etc/install
2133 # IRIX /sbin/install
2135 # AmigaOS /C/install, which installs bootblocks on floppy discs
2136 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2137 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2138 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2139 # OS/2's system install, which has a completely different semantic
2140 # ./install, which can be erroneously created by make from ./install.sh.
2141 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2142 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2143 if test -z "$INSTALL"; then
2144 if test "${ac_cv_path_install+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 test -z "$as_dir" && as_dir=.
2152 # Account for people who put trailing slashes in PATH elements.
2154 ./ | .// | /cC/* | \
2155 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2156 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2159 # OSF1 and SCO ODT 3.0 have their own names for install.
2160 # Don't use installbsd from OSF since it installs stuff as root
2162 for ac_prog in ginstall scoinst install; do
2163 for ac_exec_ext in '' $ac_executable_extensions; do
2164 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2165 if test $ac_prog = install &&
2166 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2167 # AIX install. It has an incompatible calling convention.
2169 elif test $ac_prog = install &&
2170 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2171 # program-specific install script used by HP pwplus--don't use.
2174 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2187 if test "${ac_cv_path_install+set}" = set; then
2188 INSTALL=$ac_cv_path_install
2190 # As a last resort, use the slow shell script. Don't cache a
2191 # value for INSTALL within a source directory, because that will
2192 # break other packages using the cache if that directory is
2193 # removed, or if the value is a relative name.
2194 INSTALL=$ac_install_sh
2197 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2198 echo "${ECHO_T}$INSTALL" >&6; }
2200 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2201 # It thinks the first close brace ends the variable substitution.
2202 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2204 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2206 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2208 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2209 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2212 echo timestamp > conftest.file
2213 # Do `set' in a subshell so we don't clobber the current shell's
2214 # arguments. Must try -L first in case configure is actually a
2215 # symlink; some systems play weird games with the mod time of symlinks
2216 # (eg FreeBSD returns the mod time of the symlink's containing
2219 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2220 if test "$*" = "X"; then
2222 set X `ls -t $srcdir/configure conftest.file`
2225 if test "$*" != "X $srcdir/configure conftest.file" \
2226 && test "$*" != "X conftest.file $srcdir/configure"; then
2228 # If neither matched, then we have a broken ls. This can happen
2229 # if, for instance, CONFIG_SHELL is bash and it inherits a
2230 # broken ls alias from the environment. This has actually
2231 # happened. Such a system could not be considered "sane".
2232 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2233 alias in your environment" >&5
2234 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2235 alias in your environment" >&2;}
2236 { (exit 1); exit 1; }; }
2239 test "$2" = conftest.file
2245 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2246 Check your system clock" >&5
2247 echo "$as_me: error: newly created file is older than distributed files!
2248 Check your system clock" >&2;}
2249 { (exit 1); exit 1; }; }
2251 { echo "$as_me:$LINENO: result: yes" >&5
2252 echo "${ECHO_T}yes" >&6; }
2253 test "$program_prefix" != NONE &&
2254 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2255 # Use a double $ so make ignores it.
2256 test "$program_suffix" != NONE &&
2257 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2258 # Double any \ or $. echo might interpret backslashes.
2259 # By default was `s,x,x', remove it if useless.
2260 cat <<\_ACEOF >conftest.sed
2261 s/[\\$]/&&/g;s/;s,x,x,$//
2263 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2266 # expand $ac_aux_dir to an absolute path
2267 am_aux_dir=`cd $ac_aux_dir && pwd`
2269 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2270 # Use eval to expand $SHELL
2271 if eval "$MISSING --run true"; then
2272 am_missing_run="$MISSING --run "
2275 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2276 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2279 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2280 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2281 if test -z "$MKDIR_P"; then
2282 if test "${ac_cv_path_mkdir+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2289 test -z "$as_dir" && as_dir=.
2290 for ac_prog in mkdir gmkdir; do
2291 for ac_exec_ext in '' $ac_executable_extensions; do
2292 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2293 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2294 'mkdir (GNU coreutils) '* | \
2295 'mkdir (coreutils) '* | \
2296 'mkdir (fileutils) '4.1*)
2297 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2307 if test "${ac_cv_path_mkdir+set}" = set; then
2308 MKDIR_P="$ac_cv_path_mkdir -p"
2310 # As a last resort, use the slow shell script. Don't cache a
2311 # value for MKDIR_P within a source directory, because that will
2312 # break other packages using the cache if that directory is
2313 # removed, or if the value is a relative name.
2314 test -d ./--version && rmdir ./--version
2315 MKDIR_P="$ac_install_sh -d"
2318 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2319 echo "${ECHO_T}$MKDIR_P" >&6; }
2323 [\\/$]* | ?:[\\/]*) ;;
2324 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2327 for ac_prog in gawk mawk nawk awk
2329 # Extract the first word of "$ac_prog", so it can be a program name with args.
2330 set dummy $ac_prog; ac_word=$2
2331 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2332 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2333 if test "${ac_cv_prog_AWK+set}" = set; then
2334 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 if test -n "$AWK"; then
2337 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2343 test -z "$as_dir" && as_dir=.
2344 for ac_exec_ext in '' $ac_executable_extensions; do
2345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2346 ac_cv_prog_AWK="$ac_prog"
2347 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2357 if test -n "$AWK"; then
2358 { echo "$as_me:$LINENO: result: $AWK" >&5
2359 echo "${ECHO_T}$AWK" >&6; }
2361 { echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6; }
2366 test -n "$AWK" && break
2369 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2370 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2371 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2372 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2373 echo $ECHO_N "(cached) $ECHO_C" >&6
2375 cat >conftest.make <<\_ACEOF
2378 @echo '@@@%%%=$(MAKE)=@@@%%%'
2380 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2381 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2383 eval ac_cv_prog_make_${ac_make}_set=yes;;
2385 eval ac_cv_prog_make_${ac_make}_set=no;;
2389 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2390 { echo "$as_me:$LINENO: result: yes" >&5
2391 echo "${ECHO_T}yes" >&6; }
2394 { echo "$as_me:$LINENO: result: no" >&5
2395 echo "${ECHO_T}no" >&6; }
2396 SET_MAKE="MAKE=${MAKE-make}"
2399 rm -rf .tst 2>/dev/null
2400 mkdir .tst 2>/dev/null
2401 if test -d .tst; then
2406 rmdir .tst 2>/dev/null
2408 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2409 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2410 # is not polluted with repeated "-I."
2411 am__isrc=' -I$(srcdir)'
2412 # test to see if srcdir already configured
2413 if test -f $srcdir/config.status; then
2414 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2415 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2416 { (exit 1); exit 1; }; }
2420 # test whether we have cygpath
2421 if test -z "$CYGPATH_W"; then
2422 if (cygpath --version) >/dev/null 2>/dev/null; then
2423 CYGPATH_W='cygpath -w'
2430 # Define the identity of the package.
2435 cat >>confdefs.h <<_ACEOF
2436 #define PACKAGE "$PACKAGE"
2440 cat >>confdefs.h <<_ACEOF
2441 #define VERSION "$VERSION"
2444 # Some tools Automake needs.
2446 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2449 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2452 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2455 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2458 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2460 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2462 # Installed binaries are usually stripped using `strip' when the user
2463 # run `make install-strip'. However `strip' might not be the right
2464 # tool to use in cross-compilation environments, therefore Automake
2465 # will honor the `STRIP' environment variable to overrule this program.
2466 if test "$cross_compiling" != no; then
2467 if test -n "$ac_tool_prefix"; then
2468 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2469 set dummy ${ac_tool_prefix}strip; ac_word=$2
2470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2472 if test "${ac_cv_prog_STRIP+set}" = set; then
2473 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 if test -n "$STRIP"; then
2476 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2482 test -z "$as_dir" && as_dir=.
2483 for ac_exec_ext in '' $ac_executable_extensions; do
2484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2485 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495 STRIP=$ac_cv_prog_STRIP
2496 if test -n "$STRIP"; then
2497 { echo "$as_me:$LINENO: result: $STRIP" >&5
2498 echo "${ECHO_T}$STRIP" >&6; }
2500 { echo "$as_me:$LINENO: result: no" >&5
2501 echo "${ECHO_T}no" >&6; }
2506 if test -z "$ac_cv_prog_STRIP"; then
2508 # Extract the first word of "strip", so it can be a program name with args.
2509 set dummy strip; ac_word=$2
2510 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2512 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2513 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 if test -n "$ac_ct_STRIP"; then
2516 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 test -z "$as_dir" && as_dir=.
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2525 ac_cv_prog_ac_ct_STRIP="strip"
2526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2535 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2536 if test -n "$ac_ct_STRIP"; then
2537 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2538 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2540 { echo "$as_me:$LINENO: result: no" >&5
2541 echo "${ECHO_T}no" >&6; }
2544 if test "x$ac_ct_STRIP" = x; then
2547 case $cross_compiling:$ac_tool_warned in
2549 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2550 whose name does not start with the host triplet. If you think this
2551 configuration is useful to you, please write to autoconf@gnu.org." >&5
2552 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2553 whose name does not start with the host triplet. If you think this
2554 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2555 ac_tool_warned=yes ;;
2560 STRIP="$ac_cv_prog_STRIP"
2564 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2566 # We need awk for the "check" target. The system "awk" is bad on
2568 # Always define AMTAR for backward compatibility.
2570 AMTAR=${AMTAR-"${am_missing_run}tar"}
2572 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2578 ac_config_headers="$ac_config_headers include/config.h"
2582 # Checks for programs.
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588 if test -n "$ac_tool_prefix"; then
2589 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2590 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC="$CC" # Let the user override the test.
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2627 if test -z "$ac_cv_prog_CC"; then
2629 # Extract the first word of "gcc", so it can be a program name with args.
2630 set dummy gcc; ac_word=$2
2631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2633 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 if test -n "$ac_ct_CC"; then
2637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2646 ac_cv_prog_ac_ct_CC="gcc"
2647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2657 if test -n "$ac_ct_CC"; then
2658 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2659 echo "${ECHO_T}$ac_ct_CC" >&6; }
2661 { echo "$as_me:$LINENO: result: no" >&5
2662 echo "${ECHO_T}no" >&6; }
2665 if test "x$ac_ct_CC" = x; then
2668 case $cross_compiling:$ac_tool_warned in
2670 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2671 whose name does not start with the host triplet. If you think this
2672 configuration is useful to you, please write to autoconf@gnu.org." >&5
2673 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2674 whose name does not start with the host triplet. If you think this
2675 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2676 ac_tool_warned=yes ;;
2684 if test -z "$CC"; then
2685 if test -n "$ac_tool_prefix"; then
2686 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2687 set dummy ${ac_tool_prefix}cc; ac_word=$2
2688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2690 if test "${ac_cv_prog_CC+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 if test -n "$CC"; then
2694 ac_cv_prog_CC="$CC" # Let the user override the test.
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_CC="${ac_tool_prefix}cc"
2704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2714 if test -n "$CC"; then
2715 { echo "$as_me:$LINENO: result: $CC" >&5
2716 echo "${ECHO_T}$CC" >&6; }
2718 { echo "$as_me:$LINENO: result: no" >&5
2719 echo "${ECHO_T}no" >&6; }
2725 if test -z "$CC"; then
2726 # Extract the first word of "cc", so it can be a program name with args.
2727 set dummy cc; ac_word=$2
2728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730 if test "${ac_cv_prog_CC+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 if test -n "$CC"; then
2734 ac_cv_prog_CC="$CC" # Let the user override the test.
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2744 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2745 ac_prog_rejected=yes
2749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 if test $ac_prog_rejected = yes; then
2757 # We found a bogon in the path, so make sure we never use it.
2758 set dummy $ac_cv_prog_CC
2760 if test $# != 0; then
2761 # We chose a different compiler from the bogus one.
2762 # However, it has the same basename, so the bogon will be chosen
2763 # first if we set CC to just the basename; use the full file name.
2765 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2771 if test -n "$CC"; then
2772 { echo "$as_me:$LINENO: result: $CC" >&5
2773 echo "${ECHO_T}$CC" >&6; }
2775 { echo "$as_me:$LINENO: result: no" >&5
2776 echo "${ECHO_T}no" >&6; }
2781 if test -z "$CC"; then
2782 if test -n "$ac_tool_prefix"; then
2783 for ac_prog in cl.exe
2785 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2786 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2789 if test "${ac_cv_prog_CC+set}" = set; then
2790 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 if test -n "$CC"; then
2793 ac_cv_prog_CC="$CC" # Let the user override the test.
2795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir=.
2800 for ac_exec_ext in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2813 if test -n "$CC"; then
2814 { echo "$as_me:$LINENO: result: $CC" >&5
2815 echo "${ECHO_T}$CC" >&6; }
2817 { echo "$as_me:$LINENO: result: no" >&5
2818 echo "${ECHO_T}no" >&6; }
2822 test -n "$CC" && break
2825 if test -z "$CC"; then
2827 for ac_prog in cl.exe
2829 # Extract the first word of "$ac_prog", so it can be a program name with args.
2830 set dummy $ac_prog; ac_word=$2
2831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2833 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2834 echo $ECHO_N "(cached) $ECHO_C" >&6
2836 if test -n "$ac_ct_CC"; then
2837 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2843 test -z "$as_dir" && as_dir=.
2844 for ac_exec_ext in '' $ac_executable_extensions; do
2845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2846 ac_cv_prog_ac_ct_CC="$ac_prog"
2847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2857 if test -n "$ac_ct_CC"; then
2858 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2859 echo "${ECHO_T}$ac_ct_CC" >&6; }
2861 { echo "$as_me:$LINENO: result: no" >&5
2862 echo "${ECHO_T}no" >&6; }
2866 test -n "$ac_ct_CC" && break
2869 if test "x$ac_ct_CC" = x; then
2872 case $cross_compiling:$ac_tool_warned in
2874 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2875 whose name does not start with the host triplet. If you think this
2876 configuration is useful to you, please write to autoconf@gnu.org." >&5
2877 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2878 whose name does not start with the host triplet. If you think this
2879 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2880 ac_tool_warned=yes ;;
2889 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: no acceptable C compiler found in \$PATH
2892 See \`config.log' for more details." >&2;}
2893 { (exit 1); exit 1; }; }
2895 # Provide some information about the compiler.
2896 echo "$as_me:$LINENO: checking for C compiler version" >&5
2897 ac_compiler=`set X $ac_compile; echo $2`
2898 { (ac_try="$ac_compiler --version >&5"
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler --version >&5") 2>&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908 { (ac_try="$ac_compiler -v >&5"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler -v >&5") 2>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2918 { (ac_try="$ac_compiler -V >&5"
2920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2924 (eval "$ac_compiler -V >&5") 2>&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }
2929 cat >conftest.$ac_ext <<_ACEOF
2932 cat confdefs.h >>conftest.$ac_ext
2933 cat >>conftest.$ac_ext <<_ACEOF
2934 /* end confdefs.h. */
2944 ac_clean_files_save=$ac_clean_files
2945 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2946 # Try to create an executable without -o first, disregard a.out.
2947 # It will help us diagnose broken compilers, and finding out an intuition
2949 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2950 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2951 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2953 # List of possible output files, starting from the most likely.
2954 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2955 # only as a last resort. b.out is created by i960 compilers.
2956 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2958 # The IRIX 6 linker writes into existing files which may not be
2959 # executable, retaining their permissions. Remove them first so a
2960 # subsequent execution test works.
2962 for ac_file in $ac_files
2965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2966 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2971 if { (ac_try="$ac_link_default"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2977 (eval "$ac_link_default") 2>&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); }; then
2981 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2982 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2983 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2984 # so that the user can short-circuit this test for compilers unknown to
2986 for ac_file in $ac_files ''
2988 test -f "$ac_file" || continue
2990 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2993 # We found the default executable, but exeext='' is most
2997 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2999 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3001 # We set ac_cv_exeext here because the later test for it is not
3002 # safe: cross compilers may not add the suffix if given an `-o'
3003 # argument, so we may need to know it at that point already.
3004 # Even if this section looks crufty: it has the advantage of
3011 test "$ac_cv_exeext" = no && ac_cv_exeext=
3017 { echo "$as_me:$LINENO: result: $ac_file" >&5
3018 echo "${ECHO_T}$ac_file" >&6; }
3019 if test -z "$ac_file"; then
3020 echo "$as_me: failed program was:" >&5
3021 sed 's/^/| /' conftest.$ac_ext >&5
3023 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: C compiler cannot create executables
3026 See \`config.log' for more details." >&2;}
3027 { (exit 77); exit 77; }; }
3030 ac_exeext=$ac_cv_exeext
3032 # Check that the compiler produces executables we can run. If not, either
3033 # the compiler is broken, or we cross compile.
3034 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3035 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3036 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3037 # If not cross compiling, check that we can run a simple program.
3038 if test "$cross_compiling" != yes; then
3039 if { ac_try='./$ac_file'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3051 if test "$cross_compiling" = maybe; then
3054 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3055 If you meant to cross compile, use \`--host'.
3056 See \`config.log' for more details." >&5
3057 echo "$as_me: error: cannot run C compiled programs.
3058 If you meant to cross compile, use \`--host'.
3059 See \`config.log' for more details." >&2;}
3060 { (exit 1); exit 1; }; }
3064 { echo "$as_me:$LINENO: result: yes" >&5
3065 echo "${ECHO_T}yes" >&6; }
3067 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3068 ac_clean_files=$ac_clean_files_save
3069 # Check that the compiler produces executables we can run. If not, either
3070 # the compiler is broken, or we cross compile.
3071 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3072 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3073 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3074 echo "${ECHO_T}$cross_compiling" >&6; }
3076 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3077 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3078 if { (ac_try="$ac_link"
3080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081 *) ac_try_echo=$ac_try;;
3083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3084 (eval "$ac_link") 2>&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; then
3088 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3089 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3090 # work properly (i.e., refer to `conftest.exe'), while it won't with
3092 for ac_file in conftest.exe conftest conftest.*; do
3093 test -f "$ac_file" || continue
3095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3096 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3102 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3103 See \`config.log' for more details." >&5
3104 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3105 See \`config.log' for more details." >&2;}
3106 { (exit 1); exit 1; }; }
3109 rm -f conftest$ac_cv_exeext
3110 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3111 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3113 rm -f conftest.$ac_ext
3114 EXEEXT=$ac_cv_exeext
3116 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3117 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3118 if test "${ac_cv_objext+set}" = set; then
3119 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 cat >conftest.$ac_ext <<_ACEOF
3124 cat confdefs.h >>conftest.$ac_ext
3125 cat >>conftest.$ac_ext <<_ACEOF
3126 /* end confdefs.h. */
3136 rm -f conftest.o conftest.obj
3137 if { (ac_try="$ac_compile"
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_compile") 2>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; then
3147 for ac_file in conftest.o conftest.obj conftest.*; do
3148 test -f "$ac_file" || continue;
3150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3151 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3156 echo "$as_me: failed program was:" >&5
3157 sed 's/^/| /' conftest.$ac_ext >&5
3159 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3160 See \`config.log' for more details." >&5
3161 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3162 See \`config.log' for more details." >&2;}
3163 { (exit 1); exit 1; }; }
3166 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3168 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3169 echo "${ECHO_T}$ac_cv_objext" >&6; }
3170 OBJEXT=$ac_cv_objext
3172 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3173 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3174 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3175 echo $ECHO_N "(cached) $ECHO_C" >&6
3177 cat >conftest.$ac_ext <<_ACEOF
3180 cat confdefs.h >>conftest.$ac_ext
3181 cat >>conftest.$ac_ext <<_ACEOF
3182 /* end confdefs.h. */
3195 rm -f conftest.$ac_objext
3196 if { (ac_try="$ac_compile"
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3202 (eval "$ac_compile") 2>conftest.er1
3204 grep -v '^ *+' conftest.er1 >conftest.err
3206 cat conftest.err >&5
3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208 (exit $ac_status); } && {
3209 test -z "$ac_c_werror_flag" ||
3210 test ! -s conftest.err
3211 } && test -s conftest.$ac_objext; then
3214 echo "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3221 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3224 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3225 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3226 GCC=`test $ac_compiler_gnu = yes && echo yes`
3227 ac_test_CFLAGS=${CFLAGS+set}
3228 ac_save_CFLAGS=$CFLAGS
3229 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3230 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3231 if test "${ac_cv_prog_cc_g+set}" = set; then
3232 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 ac_save_c_werror_flag=$ac_c_werror_flag
3235 ac_c_werror_flag=yes
3238 cat >conftest.$ac_ext <<_ACEOF
3241 cat confdefs.h >>conftest.$ac_ext
3242 cat >>conftest.$ac_ext <<_ACEOF
3243 /* end confdefs.h. */
3253 rm -f conftest.$ac_objext
3254 if { (ac_try="$ac_compile"
3256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3257 *) ac_try_echo=$ac_try;;
3259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3260 (eval "$ac_compile") 2>conftest.er1
3262 grep -v '^ *+' conftest.er1 >conftest.err
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } && {
3267 test -z "$ac_c_werror_flag" ||
3268 test ! -s conftest.err
3269 } && test -s conftest.$ac_objext; then
3272 echo "$as_me: failed program was:" >&5
3273 sed 's/^/| /' conftest.$ac_ext >&5
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3291 rm -f conftest.$ac_objext
3292 if { (ac_try="$ac_compile"
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_compile") 2>conftest.er1
3300 grep -v '^ *+' conftest.er1 >conftest.err
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } && {
3305 test -z "$ac_c_werror_flag" ||
3306 test ! -s conftest.err
3307 } && test -s conftest.$ac_objext; then
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 ac_c_werror_flag=$ac_save_c_werror_flag
3315 cat >conftest.$ac_ext <<_ACEOF
3318 cat confdefs.h >>conftest.$ac_ext
3319 cat >>conftest.$ac_ext <<_ACEOF
3320 /* end confdefs.h. */
3330 rm -f conftest.$ac_objext
3331 if { (ac_try="$ac_compile"
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_compile") 2>conftest.er1
3339 grep -v '^ *+' conftest.er1 >conftest.err
3341 cat conftest.err >&5
3342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3343 (exit $ac_status); } && {
3344 test -z "$ac_c_werror_flag" ||
3345 test ! -s conftest.err
3346 } && test -s conftest.$ac_objext; then
3349 echo "$as_me: failed program was:" >&5
3350 sed 's/^/| /' conftest.$ac_ext >&5
3355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3362 ac_c_werror_flag=$ac_save_c_werror_flag
3364 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3365 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3366 if test "$ac_test_CFLAGS" = set; then
3367 CFLAGS=$ac_save_CFLAGS
3368 elif test $ac_cv_prog_cc_g = yes; then
3369 if test "$GCC" = yes; then
3375 if test "$GCC" = yes; then
3381 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3382 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3383 if test "${ac_cv_prog_cc_c89+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 ac_cv_prog_cc_c89=no
3388 cat >conftest.$ac_ext <<_ACEOF
3391 cat confdefs.h >>conftest.$ac_ext
3392 cat >>conftest.$ac_ext <<_ACEOF
3393 /* end confdefs.h. */
3396 #include <sys/types.h>
3397 #include <sys/stat.h>
3398 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3399 struct buf { int x; };
3400 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3401 static char *e (p, i)
3407 static char *f (char * (*g) (char **, int), char **p, ...)
3412 s = g (p, va_arg (v,int));
3417 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3418 function prototypes and stuff, but not '\xHH' hex character constants.
3419 These don't provoke an error unfortunately, instead are silently treated
3420 as 'x'. The following induces an error, until -std is added to get
3421 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3422 array size at least. It's necessary to write '\x00'==0 to get something
3423 that's true only with -std. */
3424 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3426 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3427 inside strings and character constants. */
3429 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3431 int test (int i, double x);
3432 struct s1 {int (*f) (int a);};
3433 struct s2 {int (*f) (double a);};
3434 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3440 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3445 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3446 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3448 CC="$ac_save_CC $ac_arg"
3449 rm -f conftest.$ac_objext
3450 if { (ac_try="$ac_compile"
3452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3453 *) ac_try_echo=$ac_try;;
3455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3456 (eval "$ac_compile") 2>conftest.er1
3458 grep -v '^ *+' conftest.er1 >conftest.err
3460 cat conftest.err >&5
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); } && {
3463 test -z "$ac_c_werror_flag" ||
3464 test ! -s conftest.err
3465 } && test -s conftest.$ac_objext; then
3466 ac_cv_prog_cc_c89=$ac_arg
3468 echo "$as_me: failed program was:" >&5
3469 sed 's/^/| /' conftest.$ac_ext >&5
3474 rm -f core conftest.err conftest.$ac_objext
3475 test "x$ac_cv_prog_cc_c89" != "xno" && break
3477 rm -f conftest.$ac_ext
3482 case "x$ac_cv_prog_cc_c89" in
3484 { echo "$as_me:$LINENO: result: none needed" >&5
3485 echo "${ECHO_T}none needed" >&6; } ;;
3487 { echo "$as_me:$LINENO: result: unsupported" >&5
3488 echo "${ECHO_T}unsupported" >&6; } ;;
3490 CC="$CC $ac_cv_prog_cc_c89"
3491 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3492 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3497 ac_cpp='$CPP $CPPFLAGS'
3498 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3501 DEPDIR="${am__leading_dot}deps"
3503 ac_config_commands="$ac_config_commands depfiles"
3506 am_make=${MAKE-make}
3507 cat > confinc << 'END'
3512 # If we don't find an include directive, just comment out the code.
3513 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3514 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3518 # First try GNU make style include.
3519 echo "include confinc" > confmf
3520 # We grep out `Entering directory' and `Leaving directory'
3521 # messages which can occur if `w' ends up in MAKEFLAGS.
3522 # In particular we don't look at `^make:' because GNU make might
3523 # be invoked under some other name (usually "gmake"), in which
3524 # case it prints its new name instead of `make'.
3525 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3530 # Now try BSD make style include.
3531 if test "$am__include" = "#"; then
3532 echo '.include "confinc"' > confmf
3533 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3534 am__include=.include
3541 { echo "$as_me:$LINENO: result: $_am_result" >&5
3542 echo "${ECHO_T}$_am_result" >&6; }
3543 rm -f confinc confmf
3545 # Check whether --enable-dependency-tracking was given.
3546 if test "${enable_dependency_tracking+set}" = set; then
3547 enableval=$enable_dependency_tracking;
3550 if test "x$enable_dependency_tracking" != xno; then
3551 am_depcomp="$ac_aux_dir/depcomp"
3554 if test "x$enable_dependency_tracking" != xno; then
3564 depcc="$CC" am_compiler_list=
3566 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3567 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3568 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3571 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3572 # We make a subdir and do the tests there. Otherwise we can end up
3573 # making bogus files that we don't know about and never remove. For
3574 # instance it was reported that on HP-UX the gcc test will end up
3575 # making a dummy file named `D' -- because `-MD' means `put the output
3578 # Copy depcomp to subdir because otherwise we won't find it if we're
3579 # using a relative directory.
3580 cp "$am_depcomp" conftest.dir
3582 # We will build objects and dependencies in a subdirectory because
3583 # it helps to detect inapplicable dependency modes. For instance
3584 # both Tru64's cc and ICC support -MD to output dependencies as a
3585 # side effect of compilation, but ICC will put the dependencies in
3586 # the current directory while Tru64 will put them in the object
3590 am_cv_CC_dependencies_compiler_type=none
3591 if test "$am_compiler_list" = ""; then
3592 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3594 for depmode in $am_compiler_list; do
3595 # Setup a source with many dependencies, because some compilers
3596 # like to wrap large dependency lists on column 80 (with \), and
3597 # we should not choose a depcomp mode which is confused by this.
3599 # We need to recreate these files for each test, as the compiler may
3600 # overwrite some of them when testing with obscure command lines.
3601 # This happens at least with the AIX C compiler.
3603 for i in 1 2 3 4 5 6; do
3604 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3605 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3606 # Solaris 8's {/usr,}/bin/sh.
3607 touch sub/conftst$i.h
3609 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3613 # after this tag, mechanisms are not by side-effect, so they'll
3614 # only be used when explicitly requested
3615 if test "x$enable_dependency_tracking" = xyes; then
3623 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3624 # mode. It turns out that the SunPro C++ compiler does not properly
3625 # handle `-M -o', and we need to detect this.
3626 if depmode=$depmode \
3627 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3628 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3629 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3630 >/dev/null 2>conftest.err &&
3631 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3632 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3633 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3634 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3635 # icc doesn't choke on unknown options, it will just issue warnings
3636 # or remarks (even with -Werror). So we grep stderr for any message
3637 # that says an option was ignored or not supported.
3638 # When given -MP, icc 7.0 and 7.1 complain thusly:
3639 # icc: Command line warning: ignoring option '-M'; no argument required
3640 # The diagnosis changed in icc 8.0:
3641 # icc: Command line remark: option '-MP' not supported
3642 if (grep 'ignoring option' conftest.err ||
3643 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3644 am_cv_CC_dependencies_compiler_type=$depmode
3653 am_cv_CC_dependencies_compiler_type=none
3657 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3658 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3659 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3662 test "x$enable_dependency_tracking" != xno \
3663 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3665 am__fastdepCC_FALSE='#'
3667 am__fastdepCC_TRUE='#'
3668 am__fastdepCC_FALSE=
3672 # Find a good install program. We prefer a C program (faster),
3673 # so one script is as good as another. But avoid the broken or
3674 # incompatible versions:
3675 # SysV /etc/install, /usr/sbin/install
3676 # SunOS /usr/etc/install
3677 # IRIX /sbin/install
3679 # AmigaOS /C/install, which installs bootblocks on floppy discs
3680 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3681 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3682 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3683 # OS/2's system install, which has a completely different semantic
3684 # ./install, which can be erroneously created by make from ./install.sh.
3685 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3686 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3687 if test -z "$INSTALL"; then
3688 if test "${ac_cv_path_install+set}" = set; then
3689 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir=.
3696 # Account for people who put trailing slashes in PATH elements.
3698 ./ | .// | /cC/* | \
3699 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3700 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3703 # OSF1 and SCO ODT 3.0 have their own names for install.
3704 # Don't use installbsd from OSF since it installs stuff as root
3706 for ac_prog in ginstall scoinst install; do
3707 for ac_exec_ext in '' $ac_executable_extensions; do
3708 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3709 if test $ac_prog = install &&
3710 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3711 # AIX install. It has an incompatible calling convention.
3713 elif test $ac_prog = install &&
3714 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3715 # program-specific install script used by HP pwplus--don't use.
3718 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3731 if test "${ac_cv_path_install+set}" = set; then
3732 INSTALL=$ac_cv_path_install
3734 # As a last resort, use the slow shell script. Don't cache a
3735 # value for INSTALL within a source directory, because that will
3736 # break other packages using the cache if that directory is
3737 # removed, or if the value is a relative name.
3738 INSTALL=$ac_install_sh
3741 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3742 echo "${ECHO_T}$INSTALL" >&6; }
3744 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3745 # It thinks the first close brace ends the variable substitution.
3746 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3748 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3750 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3754 # Check whether --enable-shared was given.
3755 if test "${enable_shared+set}" = set; then
3756 enableval=$enable_shared; p=${PACKAGE-default}
3758 yes) enable_shared=yes ;;
3759 no) enable_shared=no ;;
3762 # Look at the argument we got. We use all the common list separators.
3763 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3764 for pkg in $enableval; do
3766 if test "X$pkg" = "X$p"; then
3778 # Check whether --enable-static was given.
3779 if test "${enable_static+set}" = set; then
3780 enableval=$enable_static; p=${PACKAGE-default}
3782 yes) enable_static=yes ;;
3783 no) enable_static=no ;;
3786 # Look at the argument we got. We use all the common list separators.
3787 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3788 for pkg in $enableval; do
3790 if test "X$pkg" = "X$p"; then
3802 # Check whether --enable-fast-install was given.
3803 if test "${enable_fast_install+set}" = set; then
3804 enableval=$enable_fast_install; p=${PACKAGE-default}
3806 yes) enable_fast_install=yes ;;
3807 no) enable_fast_install=no ;;
3809 enable_fast_install=no
3810 # Look at the argument we got. We use all the common list separators.
3811 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3812 for pkg in $enableval; do
3814 if test "X$pkg" = "X$p"; then
3815 enable_fast_install=yes
3822 enable_fast_install=yes
3826 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3827 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3828 if test "${lt_cv_path_SED+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
3831 # Loop through the user's path and test for sed and gsed.
3832 # Then use that list of sed's as ones to test for truncation.
3833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837 test -z "$as_dir" && as_dir=.
3838 for lt_ac_prog in sed gsed; do
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3841 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3848 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3849 # along with /bin/sed that truncates output.
3850 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3851 test ! -f $lt_ac_sed && continue
3852 cat /dev/null > conftest.in
3854 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3855 # Check for GNU sed and select it if it is found.
3856 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3857 lt_cv_path_SED=$lt_ac_sed
3861 cat conftest.in conftest.in >conftest.tmp
3862 mv conftest.tmp conftest.in
3863 cp conftest.in conftest.nl
3865 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3866 cmp -s conftest.out conftest.nl || break
3867 # 10000 chars as input seems more than enough
3868 test $lt_ac_count -gt 10 && break
3869 lt_ac_count=`expr $lt_ac_count + 1`
3870 if test $lt_ac_count -gt $lt_ac_max; then
3871 lt_ac_max=$lt_ac_count
3872 lt_cv_path_SED=$lt_ac_sed
3880 { echo "$as_me:$LINENO: result: $SED" >&5
3881 echo "${ECHO_T}$SED" >&6; }
3883 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3884 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3885 if test "${ac_cv_path_GREP+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 # Extract the first word of "grep ggrep" to use in msg output
3889 if test -z "$GREP"; then
3890 set dummy grep ggrep; ac_prog_name=$2
3891 if test "${ac_cv_path_GREP+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 ac_path_GREP_found=false
3895 # Loop through the user's path and test for each of PROGNAME-LIST
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3900 test -z "$as_dir" && as_dir=.
3901 for ac_prog in grep ggrep; do
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3904 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3905 # Check for GNU ac_path_GREP and select it if it is found.
3906 # Check for GNU $ac_path_GREP
3907 case `"$ac_path_GREP" --version 2>&1` in
3909 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3912 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3915 cat "conftest.in" "conftest.in" >"conftest.tmp"
3916 mv "conftest.tmp" "conftest.in"
3917 cp "conftest.in" "conftest.nl"
3918 echo 'GREP' >> "conftest.nl"
3919 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3921 ac_count=`expr $ac_count + 1`
3922 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3923 # Best one so far, save it but keep looking for a better one
3924 ac_cv_path_GREP="$ac_path_GREP"
3925 ac_path_GREP_max=$ac_count
3927 # 10*(2^10) chars as input seems more than enough
3928 test $ac_count -gt 10 && break
3930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3934 $ac_path_GREP_found && break 3
3944 GREP="$ac_cv_path_GREP"
3945 if test -z "$GREP"; then
3946 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3947 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3948 { (exit 1); exit 1; }; }
3952 ac_cv_path_GREP=$GREP
3957 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3958 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3959 GREP="$ac_cv_path_GREP"
3962 { echo "$as_me:$LINENO: checking for egrep" >&5
3963 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3964 if test "${ac_cv_path_EGREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3968 then ac_cv_path_EGREP="$GREP -E"
3970 # Extract the first word of "egrep" to use in msg output
3971 if test -z "$EGREP"; then
3972 set dummy egrep; ac_prog_name=$2
3973 if test "${ac_cv_path_EGREP+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
3976 ac_path_EGREP_found=false
3977 # Loop through the user's path and test for each of PROGNAME-LIST
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3979 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3982 test -z "$as_dir" && as_dir=.
3983 for ac_prog in egrep; do
3984 for ac_exec_ext in '' $ac_executable_extensions; do
3985 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3986 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3987 # Check for GNU ac_path_EGREP and select it if it is found.
3988 # Check for GNU $ac_path_EGREP
3989 case `"$ac_path_EGREP" --version 2>&1` in
3991 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3994 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3997 cat "conftest.in" "conftest.in" >"conftest.tmp"
3998 mv "conftest.tmp" "conftest.in"
3999 cp "conftest.in" "conftest.nl"
4000 echo 'EGREP' >> "conftest.nl"
4001 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4002 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4003 ac_count=`expr $ac_count + 1`
4004 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4005 # Best one so far, save it but keep looking for a better one
4006 ac_cv_path_EGREP="$ac_path_EGREP"
4007 ac_path_EGREP_max=$ac_count
4009 # 10*(2^10) chars as input seems more than enough
4010 test $ac_count -gt 10 && break
4012 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4016 $ac_path_EGREP_found && break 3
4026 EGREP="$ac_cv_path_EGREP"
4027 if test -z "$EGREP"; then
4028 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4029 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4030 { (exit 1); exit 1; }; }
4034 ac_cv_path_EGREP=$EGREP
4040 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4041 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4042 EGREP="$ac_cv_path_EGREP"
4046 # Check whether --with-gnu-ld was given.
4047 if test "${with_gnu_ld+set}" = set; then
4048 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4054 if test "$GCC" = yes; then
4055 # Check if gcc -print-prog-name=ld gives a path.
4056 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4057 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4060 # gcc leaves a trailing carriage return which upsets mingw
4061 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4063 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4066 # Accept absolute paths.
4068 re_direlt='/[^/][^/]*/\.\./'
4069 # Canonicalize the pathname of ld
4070 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4071 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4072 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4074 test -z "$LD" && LD="$ac_prog"
4077 # If it fails, then pretend we aren't using GCC.
4081 # If it is relative, then search for the first ld in PATH.
4085 elif test "$with_gnu_ld" = yes; then
4086 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4087 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4089 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4090 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4092 if test "${lt_cv_path_LD+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 if test -z "$LD"; then
4096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4097 for ac_dir in $PATH; do
4099 test -z "$ac_dir" && ac_dir=.
4100 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4101 lt_cv_path_LD="$ac_dir/$ac_prog"
4102 # Check to see if the program is GNU ld. I'd rather use --version,
4103 # but apparently some variants of GNU ld only accept -v.
4104 # Break only if it was the GNU/non-GNU ld that we prefer.
4105 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4106 *GNU* | *'with BFD'*)
4107 test "$with_gnu_ld" != no && break
4110 test "$with_gnu_ld" != yes && break
4117 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4122 if test -n "$LD"; then
4123 { echo "$as_me:$LINENO: result: $LD" >&5
4124 echo "${ECHO_T}$LD" >&6; }
4126 { echo "$as_me:$LINENO: result: no" >&5
4127 echo "${ECHO_T}no" >&6; }
4129 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4130 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4131 { (exit 1); exit 1; }; }
4132 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4133 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4134 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4138 case `$LD -v 2>&1 </dev/null` in
4139 *GNU* | *'with BFD'*)
4140 lt_cv_prog_gnu_ld=yes
4143 lt_cv_prog_gnu_ld=no
4147 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4148 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4149 with_gnu_ld=$lt_cv_prog_gnu_ld
4152 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4153 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4154 if test "${lt_cv_ld_reload_flag+set}" = set; then
4155 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 lt_cv_ld_reload_flag='-r'
4159 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4160 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4161 reload_flag=$lt_cv_ld_reload_flag
4162 case $reload_flag in
4164 *) reload_flag=" $reload_flag" ;;
4166 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4169 if test "$GCC" = yes; then
4170 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4172 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4177 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4178 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4179 if test "${lt_cv_path_NM+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4182 if test -n "$NM"; then
4183 # Let the user override the test.
4186 lt_nm_to_check="${ac_tool_prefix}nm"
4187 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4188 lt_nm_to_check="$lt_nm_to_check nm"
4190 for lt_tmp_nm in $lt_nm_to_check; do
4191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4192 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4194 test -z "$ac_dir" && ac_dir=.
4195 tmp_nm="$ac_dir/$lt_tmp_nm"
4196 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4197 # Check to see if the nm accepts a BSD-compat flag.
4198 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4199 # nm: unknown option "B" ignored
4200 # Tru64's nm complains that /dev/null is an invalid object file
4201 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4202 */dev/null* | *'Invalid file or object type'*)
4203 lt_cv_path_NM="$tmp_nm -B"
4207 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4209 lt_cv_path_NM="$tmp_nm -p"
4213 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4214 continue # so that we can try to find one that supports BSD flags
4223 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4226 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4227 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4230 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4231 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4233 if test "$LN_S" = "ln -s"; then
4234 { echo "$as_me:$LINENO: result: yes" >&5
4235 echo "${ECHO_T}yes" >&6; }
4237 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4238 echo "${ECHO_T}no, using $LN_S" >&6; }
4241 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4242 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4243 if test "${lt_cv_deplibs_check_method+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 lt_cv_file_magic_cmd='$MAGIC_CMD'
4247 lt_cv_file_magic_test_file=
4248 lt_cv_deplibs_check_method='unknown'
4249 # Need to set the preceding variable on all platforms that support
4250 # interlibrary dependencies.
4251 # 'none' -- dependencies not supported.
4252 # `unknown' -- same as none, but documents that we really don't know.
4253 # 'pass_all' -- all dependencies passed with no checks.
4254 # 'test_compile' -- check by making test program.
4255 # 'file_magic [[regex]]' -- check by looking for files in library path
4256 # which responds to the $file_magic_cmd with a given extended regex.
4257 # If you have `file' or equivalent on your system and you're not sure
4258 # whether `pass_all' will *always* work, you probably want this one.
4262 lt_cv_deplibs_check_method=pass_all
4266 lt_cv_deplibs_check_method=pass_all
4270 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4271 lt_cv_file_magic_cmd='/usr/bin/file -L'
4272 lt_cv_file_magic_test_file=/shlib/libc.so
4276 # func_win32_libid is a shell function defined in ltmain.sh
4277 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4278 lt_cv_file_magic_cmd='func_win32_libid'
4282 # Base MSYS/MinGW do not provide the 'file' command needed by
4283 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4284 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4285 lt_cv_file_magic_cmd='$OBJDUMP -f'
4288 darwin* | rhapsody*)
4289 lt_cv_deplibs_check_method=pass_all
4292 freebsd* | dragonfly*)
4293 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4296 # Not sure whether the presence of OpenBSD here was a mistake.
4297 # Let's accept both of them until this is cleared up.
4298 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4299 lt_cv_file_magic_cmd=/usr/bin/file
4300 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4304 lt_cv_deplibs_check_method=pass_all
4309 lt_cv_deplibs_check_method=pass_all
4312 hpux10.20* | hpux11*)
4313 lt_cv_file_magic_cmd=/usr/bin/file
4316 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4317 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4320 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]'
4321 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4324 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4325 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4331 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4332 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4335 irix5* | irix6* | nonstopux*)
4337 *-32|*"-32 ") libmagic=32-bit;;
4338 *-n32|*"-n32 ") libmagic=N32;;
4339 *-64|*"-64 ") libmagic=64-bit;;
4340 *) libmagic=never-match;;
4342 lt_cv_deplibs_check_method=pass_all
4345 # This must be Linux ELF.
4346 linux* | k*bsd*-gnu)
4347 lt_cv_deplibs_check_method=pass_all
4350 netbsd* | netbsdelf*-gnu)
4351 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4359 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4360 lt_cv_file_magic_cmd=/usr/bin/file
4361 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4365 lt_cv_deplibs_check_method=unknown
4369 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4376 osf3* | osf4* | osf5*)
4377 lt_cv_deplibs_check_method=pass_all
4381 lt_cv_deplibs_check_method=pass_all
4385 case $host_vendor in
4387 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]'
4388 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4391 lt_cv_deplibs_check_method=pass_all
4394 lt_cv_file_magic_cmd='/bin/file'
4395 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4398 lt_cv_file_magic_cmd='/bin/file'
4399 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4400 lt_cv_file_magic_test_file=/lib/libc.so
4403 lt_cv_deplibs_check_method=pass_all
4406 lt_cv_deplibs_check_method=pass_all
4411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4412 lt_cv_deplibs_check_method=pass_all
4417 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4418 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4419 file_magic_cmd=$lt_cv_file_magic_cmd
4420 deplibs_check_method=$lt_cv_deplibs_check_method
4421 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4426 # If no C compiler was specified, use CC.
4429 # If no C compiler flags were specified, use CFLAGS.
4430 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4432 # Allow CC to be a program name with arguments.
4436 # Check whether --enable-libtool-lock was given.
4437 if test "${enable_libtool_lock+set}" = set; then
4438 enableval=$enable_libtool_lock;
4441 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4443 # Some flags need to be propagated to the compiler or linker for good
4447 # Find out which ABI we are using.
4448 echo 'int i;' > conftest.$ac_ext
4449 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4450 (eval $ac_compile) 2>&5
4452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4453 (exit $ac_status); }; then
4454 case `/usr/bin/file conftest.$ac_objext` in
4466 # Find out which ABI we are using.
4467 echo '#line 4467 "configure"' > conftest.$ac_ext
4468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4469 (eval $ac_compile) 2>&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; then
4473 if test "$lt_cv_prog_gnu_ld" = yes; then
4474 case `/usr/bin/file conftest.$ac_objext` in
4476 LD="${LD-ld} -melf32bsmip"
4479 LD="${LD-ld} -melf32bmipn32"
4482 LD="${LD-ld} -melf64bmip"
4486 case `/usr/bin/file conftest.$ac_objext` in
4502 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4503 # Find out which ABI we are using.
4504 echo 'int i;' > conftest.$ac_ext
4505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4506 (eval $ac_compile) 2>&5
4508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4509 (exit $ac_status); }; then
4510 case `/usr/bin/file conftest.o` in
4514 LD="${LD-ld} -m elf_i386"
4516 ppc64-*linux*|powerpc64-*linux*)
4517 LD="${LD-ld} -m elf32ppclinux"
4520 LD="${LD-ld} -m elf_s390"
4523 LD="${LD-ld} -m elf32_sparc"
4530 LD="${LD-ld} -m elf_x86_64"
4532 ppc*-*linux*|powerpc*-*linux*)
4533 LD="${LD-ld} -m elf64ppc"
4536 LD="${LD-ld} -m elf64_s390"
4539 LD="${LD-ld} -m elf64_sparc"
4549 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4550 SAVE_CFLAGS="$CFLAGS"
4551 CFLAGS="$CFLAGS -belf"
4552 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4553 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4554 if test "${lt_cv_cc_needs_belf+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 ac_cpp='$CPP $CPPFLAGS'
4559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4563 cat >conftest.$ac_ext <<_ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4578 rm -f conftest.$ac_objext conftest$ac_exeext
4579 if { (ac_try="$ac_link"
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585 (eval "$ac_link") 2>conftest.er1
4587 grep -v '^ *+' conftest.er1 >conftest.err
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } && {
4592 test -z "$ac_c_werror_flag" ||
4593 test ! -s conftest.err
4594 } && test -s conftest$ac_exeext &&
4595 $as_test_x conftest$ac_exeext; then
4596 lt_cv_cc_needs_belf=yes
4598 echo "$as_me: failed program was:" >&5
4599 sed 's/^/| /' conftest.$ac_ext >&5
4601 lt_cv_cc_needs_belf=no
4604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4605 conftest$ac_exeext conftest.$ac_ext
4607 ac_cpp='$CPP $CPPFLAGS'
4608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4613 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4614 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4615 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4616 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4617 CFLAGS="$SAVE_CFLAGS"
4621 # Find out which ABI we are using.
4622 echo 'int i;' > conftest.$ac_ext
4623 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4624 (eval $ac_compile) 2>&5
4626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4627 (exit $ac_status); }; then
4628 case `/usr/bin/file conftest.o` in
4630 case $lt_cv_prog_gnu_ld in
4631 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4632 *) LD="${LD-ld} -64" ;;
4643 need_locks="$enable_libtool_lock"
4647 ac_cpp='$CPP $CPPFLAGS'
4648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4651 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4652 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4653 # On Suns, sometimes $CPP names a directory.
4654 if test -n "$CPP" && test -d "$CPP"; then
4657 if test -z "$CPP"; then
4658 if test "${ac_cv_prog_CPP+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 # Double quotes because CPP needs to be expanded
4662 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4665 for ac_c_preproc_warn_flag in '' yes
4667 # Use a header file that comes with gcc, so configuring glibc
4668 # with a fresh cross-compiler works.
4669 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4670 # <limits.h> exists even on freestanding compilers.
4671 # On the NeXT, cc -E runs the code through the compiler's parser,
4672 # not just through cpp. "Syntax error" is here to catch this case.
4673 cat >conftest.$ac_ext <<_ACEOF
4676 cat confdefs.h >>conftest.$ac_ext
4677 cat >>conftest.$ac_ext <<_ACEOF
4678 /* end confdefs.h. */
4680 # include <limits.h>
4682 # include <assert.h>
4686 if { (ac_try="$ac_cpp conftest.$ac_ext"
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4694 grep -v '^ *+' conftest.er1 >conftest.err
4696 cat conftest.err >&5
4697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4698 (exit $ac_status); } >/dev/null && {
4699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4700 test ! -s conftest.err
4704 echo "$as_me: failed program was:" >&5
4705 sed 's/^/| /' conftest.$ac_ext >&5
4707 # Broken: fails on valid input.
4711 rm -f conftest.err conftest.$ac_ext
4713 # OK, works on sane cases. Now check whether nonexistent headers
4714 # can be detected and how.
4715 cat >conftest.$ac_ext <<_ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4721 #include <ac_nonexistent.h>
4723 if { (ac_try="$ac_cpp conftest.$ac_ext"
4725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4726 *) ac_try_echo=$ac_try;;
4728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4731 grep -v '^ *+' conftest.er1 >conftest.err
4733 cat conftest.err >&5
4734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735 (exit $ac_status); } >/dev/null && {
4736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4737 test ! -s conftest.err
4739 # Broken: success on invalid input.
4742 echo "$as_me: failed program was:" >&5
4743 sed 's/^/| /' conftest.$ac_ext >&5
4745 # Passes both tests.
4750 rm -f conftest.err conftest.$ac_ext
4753 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4754 rm -f conftest.err conftest.$ac_ext
4755 if $ac_preproc_ok; then
4767 { echo "$as_me:$LINENO: result: $CPP" >&5
4768 echo "${ECHO_T}$CPP" >&6; }
4770 for ac_c_preproc_warn_flag in '' yes
4772 # Use a header file that comes with gcc, so configuring glibc
4773 # with a fresh cross-compiler works.
4774 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4775 # <limits.h> exists even on freestanding compilers.
4776 # On the NeXT, cc -E runs the code through the compiler's parser,
4777 # not just through cpp. "Syntax error" is here to catch this case.
4778 cat >conftest.$ac_ext <<_ACEOF
4781 cat confdefs.h >>conftest.$ac_ext
4782 cat >>conftest.$ac_ext <<_ACEOF
4783 /* end confdefs.h. */
4785 # include <limits.h>
4787 # include <assert.h>
4791 if { (ac_try="$ac_cpp conftest.$ac_ext"
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4799 grep -v '^ *+' conftest.er1 >conftest.err
4801 cat conftest.err >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } >/dev/null && {
4804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4805 test ! -s conftest.err
4809 echo "$as_me: failed program was:" >&5
4810 sed 's/^/| /' conftest.$ac_ext >&5
4812 # Broken: fails on valid input.
4816 rm -f conftest.err conftest.$ac_ext
4818 # OK, works on sane cases. Now check whether nonexistent headers
4819 # can be detected and how.
4820 cat >conftest.$ac_ext <<_ACEOF
4823 cat confdefs.h >>conftest.$ac_ext
4824 cat >>conftest.$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4826 #include <ac_nonexistent.h>
4828 if { (ac_try="$ac_cpp conftest.$ac_ext"
4830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4831 *) ac_try_echo=$ac_try;;
4833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4836 grep -v '^ *+' conftest.er1 >conftest.err
4838 cat conftest.err >&5
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); } >/dev/null && {
4841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4842 test ! -s conftest.err
4844 # Broken: success on invalid input.
4847 echo "$as_me: failed program was:" >&5
4848 sed 's/^/| /' conftest.$ac_ext >&5
4850 # Passes both tests.
4855 rm -f conftest.err conftest.$ac_ext
4858 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4859 rm -f conftest.err conftest.$ac_ext
4860 if $ac_preproc_ok; then
4863 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4864 See \`config.log' for more details." >&5
4865 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4866 See \`config.log' for more details." >&2;}
4867 { (exit 1); exit 1; }; }
4871 ac_cpp='$CPP $CPPFLAGS'
4872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4877 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4878 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4879 if test "${ac_cv_header_stdc+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4882 cat >conftest.$ac_ext <<_ACEOF
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4901 rm -f conftest.$ac_objext
4902 if { (ac_try="$ac_compile"
4904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4905 *) ac_try_echo=$ac_try;;
4907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4908 (eval "$ac_compile") 2>conftest.er1
4910 grep -v '^ *+' conftest.er1 >conftest.err
4912 cat conftest.err >&5
4913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4914 (exit $ac_status); } && {
4915 test -z "$ac_c_werror_flag" ||
4916 test ! -s conftest.err
4917 } && test -s conftest.$ac_objext; then
4918 ac_cv_header_stdc=yes
4920 echo "$as_me: failed program was:" >&5
4921 sed 's/^/| /' conftest.$ac_ext >&5
4923 ac_cv_header_stdc=no
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 if test $ac_cv_header_stdc = yes; then
4929 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4930 cat >conftest.$ac_ext <<_ACEOF
4933 cat confdefs.h >>conftest.$ac_ext
4934 cat >>conftest.$ac_ext <<_ACEOF
4935 /* end confdefs.h. */
4939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4940 $EGREP "memchr" >/dev/null 2>&1; then
4943 ac_cv_header_stdc=no
4949 if test $ac_cv_header_stdc = yes; then
4950 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4951 cat >conftest.$ac_ext <<_ACEOF
4954 cat confdefs.h >>conftest.$ac_ext
4955 cat >>conftest.$ac_ext <<_ACEOF
4956 /* end confdefs.h. */
4960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4961 $EGREP "free" >/dev/null 2>&1; then
4964 ac_cv_header_stdc=no
4970 if test $ac_cv_header_stdc = yes; then
4971 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4972 if test "$cross_compiling" = yes; then
4975 cat >conftest.$ac_ext <<_ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4983 #if ((' ' & 0x0FF) == 0x020)
4984 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4985 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4987 # define ISLOWER(c) \
4988 (('a' <= (c) && (c) <= 'i') \
4989 || ('j' <= (c) && (c) <= 'r') \
4990 || ('s' <= (c) && (c) <= 'z'))
4991 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4994 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4999 for (i = 0; i < 256; i++)
5000 if (XOR (islower (i), ISLOWER (i))
5001 || toupper (i) != TOUPPER (i))
5006 rm -f conftest$ac_exeext
5007 if { (ac_try="$ac_link"
5009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5010 *) ac_try_echo=$ac_try;;
5012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5013 (eval "$ac_link") 2>&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5017 { (case "(($ac_try" in
5018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5019 *) ac_try_echo=$ac_try;;
5021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5022 (eval "$ac_try") 2>&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); }; }; then
5028 echo "$as_me: program exited with status $ac_status" >&5
5029 echo "$as_me: failed program was:" >&5
5030 sed 's/^/| /' conftest.$ac_ext >&5
5033 ac_cv_header_stdc=no
5035 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5041 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5042 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5043 if test $ac_cv_header_stdc = yes; then
5045 cat >>confdefs.h <<\_ACEOF
5046 #define STDC_HEADERS 1
5051 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5061 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5062 inttypes.h stdint.h unistd.h
5064 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5070 cat >conftest.$ac_ext <<_ACEOF
5073 cat confdefs.h >>conftest.$ac_ext
5074 cat >>conftest.$ac_ext <<_ACEOF
5075 /* end confdefs.h. */
5076 $ac_includes_default
5078 #include <$ac_header>
5080 rm -f conftest.$ac_objext
5081 if { (ac_try="$ac_compile"
5083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5084 *) ac_try_echo=$ac_try;;
5086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5087 (eval "$ac_compile") 2>conftest.er1
5089 grep -v '^ *+' conftest.er1 >conftest.err
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } && {
5094 test -z "$ac_c_werror_flag" ||
5095 test ! -s conftest.err
5096 } && test -s conftest.$ac_objext; then
5097 eval "$as_ac_Header=yes"
5099 echo "$as_me: failed program was:" >&5
5100 sed 's/^/| /' conftest.$ac_ext >&5
5102 eval "$as_ac_Header=no"
5105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 ac_res=`eval echo '${'$as_ac_Header'}'`
5108 { echo "$as_me:$LINENO: result: $ac_res" >&5
5109 echo "${ECHO_T}$ac_res" >&6; }
5110 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5111 cat >>confdefs.h <<_ACEOF
5112 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5121 for ac_header in dlfcn.h
5123 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5125 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5126 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 ac_res=`eval echo '${'$as_ac_Header'}'`
5131 { echo "$as_me:$LINENO: result: $ac_res" >&5
5132 echo "${ECHO_T}$ac_res" >&6; }
5134 # Is the header compilable?
5135 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5136 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5137 cat >conftest.$ac_ext <<_ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h. */
5143 $ac_includes_default
5144 #include <$ac_header>
5146 rm -f conftest.$ac_objext
5147 if { (ac_try="$ac_compile"
5149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150 *) ac_try_echo=$ac_try;;
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153 (eval "$ac_compile") 2>conftest.er1
5155 grep -v '^ *+' conftest.er1 >conftest.err
5157 cat conftest.err >&5
5158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } && {
5160 test -z "$ac_c_werror_flag" ||
5161 test ! -s conftest.err
5162 } && test -s conftest.$ac_objext; then
5163 ac_header_compiler=yes
5165 echo "$as_me: failed program was:" >&5
5166 sed 's/^/| /' conftest.$ac_ext >&5
5168 ac_header_compiler=no
5171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5173 echo "${ECHO_T}$ac_header_compiler" >&6; }
5175 # Is the header present?
5176 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5177 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5178 cat >conftest.$ac_ext <<_ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h. */
5184 #include <$ac_header>
5186 if { (ac_try="$ac_cpp conftest.$ac_ext"
5188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5189 *) ac_try_echo=$ac_try;;
5191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5194 grep -v '^ *+' conftest.er1 >conftest.err
5196 cat conftest.err >&5
5197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198 (exit $ac_status); } >/dev/null && {
5199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5200 test ! -s conftest.err
5202 ac_header_preproc=yes
5204 echo "$as_me: failed program was:" >&5
5205 sed 's/^/| /' conftest.$ac_ext >&5
5207 ac_header_preproc=no
5210 rm -f conftest.err conftest.$ac_ext
5211 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5212 echo "${ECHO_T}$ac_header_preproc" >&6; }
5214 # So? What about this header?
5215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5221 ac_header_preproc=yes
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5231 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5237 ## ---------------------------------------- ##
5238 ## Report this to konn@users.sourceforge.jp ##
5239 ## ---------------------------------------- ##
5241 ) | sed "s/^/$as_me: WARNING: /" >&2
5244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5247 echo $ECHO_N "(cached) $ECHO_C" >&6
5249 eval "$as_ac_Header=\$ac_header_preproc"
5251 ac_res=`eval echo '${'$as_ac_Header'}'`
5252 { echo "$as_me:$LINENO: result: $ac_res" >&5
5253 echo "${ECHO_T}$ac_res" >&6; }
5256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5257 cat >>confdefs.h <<_ACEOF
5258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5266 ac_cpp='$CXXCPP $CPPFLAGS'
5267 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5268 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5269 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5270 if test -z "$CXX"; then
5271 if test -n "$CCC"; then
5274 if test -n "$ac_tool_prefix"; then
5275 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5277 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5278 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5281 if test "${ac_cv_prog_CXX+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5284 if test -n "$CXX"; then
5285 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 if test -n "$CXX"; then
5306 { echo "$as_me:$LINENO: result: $CXX" >&5
5307 echo "${ECHO_T}$CXX" >&6; }
5309 { echo "$as_me:$LINENO: result: no" >&5
5310 echo "${ECHO_T}no" >&6; }
5314 test -n "$CXX" && break
5317 if test -z "$CXX"; then
5319 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5321 # Extract the first word of "$ac_prog", so it can be a program name with args.
5322 set dummy $ac_prog; ac_word=$2
5323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5325 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5328 if test -n "$ac_ct_CXX"; then
5329 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 test -z "$as_dir" && as_dir=.
5336 for ac_exec_ext in '' $ac_executable_extensions; do
5337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5338 ac_cv_prog_ac_ct_CXX="$ac_prog"
5339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5348 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5349 if test -n "$ac_ct_CXX"; then
5350 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5351 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5353 { echo "$as_me:$LINENO: result: no" >&5
5354 echo "${ECHO_T}no" >&6; }
5358 test -n "$ac_ct_CXX" && break
5361 if test "x$ac_ct_CXX" = x; then
5364 case $cross_compiling:$ac_tool_warned in
5366 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5367 whose name does not start with the host triplet. If you think this
5368 configuration is useful to you, please write to autoconf@gnu.org." >&5
5369 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5370 whose name does not start with the host triplet. If you think this
5371 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5372 ac_tool_warned=yes ;;
5380 # Provide some information about the compiler.
5381 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5382 ac_compiler=`set X $ac_compile; echo $2`
5383 { (ac_try="$ac_compiler --version >&5"
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compiler --version >&5") 2>&5
5391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392 (exit $ac_status); }
5393 { (ac_try="$ac_compiler -v >&5"
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_compiler -v >&5") 2>&5
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); }
5403 { (ac_try="$ac_compiler -V >&5"
5405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5406 *) ac_try_echo=$ac_try;;
5408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5409 (eval "$ac_compiler -V >&5") 2>&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }
5414 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5415 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5416 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5417 echo $ECHO_N "(cached) $ECHO_C" >&6
5419 cat >conftest.$ac_ext <<_ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h. */
5437 rm -f conftest.$ac_objext
5438 if { (ac_try="$ac_compile"
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_compile") 2>conftest.er1
5446 grep -v '^ *+' conftest.er1 >conftest.err
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } && {
5451 test -z "$ac_cxx_werror_flag" ||
5452 test ! -s conftest.err
5453 } && test -s conftest.$ac_objext; then
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5466 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5467 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5468 GXX=`test $ac_compiler_gnu = yes && echo yes`
5469 ac_test_CXXFLAGS=${CXXFLAGS+set}
5470 ac_save_CXXFLAGS=$CXXFLAGS
5471 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5472 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5473 if test "${ac_cv_prog_cxx_g+set}" = set; then
5474 echo $ECHO_N "(cached) $ECHO_C" >&6
5476 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5477 ac_cxx_werror_flag=yes
5480 cat >conftest.$ac_ext <<_ACEOF
5483 cat confdefs.h >>conftest.$ac_ext
5484 cat >>conftest.$ac_ext <<_ACEOF
5485 /* end confdefs.h. */
5495 rm -f conftest.$ac_objext
5496 if { (ac_try="$ac_compile"
5498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5499 *) ac_try_echo=$ac_try;;
5501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5502 (eval "$ac_compile") 2>conftest.er1
5504 grep -v '^ *+' conftest.er1 >conftest.err
5506 cat conftest.err >&5
5507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5508 (exit $ac_status); } && {
5509 test -z "$ac_cxx_werror_flag" ||
5510 test ! -s conftest.err
5511 } && test -s conftest.$ac_objext; then
5512 ac_cv_prog_cxx_g=yes
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
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
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5557 cat >conftest.$ac_ext <<_ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5572 rm -f conftest.$ac_objext
5573 if { (ac_try="$ac_compile"
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5579 (eval "$ac_compile") 2>conftest.er1
5581 grep -v '^ *+' conftest.er1 >conftest.err
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } && {
5586 test -z "$ac_cxx_werror_flag" ||
5587 test ! -s conftest.err
5588 } && test -s conftest.$ac_objext; then
5589 ac_cv_prog_cxx_g=yes
5591 echo "$as_me: failed program was:" >&5
5592 sed 's/^/| /' conftest.$ac_ext >&5
5597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5604 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5606 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5607 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5608 if test "$ac_test_CXXFLAGS" = set; then
5609 CXXFLAGS=$ac_save_CXXFLAGS
5610 elif test $ac_cv_prog_cxx_g = yes; then
5611 if test "$GXX" = yes; then
5617 if test "$GXX" = yes; then
5624 ac_cpp='$CXXCPP $CPPFLAGS'
5625 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5629 depcc="$CXX" am_compiler_list=
5631 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5632 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5633 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5637 # We make a subdir and do the tests there. Otherwise we can end up
5638 # making bogus files that we don't know about and never remove. For
5639 # instance it was reported that on HP-UX the gcc test will end up
5640 # making a dummy file named `D' -- because `-MD' means `put the output
5643 # Copy depcomp to subdir because otherwise we won't find it if we're
5644 # using a relative directory.
5645 cp "$am_depcomp" conftest.dir
5647 # We will build objects and dependencies in a subdirectory because
5648 # it helps to detect inapplicable dependency modes. For instance
5649 # both Tru64's cc and ICC support -MD to output dependencies as a
5650 # side effect of compilation, but ICC will put the dependencies in
5651 # the current directory while Tru64 will put them in the object
5655 am_cv_CXX_dependencies_compiler_type=none
5656 if test "$am_compiler_list" = ""; then
5657 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5659 for depmode in $am_compiler_list; do
5660 # Setup a source with many dependencies, because some compilers
5661 # like to wrap large dependency lists on column 80 (with \), and
5662 # we should not choose a depcomp mode which is confused by this.
5664 # We need to recreate these files for each test, as the compiler may
5665 # overwrite some of them when testing with obscure command lines.
5666 # This happens at least with the AIX C compiler.
5668 for i in 1 2 3 4 5 6; do
5669 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5670 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5671 # Solaris 8's {/usr,}/bin/sh.
5672 touch sub/conftst$i.h
5674 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5678 # after this tag, mechanisms are not by side-effect, so they'll
5679 # only be used when explicitly requested
5680 if test "x$enable_dependency_tracking" = xyes; then
5688 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5689 # mode. It turns out that the SunPro C++ compiler does not properly
5690 # handle `-M -o', and we need to detect this.
5691 if depmode=$depmode \
5692 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5693 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5694 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5695 >/dev/null 2>conftest.err &&
5696 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5697 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5698 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5699 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5700 # icc doesn't choke on unknown options, it will just issue warnings
5701 # or remarks (even with -Werror). So we grep stderr for any message
5702 # that says an option was ignored or not supported.
5703 # When given -MP, icc 7.0 and 7.1 complain thusly:
5704 # icc: Command line warning: ignoring option '-M'; no argument required
5705 # The diagnosis changed in icc 8.0:
5706 # icc: Command line remark: option '-MP' not supported
5707 if (grep 'ignoring option' conftest.err ||
5708 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5709 am_cv_CXX_dependencies_compiler_type=$depmode
5718 am_cv_CXX_dependencies_compiler_type=none
5722 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5723 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5724 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5727 test "x$enable_dependency_tracking" != xno \
5728 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5729 am__fastdepCXX_TRUE=
5730 am__fastdepCXX_FALSE='#'
5732 am__fastdepCXX_TRUE='#'
5733 am__fastdepCXX_FALSE=
5739 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5740 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5741 (test "X$CXX" != "Xg++"))) ; then
5743 ac_cpp='$CXXCPP $CPPFLAGS'
5744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5747 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5748 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5749 if test -z "$CXXCPP"; then
5750 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 # Double quotes because CXXCPP needs to be expanded
5754 for CXXCPP in "$CXX -E" "/lib/cpp"
5757 for ac_cxx_preproc_warn_flag in '' yes
5759 # Use a header file that comes with gcc, so configuring glibc
5760 # with a fresh cross-compiler works.
5761 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5762 # <limits.h> exists even on freestanding compilers.
5763 # On the NeXT, cc -E runs the code through the compiler's parser,
5764 # not just through cpp. "Syntax error" is here to catch this case.
5765 cat >conftest.$ac_ext <<_ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5772 # include <limits.h>
5774 # include <assert.h>
5778 if { (ac_try="$ac_cpp conftest.$ac_ext"
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5786 grep -v '^ *+' conftest.er1 >conftest.err
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } >/dev/null && {
5791 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5792 test ! -s conftest.err
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5799 # Broken: fails on valid input.
5803 rm -f conftest.err conftest.$ac_ext
5805 # OK, works on sane cases. Now check whether nonexistent headers
5806 # can be detected and how.
5807 cat >conftest.$ac_ext <<_ACEOF
5810 cat confdefs.h >>conftest.$ac_ext
5811 cat >>conftest.$ac_ext <<_ACEOF
5812 /* end confdefs.h. */
5813 #include <ac_nonexistent.h>
5815 if { (ac_try="$ac_cpp conftest.$ac_ext"
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5823 grep -v '^ *+' conftest.er1 >conftest.err
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } >/dev/null && {
5828 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5829 test ! -s conftest.err
5831 # Broken: success on invalid input.
5834 echo "$as_me: failed program was:" >&5
5835 sed 's/^/| /' conftest.$ac_ext >&5
5837 # Passes both tests.
5842 rm -f conftest.err conftest.$ac_ext
5845 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5846 rm -f conftest.err conftest.$ac_ext
5847 if $ac_preproc_ok; then
5852 ac_cv_prog_CXXCPP=$CXXCPP
5855 CXXCPP=$ac_cv_prog_CXXCPP
5857 ac_cv_prog_CXXCPP=$CXXCPP
5859 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5860 echo "${ECHO_T}$CXXCPP" >&6; }
5862 for ac_cxx_preproc_warn_flag in '' yes
5864 # Use a header file that comes with gcc, so configuring glibc
5865 # with a fresh cross-compiler works.
5866 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5867 # <limits.h> exists even on freestanding compilers.
5868 # On the NeXT, cc -E runs the code through the compiler's parser,
5869 # not just through cpp. "Syntax error" is here to catch this case.
5870 cat >conftest.$ac_ext <<_ACEOF
5873 cat confdefs.h >>conftest.$ac_ext
5874 cat >>conftest.$ac_ext <<_ACEOF
5875 /* end confdefs.h. */
5877 # include <limits.h>
5879 # include <assert.h>
5883 if { (ac_try="$ac_cpp conftest.$ac_ext"
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5891 grep -v '^ *+' conftest.er1 >conftest.err
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } >/dev/null && {
5896 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5897 test ! -s conftest.err
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5904 # Broken: fails on valid input.
5908 rm -f conftest.err conftest.$ac_ext
5910 # OK, works on sane cases. Now check whether nonexistent headers
5911 # can be detected and how.
5912 cat >conftest.$ac_ext <<_ACEOF
5915 cat confdefs.h >>conftest.$ac_ext
5916 cat >>conftest.$ac_ext <<_ACEOF
5917 /* end confdefs.h. */
5918 #include <ac_nonexistent.h>
5920 if { (ac_try="$ac_cpp conftest.$ac_ext"
5922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5923 *) ac_try_echo=$ac_try;;
5925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5928 grep -v '^ *+' conftest.er1 >conftest.err
5930 cat conftest.err >&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); } >/dev/null && {
5933 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5934 test ! -s conftest.err
5936 # Broken: success on invalid input.
5939 echo "$as_me: failed program was:" >&5
5940 sed 's/^/| /' conftest.$ac_ext >&5
5942 # Passes both tests.
5947 rm -f conftest.err conftest.$ac_ext
5950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5951 rm -f conftest.err conftest.$ac_ext
5952 if $ac_preproc_ok; then
5955 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5956 See \`config.log' for more details." >&5
5957 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5958 See \`config.log' for more details." >&2;}
5959 { (exit 1); exit 1; }; }
5963 ac_cpp='$CXXCPP $CPPFLAGS'
5964 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5965 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5966 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5972 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5973 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5974 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5975 if test -n "$ac_tool_prefix"; then
5976 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
5978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5979 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5982 if test "${ac_cv_prog_F77+set}" = set; then
5983 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 if test -n "$F77"; then
5986 ac_cv_prog_F77="$F77" # Let the user override the test.
5988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5992 test -z "$as_dir" && as_dir=.
5993 for ac_exec_ext in '' $ac_executable_extensions; do
5994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5995 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 if test -n "$F77"; then
6007 { echo "$as_me:$LINENO: result: $F77" >&5
6008 echo "${ECHO_T}$F77" >&6; }
6010 { echo "$as_me:$LINENO: result: no" >&5
6011 echo "${ECHO_T}no" >&6; }
6015 test -n "$F77" && break
6018 if test -z "$F77"; then
6020 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
6022 # Extract the first word of "$ac_prog", so it can be a program name with args.
6023 set dummy $ac_prog; ac_word=$2
6024 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6025 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6026 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6029 if test -n "$ac_ct_F77"; then
6030 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 test -z "$as_dir" && as_dir=.
6037 for ac_exec_ext in '' $ac_executable_extensions; do
6038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6039 ac_cv_prog_ac_ct_F77="$ac_prog"
6040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6049 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6050 if test -n "$ac_ct_F77"; then
6051 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6052 echo "${ECHO_T}$ac_ct_F77" >&6; }
6054 { echo "$as_me:$LINENO: result: no" >&5
6055 echo "${ECHO_T}no" >&6; }
6059 test -n "$ac_ct_F77" && break
6062 if test "x$ac_ct_F77" = x; then
6065 case $cross_compiling:$ac_tool_warned in
6067 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6068 whose name does not start with the host triplet. If you think this
6069 configuration is useful to you, please write to autoconf@gnu.org." >&5
6070 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6071 whose name does not start with the host triplet. If you think this
6072 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6073 ac_tool_warned=yes ;;
6080 # Provide some information about the compiler.
6081 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6082 ac_compiler=`set X $ac_compile; echo $2`
6083 { (ac_try="$ac_compiler --version >&5"
6085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6086 *) ac_try_echo=$ac_try;;
6088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6089 (eval "$ac_compiler --version >&5") 2>&5
6091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6092 (exit $ac_status); }
6093 { (ac_try="$ac_compiler -v >&5"
6095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6096 *) ac_try_echo=$ac_try;;
6098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6099 (eval "$ac_compiler -v >&5") 2>&5
6101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); }
6103 { (ac_try="$ac_compiler -V >&5"
6105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6106 *) ac_try_echo=$ac_try;;
6108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6109 (eval "$ac_compiler -V >&5") 2>&5
6111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6112 (exit $ac_status); }
6115 # If we don't use `.F' as extension, the preprocessor is not run on the
6116 # input file. (Note that this only needs to work for GNU compilers.)
6119 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6120 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6121 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6124 cat >conftest.$ac_ext <<_ACEOF
6132 rm -f conftest.$ac_objext
6133 if { (ac_try="$ac_compile"
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_compile") 2>conftest.er1
6141 grep -v '^ *+' conftest.er1 >conftest.err
6143 cat conftest.err >&5
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); } && {
6146 test -z "$ac_f77_werror_flag" ||
6147 test ! -s conftest.err
6148 } && test -s conftest.$ac_objext; then
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6158 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6161 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6162 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6164 ac_test_FFLAGS=${FFLAGS+set}
6165 ac_save_FFLAGS=$FFLAGS
6167 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6168 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6169 if test "${ac_cv_prog_f77_g+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 cat >conftest.$ac_ext <<_ACEOF
6178 rm -f conftest.$ac_objext
6179 if { (ac_try="$ac_compile"
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185 (eval "$ac_compile") 2>conftest.er1
6187 grep -v '^ *+' conftest.er1 >conftest.err
6189 cat conftest.err >&5
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } && {
6192 test -z "$ac_f77_werror_flag" ||
6193 test ! -s conftest.err
6194 } && test -s conftest.$ac_objext; then
6195 ac_cv_prog_f77_g=yes
6197 echo "$as_me: failed program was:" >&5
6198 sed 's/^/| /' conftest.$ac_ext >&5
6203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6207 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6208 if test "$ac_test_FFLAGS" = set; then
6209 FFLAGS=$ac_save_FFLAGS
6210 elif test $ac_cv_prog_f77_g = yes; then
6211 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6217 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6224 G77=`test $ac_compiler_gnu = yes && echo yes`
6226 ac_cpp='$CPP $CPPFLAGS'
6227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6233 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6235 # find the maximum length of command line arguments
6236 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6237 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6238 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6246 # On DJGPP, this test can blow up pretty badly due to problems in libc
6247 # (any single argument exceeding 2000 bytes causes a buffer overrun
6248 # during glob expansion). Even if it were fixed, the result of this
6249 # check would be larger than it should be.
6250 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6254 # Under GNU Hurd, this test is not required because there is
6255 # no limit to the length of command line arguments.
6256 # Libtool will interpret -1 as no limit whatsoever
6257 lt_cv_sys_max_cmd_len=-1;
6261 # On Win9x/ME, this test blows up -- it succeeds, but takes
6262 # about 5 minutes as the teststring grows exponentially.
6263 # Worse, since 9x/ME are not pre-emptively multitasking,
6264 # you end up with a "frozen" computer, even though with patience
6265 # the test eventually succeeds (with a max line length of 256k).
6266 # Instead, let's just punt: use the minimum linelength reported by
6267 # all of the supported platforms: 8192 (on NT/2K/XP).
6268 lt_cv_sys_max_cmd_len=8192;
6272 # On AmigaOS with pdksh, this test takes hours, literally.
6273 # So we just punt and use a minimum line length of 8192.
6274 lt_cv_sys_max_cmd_len=8192;
6277 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6278 # This has been around since 386BSD, at least. Likely further.
6279 if test -x /sbin/sysctl; then
6280 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6281 elif test -x /usr/sbin/sysctl; then
6282 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6284 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6286 # And add a safety zone
6287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6292 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6293 lt_cv_sys_max_cmd_len=196608
6297 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6298 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6299 # nice to cause kernel panics so lets avoid the loop below.
6300 # First set a reasonable default.
6301 lt_cv_sys_max_cmd_len=16384
6303 if test -x /sbin/sysconfig; then
6304 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6305 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6310 lt_cv_sys_max_cmd_len=102400
6312 sysv5* | sco5v6* | sysv4.2uw2*)
6313 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6314 if test -n "$kargmax"; then
6315 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6317 lt_cv_sys_max_cmd_len=32768
6321 # If test is not a shell built-in, we'll probably end up computing a
6322 # maximum length that is only half of the actual maximum length, but
6324 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6325 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6326 = "XX$teststring") >/dev/null 2>&1 &&
6327 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6328 lt_cv_sys_max_cmd_len=$new_result &&
6329 test $i != 17 # 1/2 MB should be enough
6332 teststring=$teststring$teststring
6335 # Add a significant safety factor because C++ compilers can tack on massive
6336 # amounts of additional arguments before passing them to the linker.
6337 # It appears as though 1/2 is a usable value.
6338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6344 if test -n $lt_cv_sys_max_cmd_len ; then
6345 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6346 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6348 { echo "$as_me:$LINENO: result: none" >&5
6349 echo "${ECHO_T}none" >&6; }
6355 # Check for command to grab the raw symbol name followed by C symbol from nm.
6356 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6357 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6358 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6362 # These are sane defaults that work on at least a few old systems.
6363 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6365 # Character class describing NM global symbol codes.
6366 symcode='[BCDEGRST]'
6368 # Regexp to match symbols that can be accessed directly from C.
6369 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6371 # Transform an extracted symbol line into a proper C declaration
6372 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6374 # Transform an extracted symbol line into symbol name and symbol address
6375 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'"
6377 # Define system-specific variables.
6382 cygwin* | mingw* | pw32*)
6383 symcode='[ABCDGISTW]'
6385 hpux*) # Its linker distinguishes data from code symbols
6386 if test "$host_cpu" = ia64; then
6387 symcode='[ABCDEGRST]'
6389 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6390 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'"
6392 linux* | k*bsd*-gnu)
6393 if test "$host_cpu" = ia64; then
6394 symcode='[ABCDGIRSTW]'
6395 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6396 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'"
6400 symcode='[BCDEGRST]'
6403 symcode='[BCDEGQRST]'
6414 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6422 # Handle CRLF in mingw tool chain
6426 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6430 # If we're using GNU nm, then use its standard symbol codes.
6431 case `$NM -V 2>&1` in
6432 *GNU* | *'with BFD'*)
6433 symcode='[ABCDGIRSTW]' ;;
6436 # Try without a prefix undercore, then with it.
6437 for ac_symprfx in "" "_"; do
6439 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6440 symxfrm="\\1 $ac_symprfx\\2 \\2"
6442 # Write the raw and C identifiers.
6443 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6445 # Check to see that the pipe works correctly.
6449 cat > conftest.$ac_ext <<EOF
6454 void nm_test_func(){}
6458 int main(){nm_test_var='a';nm_test_func();return(0);}
6461 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6462 (eval $ac_compile) 2>&5
6464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6465 (exit $ac_status); }; then
6466 # Now try to grab the symbols.
6468 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6469 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } && test -s "$nlist"; then
6473 # Try sorting and uniquifying the output.
6474 if sort "$nlist" | uniq > "$nlist"T; then
6475 mv -f "$nlist"T "$nlist"
6480 # Make sure that we snagged all the symbols we need.
6481 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6482 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6483 cat <<EOF > conftest.$ac_ext
6489 # Now generate the symbol file.
6490 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6492 cat <<EOF >> conftest.$ac_ext
6493 #if defined (__STDC__) && __STDC__
6494 # define lt_ptr_t void *
6496 # define lt_ptr_t char *
6500 /* The mapping between symbol names and symbols. */
6505 lt_preloaded_symbols[] =
6508 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6509 cat <<\EOF >> conftest.$ac_ext
6517 # Now try linking the two files.
6518 mv conftest.$ac_objext conftstm.$ac_objext
6519 lt_save_LIBS="$LIBS"
6520 lt_save_CFLAGS="$CFLAGS"
6521 LIBS="conftstm.$ac_objext"
6522 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6524 (eval $ac_link) 2>&5
6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6527 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6530 LIBS="$lt_save_LIBS"
6531 CFLAGS="$lt_save_CFLAGS"
6533 echo "cannot find nm_test_func in $nlist" >&5
6536 echo "cannot find nm_test_var in $nlist" >&5
6539 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6542 echo "$progname: failed program was:" >&5
6543 cat conftest.$ac_ext >&5
6545 rm -f conftest* conftst*
6547 # Do not use the global_symbol_pipe unless it works.
6548 if test "$pipe_works" = yes; then
6551 lt_cv_sys_global_symbol_pipe=
6557 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6558 lt_cv_sys_global_symbol_to_cdecl=
6560 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6561 { echo "$as_me:$LINENO: result: failed" >&5
6562 echo "${ECHO_T}failed" >&6; }
6564 { echo "$as_me:$LINENO: result: ok" >&5
6565 echo "${ECHO_T}ok" >&6; }
6568 { echo "$as_me:$LINENO: checking for objdir" >&5
6569 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6570 if test "${lt_cv_objdir+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 rm -f .libs 2>/dev/null
6574 mkdir .libs 2>/dev/null
6575 if test -d .libs; then
6578 # MS-DOS does not allow filenames that begin with a dot.
6581 rmdir .libs 2>/dev/null
6583 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6584 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6585 objdir=$lt_cv_objdir
6593 # AIX sometimes has problems with the GCC collect2 program. For some
6594 # reason, if we set the COLLECT_NAMES environment variable, the problems
6595 # vanish in a puff of smoke.
6596 if test "X${COLLECT_NAMES+set}" != Xset; then
6598 export COLLECT_NAMES
6603 # Sed substitution that helps us do robust quoting. It backslashifies
6604 # metacharacters that are still active within double-quoted strings.
6605 Xsed='sed -e 1s/^X//'
6606 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6608 # Same as above, but do not quote variable references.
6609 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6611 # Sed substitution to delay expansion of an escaped shell variable in a
6612 # double_quote_subst'ed string.
6613 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6615 # Sed substitution to avoid accidental globbing in evaled expressions
6616 no_glob_subst='s/\*/\\\*/g'
6622 default_ofile=libtool
6623 can_build_shared=yes
6625 # All known linkers require a `.a' archive for static linking (except MSVC,
6626 # which needs '.lib').
6628 ltmain="$ac_aux_dir/ltmain.sh"
6629 ofile="$default_ofile"
6630 with_gnu_ld="$lt_cv_prog_gnu_ld"
6632 if test -n "$ac_tool_prefix"; then
6633 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6634 set dummy ${ac_tool_prefix}ar; ac_word=$2
6635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6637 if test "${ac_cv_prog_AR+set}" = set; then
6638 echo $ECHO_N "(cached) $ECHO_C" >&6
6640 if test -n "$AR"; then
6641 ac_cv_prog_AR="$AR" # Let the user override the test.
6643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 test -z "$as_dir" && as_dir=.
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6650 ac_cv_prog_AR="${ac_tool_prefix}ar"
6651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 if test -n "$AR"; then
6662 { echo "$as_me:$LINENO: result: $AR" >&5
6663 echo "${ECHO_T}$AR" >&6; }
6665 { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6671 if test -z "$ac_cv_prog_AR"; then
6673 # Extract the first word of "ar", so it can be a program name with args.
6674 set dummy ar; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6680 if test -n "$ac_ct_AR"; then
6681 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 test -z "$as_dir" && as_dir=.
6688 for ac_exec_ext in '' $ac_executable_extensions; do
6689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6690 ac_cv_prog_ac_ct_AR="ar"
6691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6701 if test -n "$ac_ct_AR"; then
6702 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6703 echo "${ECHO_T}$ac_ct_AR" >&6; }
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6709 if test "x$ac_ct_AR" = x; then
6712 case $cross_compiling:$ac_tool_warned in
6714 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6715 whose name does not start with the host triplet. If you think this
6716 configuration is useful to you, please write to autoconf@gnu.org." >&5
6717 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6718 whose name does not start with the host triplet. If you think this
6719 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6720 ac_tool_warned=yes ;;
6728 if test -n "$ac_tool_prefix"; then
6729 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6733 if test "${ac_cv_prog_RANLIB+set}" = set; then
6734 echo $ECHO_N "(cached) $ECHO_C" >&6
6736 if test -n "$RANLIB"; then
6737 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6746 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 RANLIB=$ac_cv_prog_RANLIB
6757 if test -n "$RANLIB"; then
6758 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6759 echo "${ECHO_T}$RANLIB" >&6; }
6761 { echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6; }
6767 if test -z "$ac_cv_prog_RANLIB"; then
6768 ac_ct_RANLIB=$RANLIB
6769 # Extract the first word of "ranlib", so it can be a program name with args.
6770 set dummy ranlib; ac_word=$2
6771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6773 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 if test -n "$ac_ct_RANLIB"; then
6777 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6786 ac_cv_prog_ac_ct_RANLIB="ranlib"
6787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6797 if test -n "$ac_ct_RANLIB"; then
6798 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6799 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6805 if test "x$ac_ct_RANLIB" = x; then
6808 case $cross_compiling:$ac_tool_warned in
6810 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6811 whose name does not start with the host triplet. If you think this
6812 configuration is useful to you, please write to autoconf@gnu.org." >&5
6813 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6814 whose name does not start with the host triplet. If you think this
6815 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6816 ac_tool_warned=yes ;;
6818 RANLIB=$ac_ct_RANLIB
6821 RANLIB="$ac_cv_prog_RANLIB"
6824 if test -n "$ac_tool_prefix"; then
6825 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6826 set dummy ${ac_tool_prefix}strip; ac_word=$2
6827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6829 if test "${ac_cv_prog_STRIP+set}" = set; then
6830 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 if test -n "$STRIP"; then
6833 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839 test -z "$as_dir" && as_dir=.
6840 for ac_exec_ext in '' $ac_executable_extensions; do
6841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6842 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 STRIP=$ac_cv_prog_STRIP
6853 if test -n "$STRIP"; then
6854 { echo "$as_me:$LINENO: result: $STRIP" >&5
6855 echo "${ECHO_T}$STRIP" >&6; }
6857 { echo "$as_me:$LINENO: result: no" >&5
6858 echo "${ECHO_T}no" >&6; }
6863 if test -z "$ac_cv_prog_STRIP"; then
6865 # Extract the first word of "strip", so it can be a program name with args.
6866 set dummy strip; ac_word=$2
6867 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6868 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6869 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6870 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 if test -n "$ac_ct_STRIP"; then
6873 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_prog_ac_ct_STRIP="strip"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6893 if test -n "$ac_ct_STRIP"; then
6894 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6895 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6897 { echo "$as_me:$LINENO: result: no" >&5
6898 echo "${ECHO_T}no" >&6; }
6901 if test "x$ac_ct_STRIP" = x; then
6904 case $cross_compiling:$ac_tool_warned in
6906 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6907 whose name does not start with the host triplet. If you think this
6908 configuration is useful to you, please write to autoconf@gnu.org." >&5
6909 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6910 whose name does not start with the host triplet. If you think this
6911 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6912 ac_tool_warned=yes ;;
6917 STRIP="$ac_cv_prog_STRIP"
6922 old_CFLAGS="$CFLAGS"
6924 # Set sane defaults for various variables
6925 test -z "$AR" && AR=ar
6926 test -z "$AR_FLAGS" && AR_FLAGS=cru
6927 test -z "$AS" && AS=as
6928 test -z "$CC" && CC=cc
6929 test -z "$LTCC" && LTCC=$CC
6930 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6931 test -z "$DLLTOOL" && DLLTOOL=dlltool
6932 test -z "$LD" && LD=ld
6933 test -z "$LN_S" && LN_S="ln -s"
6934 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6935 test -z "$NM" && NM=nm
6936 test -z "$SED" && SED=sed
6937 test -z "$OBJDUMP" && OBJDUMP=objdump
6938 test -z "$RANLIB" && RANLIB=:
6939 test -z "$STRIP" && STRIP=:
6940 test -z "$ac_objext" && ac_objext=o
6942 # Determine commands to create old-style static archives.
6943 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6944 old_postinstall_cmds='chmod 644 $oldlib'
6945 old_postuninstall_cmds=
6947 if test -n "$RANLIB"; then
6950 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6953 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6956 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6959 for cc_temp in $compiler""; do
6961 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6962 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6967 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6970 # Only perform the check for file, if the check method requires it
6971 case $deplibs_check_method in
6973 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6974 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6975 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6976 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6977 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6984 lt_save_MAGIC_CMD="$MAGIC_CMD"
6985 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6986 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6987 for ac_dir in $ac_dummy; do
6989 test -z "$ac_dir" && ac_dir=.
6990 if test -f $ac_dir/${ac_tool_prefix}file; then
6991 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6992 if test -n "$file_magic_test_file"; then
6993 case $deplibs_check_method in
6995 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6997 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6998 $EGREP "$file_magic_regex" > /dev/null; then
7003 *** Warning: the command libtool uses to detect shared libraries,
7004 *** $file_magic_cmd, produces output that libtool cannot recognize.
7005 *** The result is that libtool may fail to recognize shared libraries
7006 *** as such. This will affect the creation of libtool libraries that
7007 *** depend on shared libraries, but programs linked with such libtool
7008 *** libraries will work regardless of this problem. Nevertheless, you
7009 *** may want to report the problem to your system manager and/or to
7010 *** bug-libtool@gnu.org
7020 MAGIC_CMD="$lt_save_MAGIC_CMD"
7025 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7026 if test -n "$MAGIC_CMD"; then
7027 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7028 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7030 { echo "$as_me:$LINENO: result: no" >&5
7031 echo "${ECHO_T}no" >&6; }
7034 if test -z "$lt_cv_path_MAGIC_CMD"; then
7035 if test -n "$ac_tool_prefix"; then
7036 { echo "$as_me:$LINENO: checking for file" >&5
7037 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7038 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7043 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7046 lt_save_MAGIC_CMD="$MAGIC_CMD"
7047 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7048 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7049 for ac_dir in $ac_dummy; do
7051 test -z "$ac_dir" && ac_dir=.
7052 if test -f $ac_dir/file; then
7053 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7054 if test -n "$file_magic_test_file"; then
7055 case $deplibs_check_method in
7057 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7058 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7059 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7060 $EGREP "$file_magic_regex" > /dev/null; then
7065 *** Warning: the command libtool uses to detect shared libraries,
7066 *** $file_magic_cmd, produces output that libtool cannot recognize.
7067 *** The result is that libtool may fail to recognize shared libraries
7068 *** as such. This will affect the creation of libtool libraries that
7069 *** depend on shared libraries, but programs linked with such libtool
7070 *** libraries will work regardless of this problem. Nevertheless, you
7071 *** may want to report the problem to your system manager and/or to
7072 *** bug-libtool@gnu.org
7082 MAGIC_CMD="$lt_save_MAGIC_CMD"
7087 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7088 if test -n "$MAGIC_CMD"; then
7089 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7090 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7108 # Check whether --enable-libtool-lock was given.
7109 if test "${enable_libtool_lock+set}" = set; then
7110 enableval=$enable_libtool_lock;
7113 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7116 # Check whether --with-pic was given.
7117 if test "${with_pic+set}" = set; then
7118 withval=$with_pic; pic_mode="$withval"
7123 test -z "$pic_mode" && pic_mode=default
7125 # Use C for the default configuration in the libtool script
7129 ac_cpp='$CPP $CPPFLAGS'
7130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7135 # Source file extension for C test sources.
7138 # Object file extension for compiled C test sources.
7142 # Code to be used in simple compile tests
7143 lt_simple_compile_test_code="int some_variable = 0;\n"
7145 # Code to be used in simple link tests
7146 lt_simple_link_test_code='int main(){return(0);}\n'
7149 # If no C compiler was specified, use CC.
7152 # If no C compiler flags were specified, use CFLAGS.
7153 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7155 # Allow CC to be a program name with arguments.
7159 # save warnings/boilerplate of simple test code
7160 ac_outfile=conftest.$ac_objext
7161 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7162 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7163 _lt_compiler_boilerplate=`cat conftest.err`
7166 ac_outfile=conftest.$ac_objext
7167 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7168 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7169 _lt_linker_boilerplate=`cat conftest.err`
7174 lt_prog_compiler_no_builtin_flag=
7176 if test "$GCC" = yes; then
7177 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7180 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7181 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7182 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7183 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 lt_cv_prog_compiler_rtti_exceptions=no
7186 ac_outfile=conftest.$ac_objext
7187 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7188 lt_compiler_flag="-fno-rtti -fno-exceptions"
7189 # Insert the option either (1) after the last *FLAGS variable, or
7190 # (2) before a word containing "conftest.", or (3) at the end.
7191 # Note that $ac_compile itself does not contain backslashes and begins
7192 # with a dollar sign (not a hyphen), so the echo should work correctly.
7193 # The option is referenced via a variable to avoid confusing sed.
7194 lt_compile=`echo "$ac_compile" | $SED \
7195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7197 -e 's:$: $lt_compiler_flag:'`
7198 (eval echo "\"\$as_me:7198: $lt_compile\"" >&5)
7199 (eval "$lt_compile" 2>conftest.err)
7201 cat conftest.err >&5
7202 echo "$as_me:7202: \$? = $ac_status" >&5
7203 if (exit $ac_status) && test -s "$ac_outfile"; then
7204 # The compiler can only warn and ignore the option if not recognized
7205 # So say no if there are warnings other than the usual output.
7206 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7209 lt_cv_prog_compiler_rtti_exceptions=yes
7215 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7216 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7219 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7226 lt_prog_compiler_wl=
7227 lt_prog_compiler_pic=
7228 lt_prog_compiler_static=
7230 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7233 if test "$GCC" = yes; then
7234 lt_prog_compiler_wl='-Wl,'
7235 lt_prog_compiler_static='-static'
7239 # All AIX code is PIC.
7240 if test "$host_cpu" = ia64; then
7241 # AIX 5 now supports IA64 processor
7242 lt_prog_compiler_static='-Bstatic'
7247 # FIXME: we need at least 68020 code to build shared libraries, but
7248 # adding the `-m68020' flag to GCC prevents building anything better,
7250 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7253 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7254 # PIC is the default for these OSes.
7257 mingw* | pw32* | os2*)
7258 # This hack is so that the source file can tell whether it is being
7259 # built for inclusion in a dll (and should export symbols for example).
7260 lt_prog_compiler_pic='-DDLL_EXPORT'
7263 darwin* | rhapsody*)
7264 # PIC is the default on this platform
7265 # Common symbols not allowed in MH_DYLIB files
7266 lt_prog_compiler_pic='-fno-common'
7270 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7271 # Instead, we relocate shared libraries at runtime.
7275 # Just because we use GCC doesn't mean we suddenly get shared libraries
7276 # on systems that don't support them.
7277 lt_prog_compiler_can_build_shared=no
7282 if test -d /usr/nec; then
7283 lt_prog_compiler_pic=-Kconform_pic
7288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7295 lt_prog_compiler_pic='-fPIC'
7301 lt_prog_compiler_pic='-fPIC'
7305 # PORTME Check for flag to pass linker flags through the system compiler.
7308 lt_prog_compiler_wl='-Wl,'
7309 if test "$host_cpu" = ia64; then
7310 # AIX 5 now supports IA64 processor
7311 lt_prog_compiler_static='-Bstatic'
7313 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7317 # PIC is the default on this platform
7318 # Common symbols not allowed in MH_DYLIB files
7319 case $cc_basename in
7321 lt_prog_compiler_pic='-qnocommon'
7322 lt_prog_compiler_wl='-Wl,'
7327 mingw* | pw32* | os2*)
7328 # This hack is so that the source file can tell whether it is being
7329 # built for inclusion in a dll (and should export symbols for example).
7330 lt_prog_compiler_pic='-DDLL_EXPORT'
7333 hpux9* | hpux10* | hpux11*)
7334 lt_prog_compiler_wl='-Wl,'
7335 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7342 lt_prog_compiler_pic='+Z'
7345 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7346 lt_prog_compiler_static='${wl}-a ${wl}archive'
7349 irix5* | irix6* | nonstopux*)
7350 lt_prog_compiler_wl='-Wl,'
7351 # PIC (with -KPIC) is the default.
7352 lt_prog_compiler_static='-non_shared'
7356 lt_prog_compiler_pic='-KPIC'
7357 lt_prog_compiler_static='-Bstatic'
7360 linux* | k*bsd*-gnu)
7361 case $cc_basename in
7363 lt_prog_compiler_wl='-Wl,'
7364 lt_prog_compiler_pic='-KPIC'
7365 lt_prog_compiler_static='-static'
7367 pgcc* | pgf77* | pgf90* | pgf95*)
7368 # Portland Group compilers (*not* the Pentium gcc compiler,
7369 # which looks to be a dead project)
7370 lt_prog_compiler_wl='-Wl,'
7371 lt_prog_compiler_pic='-fpic'
7372 lt_prog_compiler_static='-Bstatic'
7375 lt_prog_compiler_wl='-Wl,'
7376 # All Alpha code is PIC.
7377 lt_prog_compiler_static='-non_shared'
7382 osf3* | osf4* | osf5*)
7383 lt_prog_compiler_wl='-Wl,'
7384 # All OSF/1 code is PIC.
7385 lt_prog_compiler_static='-non_shared'
7389 lt_prog_compiler_pic='-KPIC'
7390 lt_prog_compiler_static='-Bstatic'
7391 case $cc_basename in
7393 lt_prog_compiler_wl='-Qoption ld ';;
7395 lt_prog_compiler_wl='-Wl,';;
7400 lt_prog_compiler_wl='-Qoption ld '
7401 lt_prog_compiler_pic='-PIC'
7402 lt_prog_compiler_static='-Bstatic'
7405 sysv4 | sysv4.2uw2* | sysv4.3*)
7406 lt_prog_compiler_wl='-Wl,'
7407 lt_prog_compiler_pic='-KPIC'
7408 lt_prog_compiler_static='-Bstatic'
7412 if test -d /usr/nec ;then
7413 lt_prog_compiler_pic='-Kconform_pic'
7414 lt_prog_compiler_static='-Bstatic'
7418 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7419 lt_prog_compiler_wl='-Wl,'
7420 lt_prog_compiler_pic='-KPIC'
7421 lt_prog_compiler_static='-Bstatic'
7425 lt_prog_compiler_wl='-Wl,'
7426 lt_prog_compiler_can_build_shared=no
7430 lt_prog_compiler_pic='-pic'
7431 lt_prog_compiler_static='-Bstatic'
7435 lt_prog_compiler_can_build_shared=no
7440 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7441 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7444 # Check to make sure the PIC flag actually works.
7446 if test -n "$lt_prog_compiler_pic"; then
7448 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7449 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7450 if test "${lt_prog_compiler_pic_works+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 lt_prog_compiler_pic_works=no
7454 ac_outfile=conftest.$ac_objext
7455 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7456 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7457 # Insert the option either (1) after the last *FLAGS variable, or
7458 # (2) before a word containing "conftest.", or (3) at the end.
7459 # Note that $ac_compile itself does not contain backslashes and begins
7460 # with a dollar sign (not a hyphen), so the echo should work correctly.
7461 # The option is referenced via a variable to avoid confusing sed.
7462 lt_compile=`echo "$ac_compile" | $SED \
7463 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7464 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7465 -e 's:$: $lt_compiler_flag:'`
7466 (eval echo "\"\$as_me:7466: $lt_compile\"" >&5)
7467 (eval "$lt_compile" 2>conftest.err)
7469 cat conftest.err >&5
7470 echo "$as_me:7470: \$? = $ac_status" >&5
7471 if (exit $ac_status) && test -s "$ac_outfile"; then
7472 # The compiler can only warn and ignore the option if not recognized
7473 # So say no if there are warnings other than the usual output.
7474 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7475 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7476 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7477 lt_prog_compiler_pic_works=yes
7483 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7484 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7486 if test x"$lt_prog_compiler_pic_works" = xyes; then
7487 case $lt_prog_compiler_pic in
7489 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7492 lt_prog_compiler_pic=
7493 lt_prog_compiler_can_build_shared=no
7498 # For platforms which do not support PIC, -DPIC is meaningless:
7500 lt_prog_compiler_pic=
7503 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7508 # Check to make sure the static flag actually works.
7510 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7511 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7512 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7513 if test "${lt_prog_compiler_static_works+set}" = set; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 lt_prog_compiler_static_works=no
7517 save_LDFLAGS="$LDFLAGS"
7518 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7519 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7520 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7521 # The linker can only warn and ignore the option if not recognized
7522 # So say no if there are warnings
7523 if test -s conftest.err; then
7524 # Append any errors to the config.log.
7525 cat conftest.err 1>&5
7526 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7527 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7528 if diff conftest.exp conftest.er2 >/dev/null; then
7529 lt_prog_compiler_static_works=yes
7532 lt_prog_compiler_static_works=yes
7536 LDFLAGS="$save_LDFLAGS"
7539 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7540 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7542 if test x"$lt_prog_compiler_static_works" = xyes; then
7545 lt_prog_compiler_static=
7549 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7550 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7551 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 lt_cv_prog_compiler_c_o=no
7555 $rm -r conftest 2>/dev/null
7559 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7561 lt_compiler_flag="-o out/conftest2.$ac_objext"
7562 # Insert the option either (1) after the last *FLAGS variable, or
7563 # (2) before a word containing "conftest.", or (3) at the end.
7564 # Note that $ac_compile itself does not contain backslashes and begins
7565 # with a dollar sign (not a hyphen), so the echo should work correctly.
7566 lt_compile=`echo "$ac_compile" | $SED \
7567 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7568 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7569 -e 's:$: $lt_compiler_flag:'`
7570 (eval echo "\"\$as_me:7570: $lt_compile\"" >&5)
7571 (eval "$lt_compile" 2>out/conftest.err)
7573 cat out/conftest.err >&5
7574 echo "$as_me:7574: \$? = $ac_status" >&5
7575 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7577 # The compiler can only warn and ignore the option if not recognized
7578 # So say no if there are warnings
7579 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7580 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7581 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7582 lt_cv_prog_compiler_c_o=yes
7587 # SGI C++ compiler will create directory out/ii_files/ for
7588 # template instantiation
7589 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7590 $rm out/* && rmdir out
7596 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7597 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7600 hard_links="nottested"
7601 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7602 # do not overwrite the value of need_locks provided by the user
7603 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7604 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7607 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7609 ln conftest.a conftest.b 2>&5 || hard_links=no
7610 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7611 { echo "$as_me:$LINENO: result: $hard_links" >&5
7612 echo "${ECHO_T}$hard_links" >&6; }
7613 if test "$hard_links" = no; then
7614 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7615 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7622 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7623 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7626 allow_undefined_flag=
7627 enable_shared_with_static_runtimes=no
7629 archive_expsym_cmds=
7630 old_archive_From_new_cmds=
7631 old_archive_from_expsyms_cmds=
7632 export_dynamic_flag_spec=
7633 whole_archive_flag_spec=
7634 thread_safe_flag_spec=
7635 hardcode_libdir_flag_spec=
7636 hardcode_libdir_flag_spec_ld=
7637 hardcode_libdir_separator=
7640 hardcode_shlibpath_var=unsupported
7641 link_all_deplibs=unknown
7642 hardcode_automatic=no
7645 always_export_symbols=no
7646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7647 # include_expsyms should be a list of space-separated symbols to be *always*
7648 # included in the symbol list
7650 # exclude_expsyms can be an extended regexp of symbols to exclude
7651 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7652 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7653 # as well as any symbol that contains `d'.
7654 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7655 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7656 # platforms (ab)use it in PIC code, but their linkers get confused if
7657 # the symbol is explicitly referenced. Since portable code cannot
7658 # rely on this symbol name, it's probably fine to never include it in
7659 # preloaded symbol tables.
7660 extract_expsyms_cmds=
7661 # Just being paranoid about ensuring that cc_basename is set.
7662 for cc_temp in $compiler""; do
7664 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7665 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7670 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7673 cygwin* | mingw* | pw32*)
7674 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7675 # When not using gcc, we currently assume that we are using
7676 # Microsoft Visual C++.
7677 if test "$GCC" != yes; then
7682 # we just hope/assume this is gcc and not c89 (= MSVC++)
7691 if test "$with_gnu_ld" = yes; then
7692 # If archive_cmds runs LD, not CC, wlarc should be empty
7695 # Set some defaults for GNU ld with shared library support. These
7696 # are reset later if shared libraries are not supported. Putting them
7697 # here allows them to be overridden if necessary.
7698 runpath_var=LD_RUN_PATH
7699 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7700 export_dynamic_flag_spec='${wl}--export-dynamic'
7701 # ancient GNU ld didn't support --whole-archive et. al.
7702 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7703 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7705 whole_archive_flag_spec=
7707 supports_anon_versioning=no
7708 case `$LD -v 2>/dev/null` in
7709 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7710 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7711 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7712 *\ 2.11.*) ;; # other 2.11 versions
7713 *) supports_anon_versioning=yes ;;
7716 # See if GNU ld supports shared libraries.
7718 aix3* | aix4* | aix5*)
7719 # On AIX/PPC, the GNU linker is very broken
7720 if test "$host_cpu" != ia64; then
7724 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7725 *** to be unable to reliably create shared libraries on AIX.
7726 *** Therefore, libtool is disabling shared libraries support. If you
7727 *** really care for shared libraries, you may want to modify your PATH
7728 *** so that a non-GNU linker is found, and then restart.
7735 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)'
7736 hardcode_libdir_flag_spec='-L$libdir'
7737 hardcode_minus_L=yes
7739 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7740 # that the semantics of dynamic libraries on AmigaOS, at least up
7741 # to version 4, is to share data among multiple programs linked
7742 # with the same dynamic library. Since this doesn't match the
7743 # behavior of shared libraries on other platforms, we can't use
7749 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7750 allow_undefined_flag=unsupported
7751 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7752 # support --undefined. This deserves some investigation. FIXME
7753 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7759 cygwin* | mingw* | pw32*)
7760 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7761 # as there is no search path for DLLs.
7762 hardcode_libdir_flag_spec='-L$libdir'
7763 allow_undefined_flag=unsupported
7764 always_export_symbols=no
7765 enable_shared_with_static_runtimes=yes
7766 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7768 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7770 # If the export-symbols file already is a .def file (1st line
7771 # is EXPORTS), use it as is; otherwise, prepend...
7772 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7773 cp $export_symbols $output_objdir/$soname.def;
7775 echo EXPORTS > $output_objdir/$soname.def;
7776 cat $export_symbols >> $output_objdir/$soname.def;
7778 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7786 hardcode_shlibpath_var=no
7787 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7788 export_dynamic_flag_spec='${wl}-E'
7789 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7790 # Instead, shared libraries are loaded at an image base (0x10000000 by
7791 # default) and relocated if they conflict, which is a slow very memory
7792 # consuming and fragmenting process. To avoid this, we pick a random,
7793 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7794 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7795 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7796 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'
7799 linux* | k*bsd*-gnu)
7800 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7802 case $cc_basename,$host_cpu in
7803 pgcc*) # Portland Group C compiler
7804 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'
7805 tmp_addflag=' $pic_flag'
7807 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7808 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'
7809 tmp_addflag=' $pic_flag -Mnomain' ;;
7810 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7811 tmp_addflag=' -i_dynamic' ;;
7812 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7813 tmp_addflag=' -i_dynamic -nofor_main' ;;
7814 ifc* | ifort*) # Intel Fortran compiler
7815 tmp_addflag=' -nofor_main' ;;
7817 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7819 if test $supports_anon_versioning = yes; then
7820 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7821 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7822 $echo "local: *; };" >> $output_objdir/$libname.ver~
7823 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7831 netbsd* | netbsdelf*-gnu)
7832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7833 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7836 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7837 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7842 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7846 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7847 *** create shared libraries on Solaris systems. Therefore, libtool
7848 *** is disabling shared libraries support. We urge you to upgrade GNU
7849 *** binutils to release 2.9.1 or newer. Another option is to modify
7850 *** your PATH or compiler configuration so that the native linker is
7851 *** used, and then restart.
7854 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7855 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7856 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7863 case `$LD -v 2>&1` in
7864 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7868 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7869 *** reliably create shared libraries on SCO systems. Therefore, libtool
7870 *** is disabling shared libraries support. We urge you to upgrade GNU
7871 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7872 *** your PATH or compiler configuration so that the native linker is
7873 *** used, and then restart.
7878 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7879 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7890 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7893 hardcode_shlibpath_var=no
7897 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7899 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7906 if test "$ld_shlibs" = no; then
7908 hardcode_libdir_flag_spec=
7909 export_dynamic_flag_spec=
7910 whole_archive_flag_spec=
7913 # PORTME fill in a description of your system's linker (not GNU ld)
7916 allow_undefined_flag=unsupported
7917 always_export_symbols=yes
7918 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'
7919 # Note: this linker hardcodes the directories in LIBPATH if there
7920 # are no directories specified by -L.
7921 hardcode_minus_L=yes
7922 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7923 # Neither direct hardcoding nor static linking is supported with a
7925 hardcode_direct=unsupported
7930 if test "$host_cpu" = ia64; then
7931 # On IA64, the linker does run time linking by default, so we don't
7932 # have to do anything special.
7933 aix_use_runtimelinking=no
7934 exp_sym_flag='-Bexport'
7937 # If we're using GNU nm, then we don't want the "-C" option.
7938 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7939 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7940 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'
7942 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'
7944 aix_use_runtimelinking=no
7946 # Test if we are trying to use run time linking or normal
7947 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7948 # need to do runtime linking.
7949 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7950 for ld_flag in $LDFLAGS; do
7951 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7952 aix_use_runtimelinking=yes
7959 exp_sym_flag='-bexport'
7960 no_entry_flag='-bnoentry'
7963 # When large executables or shared objects are built, AIX ld can
7964 # have problems creating the table of contents. If linking a library
7965 # or program results in "error TOC overflow" add -mminimal-toc to
7966 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7967 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7971 hardcode_libdir_separator=':'
7972 link_all_deplibs=yes
7974 if test "$GCC" = yes; then
7975 case $host_os in aix4.[012]|aix4.[012].*)
7976 # We only want to do this on AIX 4.2 and lower, the check
7977 # below for broken collect2 doesn't work under 4.3+
7978 collect2name=`${CC} -print-prog-name=collect2`
7979 if test -f "$collect2name" && \
7980 strings "$collect2name" | grep resolve_lib_name >/dev/null
7982 # We have reworked collect2
7985 # We have old collect2
7986 hardcode_direct=unsupported
7987 # It fails to find uninstalled libraries when the uninstalled
7988 # path is not listed in the libpath. Setting hardcode_minus_L
7989 # to unsupported forces relinking
7990 hardcode_minus_L=yes
7991 hardcode_libdir_flag_spec='-L$libdir'
7992 hardcode_libdir_separator=
7996 shared_flag='-shared'
7997 if test "$aix_use_runtimelinking" = yes; then
7998 shared_flag="$shared_flag "'${wl}-G'
8002 if test "$host_cpu" = ia64; then
8003 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8004 # chokes on -Wl,-G. The following line is correct:
8007 if test "$aix_use_runtimelinking" = yes; then
8008 shared_flag='${wl}-G'
8010 shared_flag='${wl}-bM:SRE'
8015 # It seems that -bexpall does not export symbols beginning with
8016 # underscore (_), so it is better to generate a list of symbols to export.
8017 always_export_symbols=yes
8018 if test "$aix_use_runtimelinking" = yes; then
8019 # Warning - without using the other runtime loading flags (-brtl),
8020 # -berok will link without error, but may produce a broken library.
8021 allow_undefined_flag='-berok'
8022 # Determine the default libpath from the value encoded in an empty executable.
8023 cat >conftest.$ac_ext <<_ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (ac_try="$ac_link"
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8045 (eval "$ac_link") 2>conftest.er1
8047 grep -v '^ *+' conftest.er1 >conftest.err
8049 cat conftest.err >&5
8050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } && {
8052 test -z "$ac_c_werror_flag" ||
8053 test ! -s conftest.err
8054 } && test -s conftest$ac_exeext &&
8055 $as_test_x conftest$ac_exeext; then
8057 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8059 # Check for a 64-bit object if we didn't find anything.
8060 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; }
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8070 conftest$ac_exeext conftest.$ac_ext
8071 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8073 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8074 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"
8076 if test "$host_cpu" = ia64; then
8077 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8078 allow_undefined_flag="-z nodefs"
8079 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"
8081 # Determine the default libpath from the value encoded in an empty executable.
8082 cat >conftest.$ac_ext <<_ACEOF
8085 cat confdefs.h >>conftest.$ac_ext
8086 cat >>conftest.$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8097 rm -f conftest.$ac_objext conftest$ac_exeext
8098 if { (ac_try="$ac_link"
8100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_link") 2>conftest.er1
8106 grep -v '^ *+' conftest.er1 >conftest.err
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } && {
8111 test -z "$ac_c_werror_flag" ||
8112 test ! -s conftest.err
8113 } && test -s conftest$ac_exeext &&
8114 $as_test_x conftest$ac_exeext; then
8116 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8118 # Check for a 64-bit object if we didn't find anything.
8119 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; }
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.$ac_ext >&5
8128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8129 conftest$ac_exeext conftest.$ac_ext
8130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8132 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8133 # Warning - without using the other run time loading flags,
8134 # -berok will link without error, but may produce a broken library.
8135 no_undefined_flag=' ${wl}-bernotok'
8136 allow_undefined_flag=' ${wl}-berok'
8137 # Exported symbols can be pulled into shared objects from archives
8138 whole_archive_flag_spec='$convenience'
8139 archive_cmds_need_lc=yes
8140 # This is similar to how AIX traditionally builds its shared libraries.
8141 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'
8147 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)'
8148 hardcode_libdir_flag_spec='-L$libdir'
8149 hardcode_minus_L=yes
8150 # see comment about different semantics on the GNU ld section
8155 export_dynamic_flag_spec=-rdynamic
8158 cygwin* | mingw* | pw32*)
8159 # When not using gcc, we currently assume that we are using
8160 # Microsoft Visual C++.
8161 # hardcode_libdir_flag_spec is actually meaningless, as there is
8162 # no search path for DLLs.
8163 hardcode_libdir_flag_spec=' '
8164 allow_undefined_flag=unsupported
8165 # Tell ltmain to make .lib files, not .a files.
8167 # Tell ltmain to make .dll files, not .so files.
8169 # FIXME: Setting linknames here is a bad hack.
8170 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8171 # The linker will automatically build a .lib file if we build a DLL.
8172 old_archive_From_new_cmds='true'
8173 # FIXME: Should let the user specify the lib program.
8174 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8175 fix_srcfile_path='`cygpath -w "$srcfile"`'
8176 enable_shared_with_static_runtimes=yes
8179 darwin* | rhapsody*)
8181 rhapsody* | darwin1.[012])
8182 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8185 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8186 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8188 case ${MACOSX_DEPLOYMENT_TARGET} in
8190 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8193 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8199 archive_cmds_need_lc=no
8201 hardcode_automatic=yes
8202 hardcode_shlibpath_var=unsupported
8203 whole_archive_flag_spec=''
8204 link_all_deplibs=yes
8205 if test "$GCC" = yes ; then
8206 output_verbose_link_cmd='echo'
8207 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8208 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8209 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8210 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}'
8211 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}'
8213 case $cc_basename in
8215 output_verbose_link_cmd='echo'
8216 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8217 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8218 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8219 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}'
8220 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}'
8230 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8231 hardcode_libdir_flag_spec='-L$libdir'
8232 hardcode_shlibpath_var=no
8239 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8240 # support. Future versions do this automatically, but an explicit c++rt0.o
8241 # does not break anything, and helps significantly (at the cost of a little
8244 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8245 hardcode_libdir_flag_spec='-R$libdir'
8247 hardcode_shlibpath_var=no
8250 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8252 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8254 hardcode_minus_L=yes
8255 hardcode_shlibpath_var=no
8258 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8259 freebsd* | dragonfly*)
8260 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8261 hardcode_libdir_flag_spec='-R$libdir'
8263 hardcode_shlibpath_var=no
8267 if test "$GCC" = yes; then
8268 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'
8270 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'
8272 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8273 hardcode_libdir_separator=:
8276 # hardcode_minus_L: Not really in the search PATH,
8277 # but as the default location of the library.
8278 hardcode_minus_L=yes
8279 export_dynamic_flag_spec='${wl}-E'
8283 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8284 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8286 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8288 if test "$with_gnu_ld" = no; then
8289 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8290 hardcode_libdir_separator=:
8293 export_dynamic_flag_spec='${wl}-E'
8295 # hardcode_minus_L: Not really in the search PATH,
8296 # but as the default location of the library.
8297 hardcode_minus_L=yes
8302 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8305 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8308 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8311 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8317 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8320 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8323 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8327 if test "$with_gnu_ld" = no; then
8328 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8329 hardcode_libdir_separator=:
8333 hardcode_libdir_flag_spec_ld='+b $libdir'
8335 hardcode_shlibpath_var=no
8339 export_dynamic_flag_spec='${wl}-E'
8341 # hardcode_minus_L: Not really in the search PATH,
8342 # but as the default location of the library.
8343 hardcode_minus_L=yes
8349 irix5* | irix6* | nonstopux*)
8350 if test "$GCC" = yes; then
8351 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'
8353 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'
8354 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8356 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8357 hardcode_libdir_separator=:
8358 link_all_deplibs=yes
8361 netbsd* | netbsdelf*-gnu)
8362 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8363 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8365 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8367 hardcode_libdir_flag_spec='-R$libdir'
8369 hardcode_shlibpath_var=no
8373 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8375 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8376 hardcode_libdir_separator=:
8377 hardcode_shlibpath_var=no
8382 hardcode_shlibpath_var=no
8383 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8384 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8385 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8386 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8387 export_dynamic_flag_spec='${wl}-E'
8390 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8391 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8392 hardcode_libdir_flag_spec='-R$libdir'
8395 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8396 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8403 hardcode_libdir_flag_spec='-L$libdir'
8404 hardcode_minus_L=yes
8405 allow_undefined_flag=unsupported
8406 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'
8407 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8411 if test "$GCC" = yes; then
8412 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8413 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'
8415 allow_undefined_flag=' -expect_unresolved \*'
8416 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'
8418 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8419 hardcode_libdir_separator=:
8422 osf4* | osf5*) # as osf3* with the addition of -msym flag
8423 if test "$GCC" = yes; then
8424 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8425 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'
8426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8428 allow_undefined_flag=' -expect_unresolved \*'
8429 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'
8430 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8431 $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'
8433 # Both c and cxx compiler support -rpath directly
8434 hardcode_libdir_flag_spec='-rpath $libdir'
8436 hardcode_libdir_separator=:
8440 no_undefined_flag=' -z text'
8441 if test "$GCC" = yes; then
8443 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8444 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8445 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8448 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8449 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8450 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8452 hardcode_libdir_flag_spec='-R$libdir'
8453 hardcode_shlibpath_var=no
8455 solaris2.[0-5] | solaris2.[0-5].*) ;;
8457 # The compiler driver will combine linker options so we
8458 # cannot just pass the convience library names through
8459 # without $wl, iff we do not link with $LD.
8460 # Luckily, gcc supports the same syntax we need for Sun Studio.
8461 # Supported since Solaris 2.6 (maybe 2.5.1?)
8464 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8466 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' ;;
8469 link_all_deplibs=yes
8473 if test "x$host_vendor" = xsequent; then
8474 # Use $CC to link under sequent, because it throws in some extra .o
8475 # files that make .init and .fini sections work.
8476 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8478 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8480 hardcode_libdir_flag_spec='-L$libdir'
8482 hardcode_minus_L=yes
8483 hardcode_shlibpath_var=no
8487 case $host_vendor in
8489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8490 hardcode_direct=yes # is this really true???
8493 ## LD is ld it makes a PLAMLIB
8494 ## CC just makes a GrossModule.
8495 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8496 reload_cmds='$CC -r -o $output$reload_objs'
8500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8501 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8504 runpath_var='LD_RUN_PATH'
8505 hardcode_shlibpath_var=no
8509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8510 hardcode_shlibpath_var=no
8511 export_dynamic_flag_spec='-Bexport'
8515 if test -d /usr/nec; then
8516 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8517 hardcode_shlibpath_var=no
8518 runpath_var=LD_RUN_PATH
8519 hardcode_runpath_var=yes
8524 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8525 no_undefined_flag='${wl}-z,text'
8526 archive_cmds_need_lc=no
8527 hardcode_shlibpath_var=no
8528 runpath_var='LD_RUN_PATH'
8530 if test "$GCC" = yes; then
8531 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8532 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8534 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8535 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8539 sysv5* | sco3.2v5* | sco5v6*)
8540 # Note: We can NOT use -z defs as we might desire, because we do not
8541 # link with -lc, and that would cause any symbols used from libc to
8542 # always be unresolved, which means just about no library would
8543 # ever link correctly. If we're not using GNU ld we use -z text
8544 # though, which does catch some bad symbols but isn't as heavy-handed
8546 no_undefined_flag='${wl}-z,text'
8547 allow_undefined_flag='${wl}-z,nodefs'
8548 archive_cmds_need_lc=no
8549 hardcode_shlibpath_var=no
8550 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8551 hardcode_libdir_separator=':'
8552 link_all_deplibs=yes
8553 export_dynamic_flag_spec='${wl}-Bexport'
8554 runpath_var='LD_RUN_PATH'
8556 if test "$GCC" = yes; then
8557 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8558 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8560 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8561 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8566 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8567 hardcode_libdir_flag_spec='-L$libdir'
8568 hardcode_shlibpath_var=no
8577 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8578 echo "${ECHO_T}$ld_shlibs" >&6; }
8579 test "$ld_shlibs" = no && can_build_shared=no
8582 # Do we need to explicitly link libc?
8584 case "x$archive_cmds_need_lc" in
8586 # Assume -lc should be added
8587 archive_cmds_need_lc=yes
8589 if test "$enable_shared" = yes && test "$GCC" = yes; then
8590 case $archive_cmds in
8592 # FIXME: we may have to deal with multi-command sequences.
8595 # Test whether the compiler implicitly links with -lc since on some
8596 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8597 # to ld, don't add -lc before -lgcc.
8598 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8599 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8601 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8604 (eval $ac_compile) 2>&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } 2>conftest.err; then
8610 libobjs=conftest.$ac_objext
8612 wl=$lt_prog_compiler_wl
8613 pic_flag=$lt_prog_compiler_pic
8619 lt_save_allow_undefined_flag=$allow_undefined_flag
8620 allow_undefined_flag=
8621 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8622 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }
8627 archive_cmds_need_lc=no
8629 archive_cmds_need_lc=yes
8631 allow_undefined_flag=$lt_save_allow_undefined_flag
8633 cat conftest.err 1>&5
8636 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8637 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8644 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8645 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8647 libname_spec='lib$name'
8655 shlibpath_overrides_runpath=unknown
8657 dynamic_linker="$host_os ld.so"
8658 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8659 if test "$GCC" = yes; then
8660 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8661 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8662 # if the path contains ";" then we assume it to be the separator
8663 # otherwise default to the standard path separator (i.e. ":") - it is
8664 # assumed that no part of a normal pathname contains ";" but that should
8665 # okay in the real world where ";" in dirpaths is itself problematic.
8666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8671 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8673 need_lib_prefix=unknown
8674 hardcode_into_libs=no
8676 # when you set need_version to no, make sure it does not cause -set_version
8677 # flags to be left without arguments
8678 need_version=unknown
8683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8684 shlibpath_var=LIBPATH
8686 # AIX 3 has no versioning support, so we append a major version to the name.
8687 soname_spec='${libname}${release}${shared_ext}$major'
8694 hardcode_into_libs=yes
8695 if test "$host_cpu" = ia64; then
8696 # AIX 5 supports IA64
8697 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8698 shlibpath_var=LD_LIBRARY_PATH
8700 # With GCC up to 2.95.x, collect2 would create an import file
8701 # for dependence libraries. The import file would start with
8702 # the line `#! .'. This would cause the generated library to
8703 # depend on `.', always an invalid library. This was fixed in
8704 # development snapshots of GCC prior to 3.0.
8706 aix4 | aix4.[01] | aix4.[01].*)
8707 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8709 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8716 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8717 # soname into executable. Probably we can add versioning support to
8718 # collect2, so additional links can be useful in future.
8719 if test "$aix_use_runtimelinking" = yes; then
8720 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8721 # instead of lib<name>.a to let people know that these are not
8722 # typical AIX shared libraries.
8723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8725 # We preserve .a as extension for shared libraries through AIX4.2
8726 # and later when we are not doing run time linking.
8727 library_names_spec='${libname}${release}.a $libname.a'
8728 soname_spec='${libname}${release}${shared_ext}$major'
8730 shlibpath_var=LIBPATH
8735 library_names_spec='$libname.ixlibrary $libname.a'
8736 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8737 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'
8741 library_names_spec='${libname}${shared_ext}'
8742 dynamic_linker="$host_os ld.so"
8743 shlibpath_var=LIBRARY_PATH
8749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8750 soname_spec='${libname}${release}${shared_ext}$major'
8751 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8752 shlibpath_var=LD_LIBRARY_PATH
8753 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8754 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8755 # the default ld.so.conf also contains /usr/contrib/lib and
8756 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8757 # libtool to hard-code these into programs
8760 cygwin* | mingw* | pw32*)
8761 version_type=windows
8766 case $GCC,$host_os in
8767 yes,cygwin* | yes,mingw* | yes,pw32*)
8768 library_names_spec='$libname.dll.a'
8769 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8770 postinstall_cmds='base_file=`basename \${file}`~
8771 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8772 dldir=$destdir/`dirname \$dlpath`~
8773 test -d \$dldir || mkdir -p \$dldir~
8774 $install_prog $dir/$dlname \$dldir/$dlname~
8775 chmod a+x \$dldir/$dlname'
8776 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8777 dlpath=$dir/\$dldll~
8779 shlibpath_overrides_runpath=yes
8783 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8784 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8785 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8788 # MinGW DLLs use traditional 'lib' prefix
8789 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8790 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8791 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8792 # It is most probably a Windows format PATH printed by
8793 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8794 # path with ; separators, and with drive letters. We can handle the
8795 # drive letters (cygwin fileutils understands them), so leave them,
8796 # especially as we might pass files found there to a mingw objdump,
8797 # which wouldn't understand a cygwinified path. Ahh.
8798 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8804 # pw32 DLLs use 'pw' prefix rather than 'lib'
8805 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8811 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8814 dynamic_linker='Win32 ld.exe'
8815 # FIXME: first we should search . and the directory the executable is in
8819 darwin* | rhapsody*)
8820 dynamic_linker="$host_os dyld"
8824 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8825 soname_spec='${libname}${release}${major}$shared_ext'
8826 shlibpath_overrides_runpath=yes
8827 shlibpath_var=DYLD_LIBRARY_PATH
8828 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8829 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8830 if test "$GCC" = yes; then
8831 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"`
8833 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8835 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8843 soname_spec='${libname}${release}${shared_ext}$major'
8844 shlibpath_var=LD_LIBRARY_PATH
8851 freebsd* | dragonfly*)
8852 # DragonFly does not have aout. When/if they implement a new
8853 # versioning mechanism, adjust this.
8854 if test -x /usr/bin/objformat; then
8855 objformat=`/usr/bin/objformat`
8858 freebsd[123]*) objformat=aout ;;
8862 version_type=freebsd-$objformat
8863 case $version_type in
8865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8874 shlibpath_var=LD_LIBRARY_PATH
8877 shlibpath_overrides_runpath=yes
8879 freebsd3.[01]* | freebsdelf3.[01]*)
8880 shlibpath_overrides_runpath=yes
8881 hardcode_into_libs=yes
8883 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8884 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8885 shlibpath_overrides_runpath=no
8886 hardcode_into_libs=yes
8888 freebsd*) # from 4.6 on
8889 shlibpath_overrides_runpath=yes
8890 hardcode_into_libs=yes
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8900 soname_spec='${libname}${release}${shared_ext}$major'
8901 shlibpath_var=LD_LIBRARY_PATH
8902 hardcode_into_libs=yes
8905 hpux9* | hpux10* | hpux11*)
8906 # Give a soname corresponding to the major version so that dld.sl refuses to
8907 # link against other versions.
8914 hardcode_into_libs=yes
8915 dynamic_linker="$host_os dld.so"
8916 shlibpath_var=LD_LIBRARY_PATH
8917 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8919 soname_spec='${libname}${release}${shared_ext}$major'
8920 if test "X$HPUX_IA64_MODE" = X32; then
8921 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8923 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8925 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8929 hardcode_into_libs=yes
8930 dynamic_linker="$host_os dld.sl"
8931 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8936 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8940 dynamic_linker="$host_os dld.sl"
8941 shlibpath_var=SHLIB_PATH
8942 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8944 soname_spec='${libname}${release}${shared_ext}$major'
8947 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8948 postinstall_cmds='chmod 555 $lib'
8955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8956 soname_spec='${libname}${release}${shared_ext}$major'
8957 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8958 shlibpath_var=LD_LIBRARY_PATH
8959 shlibpath_overrides_runpath=no
8960 hardcode_into_libs=yes
8963 irix5* | irix6* | nonstopux*)
8965 nonstopux*) version_type=nonstopux ;;
8967 if test "$lt_cv_prog_gnu_ld" = yes; then
8975 soname_spec='${libname}${release}${shared_ext}$major'
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8978 irix5* | nonstopux*)
8982 case $LD in # libtool.m4 will add one of these switches to LD
8983 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8984 libsuff= shlibsuff= libmagic=32-bit;;
8985 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8986 libsuff=32 shlibsuff=N32 libmagic=N32;;
8987 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8988 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8989 *) libsuff= shlibsuff= libmagic=never-match;;
8993 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8994 shlibpath_overrides_runpath=no
8995 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8996 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8997 hardcode_into_libs=yes
9000 # No shared lib support for Linux oldld, aout, or coff.
9001 linux*oldld* | linux*aout* | linux*coff*)
9005 # This must be Linux ELF.
9006 linux* | k*bsd*-gnu)
9010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9011 soname_spec='${libname}${release}${shared_ext}$major'
9012 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 shlibpath_overrides_runpath=no
9015 # This implies no fast_install, which is unacceptable.
9016 # Some rework will be needed to allow for fast_install
9017 # before this can be enabled.
9018 hardcode_into_libs=yes
9020 # Append ld.so.conf contents to the search path
9021 if test -f /etc/ld.so.conf; then
9022 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' ' '`
9023 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9026 # We used to test for /lib/ld.so.1 and disable shared libraries on
9027 # powerpc, because MkLinux only supported shared libraries with the
9028 # GNU dynamic linker. Since this was broken with cross compilers,
9029 # most powerpc-linux boxes support dynamic linking these days and
9030 # people can always --disable-shared, the test was removed, and we
9031 # assume the GNU/Linux dynamic linker is in use.
9032 dynamic_linker='GNU/Linux ld.so'
9039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9040 soname_spec='${libname}${release}${shared_ext}$major'
9041 shlibpath_var=LD_LIBRARY_PATH
9042 shlibpath_overrides_runpath=no
9043 hardcode_into_libs=yes
9044 dynamic_linker='NetBSD ld.elf_so'
9051 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9054 dynamic_linker='NetBSD (a.out) ld.so'
9056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9057 soname_spec='${libname}${release}${shared_ext}$major'
9058 dynamic_linker='NetBSD ld.elf_so'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 shlibpath_overrides_runpath=yes
9062 hardcode_into_libs=yes
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9068 shlibpath_var=LD_LIBRARY_PATH
9069 shlibpath_overrides_runpath=yes
9076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9077 soname_spec='${libname}${release}${shared_ext}$major'
9078 shlibpath_var=LD_LIBRARY_PATH
9079 shlibpath_overrides_runpath=yes
9084 sys_lib_dlsearch_path_spec="/usr/lib"
9086 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9088 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9089 *) need_version=no ;;
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9092 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9096 openbsd2.[89] | openbsd2.[89].*)
9097 shlibpath_overrides_runpath=no
9100 shlibpath_overrides_runpath=yes
9104 shlibpath_overrides_runpath=yes
9109 libname_spec='$name'
9112 library_names_spec='$libname${shared_ext} $libname.a'
9113 dynamic_linker='OS/2 ld.exe'
9114 shlibpath_var=LIBPATH
9117 osf3* | osf4* | osf5*)
9121 soname_spec='${libname}${release}${shared_ext}$major'
9122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9123 shlibpath_var=LD_LIBRARY_PATH
9124 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9125 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9133 soname_spec='${libname}${release}${shared_ext}$major'
9134 shlibpath_var=LD_LIBRARY_PATH
9135 shlibpath_overrides_runpath=yes
9136 hardcode_into_libs=yes
9137 # ldd complains unless libraries are executable
9138 postinstall_cmds='chmod +x $lib'
9143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9144 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9145 shlibpath_var=LD_LIBRARY_PATH
9146 shlibpath_overrides_runpath=yes
9147 if test "$with_gnu_ld" = yes; then
9155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9156 soname_spec='${libname}${release}${shared_ext}$major'
9157 shlibpath_var=LD_LIBRARY_PATH
9158 case $host_vendor in
9160 shlibpath_overrides_runpath=no
9162 export_dynamic_flag_spec='${wl}-Blargedynsym'
9163 runpath_var=LD_RUN_PATH
9171 shlibpath_overrides_runpath=no
9172 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9178 if test -d /usr/nec ;then
9180 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9181 soname_spec='$libname${shared_ext}.$major'
9182 shlibpath_var=LD_LIBRARY_PATH
9186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9187 version_type=freebsd-elf
9190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9191 soname_spec='${libname}${release}${shared_ext}$major'
9192 shlibpath_var=LD_LIBRARY_PATH
9193 hardcode_into_libs=yes
9194 if test "$with_gnu_ld" = yes; then
9195 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9196 shlibpath_overrides_runpath=no
9198 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9199 shlibpath_overrides_runpath=yes
9202 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9206 sys_lib_dlsearch_path_spec='/usr/lib'
9211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9212 soname_spec='${libname}${release}${shared_ext}$major'
9213 shlibpath_var=LD_LIBRARY_PATH
9220 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9221 echo "${ECHO_T}$dynamic_linker" >&6; }
9222 test "$dynamic_linker" = no && can_build_shared=no
9224 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9225 if test "$GCC" = yes; then
9226 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9229 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9230 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9232 if test -n "$hardcode_libdir_flag_spec" || \
9233 test -n "$runpath_var" || \
9234 test "X$hardcode_automatic" = "Xyes" ; then
9236 # We can hardcode non-existant directories.
9237 if test "$hardcode_direct" != no &&
9238 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9239 # have to relink, otherwise we might link with an installed library
9240 # when we should be linking with a yet-to-be-installed one
9241 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9242 test "$hardcode_minus_L" != no; then
9243 # Linking always hardcodes the temporary library directory.
9244 hardcode_action=relink
9246 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9247 hardcode_action=immediate
9250 # We cannot hardcode anything, or else we can only hardcode existing
9252 hardcode_action=unsupported
9254 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9255 echo "${ECHO_T}$hardcode_action" >&6; }
9257 if test "$hardcode_action" = relink; then
9258 # Fast installation is not supported
9259 enable_fast_install=no
9260 elif test "$shlibpath_overrides_runpath" = yes ||
9261 test "$enable_shared" = no; then
9262 # Fast installation is not necessary
9263 enable_fast_install=needless
9268 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9269 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9270 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9271 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9272 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9273 { echo "$as_me:$LINENO: result: yes" >&5
9274 echo "${ECHO_T}yes" >&6; }
9276 # FIXME - insert some real tests, host_os isn't really good enough
9279 if test -n "$STRIP" ; then
9280 striplib="$STRIP -x"
9281 { echo "$as_me:$LINENO: result: yes" >&5
9282 echo "${ECHO_T}yes" >&6; }
9284 { echo "$as_me:$LINENO: result: no" >&5
9285 echo "${ECHO_T}no" >&6; }
9289 { echo "$as_me:$LINENO: result: no" >&5
9290 echo "${ECHO_T}no" >&6; }
9295 if test "x$enable_dlopen" != xyes; then
9296 enable_dlopen=unknown
9297 enable_dlopen_self=unknown
9298 enable_dlopen_self_static=unknown
9305 lt_cv_dlopen="load_add_on"
9307 lt_cv_dlopen_self=yes
9311 lt_cv_dlopen="LoadLibrary"
9316 lt_cv_dlopen="dlopen"
9321 # if libdl is installed we need to link against it
9322 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9323 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9324 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9325 echo $ECHO_N "(cached) $ECHO_C" >&6
9327 ac_check_lib_save_LIBS=$LIBS
9329 cat >conftest.$ac_ext <<_ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h. */
9336 /* Override any GCC internal prototype to avoid an error.
9337 Use char because int might match the return type of a GCC
9338 builtin and then its argument prototype would still apply. */
9351 rm -f conftest.$ac_objext conftest$ac_exeext
9352 if { (ac_try="$ac_link"
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_link") 2>conftest.er1
9360 grep -v '^ *+' conftest.er1 >conftest.err
9362 cat conftest.err >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } && {
9365 test -z "$ac_c_werror_flag" ||
9366 test ! -s conftest.err
9367 } && test -s conftest$ac_exeext &&
9368 $as_test_x conftest$ac_exeext; then
9369 ac_cv_lib_dl_dlopen=yes
9371 echo "$as_me: failed program was:" >&5
9372 sed 's/^/| /' conftest.$ac_ext >&5
9374 ac_cv_lib_dl_dlopen=no
9377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9378 conftest$ac_exeext conftest.$ac_ext
9379 LIBS=$ac_check_lib_save_LIBS
9381 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9382 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9383 if test $ac_cv_lib_dl_dlopen = yes; then
9384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9389 lt_cv_dlopen_self=yes
9396 { echo "$as_me:$LINENO: checking for shl_load" >&5
9397 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9398 if test "${ac_cv_func_shl_load+set}" = set; then
9399 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 cat >conftest.$ac_ext <<_ACEOF
9404 cat confdefs.h >>conftest.$ac_ext
9405 cat >>conftest.$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9409 #define shl_load innocuous_shl_load
9411 /* System header to define __stub macros and hopefully few prototypes,
9412 which can conflict with char shl_load (); below.
9413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9414 <limits.h> exists even on freestanding compilers. */
9417 # include <limits.h>
9419 # include <assert.h>
9424 /* Override any GCC internal prototype to avoid an error.
9425 Use char because int might match the return type of a GCC
9426 builtin and then its argument prototype would still apply. */
9431 /* The GNU C library defines this for functions which it implements
9432 to always fail with ENOSYS. Some functions are actually named
9433 something starting with __ and the normal name is an alias. */
9434 #if defined __stub_shl_load || defined __stub___shl_load
9446 rm -f conftest.$ac_objext conftest$ac_exeext
9447 if { (ac_try="$ac_link"
9449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450 *) ac_try_echo=$ac_try;;
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453 (eval "$ac_link") 2>conftest.er1
9455 grep -v '^ *+' conftest.er1 >conftest.err
9457 cat conftest.err >&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } && {
9460 test -z "$ac_c_werror_flag" ||
9461 test ! -s conftest.err
9462 } && test -s conftest$ac_exeext &&
9463 $as_test_x conftest$ac_exeext; then
9464 ac_cv_func_shl_load=yes
9466 echo "$as_me: failed program was:" >&5
9467 sed 's/^/| /' conftest.$ac_ext >&5
9469 ac_cv_func_shl_load=no
9472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9473 conftest$ac_exeext conftest.$ac_ext
9475 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9476 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9477 if test $ac_cv_func_shl_load = yes; then
9478 lt_cv_dlopen="shl_load"
9480 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9481 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9482 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9485 ac_check_lib_save_LIBS=$LIBS
9487 cat >conftest.$ac_ext <<_ACEOF
9490 cat confdefs.h >>conftest.$ac_ext
9491 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */
9494 /* Override any GCC internal prototype to avoid an error.
9495 Use char because int might match the return type of a GCC
9496 builtin and then its argument prototype would still apply. */
9509 rm -f conftest.$ac_objext conftest$ac_exeext
9510 if { (ac_try="$ac_link"
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516 (eval "$ac_link") 2>conftest.er1
9518 grep -v '^ *+' conftest.er1 >conftest.err
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } && {
9523 test -z "$ac_c_werror_flag" ||
9524 test ! -s conftest.err
9525 } && test -s conftest$ac_exeext &&
9526 $as_test_x conftest$ac_exeext; then
9527 ac_cv_lib_dld_shl_load=yes
9529 echo "$as_me: failed program was:" >&5
9530 sed 's/^/| /' conftest.$ac_ext >&5
9532 ac_cv_lib_dld_shl_load=no
9535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9536 conftest$ac_exeext conftest.$ac_ext
9537 LIBS=$ac_check_lib_save_LIBS
9539 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9540 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9541 if test $ac_cv_lib_dld_shl_load = yes; then
9542 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9544 { echo "$as_me:$LINENO: checking for dlopen" >&5
9545 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9546 if test "${ac_cv_func_dlopen+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 cat >conftest.$ac_ext <<_ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9557 #define dlopen innocuous_dlopen
9559 /* System header to define __stub macros and hopefully few prototypes,
9560 which can conflict with char dlopen (); below.
9561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9562 <limits.h> exists even on freestanding compilers. */
9565 # include <limits.h>
9567 # include <assert.h>
9572 /* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9579 /* The GNU C library defines this for functions which it implements
9580 to always fail with ENOSYS. Some functions are actually named
9581 something starting with __ and the normal name is an alias. */
9582 #if defined __stub_dlopen || defined __stub___dlopen
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (ac_try="$ac_link"
9597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9598 *) ac_try_echo=$ac_try;;
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_link") 2>conftest.er1
9603 grep -v '^ *+' conftest.er1 >conftest.err
9605 cat conftest.err >&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest$ac_exeext &&
9611 $as_test_x conftest$ac_exeext; then
9612 ac_cv_func_dlopen=yes
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.$ac_ext >&5
9617 ac_cv_func_dlopen=no
9620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9621 conftest$ac_exeext conftest.$ac_ext
9623 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9624 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9625 if test $ac_cv_func_dlopen = yes; then
9626 lt_cv_dlopen="dlopen"
9628 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9629 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9630 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9631 echo $ECHO_N "(cached) $ECHO_C" >&6
9633 ac_check_lib_save_LIBS=$LIBS
9635 cat >conftest.$ac_ext <<_ACEOF
9638 cat confdefs.h >>conftest.$ac_ext
9639 cat >>conftest.$ac_ext <<_ACEOF
9640 /* end confdefs.h. */
9642 /* Override any GCC internal prototype to avoid an error.
9643 Use char because int might match the return type of a GCC
9644 builtin and then its argument prototype would still apply. */
9657 rm -f conftest.$ac_objext conftest$ac_exeext
9658 if { (ac_try="$ac_link"
9660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9661 *) ac_try_echo=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_link") 2>conftest.er1
9666 grep -v '^ *+' conftest.er1 >conftest.err
9668 cat conftest.err >&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } && {
9671 test -z "$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9673 } && test -s conftest$ac_exeext &&
9674 $as_test_x conftest$ac_exeext; then
9675 ac_cv_lib_dl_dlopen=yes
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.$ac_ext >&5
9680 ac_cv_lib_dl_dlopen=no
9683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9684 conftest$ac_exeext conftest.$ac_ext
9685 LIBS=$ac_check_lib_save_LIBS
9687 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9688 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9689 if test $ac_cv_lib_dl_dlopen = yes; then
9690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9692 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9693 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9694 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 ac_check_lib_save_LIBS=$LIBS
9699 cat >conftest.$ac_ext <<_ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h. */
9706 /* Override any GCC internal prototype to avoid an error.
9707 Use char because int might match the return type of a GCC
9708 builtin and then its argument prototype would still apply. */
9721 rm -f conftest.$ac_objext conftest$ac_exeext
9722 if { (ac_try="$ac_link"
9724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_link") 2>conftest.er1
9730 grep -v '^ *+' conftest.er1 >conftest.err
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest$ac_exeext &&
9738 $as_test_x conftest$ac_exeext; then
9739 ac_cv_lib_svld_dlopen=yes
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ac_cv_lib_svld_dlopen=no
9747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9748 conftest$ac_exeext conftest.$ac_ext
9749 LIBS=$ac_check_lib_save_LIBS
9751 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9752 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9753 if test $ac_cv_lib_svld_dlopen = yes; then
9754 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9756 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9757 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9758 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 ac_check_lib_save_LIBS=$LIBS
9763 cat >conftest.$ac_ext <<_ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9770 /* Override any GCC internal prototype to avoid an error.
9771 Use char because int might match the return type of a GCC
9772 builtin and then its argument prototype would still apply. */
9785 rm -f conftest.$ac_objext conftest$ac_exeext
9786 if { (ac_try="$ac_link"
9788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9789 *) ac_try_echo=$ac_try;;
9791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9792 (eval "$ac_link") 2>conftest.er1
9794 grep -v '^ *+' conftest.er1 >conftest.err
9796 cat conftest.err >&5
9797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9798 (exit $ac_status); } && {
9799 test -z "$ac_c_werror_flag" ||
9800 test ! -s conftest.err
9801 } && test -s conftest$ac_exeext &&
9802 $as_test_x conftest$ac_exeext; then
9803 ac_cv_lib_dld_dld_link=yes
9805 echo "$as_me: failed program was:" >&5
9806 sed 's/^/| /' conftest.$ac_ext >&5
9808 ac_cv_lib_dld_dld_link=no
9811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9812 conftest$ac_exeext conftest.$ac_ext
9813 LIBS=$ac_check_lib_save_LIBS
9815 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9816 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9817 if test $ac_cv_lib_dld_dld_link = yes; then
9818 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9839 if test "x$lt_cv_dlopen" != xno; then
9845 case $lt_cv_dlopen in
9847 save_CPPFLAGS="$CPPFLAGS"
9848 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9850 save_LDFLAGS="$LDFLAGS"
9851 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9854 LIBS="$lt_cv_dlopen_libs $LIBS"
9856 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9857 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9858 if test "${lt_cv_dlopen_self+set}" = set; then
9859 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 if test "$cross_compiling" = yes; then :
9862 lt_cv_dlopen_self=cross
9864 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9865 lt_status=$lt_dlunknown
9866 cat > conftest.$ac_ext <<EOF
9867 #line 9867 "configure"
9868 #include "confdefs.h"
9877 # define LT_DLGLOBAL RTLD_GLOBAL
9880 # define LT_DLGLOBAL DL_GLOBAL
9882 # define LT_DLGLOBAL 0
9886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9887 find out it does not work in some platform. */
9888 #ifndef LT_DLLAZY_OR_NOW
9890 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9893 # define LT_DLLAZY_OR_NOW DL_LAZY
9896 # define LT_DLLAZY_OR_NOW RTLD_NOW
9899 # define LT_DLLAZY_OR_NOW DL_NOW
9901 # define LT_DLLAZY_OR_NOW 0
9909 extern "C" void exit (int);
9912 void fnord() { int i=42;}
9915 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9916 int status = $lt_dlunknown;
9920 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9921 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9922 /* dlclose (self); */
9930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9931 (eval $ac_link) 2>&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9935 (./conftest; exit; ) >&5 2>/dev/null
9938 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9939 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9940 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9943 # compilation failed
9944 lt_cv_dlopen_self=no
9951 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9952 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9954 if test "x$lt_cv_dlopen_self" = xyes; then
9955 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9956 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9957 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9958 if test "${lt_cv_dlopen_self_static+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9961 if test "$cross_compiling" = yes; then :
9962 lt_cv_dlopen_self_static=cross
9964 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9965 lt_status=$lt_dlunknown
9966 cat > conftest.$ac_ext <<EOF
9967 #line 9967 "configure"
9968 #include "confdefs.h"
9977 # define LT_DLGLOBAL RTLD_GLOBAL
9980 # define LT_DLGLOBAL DL_GLOBAL
9982 # define LT_DLGLOBAL 0
9986 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9987 find out it does not work in some platform. */
9988 #ifndef LT_DLLAZY_OR_NOW
9990 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9993 # define LT_DLLAZY_OR_NOW DL_LAZY
9996 # define LT_DLLAZY_OR_NOW RTLD_NOW
9999 # define LT_DLLAZY_OR_NOW DL_NOW
10001 # define LT_DLLAZY_OR_NOW 0
10009 extern "C" void exit (int);
10012 void fnord() { int i=42;}
10015 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10016 int status = $lt_dlunknown;
10020 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10021 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10022 /* dlclose (self); */
10030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10031 (eval $ac_link) 2>&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10035 (./conftest; exit; ) >&5 2>/dev/null
10037 case x$lt_status in
10038 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10039 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10040 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10043 # compilation failed
10044 lt_cv_dlopen_self_static=no
10051 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10052 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10055 CPPFLAGS="$save_CPPFLAGS"
10056 LDFLAGS="$save_LDFLAGS"
10061 case $lt_cv_dlopen_self in
10062 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10063 *) enable_dlopen_self=unknown ;;
10066 case $lt_cv_dlopen_self_static in
10067 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10068 *) enable_dlopen_self_static=unknown ;;
10073 # Report which library types will actually be built
10074 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10075 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10076 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10077 echo "${ECHO_T}$can_build_shared" >&6; }
10079 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10080 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10081 test "$can_build_shared" = "no" && enable_shared=no
10083 # On AIX, shared libraries and static libraries use the same namespace, and
10084 # are all built from PIC.
10087 test "$enable_shared" = yes && enable_static=no
10088 if test -n "$RANLIB"; then
10089 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10090 postinstall_cmds='$RANLIB $lib'
10095 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10096 test "$enable_shared" = yes && enable_static=no
10100 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10101 echo "${ECHO_T}$enable_shared" >&6; }
10103 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10104 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10105 # Make sure either enable_shared or enable_static is yes.
10106 test "$enable_shared" = yes || enable_static=yes
10107 { echo "$as_me:$LINENO: result: $enable_static" >&5
10108 echo "${ECHO_T}$enable_static" >&6; }
10110 # The else clause should only fire when bootstrapping the
10111 # libtool distribution, otherwise you forgot to ship ltmain.sh
10112 # with your package, and you will get complaints that there are
10113 # no rules to generate ltmain.sh.
10114 if test -f "$ltmain"; then
10115 # See if we are running on zsh, and set the options which allow our commands through
10116 # without removal of \ escapes.
10117 if test -n "${ZSH_VERSION+set}" ; then
10118 setopt NO_GLOB_SUBST
10120 # Now quote all the things that may contain metacharacters while being
10121 # careful not to overquote the AC_SUBSTed values. We take copies of the
10122 # variables and quote the copies for generation of the libtool script.
10123 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10125 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10126 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10127 deplibs_check_method reload_flag reload_cmds need_locks \
10128 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10129 lt_cv_sys_global_symbol_to_c_name_address \
10130 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10131 old_postinstall_cmds old_postuninstall_cmds \
10135 lt_prog_compiler_wl \
10136 lt_prog_compiler_pic \
10137 lt_prog_compiler_static \
10138 lt_prog_compiler_no_builtin_flag \
10139 export_dynamic_flag_spec \
10140 thread_safe_flag_spec \
10141 whole_archive_flag_spec \
10142 enable_shared_with_static_runtimes \
10144 old_archive_from_new_cmds \
10149 compiler_lib_search_path \
10151 archive_expsym_cmds \
10153 postuninstall_cmds \
10154 old_archive_from_expsyms_cmds \
10155 allow_undefined_flag \
10156 no_undefined_flag \
10157 export_symbols_cmds \
10158 hardcode_libdir_flag_spec \
10159 hardcode_libdir_flag_spec_ld \
10160 hardcode_libdir_separator \
10161 hardcode_automatic \
10163 module_expsym_cmds \
10164 lt_cv_prog_compiler_c_o \
10166 include_expsyms; do
10169 old_archive_cmds | \
10170 old_archive_from_new_cmds | \
10172 archive_expsym_cmds | \
10174 module_expsym_cmds | \
10175 old_archive_from_expsyms_cmds | \
10176 export_symbols_cmds | \
10177 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10178 postinstall_cmds | postuninstall_cmds | \
10179 old_postinstall_cmds | old_postuninstall_cmds | \
10180 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10181 # Double-quote double-evaled strings.
10182 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10185 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10191 *'\$0 --fallback-echo"')
10192 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10196 cfgfile="${ofile}T"
10197 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10199 { echo "$as_me:$LINENO: creating $ofile" >&5
10200 echo "$as_me: creating $ofile" >&6;}
10202 cat <<__EOF__ >> "$cfgfile"
10205 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10206 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10207 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10209 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10210 # Free Software Foundation, Inc.
10212 # This file is part of GNU Libtool:
10213 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10215 # This program is free software; you can redistribute it and/or modify
10216 # it under the terms of the GNU General Public License as published by
10217 # the Free Software Foundation; either version 2 of the License, or
10218 # (at your option) any later version.
10220 # This program is distributed in the hope that it will be useful, but
10221 # WITHOUT ANY WARRANTY; without even the implied warranty of
10222 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10223 # General Public License for more details.
10225 # You should have received a copy of the GNU General Public License
10226 # along with this program; if not, write to the Free Software
10227 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10229 # As a special exception to the GNU General Public License, if you
10230 # distribute this file as part of a program that contains a
10231 # configuration script generated by Autoconf, you may include it under
10232 # the same distribution terms that you use for the rest of that program.
10234 # A sed program that does not truncate output.
10237 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10238 Xsed="$SED -e 1s/^X//"
10240 # The HP-UX ksh and POSIX shell print the target directory to stdout
10241 # if CDPATH is set.
10242 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10244 # The names of the tagged configurations supported by this script.
10247 # ### BEGIN LIBTOOL CONFIG
10249 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10251 # Shell to use when invoking shell scripts.
10254 # Whether or not to build shared libraries.
10255 build_libtool_libs=$enable_shared
10257 # Whether or not to build static libraries.
10258 build_old_libs=$enable_static
10260 # Whether or not to add -lc for building shared libraries.
10261 build_libtool_need_lc=$archive_cmds_need_lc
10263 # Whether or not to disallow shared libs when runtime libs are static
10264 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10266 # Whether or not to optimize for fast installation.
10267 fast_install=$enable_fast_install
10270 host_alias=$host_alias
10274 # The build system.
10275 build_alias=$build_alias
10279 # An echo program that does not interpret backslashes.
10284 AR_FLAGS=$lt_AR_FLAGS
10289 # LTCC compiler flags.
10290 LTCFLAGS=$lt_LTCFLAGS
10292 # A language-specific compiler.
10295 # Is the compiler the GNU C compiler?
10301 # The linker used to build libraries.
10304 # Whether we need hard or soft links.
10307 # A BSD-compatible nm program.
10310 # A symbol stripping program
10313 # Used to examine libraries when file_magic_cmd begins "file"
10314 MAGIC_CMD=$MAGIC_CMD
10316 # Used on cygwin: DLL creation program.
10319 # Used on cygwin: object dumper.
10322 # Used on cygwin: assembler.
10325 # The name of the directory that contains temporary libtool files.
10328 # How to create reloadable object files.
10329 reload_flag=$lt_reload_flag
10330 reload_cmds=$lt_reload_cmds
10332 # How to pass a linker flag through the compiler.
10333 wl=$lt_lt_prog_compiler_wl
10335 # Object file suffix (normally "o").
10336 objext="$ac_objext"
10338 # Old archive suffix (normally "a").
10341 # Shared library suffix (normally ".so").
10342 shrext_cmds='$shrext_cmds'
10344 # Executable file suffix (normally "").
10347 # Additional compiler flags for building library objects.
10348 pic_flag=$lt_lt_prog_compiler_pic
10351 # What is the maximum length of a command?
10352 max_cmd_len=$lt_cv_sys_max_cmd_len
10354 # Does compiler simultaneously support -c and -o options?
10355 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10357 # Must we lock files when doing compilation?
10358 need_locks=$lt_need_locks
10360 # Do we need the lib prefix for modules?
10361 need_lib_prefix=$need_lib_prefix
10363 # Do we need a version for libraries?
10364 need_version=$need_version
10366 # Whether dlopen is supported.
10367 dlopen_support=$enable_dlopen
10369 # Whether dlopen of programs is supported.
10370 dlopen_self=$enable_dlopen_self
10372 # Whether dlopen of statically linked programs is supported.
10373 dlopen_self_static=$enable_dlopen_self_static
10375 # Compiler flag to prevent dynamic linking.
10376 link_static_flag=$lt_lt_prog_compiler_static
10378 # Compiler flag to turn off builtin functions.
10379 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10381 # Compiler flag to allow reflexive dlopens.
10382 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10384 # Compiler flag to generate shared objects directly from archives.
10385 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10387 # Compiler flag to generate thread-safe objects.
10388 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10390 # Library versioning type.
10391 version_type=$version_type
10393 # Format of library name prefix.
10394 libname_spec=$lt_libname_spec
10396 # List of archive names. First name is the real one, the rest are links.
10397 # The last name is the one that the linker finds with -lNAME.
10398 library_names_spec=$lt_library_names_spec
10400 # The coded name of the library, if different from the real name.
10401 soname_spec=$lt_soname_spec
10403 # Commands used to build and install an old-style archive.
10405 old_archive_cmds=$lt_old_archive_cmds
10406 old_postinstall_cmds=$lt_old_postinstall_cmds
10407 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10409 # Create an old-style archive from a shared archive.
10410 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10412 # Create a temporary old-style archive to link instead of a shared archive.
10413 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10415 # Commands used to build and install a shared archive.
10416 archive_cmds=$lt_archive_cmds
10417 archive_expsym_cmds=$lt_archive_expsym_cmds
10418 postinstall_cmds=$lt_postinstall_cmds
10419 postuninstall_cmds=$lt_postuninstall_cmds
10421 # Commands used to build a loadable module (assumed same as above if empty)
10422 module_cmds=$lt_module_cmds
10423 module_expsym_cmds=$lt_module_expsym_cmds
10425 # Commands to strip libraries.
10426 old_striplib=$lt_old_striplib
10427 striplib=$lt_striplib
10429 # Dependencies to place before the objects being linked to create a
10431 predep_objects=$lt_predep_objects
10433 # Dependencies to place after the objects being linked to create a
10435 postdep_objects=$lt_postdep_objects
10437 # Dependencies to place before the objects being linked to create a
10439 predeps=$lt_predeps
10441 # Dependencies to place after the objects being linked to create a
10443 postdeps=$lt_postdeps
10445 # The library search path used internally by the compiler when linking
10446 # a shared library.
10447 compiler_lib_search_path=$lt_compiler_lib_search_path
10449 # Method to check whether dependent libraries are shared objects.
10450 deplibs_check_method=$lt_deplibs_check_method
10452 # Command to use when deplibs_check_method == file_magic.
10453 file_magic_cmd=$lt_file_magic_cmd
10455 # Flag that allows shared libraries with undefined symbols to be built.
10456 allow_undefined_flag=$lt_allow_undefined_flag
10458 # Flag that forces no undefined symbols.
10459 no_undefined_flag=$lt_no_undefined_flag
10461 # Commands used to finish a libtool library installation in a directory.
10462 finish_cmds=$lt_finish_cmds
10464 # Same as above, but a single script fragment to be evaled but not shown.
10465 finish_eval=$lt_finish_eval
10467 # Take the output of nm and produce a listing of raw symbols and C names.
10468 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10470 # Transform the output of nm in a proper C declaration
10471 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10473 # Transform the output of nm in a C name address pair
10474 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10476 # This is the shared library runtime path variable.
10477 runpath_var=$runpath_var
10479 # This is the shared library path variable.
10480 shlibpath_var=$shlibpath_var
10482 # Is shlibpath searched before the hard-coded library search path?
10483 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10485 # How to hardcode a shared library path into an executable.
10486 hardcode_action=$hardcode_action
10488 # Whether we should hardcode library paths into libraries.
10489 hardcode_into_libs=$hardcode_into_libs
10491 # Flag to hardcode \$libdir into a binary during linking.
10492 # This must work even if \$libdir does not exist.
10493 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10495 # If ld is used when linking, flag to hardcode \$libdir into
10496 # a binary during linking. This must work even if \$libdir does
10498 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10500 # Whether we need a single -rpath flag with a separated argument.
10501 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10503 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10504 # resulting binary.
10505 hardcode_direct=$hardcode_direct
10507 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10508 # resulting binary.
10509 hardcode_minus_L=$hardcode_minus_L
10511 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10512 # the resulting binary.
10513 hardcode_shlibpath_var=$hardcode_shlibpath_var
10515 # Set to yes if building a shared library automatically hardcodes DIR into the library
10516 # and all subsequent libraries and executables linked against it.
10517 hardcode_automatic=$hardcode_automatic
10519 # Variables whose values should be saved in libtool wrapper scripts and
10520 # restored at relink time.
10521 variables_saved_for_relink="$variables_saved_for_relink"
10523 # Whether libtool must link a program against all its dependency libraries.
10524 link_all_deplibs=$link_all_deplibs
10526 # Compile-time system search path for libraries
10527 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10529 # Run-time system search path for libraries
10530 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10532 # Fix the shell variable \$srcfile for the compiler.
10533 fix_srcfile_path="$fix_srcfile_path"
10535 # Set to yes if exported symbols are required.
10536 always_export_symbols=$always_export_symbols
10538 # The commands to list exported symbols.
10539 export_symbols_cmds=$lt_export_symbols_cmds
10541 # The commands to extract the exported symbol list from a shared archive.
10542 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10544 # Symbols that should not be listed in the preloaded symbols.
10545 exclude_expsyms=$lt_exclude_expsyms
10547 # Symbols that must always be exported.
10548 include_expsyms=$lt_include_expsyms
10550 # ### END LIBTOOL CONFIG
10557 cat <<\EOF >> "$cfgfile"
10559 # AIX sometimes has problems with the GCC collect2 program. For some
10560 # reason, if we set the COLLECT_NAMES environment variable, the problems
10561 # vanish in a puff of smoke.
10562 if test "X${COLLECT_NAMES+set}" != Xset; then
10564 export COLLECT_NAMES
10570 # We use sed instead of cat because bash on DJGPP gets confused if
10571 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10572 # text mode, it properly converts lines to CR/LF. This bash problem
10573 # is reportedly fixed, but why not run on old versions too?
10574 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10576 mv -f "$cfgfile" "$ofile" || \
10577 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10581 # If there is no Makefile yet, we rely on a make rule to execute
10582 # `config.status --recheck' to rerun these tests and create the
10583 # libtool script then.
10584 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10585 if test -f "$ltmain_in"; then
10586 test -f Makefile && make "$ltmain"
10592 ac_cpp='$CPP $CPPFLAGS'
10593 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10594 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10595 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10600 # Check whether --with-tags was given.
10601 if test "${with_tags+set}" = set; then
10602 withval=$with_tags; tagnames="$withval"
10606 if test -f "$ltmain" && test -n "$tagnames"; then
10607 if test ! -f "${ofile}"; then
10608 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10609 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10612 if test -z "$LTCC"; then
10613 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10614 if test -z "$LTCC"; then
10615 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10616 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10618 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10619 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10622 if test -z "$LTCFLAGS"; then
10623 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10626 # Extract list of available tagged configurations in $ofile.
10627 # Note that this assumes the entire list is on one line.
10628 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10631 for tagname in $tagnames; do
10633 # Check whether tagname contains only valid characters
10634 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10636 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10637 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10638 { (exit 1); exit 1; }; }
10642 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10644 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10645 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10646 { (exit 1); exit 1; }; }
10649 # Update the list of available tags.
10650 if test -n "$tagname"; then
10651 echo appending configuration tag \"$tagname\" to $ofile
10655 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10656 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10657 (test "X$CXX" != "Xg++"))) ; then
10659 ac_cpp='$CXXCPP $CPPFLAGS'
10660 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10661 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10662 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10667 archive_cmds_need_lc_CXX=no
10668 allow_undefined_flag_CXX=
10669 always_export_symbols_CXX=no
10670 archive_expsym_cmds_CXX=
10671 export_dynamic_flag_spec_CXX=
10672 hardcode_direct_CXX=no
10673 hardcode_libdir_flag_spec_CXX=
10674 hardcode_libdir_flag_spec_ld_CXX=
10675 hardcode_libdir_separator_CXX=
10676 hardcode_minus_L_CXX=no
10677 hardcode_shlibpath_var_CXX=unsupported
10678 hardcode_automatic_CXX=no
10680 module_expsym_cmds_CXX=
10681 link_all_deplibs_CXX=unknown
10682 old_archive_cmds_CXX=$old_archive_cmds
10683 no_undefined_flag_CXX=
10684 whole_archive_flag_spec_CXX=
10685 enable_shared_with_static_runtimes_CXX=no
10687 # Dependencies to place before and after the object being linked:
10688 predep_objects_CXX=
10689 postdep_objects_CXX=
10692 compiler_lib_search_path_CXX=
10694 # Source file extension for C++ test sources.
10697 # Object file extension for compiled C++ test sources.
10701 # Code to be used in simple compile tests
10702 lt_simple_compile_test_code="int some_variable = 0;\n"
10704 # Code to be used in simple link tests
10705 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10707 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10709 # If no C compiler was specified, use CC.
10712 # If no C compiler flags were specified, use CFLAGS.
10713 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10715 # Allow CC to be a program name with arguments.
10719 # save warnings/boilerplate of simple test code
10720 ac_outfile=conftest.$ac_objext
10721 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10722 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10723 _lt_compiler_boilerplate=`cat conftest.err`
10726 ac_outfile=conftest.$ac_objext
10727 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10728 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10729 _lt_linker_boilerplate=`cat conftest.err`
10733 # Allow CC to be a program name with arguments.
10738 lt_save_with_gnu_ld=$with_gnu_ld
10739 lt_save_path_LD=$lt_cv_path_LD
10740 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10741 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10743 $as_unset lt_cv_prog_gnu_ld
10745 if test -n "${lt_cv_path_LDCXX+set}"; then
10746 lt_cv_path_LD=$lt_cv_path_LDCXX
10748 $as_unset lt_cv_path_LD
10750 test -z "${LDCXX+set}" || LD=$LDCXX
10754 for cc_temp in $compiler""; do
10756 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10757 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10762 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10765 # We don't want -fno-exception wen compiling C++ code, so set the
10766 # no_builtin_flag separately
10767 if test "$GXX" = yes; then
10768 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10770 lt_prog_compiler_no_builtin_flag_CXX=
10773 if test "$GXX" = yes; then
10774 # Set up default GNU C++ configuration
10777 # Check whether --with-gnu-ld was given.
10778 if test "${with_gnu_ld+set}" = set; then
10779 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10785 if test "$GCC" = yes; then
10786 # Check if gcc -print-prog-name=ld gives a path.
10787 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10788 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10791 # gcc leaves a trailing carriage return which upsets mingw
10792 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10794 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10797 # Accept absolute paths.
10799 re_direlt='/[^/][^/]*/\.\./'
10800 # Canonicalize the pathname of ld
10801 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10802 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10803 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10805 test -z "$LD" && LD="$ac_prog"
10808 # If it fails, then pretend we aren't using GCC.
10812 # If it is relative, then search for the first ld in PATH.
10813 with_gnu_ld=unknown
10816 elif test "$with_gnu_ld" = yes; then
10817 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10818 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10820 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10821 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10823 if test "${lt_cv_path_LD+set}" = set; then
10824 echo $ECHO_N "(cached) $ECHO_C" >&6
10826 if test -z "$LD"; then
10827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10828 for ac_dir in $PATH; do
10830 test -z "$ac_dir" && ac_dir=.
10831 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10832 lt_cv_path_LD="$ac_dir/$ac_prog"
10833 # Check to see if the program is GNU ld. I'd rather use --version,
10834 # but apparently some variants of GNU ld only accept -v.
10835 # Break only if it was the GNU/non-GNU ld that we prefer.
10836 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10837 *GNU* | *'with BFD'*)
10838 test "$with_gnu_ld" != no && break
10841 test "$with_gnu_ld" != yes && break
10848 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10852 LD="$lt_cv_path_LD"
10853 if test -n "$LD"; then
10854 { echo "$as_me:$LINENO: result: $LD" >&5
10855 echo "${ECHO_T}$LD" >&6; }
10857 { echo "$as_me:$LINENO: result: no" >&5
10858 echo "${ECHO_T}no" >&6; }
10860 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10861 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10862 { (exit 1); exit 1; }; }
10863 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10864 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10865 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10868 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10869 case `$LD -v 2>&1 </dev/null` in
10870 *GNU* | *'with BFD'*)
10871 lt_cv_prog_gnu_ld=yes
10874 lt_cv_prog_gnu_ld=no
10878 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10879 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10880 with_gnu_ld=$lt_cv_prog_gnu_ld
10884 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10885 # archiving commands below assume that GNU ld is being used.
10886 if test "$with_gnu_ld" = yes; then
10887 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10888 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'
10890 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10891 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10893 # If archive_cmds runs LD, not CC, wlarc should be empty
10894 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10895 # investigate it a little bit more. (MM)
10898 # ancient GNU ld didn't support --whole-archive et. al.
10899 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10900 grep 'no-whole-archive' > /dev/null; then
10901 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10903 whole_archive_flag_spec_CXX=
10909 # A generic and very simple default shared library creation
10910 # command for GNU C++ for the case where it uses the native
10911 # linker, instead of GNU ld. If possible, this setting should
10912 # overridden to take advantage of the native linker features on
10913 # the platform it is being used on.
10914 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10917 # Commands to make compiler produce verbose output that lists
10918 # what "hidden" libraries, object files and flags are used when
10919 # linking a shared library.
10920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10928 # PORTME: fill in a description of your system's C++ link characteristics
10929 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10930 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10934 # FIXME: insert proper C++ library support
10938 if test "$host_cpu" = ia64; then
10939 # On IA64, the linker does run time linking by default, so we don't
10940 # have to do anything special.
10941 aix_use_runtimelinking=no
10942 exp_sym_flag='-Bexport'
10945 aix_use_runtimelinking=no
10947 # Test if we are trying to use run time linking or normal
10948 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10949 # need to do runtime linking.
10950 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10951 for ld_flag in $LDFLAGS; do
10954 aix_use_runtimelinking=yes
10962 exp_sym_flag='-bexport'
10963 no_entry_flag='-bnoentry'
10966 # When large executables or shared objects are built, AIX ld can
10967 # have problems creating the table of contents. If linking a library
10968 # or program results in "error TOC overflow" add -mminimal-toc to
10969 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10970 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10972 archive_cmds_CXX=''
10973 hardcode_direct_CXX=yes
10974 hardcode_libdir_separator_CXX=':'
10975 link_all_deplibs_CXX=yes
10977 if test "$GXX" = yes; then
10978 case $host_os in aix4.[012]|aix4.[012].*)
10979 # We only want to do this on AIX 4.2 and lower, the check
10980 # below for broken collect2 doesn't work under 4.3+
10981 collect2name=`${CC} -print-prog-name=collect2`
10982 if test -f "$collect2name" && \
10983 strings "$collect2name" | grep resolve_lib_name >/dev/null
10985 # We have reworked collect2
10986 hardcode_direct_CXX=yes
10988 # We have old collect2
10989 hardcode_direct_CXX=unsupported
10990 # It fails to find uninstalled libraries when the uninstalled
10991 # path is not listed in the libpath. Setting hardcode_minus_L
10992 # to unsupported forces relinking
10993 hardcode_minus_L_CXX=yes
10994 hardcode_libdir_flag_spec_CXX='-L$libdir'
10995 hardcode_libdir_separator_CXX=
10999 shared_flag='-shared'
11000 if test "$aix_use_runtimelinking" = yes; then
11001 shared_flag="$shared_flag "'${wl}-G'
11005 if test "$host_cpu" = ia64; then
11006 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11007 # chokes on -Wl,-G. The following line is correct:
11010 if test "$aix_use_runtimelinking" = yes; then
11011 shared_flag='${wl}-G'
11013 shared_flag='${wl}-bM:SRE'
11018 # It seems that -bexpall does not export symbols beginning with
11019 # underscore (_), so it is better to generate a list of symbols to export.
11020 always_export_symbols_CXX=yes
11021 if test "$aix_use_runtimelinking" = yes; then
11022 # Warning - without using the other runtime loading flags (-brtl),
11023 # -berok will link without error, but may produce a broken library.
11024 allow_undefined_flag_CXX='-berok'
11025 # Determine the default libpath from the value encoded in an empty executable.
11026 cat >conftest.$ac_ext <<_ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11041 rm -f conftest.$ac_objext conftest$ac_exeext
11042 if { (ac_try="$ac_link"
11043 case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11048 (eval "$ac_link") 2>conftest.er1
11050 grep -v '^ *+' conftest.er1 >conftest.err
11052 cat conftest.err >&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); } && {
11055 test -z "$ac_cxx_werror_flag" ||
11056 test ! -s conftest.err
11057 } && test -s conftest$ac_exeext &&
11058 $as_test_x conftest$ac_exeext; then
11060 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11062 # Check for a 64-bit object if we didn't find anything.
11063 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; }
11066 echo "$as_me: failed program was:" >&5
11067 sed 's/^/| /' conftest.$ac_ext >&5
11072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11073 conftest$ac_exeext conftest.$ac_ext
11074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11076 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11078 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"
11080 if test "$host_cpu" = ia64; then
11081 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11082 allow_undefined_flag_CXX="-z nodefs"
11083 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"
11085 # Determine the default libpath from the value encoded in an empty executable.
11086 cat >conftest.$ac_ext <<_ACEOF
11089 cat confdefs.h >>conftest.$ac_ext
11090 cat >>conftest.$ac_ext <<_ACEOF
11091 /* end confdefs.h. */
11101 rm -f conftest.$ac_objext conftest$ac_exeext
11102 if { (ac_try="$ac_link"
11103 case "(($ac_try" in
11104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105 *) ac_try_echo=$ac_try;;
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_link") 2>conftest.er1
11110 grep -v '^ *+' conftest.er1 >conftest.err
11112 cat conftest.err >&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } && {
11115 test -z "$ac_cxx_werror_flag" ||
11116 test ! -s conftest.err
11117 } && test -s conftest$ac_exeext &&
11118 $as_test_x conftest$ac_exeext; then
11120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11122 # Check for a 64-bit object if we didn't find anything.
11123 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; }
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.$ac_ext >&5
11132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11133 conftest$ac_exeext conftest.$ac_ext
11134 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11136 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11137 # Warning - without using the other run time loading flags,
11138 # -berok will link without error, but may produce a broken library.
11139 no_undefined_flag_CXX=' ${wl}-bernotok'
11140 allow_undefined_flag_CXX=' ${wl}-berok'
11141 # Exported symbols can be pulled into shared objects from archives
11142 whole_archive_flag_spec_CXX='$convenience'
11143 archive_cmds_need_lc_CXX=yes
11144 # This is similar to how AIX traditionally builds its shared libraries.
11145 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'
11151 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11152 allow_undefined_flag_CXX=unsupported
11153 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11154 # support --undefined. This deserves some investigation. FIXME
11155 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11162 case $cc_basename in
11164 # FIXME: insert proper C++ library support
11170 cygwin* | mingw* | pw32*)
11171 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11172 # as there is no search path for DLLs.
11173 hardcode_libdir_flag_spec_CXX='-L$libdir'
11174 allow_undefined_flag_CXX=unsupported
11175 always_export_symbols_CXX=no
11176 enable_shared_with_static_runtimes_CXX=yes
11178 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11179 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'
11180 # If the export-symbols file already is a .def file (1st line
11181 # is EXPORTS), use it as is; otherwise, prepend...
11182 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11183 cp $export_symbols $output_objdir/$soname.def;
11185 echo EXPORTS > $output_objdir/$soname.def;
11186 cat $export_symbols >> $output_objdir/$soname.def;
11188 $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'
11193 darwin* | rhapsody*)
11195 rhapsody* | darwin1.[012])
11196 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11199 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11200 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11202 case ${MACOSX_DEPLOYMENT_TARGET} in
11204 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11207 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11213 archive_cmds_need_lc_CXX=no
11214 hardcode_direct_CXX=no
11215 hardcode_automatic_CXX=yes
11216 hardcode_shlibpath_var_CXX=unsupported
11217 whole_archive_flag_spec_CXX=''
11218 link_all_deplibs_CXX=yes
11220 if test "$GXX" = yes ; then
11221 lt_int_apple_cc_single_mod=no
11222 output_verbose_link_cmd='echo'
11223 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11224 lt_int_apple_cc_single_mod=yes
11226 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11227 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11229 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'
11231 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11232 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11233 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11234 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}'
11236 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}'
11238 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}'
11240 case $cc_basename in
11242 output_verbose_link_cmd='echo'
11243 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'
11244 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11245 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11246 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}'
11247 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}'
11257 case $cc_basename in
11259 # FIXME: insert proper C++ library support
11263 # Green Hills C++ Compiler
11264 # FIXME: insert proper C++ library support
11268 # FIXME: insert proper C++ library support
11274 # C++ shared libraries reported to be fairly broken before switch to ELF
11278 archive_cmds_need_lc_CXX=no
11280 freebsd* | dragonfly*)
11281 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11288 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11289 hardcode_libdir_separator_CXX=:
11290 export_dynamic_flag_spec_CXX='${wl}-E'
11291 hardcode_direct_CXX=yes
11292 hardcode_minus_L_CXX=yes # Not in the search PATH,
11293 # but as the default
11294 # location of the library.
11296 case $cc_basename in
11298 # FIXME: insert proper C++ library support
11302 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'
11303 # Commands to make compiler produce verbose output that lists
11304 # what "hidden" libraries, object files and flags are used when
11305 # linking a shared library.
11307 # There doesn't appear to be a way to prevent this compiler from
11308 # explicitly linking system object files so we need to strip them
11309 # from the output so that they don't get included in the library
11311 output_verbose_link_cmd='templist=`($CC -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'
11314 if test "$GXX" = yes; then
11315 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'
11317 # FIXME: insert proper C++ library support
11324 if test $with_gnu_ld = no; then
11325 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11326 hardcode_libdir_separator_CXX=:
11330 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11333 export_dynamic_flag_spec_CXX='${wl}-E'
11339 hardcode_direct_CXX=no
11340 hardcode_shlibpath_var_CXX=no
11343 hardcode_direct_CXX=yes
11344 hardcode_minus_L_CXX=yes # Not in the search PATH,
11345 # but as the default
11346 # location of the library.
11350 case $cc_basename in
11352 # FIXME: insert proper C++ library support
11358 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11361 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11364 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11367 # Commands to make compiler produce verbose output that lists
11368 # what "hidden" libraries, object files and flags are used when
11369 # linking a shared library.
11371 # There doesn't appear to be a way to prevent this compiler from
11372 # explicitly linking system object files so we need to strip them
11373 # from the output so that they don't get included in the library
11375 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'
11378 if test "$GXX" = yes; then
11379 if test $with_gnu_ld = no; then
11382 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11385 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11388 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'
11393 # FIXME: insert proper C++ library support
11400 hardcode_direct_CXX=no
11401 hardcode_shlibpath_var_CXX=no
11402 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11403 export_dynamic_flag_spec_CXX='${wl}-E'
11404 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11405 # Instead, shared libraries are loaded at an image base (0x10000000 by
11406 # default) and relocated if they conflict, which is a slow very memory
11407 # consuming and fragmenting process. To avoid this, we pick a random,
11408 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11409 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11410 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'
11411 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'
11414 case $cc_basename in
11417 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'
11419 # Archives containing C++ object files must be created using
11420 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11421 # necessary to make sure instantiated templates are included
11423 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11426 if test "$GXX" = yes; then
11427 if test "$with_gnu_ld" = no; then
11428 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'
11430 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'
11433 link_all_deplibs_CXX=yes
11436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11437 hardcode_libdir_separator_CXX=:
11439 linux* | k*bsd*-gnu)
11440 case $cc_basename in
11442 # Kuck and Associates, Inc. (KAI) C++ Compiler
11444 # KCC will only create a shared library if the output file
11445 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11446 # to its proper name (with version) after linking.
11447 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'
11448 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'
11449 # Commands to make compiler produce verbose output that lists
11450 # what "hidden" libraries, object files and flags are used when
11451 # linking a shared library.
11453 # There doesn't appear to be a way to prevent this compiler from
11454 # explicitly linking system object files so we need to strip them
11455 # from the output so that they don't get included in the library
11457 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'
11459 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11460 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11462 # Archives containing C++ object files must be created using
11463 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11464 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11469 # version 8.0 and above of icpc choke on multiply defined symbols
11470 # if we add $predep_objects and $postdep_objects, however 7.1 and
11471 # earlier do not add the objects themselves.
11472 case `$CC -V 2>&1` in
11474 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11475 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'
11477 *) # Version 8.0 or newer
11480 ia64*) tmp_idyn=' -i_dynamic';;
11482 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11483 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'
11486 archive_cmds_need_lc_CXX=no
11487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11488 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11489 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11492 # Portland Group C++ compiler
11493 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11494 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'
11496 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11497 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11498 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'
11502 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11503 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'
11505 runpath_var=LD_RUN_PATH
11506 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11507 hardcode_libdir_separator_CXX=:
11509 # Commands to make compiler produce verbose output that lists
11510 # what "hidden" libraries, object files and flags are used when
11511 # linking a shared library.
11513 # There doesn't appear to be a way to prevent this compiler from
11514 # explicitly linking system object files so we need to strip them
11515 # from the output so that they don't get included in the library
11517 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'
11522 # FIXME: insert proper C++ library support
11526 # FIXME: insert proper C++ library support
11530 case $cc_basename in
11532 # FIXME: insert proper C++ library support
11536 # FIXME: insert proper C++ library support
11541 netbsd* | netbsdelf*-gnu)
11542 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11543 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11545 hardcode_libdir_flag_spec_CXX='-R$libdir'
11546 hardcode_direct_CXX=yes
11547 hardcode_shlibpath_var_CXX=no
11549 # Workaround some broken pre-1.5 toolchains
11550 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11553 # C++ shared libraries are fairly broken
11557 hardcode_direct_CXX=yes
11558 hardcode_shlibpath_var_CXX=no
11559 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11560 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11561 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11562 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11563 export_dynamic_flag_spec_CXX='${wl}-E'
11564 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11566 output_verbose_link_cmd='echo'
11569 case $cc_basename in
11571 # Kuck and Associates, Inc. (KAI) C++ Compiler
11573 # KCC will only create a shared library if the output file
11574 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11575 # to its proper name (with version) after linking.
11576 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'
11578 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11579 hardcode_libdir_separator_CXX=:
11581 # Archives containing C++ object files must be created using
11582 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11583 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11587 # Rational C++ 2.4.1
11588 # FIXME: insert proper C++ library support
11592 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11593 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'
11595 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11596 hardcode_libdir_separator_CXX=:
11598 # Commands to make compiler produce verbose output that lists
11599 # what "hidden" libraries, object files and flags are used when
11600 # linking a shared library.
11602 # There doesn't appear to be a way to prevent this compiler from
11603 # explicitly linking system object files so we need to strip them
11604 # from the output so that they don't get included in the library
11606 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'
11609 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11610 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11611 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'
11613 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11614 hardcode_libdir_separator_CXX=:
11616 # Commands to make compiler produce verbose output that lists
11617 # what "hidden" libraries, object files and flags are used when
11618 # linking a shared library.
11619 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11622 # FIXME: insert proper C++ library support
11629 case $cc_basename in
11631 # Kuck and Associates, Inc. (KAI) C++ Compiler
11633 # KCC will only create a shared library if the output file
11634 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11635 # to its proper name (with version) after linking.
11636 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'
11638 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11639 hardcode_libdir_separator_CXX=:
11641 # Archives containing C++ object files must be created using
11642 # the KAI C++ compiler.
11643 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11646 # Rational C++ 2.4.1
11647 # FIXME: insert proper C++ library support
11651 allow_undefined_flag_CXX=' -expect_unresolved \*'
11652 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'
11653 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11654 echo "-hidden">> $lib.exp~
11655 $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~
11658 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11659 hardcode_libdir_separator_CXX=:
11661 # Commands to make compiler produce verbose output that lists
11662 # what "hidden" libraries, object files and flags are used when
11663 # linking a shared library.
11665 # There doesn't appear to be a way to prevent this compiler from
11666 # explicitly linking system object files so we need to strip them
11667 # from the output so that they don't get included in the library
11669 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'
11672 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11673 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11674 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'
11676 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11677 hardcode_libdir_separator_CXX=:
11679 # Commands to make compiler produce verbose output that lists
11680 # what "hidden" libraries, object files and flags are used when
11681 # linking a shared library.
11682 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11685 # FIXME: insert proper C++ library support
11692 # FIXME: insert proper C++ library support
11696 case $cc_basename in
11699 # FIXME: insert proper C++ library support
11704 # FIXME: insert proper C++ library support
11708 # FIXME: insert proper C++ library support
11714 case $cc_basename in
11716 # Sun C++ 4.2, 5.x and Centerline C++
11717 archive_cmds_need_lc_CXX=yes
11718 no_undefined_flag_CXX=' -zdefs'
11719 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11720 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11721 $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'
11723 hardcode_libdir_flag_spec_CXX='-R$libdir'
11724 hardcode_shlibpath_var_CXX=no
11726 solaris2.[0-5] | solaris2.[0-5].*) ;;
11728 # The C++ compiler is used as linker so we must use $wl
11729 # flag to pass the commands to the underlying system
11730 # linker. We must also pass each convience library through
11731 # to the system linker between allextract/defaultextract.
11732 # The C++ compiler will combine linker options so we
11733 # cannot just pass the convience library names through
11735 # Supported since Solaris 2.6 (maybe 2.5.1?)
11736 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'
11739 link_all_deplibs_CXX=yes
11741 output_verbose_link_cmd='echo'
11743 # Archives containing C++ object files must be created using
11744 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11745 # necessary to make sure instantiated templates are included
11747 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11750 # Green Hills C++ Compiler
11751 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11753 # The C++ compiler must be used to create the archive.
11754 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11757 # GNU C++ compiler with Solaris linker
11758 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11759 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11760 if $CC --version | grep -v '^2\.7' > /dev/null; then
11761 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11762 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11763 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11765 # Commands to make compiler produce verbose output that lists
11766 # what "hidden" libraries, object files and flags are used when
11767 # linking a shared library.
11768 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11770 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11772 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11773 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11774 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11776 # Commands to make compiler produce verbose output that lists
11777 # what "hidden" libraries, object files and flags are used when
11778 # linking a shared library.
11779 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11782 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11787 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11788 no_undefined_flag_CXX='${wl}-z,text'
11789 archive_cmds_need_lc_CXX=no
11790 hardcode_shlibpath_var_CXX=no
11791 runpath_var='LD_RUN_PATH'
11793 case $cc_basename in
11795 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11796 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11799 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11800 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11804 sysv5* | sco3.2v5* | sco5v6*)
11805 # Note: We can NOT use -z defs as we might desire, because we do not
11806 # link with -lc, and that would cause any symbols used from libc to
11807 # always be unresolved, which means just about no library would
11808 # ever link correctly. If we're not using GNU ld we use -z text
11809 # though, which does catch some bad symbols but isn't as heavy-handed
11811 # For security reasons, it is highly recommended that you always
11812 # use absolute paths for naming shared libraries, and exclude the
11813 # DT_RUNPATH tag from executables and libraries. But doing so
11814 # requires that you compile everything twice, which is a pain.
11815 # So that behaviour is only enabled if SCOABSPATH is set to a
11816 # non-empty value in the environment. Most likely only useful for
11817 # creating official distributions of packages.
11818 # This is a hack until libtool officially supports absolute path
11819 # names for shared libraries.
11820 no_undefined_flag_CXX='${wl}-z,text'
11821 allow_undefined_flag_CXX='${wl}-z,nodefs'
11822 archive_cmds_need_lc_CXX=no
11823 hardcode_shlibpath_var_CXX=no
11824 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11825 hardcode_libdir_separator_CXX=':'
11826 link_all_deplibs_CXX=yes
11827 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11828 runpath_var='LD_RUN_PATH'
11830 case $cc_basename in
11832 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11833 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11836 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11837 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11842 case $cc_basename in
11844 # NonStop-UX NCC 3.20
11845 # FIXME: insert proper C++ library support
11849 # FIXME: insert proper C++ library support
11855 # FIXME: insert proper C++ library support
11859 # FIXME: insert proper C++ library support
11863 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11864 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11865 test "$ld_shlibs_CXX" = no && can_build_shared=no
11871 cat > conftest.$ac_ext <<EOF
11875 Foo (void) { a = 0; }
11881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11882 (eval $ac_compile) 2>&5
11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); }; then
11886 # Parse the compiler output and extract the necessary
11887 # objects, libraries and library flags.
11889 # Sentinel used to keep track of whether or not we are before
11890 # the conftest object file.
11891 pre_test_object_deps_done=no
11893 # The `*' in the case matches for architectures that use `case' in
11894 # $output_verbose_cmd can trigger glob expansion during the loop
11895 # eval without this substitution.
11896 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11898 for p in `eval $output_verbose_link_cmd`; do
11902 # Some compilers place space between "-{L,R}" and the path.
11903 # Remove the space.
11904 if test $p = "-L" \
11905 || test $p = "-R"; then
11912 if test "$pre_test_object_deps_done" = no; then
11915 # Internal compiler library paths should come after those
11916 # provided the user. The postdeps already come after the
11917 # user supplied libs so there is no need to process them.
11918 if test -z "$compiler_lib_search_path_CXX"; then
11919 compiler_lib_search_path_CXX="${prev}${p}"
11921 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11924 # The "-l" case would never come before the object being
11925 # linked, so don't bother handling this case.
11928 if test -z "$postdeps_CXX"; then
11929 postdeps_CXX="${prev}${p}"
11931 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11937 # This assumes that the test object file only shows up
11938 # once in the compiler output.
11939 if test "$p" = "conftest.$objext"; then
11940 pre_test_object_deps_done=yes
11944 if test "$pre_test_object_deps_done" = no; then
11945 if test -z "$predep_objects_CXX"; then
11946 predep_objects_CXX="$p"
11948 predep_objects_CXX="$predep_objects_CXX $p"
11951 if test -z "$postdep_objects_CXX"; then
11952 postdep_objects_CXX="$p"
11954 postdep_objects_CXX="$postdep_objects_CXX $p"
11959 *) ;; # Ignore the rest.
11967 echo "libtool.m4: error: problem compiling CXX test program"
11970 $rm -f confest.$objext
11972 # PORTME: override above test on systems where it is broken
11975 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11976 # hack all around it, let's just trust "g++" to DTRT.
11977 predep_objects_CXX=
11978 postdep_objects_CXX=
11983 case $cc_basename in
11985 # Adding this requires a known-good setup of shared libraries for
11986 # Sun compiler versions before 5.6, else PIC objects from an old
11987 # archive will be linked into the output, leading to subtle bugs.
11988 postdeps_CXX='-lCstd -lCrun'
11995 case " $postdeps_CXX " in
11996 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11999 lt_prog_compiler_wl_CXX=
12000 lt_prog_compiler_pic_CXX=
12001 lt_prog_compiler_static_CXX=
12003 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12004 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12006 # C++ specific cases for pic, static, wl, etc.
12007 if test "$GXX" = yes; then
12008 lt_prog_compiler_wl_CXX='-Wl,'
12009 lt_prog_compiler_static_CXX='-static'
12013 # All AIX code is PIC.
12014 if test "$host_cpu" = ia64; then
12015 # AIX 5 now supports IA64 processor
12016 lt_prog_compiler_static_CXX='-Bstatic'
12020 # FIXME: we need at least 68020 code to build shared libraries, but
12021 # adding the `-m68020' flag to GCC prevents building anything better,
12023 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12025 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12026 # PIC is the default for these OSes.
12028 mingw* | os2* | pw32*)
12029 # This hack is so that the source file can tell whether it is being
12030 # built for inclusion in a dll (and should export symbols for example).
12031 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12033 darwin* | rhapsody*)
12034 # PIC is the default on this platform
12035 # Common symbols not allowed in MH_DYLIB files
12036 lt_prog_compiler_pic_CXX='-fno-common'
12039 # DJGPP does not support shared libraries at all
12040 lt_prog_compiler_pic_CXX=
12043 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12044 # Instead, we relocate shared libraries at runtime.
12047 if test -d /usr/nec; then
12048 lt_prog_compiler_pic_CXX=-Kconform_pic
12052 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12053 # not for PA HP-UX.
12058 lt_prog_compiler_pic_CXX='-fPIC'
12063 lt_prog_compiler_pic_CXX='-fPIC'
12069 # All AIX code is PIC.
12070 if test "$host_cpu" = ia64; then
12071 # AIX 5 now supports IA64 processor
12072 lt_prog_compiler_static_CXX='-Bstatic'
12074 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12078 case $cc_basename in
12080 # Green Hills C++ Compiler
12081 # _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"
12086 # PIC is the default on this platform
12087 # Common symbols not allowed in MH_DYLIB files
12088 case $cc_basename in
12090 lt_prog_compiler_pic_CXX='-qnocommon'
12091 lt_prog_compiler_wl_CXX='-Wl,'
12096 case $cc_basename in
12098 lt_prog_compiler_pic_CXX='-KPIC'
12101 # Green Hills C++ Compiler
12102 lt_prog_compiler_pic_CXX='-pic'
12108 freebsd* | dragonfly*)
12109 # FreeBSD uses GNU C++
12111 hpux9* | hpux10* | hpux11*)
12112 case $cc_basename in
12114 lt_prog_compiler_wl_CXX='-Wl,'
12115 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12116 if test "$host_cpu" != ia64; then
12117 lt_prog_compiler_pic_CXX='+Z'
12121 lt_prog_compiler_wl_CXX='-Wl,'
12122 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12128 lt_prog_compiler_pic_CXX='+Z'
12137 # This is c89, which is MS Visual C++ (no shared libs)
12138 # Anyone wants to do a port?
12140 irix5* | irix6* | nonstopux*)
12141 case $cc_basename in
12143 lt_prog_compiler_wl_CXX='-Wl,'
12144 lt_prog_compiler_static_CXX='-non_shared'
12145 # CC pic flag -KPIC is the default.
12151 linux* | k*bsd*-gnu)
12152 case $cc_basename in
12155 lt_prog_compiler_wl_CXX='--backend -Wl,'
12156 lt_prog_compiler_pic_CXX='-fPIC'
12160 lt_prog_compiler_wl_CXX='-Wl,'
12161 lt_prog_compiler_pic_CXX='-KPIC'
12162 lt_prog_compiler_static_CXX='-static'
12165 # Portland Group C++ compiler.
12166 lt_prog_compiler_wl_CXX='-Wl,'
12167 lt_prog_compiler_pic_CXX='-fpic'
12168 lt_prog_compiler_static_CXX='-Bstatic'
12172 # Make sure the PIC flag is empty. It appears that all Alpha
12173 # Linux and Compaq Tru64 Unix objects are PIC.
12174 lt_prog_compiler_pic_CXX=
12175 lt_prog_compiler_static_CXX='-non_shared'
12186 case $cc_basename in
12188 lt_prog_compiler_pic_CXX='-W c,exportall'
12194 netbsd* | netbsdelf*-gnu)
12196 osf3* | osf4* | osf5*)
12197 case $cc_basename in
12199 lt_prog_compiler_wl_CXX='--backend -Wl,'
12202 # Rational C++ 2.4.1
12203 lt_prog_compiler_pic_CXX='-pic'
12206 # Digital/Compaq C++
12207 lt_prog_compiler_wl_CXX='-Wl,'
12208 # Make sure the PIC flag is empty. It appears that all Alpha
12209 # Linux and Compaq Tru64 Unix objects are PIC.
12210 lt_prog_compiler_pic_CXX=
12211 lt_prog_compiler_static_CXX='-non_shared'
12220 case $cc_basename in
12222 # Sun C++ 4.2, 5.x and Centerline C++
12223 lt_prog_compiler_pic_CXX='-KPIC'
12224 lt_prog_compiler_static_CXX='-Bstatic'
12225 lt_prog_compiler_wl_CXX='-Qoption ld '
12228 # Green Hills C++ Compiler
12229 lt_prog_compiler_pic_CXX='-PIC'
12236 case $cc_basename in
12239 lt_prog_compiler_pic_CXX='-pic'
12240 lt_prog_compiler_static_CXX='-Bstatic'
12244 lt_prog_compiler_pic_CXX='-pic'
12251 case $cc_basename in
12253 # NonStop-UX NCC 3.20
12254 lt_prog_compiler_pic_CXX='-KPIC'
12260 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12261 case $cc_basename in
12263 lt_prog_compiler_wl_CXX='-Wl,'
12264 lt_prog_compiler_pic_CXX='-KPIC'
12265 lt_prog_compiler_static_CXX='-Bstatic'
12272 lt_prog_compiler_can_build_shared_CXX=no
12277 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12278 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12281 # Check to make sure the PIC flag actually works.
12283 if test -n "$lt_prog_compiler_pic_CXX"; then
12285 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12286 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12287 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 lt_prog_compiler_pic_works_CXX=no
12291 ac_outfile=conftest.$ac_objext
12292 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12293 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12294 # Insert the option either (1) after the last *FLAGS variable, or
12295 # (2) before a word containing "conftest.", or (3) at the end.
12296 # Note that $ac_compile itself does not contain backslashes and begins
12297 # with a dollar sign (not a hyphen), so the echo should work correctly.
12298 # The option is referenced via a variable to avoid confusing sed.
12299 lt_compile=`echo "$ac_compile" | $SED \
12300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12302 -e 's:$: $lt_compiler_flag:'`
12303 (eval echo "\"\$as_me:12303: $lt_compile\"" >&5)
12304 (eval "$lt_compile" 2>conftest.err)
12306 cat conftest.err >&5
12307 echo "$as_me:12307: \$? = $ac_status" >&5
12308 if (exit $ac_status) && test -s "$ac_outfile"; then
12309 # The compiler can only warn and ignore the option if not recognized
12310 # So say no if there are warnings other than the usual output.
12311 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12312 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12313 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12314 lt_prog_compiler_pic_works_CXX=yes
12320 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12321 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12323 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12324 case $lt_prog_compiler_pic_CXX in
12326 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12329 lt_prog_compiler_pic_CXX=
12330 lt_prog_compiler_can_build_shared_CXX=no
12335 # For platforms which do not support PIC, -DPIC is meaningless:
12337 lt_prog_compiler_pic_CXX=
12340 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12345 # Check to make sure the static flag actually works.
12347 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12348 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12349 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12350 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12353 lt_prog_compiler_static_works_CXX=no
12354 save_LDFLAGS="$LDFLAGS"
12355 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12356 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12357 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12358 # The linker can only warn and ignore the option if not recognized
12359 # So say no if there are warnings
12360 if test -s conftest.err; then
12361 # Append any errors to the config.log.
12362 cat conftest.err 1>&5
12363 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12364 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12365 if diff conftest.exp conftest.er2 >/dev/null; then
12366 lt_prog_compiler_static_works_CXX=yes
12369 lt_prog_compiler_static_works_CXX=yes
12373 LDFLAGS="$save_LDFLAGS"
12376 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12377 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12379 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12382 lt_prog_compiler_static_CXX=
12386 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12387 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12388 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12389 echo $ECHO_N "(cached) $ECHO_C" >&6
12391 lt_cv_prog_compiler_c_o_CXX=no
12392 $rm -r conftest 2>/dev/null
12396 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12398 lt_compiler_flag="-o out/conftest2.$ac_objext"
12399 # Insert the option either (1) after the last *FLAGS variable, or
12400 # (2) before a word containing "conftest.", or (3) at the end.
12401 # Note that $ac_compile itself does not contain backslashes and begins
12402 # with a dollar sign (not a hyphen), so the echo should work correctly.
12403 lt_compile=`echo "$ac_compile" | $SED \
12404 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12405 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12406 -e 's:$: $lt_compiler_flag:'`
12407 (eval echo "\"\$as_me:12407: $lt_compile\"" >&5)
12408 (eval "$lt_compile" 2>out/conftest.err)
12410 cat out/conftest.err >&5
12411 echo "$as_me:12411: \$? = $ac_status" >&5
12412 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12414 # The compiler can only warn and ignore the option if not recognized
12415 # So say no if there are warnings
12416 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12417 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12418 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12419 lt_cv_prog_compiler_c_o_CXX=yes
12424 # SGI C++ compiler will create directory out/ii_files/ for
12425 # template instantiation
12426 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12427 $rm out/* && rmdir out
12433 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12434 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12437 hard_links="nottested"
12438 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12439 # do not overwrite the value of need_locks provided by the user
12440 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12441 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12444 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12446 ln conftest.a conftest.b 2>&5 || hard_links=no
12447 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12448 { echo "$as_me:$LINENO: result: $hard_links" >&5
12449 echo "${ECHO_T}$hard_links" >&6; }
12450 if test "$hard_links" = no; then
12451 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12452 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12459 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12460 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12462 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12465 # If we're using GNU nm, then we don't want the "-C" option.
12466 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12467 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12468 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'
12470 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'
12474 export_symbols_cmds_CXX="$ltdll_cmds"
12477 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'
12479 linux* | k*bsd*-gnu)
12480 link_all_deplibs_CXX=no
12483 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12487 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12488 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12489 test "$ld_shlibs_CXX" = no && can_build_shared=no
12492 # Do we need to explicitly link libc?
12494 case "x$archive_cmds_need_lc_CXX" in
12496 # Assume -lc should be added
12497 archive_cmds_need_lc_CXX=yes
12499 if test "$enable_shared" = yes && test "$GCC" = yes; then
12500 case $archive_cmds_CXX in
12502 # FIXME: we may have to deal with multi-command sequences.
12505 # Test whether the compiler implicitly links with -lc since on some
12506 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12507 # to ld, don't add -lc before -lgcc.
12508 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12509 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12511 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12514 (eval $ac_compile) 2>&5
12516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12517 (exit $ac_status); } 2>conftest.err; then
12520 libobjs=conftest.$ac_objext
12522 wl=$lt_prog_compiler_wl_CXX
12523 pic_flag=$lt_prog_compiler_pic_CXX
12529 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12530 allow_undefined_flag_CXX=
12531 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12532 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); }
12537 archive_cmds_need_lc_CXX=no
12539 archive_cmds_need_lc_CXX=yes
12541 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12543 cat conftest.err 1>&5
12546 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12547 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12554 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12555 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12556 library_names_spec=
12557 libname_spec='lib$name'
12561 postuninstall_cmds=
12565 shlibpath_overrides_runpath=unknown
12567 dynamic_linker="$host_os ld.so"
12568 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12569 if test "$GCC" = yes; then
12570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12571 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12572 # if the path contains ";" then we assume it to be the separator
12573 # otherwise default to the standard path separator (i.e. ":") - it is
12574 # assumed that no part of a normal pathname contains ";" but that should
12575 # okay in the real world where ";" in dirpaths is itself problematic.
12576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12581 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12583 need_lib_prefix=unknown
12584 hardcode_into_libs=no
12586 # when you set need_version to no, make sure it does not cause -set_version
12587 # flags to be left without arguments
12588 need_version=unknown
12593 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12594 shlibpath_var=LIBPATH
12596 # AIX 3 has no versioning support, so we append a major version to the name.
12597 soname_spec='${libname}${release}${shared_ext}$major'
12604 hardcode_into_libs=yes
12605 if test "$host_cpu" = ia64; then
12606 # AIX 5 supports IA64
12607 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12608 shlibpath_var=LD_LIBRARY_PATH
12610 # With GCC up to 2.95.x, collect2 would create an import file
12611 # for dependence libraries. The import file would start with
12612 # the line `#! .'. This would cause the generated library to
12613 # depend on `.', always an invalid library. This was fixed in
12614 # development snapshots of GCC prior to 3.0.
12616 aix4 | aix4.[01] | aix4.[01].*)
12617 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12619 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12622 can_build_shared=no
12626 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12627 # soname into executable. Probably we can add versioning support to
12628 # collect2, so additional links can be useful in future.
12629 if test "$aix_use_runtimelinking" = yes; then
12630 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12631 # instead of lib<name>.a to let people know that these are not
12632 # typical AIX shared libraries.
12633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12635 # We preserve .a as extension for shared libraries through AIX4.2
12636 # and later when we are not doing run time linking.
12637 library_names_spec='${libname}${release}.a $libname.a'
12638 soname_spec='${libname}${release}${shared_ext}$major'
12640 shlibpath_var=LIBPATH
12645 library_names_spec='$libname.ixlibrary $libname.a'
12646 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12647 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'
12651 library_names_spec='${libname}${shared_ext}'
12652 dynamic_linker="$host_os ld.so"
12653 shlibpath_var=LIBRARY_PATH
12659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12660 soname_spec='${libname}${release}${shared_ext}$major'
12661 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12662 shlibpath_var=LD_LIBRARY_PATH
12663 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12664 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12665 # the default ld.so.conf also contains /usr/contrib/lib and
12666 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12667 # libtool to hard-code these into programs
12670 cygwin* | mingw* | pw32*)
12671 version_type=windows
12676 case $GCC,$host_os in
12677 yes,cygwin* | yes,mingw* | yes,pw32*)
12678 library_names_spec='$libname.dll.a'
12679 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12680 postinstall_cmds='base_file=`basename \${file}`~
12681 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12682 dldir=$destdir/`dirname \$dlpath`~
12683 test -d \$dldir || mkdir -p \$dldir~
12684 $install_prog $dir/$dlname \$dldir/$dlname~
12685 chmod a+x \$dldir/$dlname'
12686 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12687 dlpath=$dir/\$dldll~
12689 shlibpath_overrides_runpath=yes
12693 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12694 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12695 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12698 # MinGW DLLs use traditional 'lib' prefix
12699 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12700 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12701 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12702 # It is most probably a Windows format PATH printed by
12703 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12704 # path with ; separators, and with drive letters. We can handle the
12705 # drive letters (cygwin fileutils understands them), so leave them,
12706 # especially as we might pass files found there to a mingw objdump,
12707 # which wouldn't understand a cygwinified path. Ahh.
12708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12710 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12714 # pw32 DLLs use 'pw' prefix rather than 'lib'
12715 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12721 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12724 dynamic_linker='Win32 ld.exe'
12725 # FIXME: first we should search . and the directory the executable is in
12729 darwin* | rhapsody*)
12730 dynamic_linker="$host_os dyld"
12731 version_type=darwin
12734 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12735 soname_spec='${libname}${release}${major}$shared_ext'
12736 shlibpath_overrides_runpath=yes
12737 shlibpath_var=DYLD_LIBRARY_PATH
12738 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12739 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12740 if test "$GCC" = yes; then
12741 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"`
12743 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12745 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12753 soname_spec='${libname}${release}${shared_ext}$major'
12754 shlibpath_var=LD_LIBRARY_PATH
12761 freebsd* | dragonfly*)
12762 # DragonFly does not have aout. When/if they implement a new
12763 # versioning mechanism, adjust this.
12764 if test -x /usr/bin/objformat; then
12765 objformat=`/usr/bin/objformat`
12768 freebsd[123]*) objformat=aout ;;
12769 *) objformat=elf ;;
12772 version_type=freebsd-$objformat
12773 case $version_type in
12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12780 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12784 shlibpath_var=LD_LIBRARY_PATH
12787 shlibpath_overrides_runpath=yes
12789 freebsd3.[01]* | freebsdelf3.[01]*)
12790 shlibpath_overrides_runpath=yes
12791 hardcode_into_libs=yes
12793 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12794 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12795 shlibpath_overrides_runpath=no
12796 hardcode_into_libs=yes
12798 freebsd*) # from 4.6 on
12799 shlibpath_overrides_runpath=yes
12800 hardcode_into_libs=yes
12809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12810 soname_spec='${libname}${release}${shared_ext}$major'
12811 shlibpath_var=LD_LIBRARY_PATH
12812 hardcode_into_libs=yes
12815 hpux9* | hpux10* | hpux11*)
12816 # Give a soname corresponding to the major version so that dld.sl refuses to
12817 # link against other versions.
12824 hardcode_into_libs=yes
12825 dynamic_linker="$host_os dld.so"
12826 shlibpath_var=LD_LIBRARY_PATH
12827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12829 soname_spec='${libname}${release}${shared_ext}$major'
12830 if test "X$HPUX_IA64_MODE" = X32; then
12831 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12833 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12839 hardcode_into_libs=yes
12840 dynamic_linker="$host_os dld.sl"
12841 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12842 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844 soname_spec='${libname}${release}${shared_ext}$major'
12845 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12846 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12850 dynamic_linker="$host_os dld.sl"
12851 shlibpath_var=SHLIB_PATH
12852 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12854 soname_spec='${libname}${release}${shared_ext}$major'
12857 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12858 postinstall_cmds='chmod 555 $lib'
12865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12866 soname_spec='${libname}${release}${shared_ext}$major'
12867 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12868 shlibpath_var=LD_LIBRARY_PATH
12869 shlibpath_overrides_runpath=no
12870 hardcode_into_libs=yes
12873 irix5* | irix6* | nonstopux*)
12875 nonstopux*) version_type=nonstopux ;;
12877 if test "$lt_cv_prog_gnu_ld" = yes; then
12885 soname_spec='${libname}${release}${shared_ext}$major'
12886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12888 irix5* | nonstopux*)
12889 libsuff= shlibsuff=
12892 case $LD in # libtool.m4 will add one of these switches to LD
12893 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12894 libsuff= shlibsuff= libmagic=32-bit;;
12895 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12896 libsuff=32 shlibsuff=N32 libmagic=N32;;
12897 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12898 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12899 *) libsuff= shlibsuff= libmagic=never-match;;
12903 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12904 shlibpath_overrides_runpath=no
12905 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12906 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12907 hardcode_into_libs=yes
12910 # No shared lib support for Linux oldld, aout, or coff.
12911 linux*oldld* | linux*aout* | linux*coff*)
12915 # This must be Linux ELF.
12916 linux* | k*bsd*-gnu)
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12921 soname_spec='${libname}${release}${shared_ext}$major'
12922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12923 shlibpath_var=LD_LIBRARY_PATH
12924 shlibpath_overrides_runpath=no
12925 # This implies no fast_install, which is unacceptable.
12926 # Some rework will be needed to allow for fast_install
12927 # before this can be enabled.
12928 hardcode_into_libs=yes
12930 # Append ld.so.conf contents to the search path
12931 if test -f /etc/ld.so.conf; then
12932 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' ' '`
12933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12936 # We used to test for /lib/ld.so.1 and disable shared libraries on
12937 # powerpc, because MkLinux only supported shared libraries with the
12938 # GNU dynamic linker. Since this was broken with cross compilers,
12939 # most powerpc-linux boxes support dynamic linking these days and
12940 # people can always --disable-shared, the test was removed, and we
12941 # assume the GNU/Linux dynamic linker is in use.
12942 dynamic_linker='GNU/Linux ld.so'
12949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12950 soname_spec='${libname}${release}${shared_ext}$major'
12951 shlibpath_var=LD_LIBRARY_PATH
12952 shlibpath_overrides_runpath=no
12953 hardcode_into_libs=yes
12954 dynamic_linker='NetBSD ld.elf_so'
12961 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12964 dynamic_linker='NetBSD (a.out) ld.so'
12966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12967 soname_spec='${libname}${release}${shared_ext}$major'
12968 dynamic_linker='NetBSD ld.elf_so'
12970 shlibpath_var=LD_LIBRARY_PATH
12971 shlibpath_overrides_runpath=yes
12972 hardcode_into_libs=yes
12977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12978 shlibpath_var=LD_LIBRARY_PATH
12979 shlibpath_overrides_runpath=yes
12986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12987 soname_spec='${libname}${release}${shared_ext}$major'
12988 shlibpath_var=LD_LIBRARY_PATH
12989 shlibpath_overrides_runpath=yes
12994 sys_lib_dlsearch_path_spec="/usr/lib"
12996 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12998 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12999 *) need_version=no ;;
13001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13003 shlibpath_var=LD_LIBRARY_PATH
13004 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13006 openbsd2.[89] | openbsd2.[89].*)
13007 shlibpath_overrides_runpath=no
13010 shlibpath_overrides_runpath=yes
13014 shlibpath_overrides_runpath=yes
13019 libname_spec='$name'
13022 library_names_spec='$libname${shared_ext} $libname.a'
13023 dynamic_linker='OS/2 ld.exe'
13024 shlibpath_var=LIBPATH
13027 osf3* | osf4* | osf5*)
13031 soname_spec='${libname}${release}${shared_ext}$major'
13032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13033 shlibpath_var=LD_LIBRARY_PATH
13034 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13035 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13043 soname_spec='${libname}${release}${shared_ext}$major'
13044 shlibpath_var=LD_LIBRARY_PATH
13045 shlibpath_overrides_runpath=yes
13046 hardcode_into_libs=yes
13047 # ldd complains unless libraries are executable
13048 postinstall_cmds='chmod +x $lib'
13053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13054 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13055 shlibpath_var=LD_LIBRARY_PATH
13056 shlibpath_overrides_runpath=yes
13057 if test "$with_gnu_ld" = yes; then
13065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13066 soname_spec='${libname}${release}${shared_ext}$major'
13067 shlibpath_var=LD_LIBRARY_PATH
13068 case $host_vendor in
13070 shlibpath_overrides_runpath=no
13072 export_dynamic_flag_spec='${wl}-Blargedynsym'
13073 runpath_var=LD_RUN_PATH
13081 shlibpath_overrides_runpath=no
13082 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13088 if test -d /usr/nec ;then
13090 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13091 soname_spec='$libname${shared_ext}.$major'
13092 shlibpath_var=LD_LIBRARY_PATH
13096 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13097 version_type=freebsd-elf
13100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13101 soname_spec='${libname}${release}${shared_ext}$major'
13102 shlibpath_var=LD_LIBRARY_PATH
13103 hardcode_into_libs=yes
13104 if test "$with_gnu_ld" = yes; then
13105 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13106 shlibpath_overrides_runpath=no
13108 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13109 shlibpath_overrides_runpath=yes
13112 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13116 sys_lib_dlsearch_path_spec='/usr/lib'
13121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13122 soname_spec='${libname}${release}${shared_ext}$major'
13123 shlibpath_var=LD_LIBRARY_PATH
13130 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13131 echo "${ECHO_T}$dynamic_linker" >&6; }
13132 test "$dynamic_linker" = no && can_build_shared=no
13134 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13135 if test "$GCC" = yes; then
13136 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13139 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13140 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13141 hardcode_action_CXX=
13142 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13143 test -n "$runpath_var_CXX" || \
13144 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13146 # We can hardcode non-existant directories.
13147 if test "$hardcode_direct_CXX" != no &&
13148 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13149 # have to relink, otherwise we might link with an installed library
13150 # when we should be linking with a yet-to-be-installed one
13151 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13152 test "$hardcode_minus_L_CXX" != no; then
13153 # Linking always hardcodes the temporary library directory.
13154 hardcode_action_CXX=relink
13156 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13157 hardcode_action_CXX=immediate
13160 # We cannot hardcode anything, or else we can only hardcode existing
13162 hardcode_action_CXX=unsupported
13164 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13165 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13167 if test "$hardcode_action_CXX" = relink; then
13168 # Fast installation is not supported
13169 enable_fast_install=no
13170 elif test "$shlibpath_overrides_runpath" = yes ||
13171 test "$enable_shared" = no; then
13172 # Fast installation is not necessary
13173 enable_fast_install=needless
13177 # The else clause should only fire when bootstrapping the
13178 # libtool distribution, otherwise you forgot to ship ltmain.sh
13179 # with your package, and you will get complaints that there are
13180 # no rules to generate ltmain.sh.
13181 if test -f "$ltmain"; then
13182 # See if we are running on zsh, and set the options which allow our commands through
13183 # without removal of \ escapes.
13184 if test -n "${ZSH_VERSION+set}" ; then
13185 setopt NO_GLOB_SUBST
13187 # Now quote all the things that may contain metacharacters while being
13188 # careful not to overquote the AC_SUBSTed values. We take copies of the
13189 # variables and quote the copies for generation of the libtool script.
13190 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13192 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13193 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13194 deplibs_check_method reload_flag reload_cmds need_locks \
13195 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13196 lt_cv_sys_global_symbol_to_c_name_address \
13197 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13198 old_postinstall_cmds old_postuninstall_cmds \
13202 lt_prog_compiler_wl_CXX \
13203 lt_prog_compiler_pic_CXX \
13204 lt_prog_compiler_static_CXX \
13205 lt_prog_compiler_no_builtin_flag_CXX \
13206 export_dynamic_flag_spec_CXX \
13207 thread_safe_flag_spec_CXX \
13208 whole_archive_flag_spec_CXX \
13209 enable_shared_with_static_runtimes_CXX \
13210 old_archive_cmds_CXX \
13211 old_archive_from_new_cmds_CXX \
13212 predep_objects_CXX \
13213 postdep_objects_CXX \
13216 compiler_lib_search_path_CXX \
13218 archive_expsym_cmds_CXX \
13219 postinstall_cmds_CXX \
13220 postuninstall_cmds_CXX \
13221 old_archive_from_expsyms_cmds_CXX \
13222 allow_undefined_flag_CXX \
13223 no_undefined_flag_CXX \
13224 export_symbols_cmds_CXX \
13225 hardcode_libdir_flag_spec_CXX \
13226 hardcode_libdir_flag_spec_ld_CXX \
13227 hardcode_libdir_separator_CXX \
13228 hardcode_automatic_CXX \
13230 module_expsym_cmds_CXX \
13231 lt_cv_prog_compiler_c_o_CXX \
13232 exclude_expsyms_CXX \
13233 include_expsyms_CXX; do
13236 old_archive_cmds_CXX | \
13237 old_archive_from_new_cmds_CXX | \
13238 archive_cmds_CXX | \
13239 archive_expsym_cmds_CXX | \
13240 module_cmds_CXX | \
13241 module_expsym_cmds_CXX | \
13242 old_archive_from_expsyms_cmds_CXX | \
13243 export_symbols_cmds_CXX | \
13244 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13245 postinstall_cmds | postuninstall_cmds | \
13246 old_postinstall_cmds | old_postuninstall_cmds | \
13247 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13248 # Double-quote double-evaled strings.
13249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13258 *'\$0 --fallback-echo"')
13259 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13265 cat <<__EOF__ >> "$cfgfile"
13266 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13268 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13270 # Shell to use when invoking shell scripts.
13273 # Whether or not to build shared libraries.
13274 build_libtool_libs=$enable_shared
13276 # Whether or not to build static libraries.
13277 build_old_libs=$enable_static
13279 # Whether or not to add -lc for building shared libraries.
13280 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13282 # Whether or not to disallow shared libs when runtime libs are static
13283 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13285 # Whether or not to optimize for fast installation.
13286 fast_install=$enable_fast_install
13289 host_alias=$host_alias
13293 # The build system.
13294 build_alias=$build_alias
13298 # An echo program that does not interpret backslashes.
13303 AR_FLAGS=$lt_AR_FLAGS
13308 # LTCC compiler flags.
13309 LTCFLAGS=$lt_LTCFLAGS
13311 # A language-specific compiler.
13312 CC=$lt_compiler_CXX
13314 # Is the compiler the GNU C compiler?
13320 # The linker used to build libraries.
13323 # Whether we need hard or soft links.
13326 # A BSD-compatible nm program.
13329 # A symbol stripping program
13332 # Used to examine libraries when file_magic_cmd begins "file"
13333 MAGIC_CMD=$MAGIC_CMD
13335 # Used on cygwin: DLL creation program.
13338 # Used on cygwin: object dumper.
13341 # Used on cygwin: assembler.
13344 # The name of the directory that contains temporary libtool files.
13347 # How to create reloadable object files.
13348 reload_flag=$lt_reload_flag
13349 reload_cmds=$lt_reload_cmds
13351 # How to pass a linker flag through the compiler.
13352 wl=$lt_lt_prog_compiler_wl_CXX
13354 # Object file suffix (normally "o").
13355 objext="$ac_objext"
13357 # Old archive suffix (normally "a").
13360 # Shared library suffix (normally ".so").
13361 shrext_cmds='$shrext_cmds'
13363 # Executable file suffix (normally "").
13366 # Additional compiler flags for building library objects.
13367 pic_flag=$lt_lt_prog_compiler_pic_CXX
13370 # What is the maximum length of a command?
13371 max_cmd_len=$lt_cv_sys_max_cmd_len
13373 # Does compiler simultaneously support -c and -o options?
13374 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13376 # Must we lock files when doing compilation?
13377 need_locks=$lt_need_locks
13379 # Do we need the lib prefix for modules?
13380 need_lib_prefix=$need_lib_prefix
13382 # Do we need a version for libraries?
13383 need_version=$need_version
13385 # Whether dlopen is supported.
13386 dlopen_support=$enable_dlopen
13388 # Whether dlopen of programs is supported.
13389 dlopen_self=$enable_dlopen_self
13391 # Whether dlopen of statically linked programs is supported.
13392 dlopen_self_static=$enable_dlopen_self_static
13394 # Compiler flag to prevent dynamic linking.
13395 link_static_flag=$lt_lt_prog_compiler_static_CXX
13397 # Compiler flag to turn off builtin functions.
13398 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13400 # Compiler flag to allow reflexive dlopens.
13401 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13403 # Compiler flag to generate shared objects directly from archives.
13404 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13406 # Compiler flag to generate thread-safe objects.
13407 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13409 # Library versioning type.
13410 version_type=$version_type
13412 # Format of library name prefix.
13413 libname_spec=$lt_libname_spec
13415 # List of archive names. First name is the real one, the rest are links.
13416 # The last name is the one that the linker finds with -lNAME.
13417 library_names_spec=$lt_library_names_spec
13419 # The coded name of the library, if different from the real name.
13420 soname_spec=$lt_soname_spec
13422 # Commands used to build and install an old-style archive.
13424 old_archive_cmds=$lt_old_archive_cmds_CXX
13425 old_postinstall_cmds=$lt_old_postinstall_cmds
13426 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13428 # Create an old-style archive from a shared archive.
13429 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13431 # Create a temporary old-style archive to link instead of a shared archive.
13432 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13434 # Commands used to build and install a shared archive.
13435 archive_cmds=$lt_archive_cmds_CXX
13436 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13437 postinstall_cmds=$lt_postinstall_cmds
13438 postuninstall_cmds=$lt_postuninstall_cmds
13440 # Commands used to build a loadable module (assumed same as above if empty)
13441 module_cmds=$lt_module_cmds_CXX
13442 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13444 # Commands to strip libraries.
13445 old_striplib=$lt_old_striplib
13446 striplib=$lt_striplib
13448 # Dependencies to place before the objects being linked to create a
13450 predep_objects=$lt_predep_objects_CXX
13452 # Dependencies to place after the objects being linked to create a
13454 postdep_objects=$lt_postdep_objects_CXX
13456 # Dependencies to place before the objects being linked to create a
13458 predeps=$lt_predeps_CXX
13460 # Dependencies to place after the objects being linked to create a
13462 postdeps=$lt_postdeps_CXX
13464 # The library search path used internally by the compiler when linking
13465 # a shared library.
13466 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13468 # Method to check whether dependent libraries are shared objects.
13469 deplibs_check_method=$lt_deplibs_check_method
13471 # Command to use when deplibs_check_method == file_magic.
13472 file_magic_cmd=$lt_file_magic_cmd
13474 # Flag that allows shared libraries with undefined symbols to be built.
13475 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13477 # Flag that forces no undefined symbols.
13478 no_undefined_flag=$lt_no_undefined_flag_CXX
13480 # Commands used to finish a libtool library installation in a directory.
13481 finish_cmds=$lt_finish_cmds
13483 # Same as above, but a single script fragment to be evaled but not shown.
13484 finish_eval=$lt_finish_eval
13486 # Take the output of nm and produce a listing of raw symbols and C names.
13487 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13489 # Transform the output of nm in a proper C declaration
13490 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13492 # Transform the output of nm in a C name address pair
13493 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13495 # This is the shared library runtime path variable.
13496 runpath_var=$runpath_var
13498 # This is the shared library path variable.
13499 shlibpath_var=$shlibpath_var
13501 # Is shlibpath searched before the hard-coded library search path?
13502 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13504 # How to hardcode a shared library path into an executable.
13505 hardcode_action=$hardcode_action_CXX
13507 # Whether we should hardcode library paths into libraries.
13508 hardcode_into_libs=$hardcode_into_libs
13510 # Flag to hardcode \$libdir into a binary during linking.
13511 # This must work even if \$libdir does not exist.
13512 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13514 # If ld is used when linking, flag to hardcode \$libdir into
13515 # a binary during linking. This must work even if \$libdir does
13517 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13519 # Whether we need a single -rpath flag with a separated argument.
13520 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13522 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13523 # resulting binary.
13524 hardcode_direct=$hardcode_direct_CXX
13526 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13527 # resulting binary.
13528 hardcode_minus_L=$hardcode_minus_L_CXX
13530 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13531 # the resulting binary.
13532 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13534 # Set to yes if building a shared library automatically hardcodes DIR into the library
13535 # and all subsequent libraries and executables linked against it.
13536 hardcode_automatic=$hardcode_automatic_CXX
13538 # Variables whose values should be saved in libtool wrapper scripts and
13539 # restored at relink time.
13540 variables_saved_for_relink="$variables_saved_for_relink"
13542 # Whether libtool must link a program against all its dependency libraries.
13543 link_all_deplibs=$link_all_deplibs_CXX
13545 # Compile-time system search path for libraries
13546 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13548 # Run-time system search path for libraries
13549 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13551 # Fix the shell variable \$srcfile for the compiler.
13552 fix_srcfile_path="$fix_srcfile_path_CXX"
13554 # Set to yes if exported symbols are required.
13555 always_export_symbols=$always_export_symbols_CXX
13557 # The commands to list exported symbols.
13558 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13560 # The commands to extract the exported symbol list from a shared archive.
13561 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13563 # Symbols that should not be listed in the preloaded symbols.
13564 exclude_expsyms=$lt_exclude_expsyms_CXX
13566 # Symbols that must always be exported.
13567 include_expsyms=$lt_include_expsyms_CXX
13569 # ### END LIBTOOL TAG CONFIG: $tagname
13575 # If there is no Makefile yet, we rely on a make rule to execute
13576 # `config.status --recheck' to rerun these tests and create the
13577 # libtool script then.
13578 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13579 if test -f "$ltmain_in"; then
13580 test -f Makefile && make "$ltmain"
13586 ac_cpp='$CPP $CPPFLAGS'
13587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13595 with_gnu_ldcxx=$with_gnu_ld
13596 with_gnu_ld=$lt_save_with_gnu_ld
13597 lt_cv_path_LDCXX=$lt_cv_path_LD
13598 lt_cv_path_LD=$lt_save_path_LD
13599 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13600 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13608 if test -n "$F77" && test "X$F77" != "Xno"; then
13611 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13612 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13613 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13616 archive_cmds_need_lc_F77=no
13617 allow_undefined_flag_F77=
13618 always_export_symbols_F77=no
13619 archive_expsym_cmds_F77=
13620 export_dynamic_flag_spec_F77=
13621 hardcode_direct_F77=no
13622 hardcode_libdir_flag_spec_F77=
13623 hardcode_libdir_flag_spec_ld_F77=
13624 hardcode_libdir_separator_F77=
13625 hardcode_minus_L_F77=no
13626 hardcode_automatic_F77=no
13628 module_expsym_cmds_F77=
13629 link_all_deplibs_F77=unknown
13630 old_archive_cmds_F77=$old_archive_cmds
13631 no_undefined_flag_F77=
13632 whole_archive_flag_spec_F77=
13633 enable_shared_with_static_runtimes_F77=no
13635 # Source file extension for f77 test sources.
13638 # Object file extension for compiled f77 test sources.
13642 # Code to be used in simple compile tests
13643 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13645 # Code to be used in simple link tests
13646 lt_simple_link_test_code=" program t\n end\n"
13648 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13650 # If no C compiler was specified, use CC.
13653 # If no C compiler flags were specified, use CFLAGS.
13654 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13656 # Allow CC to be a program name with arguments.
13660 # save warnings/boilerplate of simple test code
13661 ac_outfile=conftest.$ac_objext
13662 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13663 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13664 _lt_compiler_boilerplate=`cat conftest.err`
13667 ac_outfile=conftest.$ac_objext
13668 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13669 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13670 _lt_linker_boilerplate=`cat conftest.err`
13674 # Allow CC to be a program name with arguments.
13679 for cc_temp in $compiler""; do
13681 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13682 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13687 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13690 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13691 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13692 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13693 echo "${ECHO_T}$can_build_shared" >&6; }
13695 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13696 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13697 test "$can_build_shared" = "no" && enable_shared=no
13699 # On AIX, shared libraries and static libraries use the same namespace, and
13700 # are all built from PIC.
13703 test "$enable_shared" = yes && enable_static=no
13704 if test -n "$RANLIB"; then
13705 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13706 postinstall_cmds='$RANLIB $lib'
13710 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13711 test "$enable_shared" = yes && enable_static=no
13715 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13716 echo "${ECHO_T}$enable_shared" >&6; }
13718 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13719 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13720 # Make sure either enable_shared or enable_static is yes.
13721 test "$enable_shared" = yes || enable_static=yes
13722 { echo "$as_me:$LINENO: result: $enable_static" >&5
13723 echo "${ECHO_T}$enable_static" >&6; }
13728 lt_prog_compiler_wl_F77=
13729 lt_prog_compiler_pic_F77=
13730 lt_prog_compiler_static_F77=
13732 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13733 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13735 if test "$GCC" = yes; then
13736 lt_prog_compiler_wl_F77='-Wl,'
13737 lt_prog_compiler_static_F77='-static'
13741 # All AIX code is PIC.
13742 if test "$host_cpu" = ia64; then
13743 # AIX 5 now supports IA64 processor
13744 lt_prog_compiler_static_F77='-Bstatic'
13749 # FIXME: we need at least 68020 code to build shared libraries, but
13750 # adding the `-m68020' flag to GCC prevents building anything better,
13752 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13755 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13756 # PIC is the default for these OSes.
13759 mingw* | pw32* | os2*)
13760 # This hack is so that the source file can tell whether it is being
13761 # built for inclusion in a dll (and should export symbols for example).
13762 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13765 darwin* | rhapsody*)
13766 # PIC is the default on this platform
13767 # Common symbols not allowed in MH_DYLIB files
13768 lt_prog_compiler_pic_F77='-fno-common'
13772 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13773 # Instead, we relocate shared libraries at runtime.
13777 # Just because we use GCC doesn't mean we suddenly get shared libraries
13778 # on systems that don't support them.
13779 lt_prog_compiler_can_build_shared_F77=no
13784 if test -d /usr/nec; then
13785 lt_prog_compiler_pic_F77=-Kconform_pic
13790 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13791 # not for PA HP-UX.
13797 lt_prog_compiler_pic_F77='-fPIC'
13803 lt_prog_compiler_pic_F77='-fPIC'
13807 # PORTME Check for flag to pass linker flags through the system compiler.
13810 lt_prog_compiler_wl_F77='-Wl,'
13811 if test "$host_cpu" = ia64; then
13812 # AIX 5 now supports IA64 processor
13813 lt_prog_compiler_static_F77='-Bstatic'
13815 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13819 # PIC is the default on this platform
13820 # Common symbols not allowed in MH_DYLIB files
13821 case $cc_basename in
13823 lt_prog_compiler_pic_F77='-qnocommon'
13824 lt_prog_compiler_wl_F77='-Wl,'
13829 mingw* | pw32* | os2*)
13830 # This hack is so that the source file can tell whether it is being
13831 # built for inclusion in a dll (and should export symbols for example).
13832 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13835 hpux9* | hpux10* | hpux11*)
13836 lt_prog_compiler_wl_F77='-Wl,'
13837 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13838 # not for PA HP-UX.
13844 lt_prog_compiler_pic_F77='+Z'
13847 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13848 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13851 irix5* | irix6* | nonstopux*)
13852 lt_prog_compiler_wl_F77='-Wl,'
13853 # PIC (with -KPIC) is the default.
13854 lt_prog_compiler_static_F77='-non_shared'
13858 lt_prog_compiler_pic_F77='-KPIC'
13859 lt_prog_compiler_static_F77='-Bstatic'
13862 linux* | k*bsd*-gnu)
13863 case $cc_basename in
13865 lt_prog_compiler_wl_F77='-Wl,'
13866 lt_prog_compiler_pic_F77='-KPIC'
13867 lt_prog_compiler_static_F77='-static'
13869 pgcc* | pgf77* | pgf90* | pgf95*)
13870 # Portland Group compilers (*not* the Pentium gcc compiler,
13871 # which looks to be a dead project)
13872 lt_prog_compiler_wl_F77='-Wl,'
13873 lt_prog_compiler_pic_F77='-fpic'
13874 lt_prog_compiler_static_F77='-Bstatic'
13877 lt_prog_compiler_wl_F77='-Wl,'
13878 # All Alpha code is PIC.
13879 lt_prog_compiler_static_F77='-non_shared'
13884 osf3* | osf4* | osf5*)
13885 lt_prog_compiler_wl_F77='-Wl,'
13886 # All OSF/1 code is PIC.
13887 lt_prog_compiler_static_F77='-non_shared'
13891 lt_prog_compiler_pic_F77='-KPIC'
13892 lt_prog_compiler_static_F77='-Bstatic'
13893 case $cc_basename in
13894 f77* | f90* | f95*)
13895 lt_prog_compiler_wl_F77='-Qoption ld ';;
13897 lt_prog_compiler_wl_F77='-Wl,';;
13902 lt_prog_compiler_wl_F77='-Qoption ld '
13903 lt_prog_compiler_pic_F77='-PIC'
13904 lt_prog_compiler_static_F77='-Bstatic'
13907 sysv4 | sysv4.2uw2* | sysv4.3*)
13908 lt_prog_compiler_wl_F77='-Wl,'
13909 lt_prog_compiler_pic_F77='-KPIC'
13910 lt_prog_compiler_static_F77='-Bstatic'
13914 if test -d /usr/nec ;then
13915 lt_prog_compiler_pic_F77='-Kconform_pic'
13916 lt_prog_compiler_static_F77='-Bstatic'
13920 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13921 lt_prog_compiler_wl_F77='-Wl,'
13922 lt_prog_compiler_pic_F77='-KPIC'
13923 lt_prog_compiler_static_F77='-Bstatic'
13927 lt_prog_compiler_wl_F77='-Wl,'
13928 lt_prog_compiler_can_build_shared_F77=no
13932 lt_prog_compiler_pic_F77='-pic'
13933 lt_prog_compiler_static_F77='-Bstatic'
13937 lt_prog_compiler_can_build_shared_F77=no
13942 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13943 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13946 # Check to make sure the PIC flag actually works.
13948 if test -n "$lt_prog_compiler_pic_F77"; then
13950 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13951 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13952 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13955 lt_prog_compiler_pic_works_F77=no
13956 ac_outfile=conftest.$ac_objext
13957 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13958 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13959 # Insert the option either (1) after the last *FLAGS variable, or
13960 # (2) before a word containing "conftest.", or (3) at the end.
13961 # Note that $ac_compile itself does not contain backslashes and begins
13962 # with a dollar sign (not a hyphen), so the echo should work correctly.
13963 # The option is referenced via a variable to avoid confusing sed.
13964 lt_compile=`echo "$ac_compile" | $SED \
13965 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13966 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13967 -e 's:$: $lt_compiler_flag:'`
13968 (eval echo "\"\$as_me:13968: $lt_compile\"" >&5)
13969 (eval "$lt_compile" 2>conftest.err)
13971 cat conftest.err >&5
13972 echo "$as_me:13972: \$? = $ac_status" >&5
13973 if (exit $ac_status) && test -s "$ac_outfile"; then
13974 # The compiler can only warn and ignore the option if not recognized
13975 # So say no if there are warnings other than the usual output.
13976 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13977 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13978 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13979 lt_prog_compiler_pic_works_F77=yes
13985 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13986 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13988 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13989 case $lt_prog_compiler_pic_F77 in
13991 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13994 lt_prog_compiler_pic_F77=
13995 lt_prog_compiler_can_build_shared_F77=no
14000 # For platforms which do not support PIC, -DPIC is meaningless:
14002 lt_prog_compiler_pic_F77=
14005 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14010 # Check to make sure the static flag actually works.
14012 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14013 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14014 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14015 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14016 echo $ECHO_N "(cached) $ECHO_C" >&6
14018 lt_prog_compiler_static_works_F77=no
14019 save_LDFLAGS="$LDFLAGS"
14020 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14021 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14022 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14023 # The linker can only warn and ignore the option if not recognized
14024 # So say no if there are warnings
14025 if test -s conftest.err; then
14026 # Append any errors to the config.log.
14027 cat conftest.err 1>&5
14028 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14030 if diff conftest.exp conftest.er2 >/dev/null; then
14031 lt_prog_compiler_static_works_F77=yes
14034 lt_prog_compiler_static_works_F77=yes
14038 LDFLAGS="$save_LDFLAGS"
14041 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14042 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14044 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14047 lt_prog_compiler_static_F77=
14051 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14052 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14053 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14056 lt_cv_prog_compiler_c_o_F77=no
14057 $rm -r conftest 2>/dev/null
14061 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14063 lt_compiler_flag="-o out/conftest2.$ac_objext"
14064 # Insert the option either (1) after the last *FLAGS variable, or
14065 # (2) before a word containing "conftest.", or (3) at the end.
14066 # Note that $ac_compile itself does not contain backslashes and begins
14067 # with a dollar sign (not a hyphen), so the echo should work correctly.
14068 lt_compile=`echo "$ac_compile" | $SED \
14069 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14070 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14071 -e 's:$: $lt_compiler_flag:'`
14072 (eval echo "\"\$as_me:14072: $lt_compile\"" >&5)
14073 (eval "$lt_compile" 2>out/conftest.err)
14075 cat out/conftest.err >&5
14076 echo "$as_me:14076: \$? = $ac_status" >&5
14077 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14079 # The compiler can only warn and ignore the option if not recognized
14080 # So say no if there are warnings
14081 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14082 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14083 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14084 lt_cv_prog_compiler_c_o_F77=yes
14089 # SGI C++ compiler will create directory out/ii_files/ for
14090 # template instantiation
14091 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14092 $rm out/* && rmdir out
14098 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14099 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14102 hard_links="nottested"
14103 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14104 # do not overwrite the value of need_locks provided by the user
14105 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14106 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14111 ln conftest.a conftest.b 2>&5 || hard_links=no
14112 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14113 { echo "$as_me:$LINENO: result: $hard_links" >&5
14114 echo "${ECHO_T}$hard_links" >&6; }
14115 if test "$hard_links" = no; then
14116 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14117 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14124 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14125 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14128 allow_undefined_flag_F77=
14129 enable_shared_with_static_runtimes_F77=no
14131 archive_expsym_cmds_F77=
14132 old_archive_From_new_cmds_F77=
14133 old_archive_from_expsyms_cmds_F77=
14134 export_dynamic_flag_spec_F77=
14135 whole_archive_flag_spec_F77=
14136 thread_safe_flag_spec_F77=
14137 hardcode_libdir_flag_spec_F77=
14138 hardcode_libdir_flag_spec_ld_F77=
14139 hardcode_libdir_separator_F77=
14140 hardcode_direct_F77=no
14141 hardcode_minus_L_F77=no
14142 hardcode_shlibpath_var_F77=unsupported
14143 link_all_deplibs_F77=unknown
14144 hardcode_automatic_F77=no
14146 module_expsym_cmds_F77=
14147 always_export_symbols_F77=no
14148 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14149 # include_expsyms should be a list of space-separated symbols to be *always*
14150 # included in the symbol list
14151 include_expsyms_F77=
14152 # exclude_expsyms can be an extended regexp of symbols to exclude
14153 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14154 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14155 # as well as any symbol that contains `d'.
14156 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14157 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14158 # platforms (ab)use it in PIC code, but their linkers get confused if
14159 # the symbol is explicitly referenced. Since portable code cannot
14160 # rely on this symbol name, it's probably fine to never include it in
14161 # preloaded symbol tables.
14162 extract_expsyms_cmds=
14163 # Just being paranoid about ensuring that cc_basename is set.
14164 for cc_temp in $compiler""; do
14166 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14167 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14172 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14175 cygwin* | mingw* | pw32*)
14176 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14177 # When not using gcc, we currently assume that we are using
14178 # Microsoft Visual C++.
14179 if test "$GCC" != yes; then
14184 # we just hope/assume this is gcc and not c89 (= MSVC++)
14193 if test "$with_gnu_ld" = yes; then
14194 # If archive_cmds runs LD, not CC, wlarc should be empty
14197 # Set some defaults for GNU ld with shared library support. These
14198 # are reset later if shared libraries are not supported. Putting them
14199 # here allows them to be overridden if necessary.
14200 runpath_var=LD_RUN_PATH
14201 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14202 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14203 # ancient GNU ld didn't support --whole-archive et. al.
14204 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14205 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14207 whole_archive_flag_spec_F77=
14209 supports_anon_versioning=no
14210 case `$LD -v 2>/dev/null` in
14211 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14212 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14213 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14214 *\ 2.11.*) ;; # other 2.11 versions
14215 *) supports_anon_versioning=yes ;;
14218 # See if GNU ld supports shared libraries.
14220 aix3* | aix4* | aix5*)
14221 # On AIX/PPC, the GNU linker is very broken
14222 if test "$host_cpu" != ia64; then
14226 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14227 *** to be unable to reliably create shared libraries on AIX.
14228 *** Therefore, libtool is disabling shared libraries support. If you
14229 *** really care for shared libraries, you may want to modify your PATH
14230 *** so that a non-GNU linker is found, and then restart.
14237 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)'
14238 hardcode_libdir_flag_spec_F77='-L$libdir'
14239 hardcode_minus_L_F77=yes
14241 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14242 # that the semantics of dynamic libraries on AmigaOS, at least up
14243 # to version 4, is to share data among multiple programs linked
14244 # with the same dynamic library. Since this doesn't match the
14245 # behavior of shared libraries on other platforms, we can't use
14251 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14252 allow_undefined_flag_F77=unsupported
14253 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14254 # support --undefined. This deserves some investigation. FIXME
14255 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14261 cygwin* | mingw* | pw32*)
14262 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14263 # as there is no search path for DLLs.
14264 hardcode_libdir_flag_spec_F77='-L$libdir'
14265 allow_undefined_flag_F77=unsupported
14266 always_export_symbols_F77=no
14267 enable_shared_with_static_runtimes_F77=yes
14268 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14270 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14271 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14272 # If the export-symbols file already is a .def file (1st line
14273 # is EXPORTS), use it as is; otherwise, prepend...
14274 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14275 cp $export_symbols $output_objdir/$soname.def;
14277 echo EXPORTS > $output_objdir/$soname.def;
14278 cat $export_symbols >> $output_objdir/$soname.def;
14280 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14287 hardcode_direct_F77=no
14288 hardcode_shlibpath_var_F77=no
14289 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14290 export_dynamic_flag_spec_F77='${wl}-E'
14291 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14292 # Instead, shared libraries are loaded at an image base (0x10000000 by
14293 # default) and relocated if they conflict, which is a slow very memory
14294 # consuming and fragmenting process. To avoid this, we pick a random,
14295 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14296 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14297 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'
14298 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'
14301 linux* | k*bsd*-gnu)
14302 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14304 case $cc_basename,$host_cpu in
14305 pgcc*) # Portland Group C compiler
14306 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'
14307 tmp_addflag=' $pic_flag'
14309 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14310 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'
14311 tmp_addflag=' $pic_flag -Mnomain' ;;
14312 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14313 tmp_addflag=' -i_dynamic' ;;
14314 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14315 tmp_addflag=' -i_dynamic -nofor_main' ;;
14316 ifc* | ifort*) # Intel Fortran compiler
14317 tmp_addflag=' -nofor_main' ;;
14319 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14321 if test $supports_anon_versioning = yes; then
14322 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14323 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14324 $echo "local: *; };" >> $output_objdir/$libname.ver~
14325 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14327 link_all_deplibs_F77=no
14333 netbsd* | netbsdelf*-gnu)
14334 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14335 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14338 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14339 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14344 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14348 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14349 *** create shared libraries on Solaris systems. Therefore, libtool
14350 *** is disabling shared libraries support. We urge you to upgrade GNU
14351 *** binutils to release 2.9.1 or newer. Another option is to modify
14352 *** your PATH or compiler configuration so that the native linker is
14353 *** used, and then restart.
14356 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14357 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14358 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14364 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14365 case `$LD -v 2>&1` in
14366 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14370 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14371 *** reliably create shared libraries on SCO systems. Therefore, libtool
14372 *** is disabling shared libraries support. We urge you to upgrade GNU
14373 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14374 *** your PATH or compiler configuration so that the native linker is
14375 *** used, and then restart.
14380 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14381 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14382 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14383 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14392 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14394 hardcode_direct_F77=yes
14395 hardcode_shlibpath_var_F77=no
14399 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14400 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14401 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14408 if test "$ld_shlibs_F77" = no; then
14410 hardcode_libdir_flag_spec_F77=
14411 export_dynamic_flag_spec_F77=
14412 whole_archive_flag_spec_F77=
14415 # PORTME fill in a description of your system's linker (not GNU ld)
14418 allow_undefined_flag_F77=unsupported
14419 always_export_symbols_F77=yes
14420 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'
14421 # Note: this linker hardcodes the directories in LIBPATH if there
14422 # are no directories specified by -L.
14423 hardcode_minus_L_F77=yes
14424 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14425 # Neither direct hardcoding nor static linking is supported with a
14427 hardcode_direct_F77=unsupported
14432 if test "$host_cpu" = ia64; then
14433 # On IA64, the linker does run time linking by default, so we don't
14434 # have to do anything special.
14435 aix_use_runtimelinking=no
14436 exp_sym_flag='-Bexport'
14439 # If we're using GNU nm, then we don't want the "-C" option.
14440 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14441 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14442 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'
14444 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'
14446 aix_use_runtimelinking=no
14448 # Test if we are trying to use run time linking or normal
14449 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14450 # need to do runtime linking.
14451 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14452 for ld_flag in $LDFLAGS; do
14453 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14454 aix_use_runtimelinking=yes
14461 exp_sym_flag='-bexport'
14462 no_entry_flag='-bnoentry'
14465 # When large executables or shared objects are built, AIX ld can
14466 # have problems creating the table of contents. If linking a library
14467 # or program results in "error TOC overflow" add -mminimal-toc to
14468 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14469 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14471 archive_cmds_F77=''
14472 hardcode_direct_F77=yes
14473 hardcode_libdir_separator_F77=':'
14474 link_all_deplibs_F77=yes
14476 if test "$GCC" = yes; then
14477 case $host_os in aix4.[012]|aix4.[012].*)
14478 # We only want to do this on AIX 4.2 and lower, the check
14479 # below for broken collect2 doesn't work under 4.3+
14480 collect2name=`${CC} -print-prog-name=collect2`
14481 if test -f "$collect2name" && \
14482 strings "$collect2name" | grep resolve_lib_name >/dev/null
14484 # We have reworked collect2
14485 hardcode_direct_F77=yes
14487 # We have old collect2
14488 hardcode_direct_F77=unsupported
14489 # It fails to find uninstalled libraries when the uninstalled
14490 # path is not listed in the libpath. Setting hardcode_minus_L
14491 # to unsupported forces relinking
14492 hardcode_minus_L_F77=yes
14493 hardcode_libdir_flag_spec_F77='-L$libdir'
14494 hardcode_libdir_separator_F77=
14498 shared_flag='-shared'
14499 if test "$aix_use_runtimelinking" = yes; then
14500 shared_flag="$shared_flag "'${wl}-G'
14504 if test "$host_cpu" = ia64; then
14505 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14506 # chokes on -Wl,-G. The following line is correct:
14509 if test "$aix_use_runtimelinking" = yes; then
14510 shared_flag='${wl}-G'
14512 shared_flag='${wl}-bM:SRE'
14517 # It seems that -bexpall does not export symbols beginning with
14518 # underscore (_), so it is better to generate a list of symbols to export.
14519 always_export_symbols_F77=yes
14520 if test "$aix_use_runtimelinking" = yes; then
14521 # Warning - without using the other runtime loading flags (-brtl),
14522 # -berok will link without error, but may produce a broken library.
14523 allow_undefined_flag_F77='-berok'
14524 # Determine the default libpath from the value encoded in an empty executable.
14525 cat >conftest.$ac_ext <<_ACEOF
14530 rm -f conftest.$ac_objext conftest$ac_exeext
14531 if { (ac_try="$ac_link"
14532 case "(($ac_try" in
14533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14534 *) ac_try_echo=$ac_try;;
14536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14537 (eval "$ac_link") 2>conftest.er1
14539 grep -v '^ *+' conftest.er1 >conftest.err
14541 cat conftest.err >&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); } && {
14544 test -z "$ac_f77_werror_flag" ||
14545 test ! -s conftest.err
14546 } && test -s conftest$ac_exeext &&
14547 $as_test_x conftest$ac_exeext; then
14549 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14551 # Check for a 64-bit object if we didn't find anything.
14552 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; }
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14562 conftest$ac_exeext conftest.$ac_ext
14563 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14565 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14566 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"
14568 if test "$host_cpu" = ia64; then
14569 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14570 allow_undefined_flag_F77="-z nodefs"
14571 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"
14573 # Determine the default libpath from the value encoded in an empty executable.
14574 cat >conftest.$ac_ext <<_ACEOF
14579 rm -f conftest.$ac_objext conftest$ac_exeext
14580 if { (ac_try="$ac_link"
14581 case "(($ac_try" in
14582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14583 *) ac_try_echo=$ac_try;;
14585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14586 (eval "$ac_link") 2>conftest.er1
14588 grep -v '^ *+' conftest.er1 >conftest.err
14590 cat conftest.err >&5
14591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14592 (exit $ac_status); } && {
14593 test -z "$ac_f77_werror_flag" ||
14594 test ! -s conftest.err
14595 } && test -s conftest$ac_exeext &&
14596 $as_test_x conftest$ac_exeext; then
14598 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14600 # Check for a 64-bit object if we didn't find anything.
14601 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; }
14604 echo "$as_me: failed program was:" >&5
14605 sed 's/^/| /' conftest.$ac_ext >&5
14610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14611 conftest$ac_exeext conftest.$ac_ext
14612 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14614 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14615 # Warning - without using the other run time loading flags,
14616 # -berok will link without error, but may produce a broken library.
14617 no_undefined_flag_F77=' ${wl}-bernotok'
14618 allow_undefined_flag_F77=' ${wl}-berok'
14619 # Exported symbols can be pulled into shared objects from archives
14620 whole_archive_flag_spec_F77='$convenience'
14621 archive_cmds_need_lc_F77=yes
14622 # This is similar to how AIX traditionally builds its shared libraries.
14623 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'
14629 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)'
14630 hardcode_libdir_flag_spec_F77='-L$libdir'
14631 hardcode_minus_L_F77=yes
14632 # see comment about different semantics on the GNU ld section
14637 export_dynamic_flag_spec_F77=-rdynamic
14640 cygwin* | mingw* | pw32*)
14641 # When not using gcc, we currently assume that we are using
14642 # Microsoft Visual C++.
14643 # hardcode_libdir_flag_spec is actually meaningless, as there is
14644 # no search path for DLLs.
14645 hardcode_libdir_flag_spec_F77=' '
14646 allow_undefined_flag_F77=unsupported
14647 # Tell ltmain to make .lib files, not .a files.
14649 # Tell ltmain to make .dll files, not .so files.
14651 # FIXME: Setting linknames here is a bad hack.
14652 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14653 # The linker will automatically build a .lib file if we build a DLL.
14654 old_archive_From_new_cmds_F77='true'
14655 # FIXME: Should let the user specify the lib program.
14656 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14657 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14658 enable_shared_with_static_runtimes_F77=yes
14661 darwin* | rhapsody*)
14663 rhapsody* | darwin1.[012])
14664 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14667 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14668 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14670 case ${MACOSX_DEPLOYMENT_TARGET} in
14672 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14675 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14681 archive_cmds_need_lc_F77=no
14682 hardcode_direct_F77=no
14683 hardcode_automatic_F77=yes
14684 hardcode_shlibpath_var_F77=unsupported
14685 whole_archive_flag_spec_F77=''
14686 link_all_deplibs_F77=yes
14687 if test "$GCC" = yes ; then
14688 output_verbose_link_cmd='echo'
14689 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14690 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14691 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14692 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}'
14693 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}'
14695 case $cc_basename in
14697 output_verbose_link_cmd='echo'
14698 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14699 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14700 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14701 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}'
14702 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}'
14712 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14713 hardcode_libdir_flag_spec_F77='-L$libdir'
14714 hardcode_shlibpath_var_F77=no
14721 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14722 # support. Future versions do this automatically, but an explicit c++rt0.o
14723 # does not break anything, and helps significantly (at the cost of a little
14726 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14727 hardcode_libdir_flag_spec_F77='-R$libdir'
14728 hardcode_direct_F77=yes
14729 hardcode_shlibpath_var_F77=no
14732 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14734 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14735 hardcode_direct_F77=yes
14736 hardcode_minus_L_F77=yes
14737 hardcode_shlibpath_var_F77=no
14740 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14741 freebsd* | dragonfly*)
14742 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14743 hardcode_libdir_flag_spec_F77='-R$libdir'
14744 hardcode_direct_F77=yes
14745 hardcode_shlibpath_var_F77=no
14749 if test "$GCC" = yes; then
14750 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'
14752 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'
14754 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14755 hardcode_libdir_separator_F77=:
14756 hardcode_direct_F77=yes
14758 # hardcode_minus_L: Not really in the search PATH,
14759 # but as the default location of the library.
14760 hardcode_minus_L_F77=yes
14761 export_dynamic_flag_spec_F77='${wl}-E'
14765 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14766 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14768 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14770 if test "$with_gnu_ld" = no; then
14771 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14772 hardcode_libdir_separator_F77=:
14774 hardcode_direct_F77=yes
14775 export_dynamic_flag_spec_F77='${wl}-E'
14777 # hardcode_minus_L: Not really in the search PATH,
14778 # but as the default location of the library.
14779 hardcode_minus_L_F77=yes
14784 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14787 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14790 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14793 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14799 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14802 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14805 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14809 if test "$with_gnu_ld" = no; then
14810 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14811 hardcode_libdir_separator_F77=:
14815 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14816 hardcode_direct_F77=no
14817 hardcode_shlibpath_var_F77=no
14820 hardcode_direct_F77=yes
14821 export_dynamic_flag_spec_F77='${wl}-E'
14823 # hardcode_minus_L: Not really in the search PATH,
14824 # but as the default location of the library.
14825 hardcode_minus_L_F77=yes
14831 irix5* | irix6* | nonstopux*)
14832 if test "$GCC" = yes; then
14833 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'
14835 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'
14836 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14838 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14839 hardcode_libdir_separator_F77=:
14840 link_all_deplibs_F77=yes
14843 netbsd* | netbsdelf*-gnu)
14844 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14845 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14847 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14849 hardcode_libdir_flag_spec_F77='-R$libdir'
14850 hardcode_direct_F77=yes
14851 hardcode_shlibpath_var_F77=no
14855 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14856 hardcode_direct_F77=yes
14857 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14858 hardcode_libdir_separator_F77=:
14859 hardcode_shlibpath_var_F77=no
14863 hardcode_direct_F77=yes
14864 hardcode_shlibpath_var_F77=no
14865 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14866 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14867 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14868 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14869 export_dynamic_flag_spec_F77='${wl}-E'
14872 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14873 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14874 hardcode_libdir_flag_spec_F77='-R$libdir'
14877 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14878 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14885 hardcode_libdir_flag_spec_F77='-L$libdir'
14886 hardcode_minus_L_F77=yes
14887 allow_undefined_flag_F77=unsupported
14888 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'
14889 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14893 if test "$GCC" = yes; then
14894 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14895 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'
14897 allow_undefined_flag_F77=' -expect_unresolved \*'
14898 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'
14900 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14901 hardcode_libdir_separator_F77=:
14904 osf4* | osf5*) # as osf3* with the addition of -msym flag
14905 if test "$GCC" = yes; then
14906 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14907 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'
14908 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14910 allow_undefined_flag_F77=' -expect_unresolved \*'
14911 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'
14912 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~
14913 $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'
14915 # Both c and cxx compiler support -rpath directly
14916 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14918 hardcode_libdir_separator_F77=:
14922 no_undefined_flag_F77=' -z text'
14923 if test "$GCC" = yes; then
14925 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14926 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14927 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14930 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14931 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14932 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14934 hardcode_libdir_flag_spec_F77='-R$libdir'
14935 hardcode_shlibpath_var_F77=no
14937 solaris2.[0-5] | solaris2.[0-5].*) ;;
14939 # The compiler driver will combine linker options so we
14940 # cannot just pass the convience library names through
14941 # without $wl, iff we do not link with $LD.
14942 # Luckily, gcc supports the same syntax we need for Sun Studio.
14943 # Supported since Solaris 2.6 (maybe 2.5.1?)
14946 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14948 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' ;;
14951 link_all_deplibs_F77=yes
14955 if test "x$host_vendor" = xsequent; then
14956 # Use $CC to link under sequent, because it throws in some extra .o
14957 # files that make .init and .fini sections work.
14958 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14960 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14962 hardcode_libdir_flag_spec_F77='-L$libdir'
14963 hardcode_direct_F77=yes
14964 hardcode_minus_L_F77=yes
14965 hardcode_shlibpath_var_F77=no
14969 case $host_vendor in
14971 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14972 hardcode_direct_F77=yes # is this really true???
14975 ## LD is ld it makes a PLAMLIB
14976 ## CC just makes a GrossModule.
14977 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14978 reload_cmds_F77='$CC -r -o $output$reload_objs'
14979 hardcode_direct_F77=no
14982 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14983 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14986 runpath_var='LD_RUN_PATH'
14987 hardcode_shlibpath_var_F77=no
14991 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14992 hardcode_shlibpath_var_F77=no
14993 export_dynamic_flag_spec_F77='-Bexport'
14997 if test -d /usr/nec; then
14998 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14999 hardcode_shlibpath_var_F77=no
15000 runpath_var=LD_RUN_PATH
15001 hardcode_runpath_var=yes
15006 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15007 no_undefined_flag_F77='${wl}-z,text'
15008 archive_cmds_need_lc_F77=no
15009 hardcode_shlibpath_var_F77=no
15010 runpath_var='LD_RUN_PATH'
15012 if test "$GCC" = yes; then
15013 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15014 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15016 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15017 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15021 sysv5* | sco3.2v5* | sco5v6*)
15022 # Note: We can NOT use -z defs as we might desire, because we do not
15023 # link with -lc, and that would cause any symbols used from libc to
15024 # always be unresolved, which means just about no library would
15025 # ever link correctly. If we're not using GNU ld we use -z text
15026 # though, which does catch some bad symbols but isn't as heavy-handed
15028 no_undefined_flag_F77='${wl}-z,text'
15029 allow_undefined_flag_F77='${wl}-z,nodefs'
15030 archive_cmds_need_lc_F77=no
15031 hardcode_shlibpath_var_F77=no
15032 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15033 hardcode_libdir_separator_F77=':'
15034 link_all_deplibs_F77=yes
15035 export_dynamic_flag_spec_F77='${wl}-Bexport'
15036 runpath_var='LD_RUN_PATH'
15038 if test "$GCC" = yes; then
15039 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15040 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15042 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15043 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15048 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15049 hardcode_libdir_flag_spec_F77='-L$libdir'
15050 hardcode_shlibpath_var_F77=no
15059 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15060 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15061 test "$ld_shlibs_F77" = no && can_build_shared=no
15064 # Do we need to explicitly link libc?
15066 case "x$archive_cmds_need_lc_F77" in
15068 # Assume -lc should be added
15069 archive_cmds_need_lc_F77=yes
15071 if test "$enable_shared" = yes && test "$GCC" = yes; then
15072 case $archive_cmds_F77 in
15074 # FIXME: we may have to deal with multi-command sequences.
15077 # Test whether the compiler implicitly links with -lc since on some
15078 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15079 # to ld, don't add -lc before -lgcc.
15080 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15081 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15083 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15086 (eval $ac_compile) 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } 2>conftest.err; then
15092 libobjs=conftest.$ac_objext
15094 wl=$lt_prog_compiler_wl_F77
15095 pic_flag=$lt_prog_compiler_pic_F77
15101 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15102 allow_undefined_flag_F77=
15103 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15104 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15107 (exit $ac_status); }
15109 archive_cmds_need_lc_F77=no
15111 archive_cmds_need_lc_F77=yes
15113 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15115 cat conftest.err 1>&5
15118 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15119 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15126 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15127 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15128 library_names_spec=
15129 libname_spec='lib$name'
15133 postuninstall_cmds=
15137 shlibpath_overrides_runpath=unknown
15139 dynamic_linker="$host_os ld.so"
15140 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15141 if test "$GCC" = yes; then
15142 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15143 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15144 # if the path contains ";" then we assume it to be the separator
15145 # otherwise default to the standard path separator (i.e. ":") - it is
15146 # assumed that no part of a normal pathname contains ";" but that should
15147 # okay in the real world where ";" in dirpaths is itself problematic.
15148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15150 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15153 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15155 need_lib_prefix=unknown
15156 hardcode_into_libs=no
15158 # when you set need_version to no, make sure it does not cause -set_version
15159 # flags to be left without arguments
15160 need_version=unknown
15165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15166 shlibpath_var=LIBPATH
15168 # AIX 3 has no versioning support, so we append a major version to the name.
15169 soname_spec='${libname}${release}${shared_ext}$major'
15176 hardcode_into_libs=yes
15177 if test "$host_cpu" = ia64; then
15178 # AIX 5 supports IA64
15179 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15180 shlibpath_var=LD_LIBRARY_PATH
15182 # With GCC up to 2.95.x, collect2 would create an import file
15183 # for dependence libraries. The import file would start with
15184 # the line `#! .'. This would cause the generated library to
15185 # depend on `.', always an invalid library. This was fixed in
15186 # development snapshots of GCC prior to 3.0.
15188 aix4 | aix4.[01] | aix4.[01].*)
15189 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15191 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15194 can_build_shared=no
15198 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15199 # soname into executable. Probably we can add versioning support to
15200 # collect2, so additional links can be useful in future.
15201 if test "$aix_use_runtimelinking" = yes; then
15202 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15203 # instead of lib<name>.a to let people know that these are not
15204 # typical AIX shared libraries.
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15207 # We preserve .a as extension for shared libraries through AIX4.2
15208 # and later when we are not doing run time linking.
15209 library_names_spec='${libname}${release}.a $libname.a'
15210 soname_spec='${libname}${release}${shared_ext}$major'
15212 shlibpath_var=LIBPATH
15217 library_names_spec='$libname.ixlibrary $libname.a'
15218 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15219 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'
15223 library_names_spec='${libname}${shared_ext}'
15224 dynamic_linker="$host_os ld.so"
15225 shlibpath_var=LIBRARY_PATH
15231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15232 soname_spec='${libname}${release}${shared_ext}$major'
15233 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15234 shlibpath_var=LD_LIBRARY_PATH
15235 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15236 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15237 # the default ld.so.conf also contains /usr/contrib/lib and
15238 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15239 # libtool to hard-code these into programs
15242 cygwin* | mingw* | pw32*)
15243 version_type=windows
15248 case $GCC,$host_os in
15249 yes,cygwin* | yes,mingw* | yes,pw32*)
15250 library_names_spec='$libname.dll.a'
15251 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15252 postinstall_cmds='base_file=`basename \${file}`~
15253 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15254 dldir=$destdir/`dirname \$dlpath`~
15255 test -d \$dldir || mkdir -p \$dldir~
15256 $install_prog $dir/$dlname \$dldir/$dlname~
15257 chmod a+x \$dldir/$dlname'
15258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15259 dlpath=$dir/\$dldll~
15261 shlibpath_overrides_runpath=yes
15265 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15266 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15267 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15270 # MinGW DLLs use traditional 'lib' prefix
15271 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15272 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15273 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15274 # It is most probably a Windows format PATH printed by
15275 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15276 # path with ; separators, and with drive letters. We can handle the
15277 # drive letters (cygwin fileutils understands them), so leave them,
15278 # especially as we might pass files found there to a mingw objdump,
15279 # which wouldn't understand a cygwinified path. Ahh.
15280 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15286 # pw32 DLLs use 'pw' prefix rather than 'lib'
15287 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15293 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15296 dynamic_linker='Win32 ld.exe'
15297 # FIXME: first we should search . and the directory the executable is in
15301 darwin* | rhapsody*)
15302 dynamic_linker="$host_os dyld"
15303 version_type=darwin
15306 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15307 soname_spec='${libname}${release}${major}$shared_ext'
15308 shlibpath_overrides_runpath=yes
15309 shlibpath_var=DYLD_LIBRARY_PATH
15310 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15311 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15312 if test "$GCC" = yes; then
15313 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"`
15315 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15317 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15325 soname_spec='${libname}${release}${shared_ext}$major'
15326 shlibpath_var=LD_LIBRARY_PATH
15333 freebsd* | dragonfly*)
15334 # DragonFly does not have aout. When/if they implement a new
15335 # versioning mechanism, adjust this.
15336 if test -x /usr/bin/objformat; then
15337 objformat=`/usr/bin/objformat`
15340 freebsd[123]*) objformat=aout ;;
15341 *) objformat=elf ;;
15344 version_type=freebsd-$objformat
15345 case $version_type in
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15352 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15356 shlibpath_var=LD_LIBRARY_PATH
15359 shlibpath_overrides_runpath=yes
15361 freebsd3.[01]* | freebsdelf3.[01]*)
15362 shlibpath_overrides_runpath=yes
15363 hardcode_into_libs=yes
15365 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15366 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15367 shlibpath_overrides_runpath=no
15368 hardcode_into_libs=yes
15370 freebsd*) # from 4.6 on
15371 shlibpath_overrides_runpath=yes
15372 hardcode_into_libs=yes
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15382 soname_spec='${libname}${release}${shared_ext}$major'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 hardcode_into_libs=yes
15387 hpux9* | hpux10* | hpux11*)
15388 # Give a soname corresponding to the major version so that dld.sl refuses to
15389 # link against other versions.
15396 hardcode_into_libs=yes
15397 dynamic_linker="$host_os dld.so"
15398 shlibpath_var=LD_LIBRARY_PATH
15399 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 if test "X$HPUX_IA64_MODE" = X32; then
15403 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15405 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15407 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15411 hardcode_into_libs=yes
15412 dynamic_linker="$host_os dld.sl"
15413 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15414 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15418 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15422 dynamic_linker="$host_os dld.sl"
15423 shlibpath_var=SHLIB_PATH
15424 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426 soname_spec='${libname}${release}${shared_ext}$major'
15429 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15430 postinstall_cmds='chmod 555 $lib'
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15440 shlibpath_var=LD_LIBRARY_PATH
15441 shlibpath_overrides_runpath=no
15442 hardcode_into_libs=yes
15445 irix5* | irix6* | nonstopux*)
15447 nonstopux*) version_type=nonstopux ;;
15449 if test "$lt_cv_prog_gnu_ld" = yes; then
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15460 irix5* | nonstopux*)
15461 libsuff= shlibsuff=
15464 case $LD in # libtool.m4 will add one of these switches to LD
15465 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15466 libsuff= shlibsuff= libmagic=32-bit;;
15467 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15468 libsuff=32 shlibsuff=N32 libmagic=N32;;
15469 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15470 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15471 *) libsuff= shlibsuff= libmagic=never-match;;
15475 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15476 shlibpath_overrides_runpath=no
15477 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15478 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15479 hardcode_into_libs=yes
15482 # No shared lib support for Linux oldld, aout, or coff.
15483 linux*oldld* | linux*aout* | linux*coff*)
15487 # This must be Linux ELF.
15488 linux* | k*bsd*-gnu)
15492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15493 soname_spec='${libname}${release}${shared_ext}$major'
15494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15495 shlibpath_var=LD_LIBRARY_PATH
15496 shlibpath_overrides_runpath=no
15497 # This implies no fast_install, which is unacceptable.
15498 # Some rework will be needed to allow for fast_install
15499 # before this can be enabled.
15500 hardcode_into_libs=yes
15502 # Append ld.so.conf contents to the search path
15503 if test -f /etc/ld.so.conf; then
15504 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' ' '`
15505 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15508 # We used to test for /lib/ld.so.1 and disable shared libraries on
15509 # powerpc, because MkLinux only supported shared libraries with the
15510 # GNU dynamic linker. Since this was broken with cross compilers,
15511 # most powerpc-linux boxes support dynamic linking these days and
15512 # people can always --disable-shared, the test was removed, and we
15513 # assume the GNU/Linux dynamic linker is in use.
15514 dynamic_linker='GNU/Linux ld.so'
15521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15522 soname_spec='${libname}${release}${shared_ext}$major'
15523 shlibpath_var=LD_LIBRARY_PATH
15524 shlibpath_overrides_runpath=no
15525 hardcode_into_libs=yes
15526 dynamic_linker='NetBSD ld.elf_so'
15533 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15535 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15536 dynamic_linker='NetBSD (a.out) ld.so'
15538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15539 soname_spec='${libname}${release}${shared_ext}$major'
15540 dynamic_linker='NetBSD ld.elf_so'
15542 shlibpath_var=LD_LIBRARY_PATH
15543 shlibpath_overrides_runpath=yes
15544 hardcode_into_libs=yes
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15550 shlibpath_var=LD_LIBRARY_PATH
15551 shlibpath_overrides_runpath=yes
15558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15559 soname_spec='${libname}${release}${shared_ext}$major'
15560 shlibpath_var=LD_LIBRARY_PATH
15561 shlibpath_overrides_runpath=yes
15566 sys_lib_dlsearch_path_spec="/usr/lib"
15568 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15570 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15571 *) need_version=no ;;
15573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15574 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15575 shlibpath_var=LD_LIBRARY_PATH
15576 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15578 openbsd2.[89] | openbsd2.[89].*)
15579 shlibpath_overrides_runpath=no
15582 shlibpath_overrides_runpath=yes
15586 shlibpath_overrides_runpath=yes
15591 libname_spec='$name'
15594 library_names_spec='$libname${shared_ext} $libname.a'
15595 dynamic_linker='OS/2 ld.exe'
15596 shlibpath_var=LIBPATH
15599 osf3* | osf4* | osf5*)
15603 soname_spec='${libname}${release}${shared_ext}$major'
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605 shlibpath_var=LD_LIBRARY_PATH
15606 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15607 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615 soname_spec='${libname}${release}${shared_ext}$major'
15616 shlibpath_var=LD_LIBRARY_PATH
15617 shlibpath_overrides_runpath=yes
15618 hardcode_into_libs=yes
15619 # ldd complains unless libraries are executable
15620 postinstall_cmds='chmod +x $lib'
15625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15626 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15627 shlibpath_var=LD_LIBRARY_PATH
15628 shlibpath_overrides_runpath=yes
15629 if test "$with_gnu_ld" = yes; then
15637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15638 soname_spec='${libname}${release}${shared_ext}$major'
15639 shlibpath_var=LD_LIBRARY_PATH
15640 case $host_vendor in
15642 shlibpath_overrides_runpath=no
15644 export_dynamic_flag_spec='${wl}-Blargedynsym'
15645 runpath_var=LD_RUN_PATH
15653 shlibpath_overrides_runpath=no
15654 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15660 if test -d /usr/nec ;then
15662 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15663 soname_spec='$libname${shared_ext}.$major'
15664 shlibpath_var=LD_LIBRARY_PATH
15668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15669 version_type=freebsd-elf
15672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15673 soname_spec='${libname}${release}${shared_ext}$major'
15674 shlibpath_var=LD_LIBRARY_PATH
15675 hardcode_into_libs=yes
15676 if test "$with_gnu_ld" = yes; then
15677 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15678 shlibpath_overrides_runpath=no
15680 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15681 shlibpath_overrides_runpath=yes
15684 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15688 sys_lib_dlsearch_path_spec='/usr/lib'
15693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15694 soname_spec='${libname}${release}${shared_ext}$major'
15695 shlibpath_var=LD_LIBRARY_PATH
15702 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15703 echo "${ECHO_T}$dynamic_linker" >&6; }
15704 test "$dynamic_linker" = no && can_build_shared=no
15706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15707 if test "$GCC" = yes; then
15708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15711 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15712 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15713 hardcode_action_F77=
15714 if test -n "$hardcode_libdir_flag_spec_F77" || \
15715 test -n "$runpath_var_F77" || \
15716 test "X$hardcode_automatic_F77" = "Xyes" ; then
15718 # We can hardcode non-existant directories.
15719 if test "$hardcode_direct_F77" != no &&
15720 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15721 # have to relink, otherwise we might link with an installed library
15722 # when we should be linking with a yet-to-be-installed one
15723 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15724 test "$hardcode_minus_L_F77" != no; then
15725 # Linking always hardcodes the temporary library directory.
15726 hardcode_action_F77=relink
15728 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15729 hardcode_action_F77=immediate
15732 # We cannot hardcode anything, or else we can only hardcode existing
15734 hardcode_action_F77=unsupported
15736 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15737 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15739 if test "$hardcode_action_F77" = relink; then
15740 # Fast installation is not supported
15741 enable_fast_install=no
15742 elif test "$shlibpath_overrides_runpath" = yes ||
15743 test "$enable_shared" = no; then
15744 # Fast installation is not necessary
15745 enable_fast_install=needless
15749 # The else clause should only fire when bootstrapping the
15750 # libtool distribution, otherwise you forgot to ship ltmain.sh
15751 # with your package, and you will get complaints that there are
15752 # no rules to generate ltmain.sh.
15753 if test -f "$ltmain"; then
15754 # See if we are running on zsh, and set the options which allow our commands through
15755 # without removal of \ escapes.
15756 if test -n "${ZSH_VERSION+set}" ; then
15757 setopt NO_GLOB_SUBST
15759 # Now quote all the things that may contain metacharacters while being
15760 # careful not to overquote the AC_SUBSTed values. We take copies of the
15761 # variables and quote the copies for generation of the libtool script.
15762 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15764 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15765 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15766 deplibs_check_method reload_flag reload_cmds need_locks \
15767 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15768 lt_cv_sys_global_symbol_to_c_name_address \
15769 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15770 old_postinstall_cmds old_postuninstall_cmds \
15774 lt_prog_compiler_wl_F77 \
15775 lt_prog_compiler_pic_F77 \
15776 lt_prog_compiler_static_F77 \
15777 lt_prog_compiler_no_builtin_flag_F77 \
15778 export_dynamic_flag_spec_F77 \
15779 thread_safe_flag_spec_F77 \
15780 whole_archive_flag_spec_F77 \
15781 enable_shared_with_static_runtimes_F77 \
15782 old_archive_cmds_F77 \
15783 old_archive_from_new_cmds_F77 \
15784 predep_objects_F77 \
15785 postdep_objects_F77 \
15788 compiler_lib_search_path_F77 \
15790 archive_expsym_cmds_F77 \
15791 postinstall_cmds_F77 \
15792 postuninstall_cmds_F77 \
15793 old_archive_from_expsyms_cmds_F77 \
15794 allow_undefined_flag_F77 \
15795 no_undefined_flag_F77 \
15796 export_symbols_cmds_F77 \
15797 hardcode_libdir_flag_spec_F77 \
15798 hardcode_libdir_flag_spec_ld_F77 \
15799 hardcode_libdir_separator_F77 \
15800 hardcode_automatic_F77 \
15802 module_expsym_cmds_F77 \
15803 lt_cv_prog_compiler_c_o_F77 \
15804 exclude_expsyms_F77 \
15805 include_expsyms_F77; do
15808 old_archive_cmds_F77 | \
15809 old_archive_from_new_cmds_F77 | \
15810 archive_cmds_F77 | \
15811 archive_expsym_cmds_F77 | \
15812 module_cmds_F77 | \
15813 module_expsym_cmds_F77 | \
15814 old_archive_from_expsyms_cmds_F77 | \
15815 export_symbols_cmds_F77 | \
15816 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15817 postinstall_cmds | postuninstall_cmds | \
15818 old_postinstall_cmds | old_postuninstall_cmds | \
15819 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15820 # Double-quote double-evaled strings.
15821 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15824 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15830 *'\$0 --fallback-echo"')
15831 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15837 cat <<__EOF__ >> "$cfgfile"
15838 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15840 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15842 # Shell to use when invoking shell scripts.
15845 # Whether or not to build shared libraries.
15846 build_libtool_libs=$enable_shared
15848 # Whether or not to build static libraries.
15849 build_old_libs=$enable_static
15851 # Whether or not to add -lc for building shared libraries.
15852 build_libtool_need_lc=$archive_cmds_need_lc_F77
15854 # Whether or not to disallow shared libs when runtime libs are static
15855 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15857 # Whether or not to optimize for fast installation.
15858 fast_install=$enable_fast_install
15861 host_alias=$host_alias
15865 # The build system.
15866 build_alias=$build_alias
15870 # An echo program that does not interpret backslashes.
15875 AR_FLAGS=$lt_AR_FLAGS
15880 # LTCC compiler flags.
15881 LTCFLAGS=$lt_LTCFLAGS
15883 # A language-specific compiler.
15884 CC=$lt_compiler_F77
15886 # Is the compiler the GNU C compiler?
15892 # The linker used to build libraries.
15895 # Whether we need hard or soft links.
15898 # A BSD-compatible nm program.
15901 # A symbol stripping program
15904 # Used to examine libraries when file_magic_cmd begins "file"
15905 MAGIC_CMD=$MAGIC_CMD
15907 # Used on cygwin: DLL creation program.
15910 # Used on cygwin: object dumper.
15913 # Used on cygwin: assembler.
15916 # The name of the directory that contains temporary libtool files.
15919 # How to create reloadable object files.
15920 reload_flag=$lt_reload_flag
15921 reload_cmds=$lt_reload_cmds
15923 # How to pass a linker flag through the compiler.
15924 wl=$lt_lt_prog_compiler_wl_F77
15926 # Object file suffix (normally "o").
15927 objext="$ac_objext"
15929 # Old archive suffix (normally "a").
15932 # Shared library suffix (normally ".so").
15933 shrext_cmds='$shrext_cmds'
15935 # Executable file suffix (normally "").
15938 # Additional compiler flags for building library objects.
15939 pic_flag=$lt_lt_prog_compiler_pic_F77
15942 # What is the maximum length of a command?
15943 max_cmd_len=$lt_cv_sys_max_cmd_len
15945 # Does compiler simultaneously support -c and -o options?
15946 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15948 # Must we lock files when doing compilation?
15949 need_locks=$lt_need_locks
15951 # Do we need the lib prefix for modules?
15952 need_lib_prefix=$need_lib_prefix
15954 # Do we need a version for libraries?
15955 need_version=$need_version
15957 # Whether dlopen is supported.
15958 dlopen_support=$enable_dlopen
15960 # Whether dlopen of programs is supported.
15961 dlopen_self=$enable_dlopen_self
15963 # Whether dlopen of statically linked programs is supported.
15964 dlopen_self_static=$enable_dlopen_self_static
15966 # Compiler flag to prevent dynamic linking.
15967 link_static_flag=$lt_lt_prog_compiler_static_F77
15969 # Compiler flag to turn off builtin functions.
15970 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15972 # Compiler flag to allow reflexive dlopens.
15973 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15975 # Compiler flag to generate shared objects directly from archives.
15976 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15978 # Compiler flag to generate thread-safe objects.
15979 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15981 # Library versioning type.
15982 version_type=$version_type
15984 # Format of library name prefix.
15985 libname_spec=$lt_libname_spec
15987 # List of archive names. First name is the real one, the rest are links.
15988 # The last name is the one that the linker finds with -lNAME.
15989 library_names_spec=$lt_library_names_spec
15991 # The coded name of the library, if different from the real name.
15992 soname_spec=$lt_soname_spec
15994 # Commands used to build and install an old-style archive.
15996 old_archive_cmds=$lt_old_archive_cmds_F77
15997 old_postinstall_cmds=$lt_old_postinstall_cmds
15998 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16000 # Create an old-style archive from a shared archive.
16001 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16003 # Create a temporary old-style archive to link instead of a shared archive.
16004 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16006 # Commands used to build and install a shared archive.
16007 archive_cmds=$lt_archive_cmds_F77
16008 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16009 postinstall_cmds=$lt_postinstall_cmds
16010 postuninstall_cmds=$lt_postuninstall_cmds
16012 # Commands used to build a loadable module (assumed same as above if empty)
16013 module_cmds=$lt_module_cmds_F77
16014 module_expsym_cmds=$lt_module_expsym_cmds_F77
16016 # Commands to strip libraries.
16017 old_striplib=$lt_old_striplib
16018 striplib=$lt_striplib
16020 # Dependencies to place before the objects being linked to create a
16022 predep_objects=$lt_predep_objects_F77
16024 # Dependencies to place after the objects being linked to create a
16026 postdep_objects=$lt_postdep_objects_F77
16028 # Dependencies to place before the objects being linked to create a
16030 predeps=$lt_predeps_F77
16032 # Dependencies to place after the objects being linked to create a
16034 postdeps=$lt_postdeps_F77
16036 # The library search path used internally by the compiler when linking
16037 # a shared library.
16038 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16040 # Method to check whether dependent libraries are shared objects.
16041 deplibs_check_method=$lt_deplibs_check_method
16043 # Command to use when deplibs_check_method == file_magic.
16044 file_magic_cmd=$lt_file_magic_cmd
16046 # Flag that allows shared libraries with undefined symbols to be built.
16047 allow_undefined_flag=$lt_allow_undefined_flag_F77
16049 # Flag that forces no undefined symbols.
16050 no_undefined_flag=$lt_no_undefined_flag_F77
16052 # Commands used to finish a libtool library installation in a directory.
16053 finish_cmds=$lt_finish_cmds
16055 # Same as above, but a single script fragment to be evaled but not shown.
16056 finish_eval=$lt_finish_eval
16058 # Take the output of nm and produce a listing of raw symbols and C names.
16059 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16061 # Transform the output of nm in a proper C declaration
16062 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16064 # Transform the output of nm in a C name address pair
16065 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16067 # This is the shared library runtime path variable.
16068 runpath_var=$runpath_var
16070 # This is the shared library path variable.
16071 shlibpath_var=$shlibpath_var
16073 # Is shlibpath searched before the hard-coded library search path?
16074 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16076 # How to hardcode a shared library path into an executable.
16077 hardcode_action=$hardcode_action_F77
16079 # Whether we should hardcode library paths into libraries.
16080 hardcode_into_libs=$hardcode_into_libs
16082 # Flag to hardcode \$libdir into a binary during linking.
16083 # This must work even if \$libdir does not exist.
16084 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16086 # If ld is used when linking, flag to hardcode \$libdir into
16087 # a binary during linking. This must work even if \$libdir does
16089 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16091 # Whether we need a single -rpath flag with a separated argument.
16092 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16094 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16095 # resulting binary.
16096 hardcode_direct=$hardcode_direct_F77
16098 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16099 # resulting binary.
16100 hardcode_minus_L=$hardcode_minus_L_F77
16102 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16103 # the resulting binary.
16104 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16106 # Set to yes if building a shared library automatically hardcodes DIR into the library
16107 # and all subsequent libraries and executables linked against it.
16108 hardcode_automatic=$hardcode_automatic_F77
16110 # Variables whose values should be saved in libtool wrapper scripts and
16111 # restored at relink time.
16112 variables_saved_for_relink="$variables_saved_for_relink"
16114 # Whether libtool must link a program against all its dependency libraries.
16115 link_all_deplibs=$link_all_deplibs_F77
16117 # Compile-time system search path for libraries
16118 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16120 # Run-time system search path for libraries
16121 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16123 # Fix the shell variable \$srcfile for the compiler.
16124 fix_srcfile_path="$fix_srcfile_path_F77"
16126 # Set to yes if exported symbols are required.
16127 always_export_symbols=$always_export_symbols_F77
16129 # The commands to list exported symbols.
16130 export_symbols_cmds=$lt_export_symbols_cmds_F77
16132 # The commands to extract the exported symbol list from a shared archive.
16133 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16135 # Symbols that should not be listed in the preloaded symbols.
16136 exclude_expsyms=$lt_exclude_expsyms_F77
16138 # Symbols that must always be exported.
16139 include_expsyms=$lt_include_expsyms_F77
16141 # ### END LIBTOOL TAG CONFIG: $tagname
16147 # If there is no Makefile yet, we rely on a make rule to execute
16148 # `config.status --recheck' to rerun these tests and create the
16149 # libtool script then.
16150 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16151 if test -f "$ltmain_in"; then
16152 test -f Makefile && make "$ltmain"
16158 ac_cpp='$CPP $CPPFLAGS'
16159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16171 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16174 # Source file extension for Java test sources.
16177 # Object file extension for compiled Java test sources.
16181 # Code to be used in simple compile tests
16182 lt_simple_compile_test_code="class foo {}\n"
16184 # Code to be used in simple link tests
16185 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16187 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16189 # If no C compiler was specified, use CC.
16192 # If no C compiler flags were specified, use CFLAGS.
16193 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16195 # Allow CC to be a program name with arguments.
16199 # save warnings/boilerplate of simple test code
16200 ac_outfile=conftest.$ac_objext
16201 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16202 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16203 _lt_compiler_boilerplate=`cat conftest.err`
16206 ac_outfile=conftest.$ac_objext
16207 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16208 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16209 _lt_linker_boilerplate=`cat conftest.err`
16213 # Allow CC to be a program name with arguments.
16218 for cc_temp in $compiler""; do
16220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16226 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16229 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16230 archive_cmds_need_lc_GCJ=no
16232 old_archive_cmds_GCJ=$old_archive_cmds
16235 lt_prog_compiler_no_builtin_flag_GCJ=
16237 if test "$GCC" = yes; then
16238 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16241 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16242 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16243 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16244 echo $ECHO_N "(cached) $ECHO_C" >&6
16246 lt_cv_prog_compiler_rtti_exceptions=no
16247 ac_outfile=conftest.$ac_objext
16248 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16249 lt_compiler_flag="-fno-rtti -fno-exceptions"
16250 # Insert the option either (1) after the last *FLAGS variable, or
16251 # (2) before a word containing "conftest.", or (3) at the end.
16252 # Note that $ac_compile itself does not contain backslashes and begins
16253 # with a dollar sign (not a hyphen), so the echo should work correctly.
16254 # The option is referenced via a variable to avoid confusing sed.
16255 lt_compile=`echo "$ac_compile" | $SED \
16256 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16257 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16258 -e 's:$: $lt_compiler_flag:'`
16259 (eval echo "\"\$as_me:16259: $lt_compile\"" >&5)
16260 (eval "$lt_compile" 2>conftest.err)
16262 cat conftest.err >&5
16263 echo "$as_me:16263: \$? = $ac_status" >&5
16264 if (exit $ac_status) && test -s "$ac_outfile"; then
16265 # The compiler can only warn and ignore the option if not recognized
16266 # So say no if there are warnings other than the usual output.
16267 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16268 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16269 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16270 lt_cv_prog_compiler_rtti_exceptions=yes
16276 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16277 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16279 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16280 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16287 lt_prog_compiler_wl_GCJ=
16288 lt_prog_compiler_pic_GCJ=
16289 lt_prog_compiler_static_GCJ=
16291 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16292 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16294 if test "$GCC" = yes; then
16295 lt_prog_compiler_wl_GCJ='-Wl,'
16296 lt_prog_compiler_static_GCJ='-static'
16300 # All AIX code is PIC.
16301 if test "$host_cpu" = ia64; then
16302 # AIX 5 now supports IA64 processor
16303 lt_prog_compiler_static_GCJ='-Bstatic'
16308 # FIXME: we need at least 68020 code to build shared libraries, but
16309 # adding the `-m68020' flag to GCC prevents building anything better,
16311 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16314 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16315 # PIC is the default for these OSes.
16318 mingw* | pw32* | os2*)
16319 # This hack is so that the source file can tell whether it is being
16320 # built for inclusion in a dll (and should export symbols for example).
16321 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16324 darwin* | rhapsody*)
16325 # PIC is the default on this platform
16326 # Common symbols not allowed in MH_DYLIB files
16327 lt_prog_compiler_pic_GCJ='-fno-common'
16331 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16332 # Instead, we relocate shared libraries at runtime.
16336 # Just because we use GCC doesn't mean we suddenly get shared libraries
16337 # on systems that don't support them.
16338 lt_prog_compiler_can_build_shared_GCJ=no
16343 if test -d /usr/nec; then
16344 lt_prog_compiler_pic_GCJ=-Kconform_pic
16349 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16350 # not for PA HP-UX.
16356 lt_prog_compiler_pic_GCJ='-fPIC'
16362 lt_prog_compiler_pic_GCJ='-fPIC'
16366 # PORTME Check for flag to pass linker flags through the system compiler.
16369 lt_prog_compiler_wl_GCJ='-Wl,'
16370 if test "$host_cpu" = ia64; then
16371 # AIX 5 now supports IA64 processor
16372 lt_prog_compiler_static_GCJ='-Bstatic'
16374 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16378 # PIC is the default on this platform
16379 # Common symbols not allowed in MH_DYLIB files
16380 case $cc_basename in
16382 lt_prog_compiler_pic_GCJ='-qnocommon'
16383 lt_prog_compiler_wl_GCJ='-Wl,'
16388 mingw* | pw32* | os2*)
16389 # This hack is so that the source file can tell whether it is being
16390 # built for inclusion in a dll (and should export symbols for example).
16391 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16394 hpux9* | hpux10* | hpux11*)
16395 lt_prog_compiler_wl_GCJ='-Wl,'
16396 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16397 # not for PA HP-UX.
16403 lt_prog_compiler_pic_GCJ='+Z'
16406 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16407 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16410 irix5* | irix6* | nonstopux*)
16411 lt_prog_compiler_wl_GCJ='-Wl,'
16412 # PIC (with -KPIC) is the default.
16413 lt_prog_compiler_static_GCJ='-non_shared'
16417 lt_prog_compiler_pic_GCJ='-KPIC'
16418 lt_prog_compiler_static_GCJ='-Bstatic'
16421 linux* | k*bsd*-gnu)
16422 case $cc_basename in
16424 lt_prog_compiler_wl_GCJ='-Wl,'
16425 lt_prog_compiler_pic_GCJ='-KPIC'
16426 lt_prog_compiler_static_GCJ='-static'
16428 pgcc* | pgf77* | pgf90* | pgf95*)
16429 # Portland Group compilers (*not* the Pentium gcc compiler,
16430 # which looks to be a dead project)
16431 lt_prog_compiler_wl_GCJ='-Wl,'
16432 lt_prog_compiler_pic_GCJ='-fpic'
16433 lt_prog_compiler_static_GCJ='-Bstatic'
16436 lt_prog_compiler_wl_GCJ='-Wl,'
16437 # All Alpha code is PIC.
16438 lt_prog_compiler_static_GCJ='-non_shared'
16443 osf3* | osf4* | osf5*)
16444 lt_prog_compiler_wl_GCJ='-Wl,'
16445 # All OSF/1 code is PIC.
16446 lt_prog_compiler_static_GCJ='-non_shared'
16450 lt_prog_compiler_pic_GCJ='-KPIC'
16451 lt_prog_compiler_static_GCJ='-Bstatic'
16452 case $cc_basename in
16453 f77* | f90* | f95*)
16454 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16456 lt_prog_compiler_wl_GCJ='-Wl,';;
16461 lt_prog_compiler_wl_GCJ='-Qoption ld '
16462 lt_prog_compiler_pic_GCJ='-PIC'
16463 lt_prog_compiler_static_GCJ='-Bstatic'
16466 sysv4 | sysv4.2uw2* | sysv4.3*)
16467 lt_prog_compiler_wl_GCJ='-Wl,'
16468 lt_prog_compiler_pic_GCJ='-KPIC'
16469 lt_prog_compiler_static_GCJ='-Bstatic'
16473 if test -d /usr/nec ;then
16474 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16475 lt_prog_compiler_static_GCJ='-Bstatic'
16479 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16480 lt_prog_compiler_wl_GCJ='-Wl,'
16481 lt_prog_compiler_pic_GCJ='-KPIC'
16482 lt_prog_compiler_static_GCJ='-Bstatic'
16486 lt_prog_compiler_wl_GCJ='-Wl,'
16487 lt_prog_compiler_can_build_shared_GCJ=no
16491 lt_prog_compiler_pic_GCJ='-pic'
16492 lt_prog_compiler_static_GCJ='-Bstatic'
16496 lt_prog_compiler_can_build_shared_GCJ=no
16501 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16502 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16505 # Check to make sure the PIC flag actually works.
16507 if test -n "$lt_prog_compiler_pic_GCJ"; then
16509 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16510 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16511 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16512 echo $ECHO_N "(cached) $ECHO_C" >&6
16514 lt_prog_compiler_pic_works_GCJ=no
16515 ac_outfile=conftest.$ac_objext
16516 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16517 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16518 # Insert the option either (1) after the last *FLAGS variable, or
16519 # (2) before a word containing "conftest.", or (3) at the end.
16520 # Note that $ac_compile itself does not contain backslashes and begins
16521 # with a dollar sign (not a hyphen), so the echo should work correctly.
16522 # The option is referenced via a variable to avoid confusing sed.
16523 lt_compile=`echo "$ac_compile" | $SED \
16524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16526 -e 's:$: $lt_compiler_flag:'`
16527 (eval echo "\"\$as_me:16527: $lt_compile\"" >&5)
16528 (eval "$lt_compile" 2>conftest.err)
16530 cat conftest.err >&5
16531 echo "$as_me:16531: \$? = $ac_status" >&5
16532 if (exit $ac_status) && test -s "$ac_outfile"; then
16533 # The compiler can only warn and ignore the option if not recognized
16534 # So say no if there are warnings other than the usual output.
16535 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16536 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16537 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16538 lt_prog_compiler_pic_works_GCJ=yes
16544 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16545 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16547 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16548 case $lt_prog_compiler_pic_GCJ in
16550 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16553 lt_prog_compiler_pic_GCJ=
16554 lt_prog_compiler_can_build_shared_GCJ=no
16559 # For platforms which do not support PIC, -DPIC is meaningless:
16561 lt_prog_compiler_pic_GCJ=
16564 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16569 # Check to make sure the static flag actually works.
16571 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16572 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16573 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16574 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16575 echo $ECHO_N "(cached) $ECHO_C" >&6
16577 lt_prog_compiler_static_works_GCJ=no
16578 save_LDFLAGS="$LDFLAGS"
16579 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16580 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16581 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16582 # The linker can only warn and ignore the option if not recognized
16583 # So say no if there are warnings
16584 if test -s conftest.err; then
16585 # Append any errors to the config.log.
16586 cat conftest.err 1>&5
16587 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16589 if diff conftest.exp conftest.er2 >/dev/null; then
16590 lt_prog_compiler_static_works_GCJ=yes
16593 lt_prog_compiler_static_works_GCJ=yes
16597 LDFLAGS="$save_LDFLAGS"
16600 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16601 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16603 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16606 lt_prog_compiler_static_GCJ=
16610 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16611 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16612 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16615 lt_cv_prog_compiler_c_o_GCJ=no
16616 $rm -r conftest 2>/dev/null
16620 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16622 lt_compiler_flag="-o out/conftest2.$ac_objext"
16623 # Insert the option either (1) after the last *FLAGS variable, or
16624 # (2) before a word containing "conftest.", or (3) at the end.
16625 # Note that $ac_compile itself does not contain backslashes and begins
16626 # with a dollar sign (not a hyphen), so the echo should work correctly.
16627 lt_compile=`echo "$ac_compile" | $SED \
16628 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16630 -e 's:$: $lt_compiler_flag:'`
16631 (eval echo "\"\$as_me:16631: $lt_compile\"" >&5)
16632 (eval "$lt_compile" 2>out/conftest.err)
16634 cat out/conftest.err >&5
16635 echo "$as_me:16635: \$? = $ac_status" >&5
16636 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16638 # The compiler can only warn and ignore the option if not recognized
16639 # So say no if there are warnings
16640 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16641 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16642 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16643 lt_cv_prog_compiler_c_o_GCJ=yes
16648 # SGI C++ compiler will create directory out/ii_files/ for
16649 # template instantiation
16650 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16651 $rm out/* && rmdir out
16657 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16658 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16661 hard_links="nottested"
16662 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16663 # do not overwrite the value of need_locks provided by the user
16664 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16665 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16668 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16670 ln conftest.a conftest.b 2>&5 || hard_links=no
16671 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16672 { echo "$as_me:$LINENO: result: $hard_links" >&5
16673 echo "${ECHO_T}$hard_links" >&6; }
16674 if test "$hard_links" = no; then
16675 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16676 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16683 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16684 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16687 allow_undefined_flag_GCJ=
16688 enable_shared_with_static_runtimes_GCJ=no
16690 archive_expsym_cmds_GCJ=
16691 old_archive_From_new_cmds_GCJ=
16692 old_archive_from_expsyms_cmds_GCJ=
16693 export_dynamic_flag_spec_GCJ=
16694 whole_archive_flag_spec_GCJ=
16695 thread_safe_flag_spec_GCJ=
16696 hardcode_libdir_flag_spec_GCJ=
16697 hardcode_libdir_flag_spec_ld_GCJ=
16698 hardcode_libdir_separator_GCJ=
16699 hardcode_direct_GCJ=no
16700 hardcode_minus_L_GCJ=no
16701 hardcode_shlibpath_var_GCJ=unsupported
16702 link_all_deplibs_GCJ=unknown
16703 hardcode_automatic_GCJ=no
16705 module_expsym_cmds_GCJ=
16706 always_export_symbols_GCJ=no
16707 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16708 # include_expsyms should be a list of space-separated symbols to be *always*
16709 # included in the symbol list
16710 include_expsyms_GCJ=
16711 # exclude_expsyms can be an extended regexp of symbols to exclude
16712 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16713 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16714 # as well as any symbol that contains `d'.
16715 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16716 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16717 # platforms (ab)use it in PIC code, but their linkers get confused if
16718 # the symbol is explicitly referenced. Since portable code cannot
16719 # rely on this symbol name, it's probably fine to never include it in
16720 # preloaded symbol tables.
16721 extract_expsyms_cmds=
16722 # Just being paranoid about ensuring that cc_basename is set.
16723 for cc_temp in $compiler""; do
16725 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16726 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16731 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16734 cygwin* | mingw* | pw32*)
16735 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16736 # When not using gcc, we currently assume that we are using
16737 # Microsoft Visual C++.
16738 if test "$GCC" != yes; then
16743 # we just hope/assume this is gcc and not c89 (= MSVC++)
16752 if test "$with_gnu_ld" = yes; then
16753 # If archive_cmds runs LD, not CC, wlarc should be empty
16756 # Set some defaults for GNU ld with shared library support. These
16757 # are reset later if shared libraries are not supported. Putting them
16758 # here allows them to be overridden if necessary.
16759 runpath_var=LD_RUN_PATH
16760 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16761 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16762 # ancient GNU ld didn't support --whole-archive et. al.
16763 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16764 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16766 whole_archive_flag_spec_GCJ=
16768 supports_anon_versioning=no
16769 case `$LD -v 2>/dev/null` in
16770 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16771 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16772 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16773 *\ 2.11.*) ;; # other 2.11 versions
16774 *) supports_anon_versioning=yes ;;
16777 # See if GNU ld supports shared libraries.
16779 aix3* | aix4* | aix5*)
16780 # On AIX/PPC, the GNU linker is very broken
16781 if test "$host_cpu" != ia64; then
16785 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16786 *** to be unable to reliably create shared libraries on AIX.
16787 *** Therefore, libtool is disabling shared libraries support. If you
16788 *** really care for shared libraries, you may want to modify your PATH
16789 *** so that a non-GNU linker is found, and then restart.
16796 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)'
16797 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16798 hardcode_minus_L_GCJ=yes
16800 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16801 # that the semantics of dynamic libraries on AmigaOS, at least up
16802 # to version 4, is to share data among multiple programs linked
16803 # with the same dynamic library. Since this doesn't match the
16804 # behavior of shared libraries on other platforms, we can't use
16810 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16811 allow_undefined_flag_GCJ=unsupported
16812 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16813 # support --undefined. This deserves some investigation. FIXME
16814 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16820 cygwin* | mingw* | pw32*)
16821 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16822 # as there is no search path for DLLs.
16823 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16824 allow_undefined_flag_GCJ=unsupported
16825 always_export_symbols_GCJ=no
16826 enable_shared_with_static_runtimes_GCJ=yes
16827 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16829 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16830 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16831 # If the export-symbols file already is a .def file (1st line
16832 # is EXPORTS), use it as is; otherwise, prepend...
16833 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16834 cp $export_symbols $output_objdir/$soname.def;
16836 echo EXPORTS > $output_objdir/$soname.def;
16837 cat $export_symbols >> $output_objdir/$soname.def;
16839 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16846 hardcode_direct_GCJ=no
16847 hardcode_shlibpath_var_GCJ=no
16848 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16849 export_dynamic_flag_spec_GCJ='${wl}-E'
16850 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16851 # Instead, shared libraries are loaded at an image base (0x10000000 by
16852 # default) and relocated if they conflict, which is a slow very memory
16853 # consuming and fragmenting process. To avoid this, we pick a random,
16854 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16855 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16856 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'
16857 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'
16860 linux* | k*bsd*-gnu)
16861 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16863 case $cc_basename,$host_cpu in
16864 pgcc*) # Portland Group C compiler
16865 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'
16866 tmp_addflag=' $pic_flag'
16868 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16869 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'
16870 tmp_addflag=' $pic_flag -Mnomain' ;;
16871 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16872 tmp_addflag=' -i_dynamic' ;;
16873 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16874 tmp_addflag=' -i_dynamic -nofor_main' ;;
16875 ifc* | ifort*) # Intel Fortran compiler
16876 tmp_addflag=' -nofor_main' ;;
16878 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16880 if test $supports_anon_versioning = yes; then
16881 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16882 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16883 $echo "local: *; };" >> $output_objdir/$libname.ver~
16884 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16886 link_all_deplibs_GCJ=no
16892 netbsd* | netbsdelf*-gnu)
16893 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16894 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16897 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16898 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16903 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16907 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16908 *** create shared libraries on Solaris systems. Therefore, libtool
16909 *** is disabling shared libraries support. We urge you to upgrade GNU
16910 *** binutils to release 2.9.1 or newer. Another option is to modify
16911 *** your PATH or compiler configuration so that the native linker is
16912 *** used, and then restart.
16915 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16916 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16917 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16923 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16924 case `$LD -v 2>&1` in
16925 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16929 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16930 *** reliably create shared libraries on SCO systems. Therefore, libtool
16931 *** is disabling shared libraries support. We urge you to upgrade GNU
16932 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16933 *** your PATH or compiler configuration so that the native linker is
16934 *** used, and then restart.
16939 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16940 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16941 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16942 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16951 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16953 hardcode_direct_GCJ=yes
16954 hardcode_shlibpath_var_GCJ=no
16958 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16959 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16960 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16967 if test "$ld_shlibs_GCJ" = no; then
16969 hardcode_libdir_flag_spec_GCJ=
16970 export_dynamic_flag_spec_GCJ=
16971 whole_archive_flag_spec_GCJ=
16974 # PORTME fill in a description of your system's linker (not GNU ld)
16977 allow_undefined_flag_GCJ=unsupported
16978 always_export_symbols_GCJ=yes
16979 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'
16980 # Note: this linker hardcodes the directories in LIBPATH if there
16981 # are no directories specified by -L.
16982 hardcode_minus_L_GCJ=yes
16983 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16984 # Neither direct hardcoding nor static linking is supported with a
16986 hardcode_direct_GCJ=unsupported
16991 if test "$host_cpu" = ia64; then
16992 # On IA64, the linker does run time linking by default, so we don't
16993 # have to do anything special.
16994 aix_use_runtimelinking=no
16995 exp_sym_flag='-Bexport'
16998 # If we're using GNU nm, then we don't want the "-C" option.
16999 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17000 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17001 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'
17003 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'
17005 aix_use_runtimelinking=no
17007 # Test if we are trying to use run time linking or normal
17008 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17009 # need to do runtime linking.
17010 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17011 for ld_flag in $LDFLAGS; do
17012 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17013 aix_use_runtimelinking=yes
17020 exp_sym_flag='-bexport'
17021 no_entry_flag='-bnoentry'
17024 # When large executables or shared objects are built, AIX ld can
17025 # have problems creating the table of contents. If linking a library
17026 # or program results in "error TOC overflow" add -mminimal-toc to
17027 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17028 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17030 archive_cmds_GCJ=''
17031 hardcode_direct_GCJ=yes
17032 hardcode_libdir_separator_GCJ=':'
17033 link_all_deplibs_GCJ=yes
17035 if test "$GCC" = yes; then
17036 case $host_os in aix4.[012]|aix4.[012].*)
17037 # We only want to do this on AIX 4.2 and lower, the check
17038 # below for broken collect2 doesn't work under 4.3+
17039 collect2name=`${CC} -print-prog-name=collect2`
17040 if test -f "$collect2name" && \
17041 strings "$collect2name" | grep resolve_lib_name >/dev/null
17043 # We have reworked collect2
17044 hardcode_direct_GCJ=yes
17046 # We have old collect2
17047 hardcode_direct_GCJ=unsupported
17048 # It fails to find uninstalled libraries when the uninstalled
17049 # path is not listed in the libpath. Setting hardcode_minus_L
17050 # to unsupported forces relinking
17051 hardcode_minus_L_GCJ=yes
17052 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17053 hardcode_libdir_separator_GCJ=
17057 shared_flag='-shared'
17058 if test "$aix_use_runtimelinking" = yes; then
17059 shared_flag="$shared_flag "'${wl}-G'
17063 if test "$host_cpu" = ia64; then
17064 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17065 # chokes on -Wl,-G. The following line is correct:
17068 if test "$aix_use_runtimelinking" = yes; then
17069 shared_flag='${wl}-G'
17071 shared_flag='${wl}-bM:SRE'
17076 # It seems that -bexpall does not export symbols beginning with
17077 # underscore (_), so it is better to generate a list of symbols to export.
17078 always_export_symbols_GCJ=yes
17079 if test "$aix_use_runtimelinking" = yes; then
17080 # Warning - without using the other runtime loading flags (-brtl),
17081 # -berok will link without error, but may produce a broken library.
17082 allow_undefined_flag_GCJ='-berok'
17083 # Determine the default libpath from the value encoded in an empty executable.
17084 cat >conftest.$ac_ext <<_ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17099 rm -f conftest.$ac_objext conftest$ac_exeext
17100 if { (ac_try="$ac_link"
17101 case "(($ac_try" in
17102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17103 *) ac_try_echo=$ac_try;;
17105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17106 (eval "$ac_link") 2>conftest.er1
17108 grep -v '^ *+' conftest.er1 >conftest.err
17110 cat conftest.err >&5
17111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); } && {
17113 test -z "$ac_c_werror_flag" ||
17114 test ! -s conftest.err
17115 } && test -s conftest$ac_exeext &&
17116 $as_test_x conftest$ac_exeext; then
17118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17120 # Check for a 64-bit object if we didn't find anything.
17121 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; }
17124 echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17131 conftest$ac_exeext conftest.$ac_ext
17132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17134 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17135 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"
17137 if test "$host_cpu" = ia64; then
17138 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17139 allow_undefined_flag_GCJ="-z nodefs"
17140 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"
17142 # Determine the default libpath from the value encoded in an empty executable.
17143 cat >conftest.$ac_ext <<_ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h. */
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17167 grep -v '^ *+' conftest.er1 >conftest.err
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } && {
17172 test -z "$ac_c_werror_flag" ||
17173 test ! -s conftest.err
17174 } && test -s conftest$ac_exeext &&
17175 $as_test_x conftest$ac_exeext; then
17177 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17179 # Check for a 64-bit object if we didn't find anything.
17180 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; }
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17190 conftest$ac_exeext conftest.$ac_ext
17191 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17193 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17194 # Warning - without using the other run time loading flags,
17195 # -berok will link without error, but may produce a broken library.
17196 no_undefined_flag_GCJ=' ${wl}-bernotok'
17197 allow_undefined_flag_GCJ=' ${wl}-berok'
17198 # Exported symbols can be pulled into shared objects from archives
17199 whole_archive_flag_spec_GCJ='$convenience'
17200 archive_cmds_need_lc_GCJ=yes
17201 # This is similar to how AIX traditionally builds its shared libraries.
17202 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'
17208 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)'
17209 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17210 hardcode_minus_L_GCJ=yes
17211 # see comment about different semantics on the GNU ld section
17216 export_dynamic_flag_spec_GCJ=-rdynamic
17219 cygwin* | mingw* | pw32*)
17220 # When not using gcc, we currently assume that we are using
17221 # Microsoft Visual C++.
17222 # hardcode_libdir_flag_spec is actually meaningless, as there is
17223 # no search path for DLLs.
17224 hardcode_libdir_flag_spec_GCJ=' '
17225 allow_undefined_flag_GCJ=unsupported
17226 # Tell ltmain to make .lib files, not .a files.
17228 # Tell ltmain to make .dll files, not .so files.
17230 # FIXME: Setting linknames here is a bad hack.
17231 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17232 # The linker will automatically build a .lib file if we build a DLL.
17233 old_archive_From_new_cmds_GCJ='true'
17234 # FIXME: Should let the user specify the lib program.
17235 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17236 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17237 enable_shared_with_static_runtimes_GCJ=yes
17240 darwin* | rhapsody*)
17242 rhapsody* | darwin1.[012])
17243 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17246 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17247 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17249 case ${MACOSX_DEPLOYMENT_TARGET} in
17251 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17254 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17260 archive_cmds_need_lc_GCJ=no
17261 hardcode_direct_GCJ=no
17262 hardcode_automatic_GCJ=yes
17263 hardcode_shlibpath_var_GCJ=unsupported
17264 whole_archive_flag_spec_GCJ=''
17265 link_all_deplibs_GCJ=yes
17266 if test "$GCC" = yes ; then
17267 output_verbose_link_cmd='echo'
17268 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17269 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17270 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17271 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}'
17272 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}'
17274 case $cc_basename in
17276 output_verbose_link_cmd='echo'
17277 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17278 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17279 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17280 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}'
17281 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}'
17291 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17292 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17293 hardcode_shlibpath_var_GCJ=no
17300 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17301 # support. Future versions do this automatically, but an explicit c++rt0.o
17302 # does not break anything, and helps significantly (at the cost of a little
17305 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17306 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17307 hardcode_direct_GCJ=yes
17308 hardcode_shlibpath_var_GCJ=no
17311 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17313 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17314 hardcode_direct_GCJ=yes
17315 hardcode_minus_L_GCJ=yes
17316 hardcode_shlibpath_var_GCJ=no
17319 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17320 freebsd* | dragonfly*)
17321 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17322 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17323 hardcode_direct_GCJ=yes
17324 hardcode_shlibpath_var_GCJ=no
17328 if test "$GCC" = yes; then
17329 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'
17331 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'
17333 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17334 hardcode_libdir_separator_GCJ=:
17335 hardcode_direct_GCJ=yes
17337 # hardcode_minus_L: Not really in the search PATH,
17338 # but as the default location of the library.
17339 hardcode_minus_L_GCJ=yes
17340 export_dynamic_flag_spec_GCJ='${wl}-E'
17344 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17345 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17347 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17349 if test "$with_gnu_ld" = no; then
17350 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17351 hardcode_libdir_separator_GCJ=:
17353 hardcode_direct_GCJ=yes
17354 export_dynamic_flag_spec_GCJ='${wl}-E'
17356 # hardcode_minus_L: Not really in the search PATH,
17357 # but as the default location of the library.
17358 hardcode_minus_L_GCJ=yes
17363 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17366 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17369 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17372 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17378 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17381 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17384 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17388 if test "$with_gnu_ld" = no; then
17389 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17390 hardcode_libdir_separator_GCJ=:
17394 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17395 hardcode_direct_GCJ=no
17396 hardcode_shlibpath_var_GCJ=no
17399 hardcode_direct_GCJ=yes
17400 export_dynamic_flag_spec_GCJ='${wl}-E'
17402 # hardcode_minus_L: Not really in the search PATH,
17403 # but as the default location of the library.
17404 hardcode_minus_L_GCJ=yes
17410 irix5* | irix6* | nonstopux*)
17411 if test "$GCC" = yes; then
17412 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'
17414 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'
17415 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17417 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17418 hardcode_libdir_separator_GCJ=:
17419 link_all_deplibs_GCJ=yes
17422 netbsd* | netbsdelf*-gnu)
17423 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17424 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17426 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17428 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17429 hardcode_direct_GCJ=yes
17430 hardcode_shlibpath_var_GCJ=no
17434 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17435 hardcode_direct_GCJ=yes
17436 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17437 hardcode_libdir_separator_GCJ=:
17438 hardcode_shlibpath_var_GCJ=no
17442 hardcode_direct_GCJ=yes
17443 hardcode_shlibpath_var_GCJ=no
17444 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17445 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17446 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17447 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17448 export_dynamic_flag_spec_GCJ='${wl}-E'
17451 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17452 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17453 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17456 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17457 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17464 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17465 hardcode_minus_L_GCJ=yes
17466 allow_undefined_flag_GCJ=unsupported
17467 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'
17468 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17472 if test "$GCC" = yes; then
17473 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17474 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'
17476 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17477 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'
17479 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17480 hardcode_libdir_separator_GCJ=:
17483 osf4* | osf5*) # as osf3* with the addition of -msym flag
17484 if test "$GCC" = yes; then
17485 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17486 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'
17487 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17489 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17490 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'
17491 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~
17492 $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'
17494 # Both c and cxx compiler support -rpath directly
17495 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17497 hardcode_libdir_separator_GCJ=:
17501 no_undefined_flag_GCJ=' -z text'
17502 if test "$GCC" = yes; then
17504 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17505 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17506 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17509 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17510 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17511 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17513 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17514 hardcode_shlibpath_var_GCJ=no
17516 solaris2.[0-5] | solaris2.[0-5].*) ;;
17518 # The compiler driver will combine linker options so we
17519 # cannot just pass the convience library names through
17520 # without $wl, iff we do not link with $LD.
17521 # Luckily, gcc supports the same syntax we need for Sun Studio.
17522 # Supported since Solaris 2.6 (maybe 2.5.1?)
17525 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17527 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' ;;
17530 link_all_deplibs_GCJ=yes
17534 if test "x$host_vendor" = xsequent; then
17535 # Use $CC to link under sequent, because it throws in some extra .o
17536 # files that make .init and .fini sections work.
17537 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17539 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17541 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17542 hardcode_direct_GCJ=yes
17543 hardcode_minus_L_GCJ=yes
17544 hardcode_shlibpath_var_GCJ=no
17548 case $host_vendor in
17550 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17551 hardcode_direct_GCJ=yes # is this really true???
17554 ## LD is ld it makes a PLAMLIB
17555 ## CC just makes a GrossModule.
17556 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17557 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17558 hardcode_direct_GCJ=no
17561 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17562 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17565 runpath_var='LD_RUN_PATH'
17566 hardcode_shlibpath_var_GCJ=no
17570 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17571 hardcode_shlibpath_var_GCJ=no
17572 export_dynamic_flag_spec_GCJ='-Bexport'
17576 if test -d /usr/nec; then
17577 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17578 hardcode_shlibpath_var_GCJ=no
17579 runpath_var=LD_RUN_PATH
17580 hardcode_runpath_var=yes
17585 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17586 no_undefined_flag_GCJ='${wl}-z,text'
17587 archive_cmds_need_lc_GCJ=no
17588 hardcode_shlibpath_var_GCJ=no
17589 runpath_var='LD_RUN_PATH'
17591 if test "$GCC" = yes; then
17592 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17593 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17595 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17596 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17600 sysv5* | sco3.2v5* | sco5v6*)
17601 # Note: We can NOT use -z defs as we might desire, because we do not
17602 # link with -lc, and that would cause any symbols used from libc to
17603 # always be unresolved, which means just about no library would
17604 # ever link correctly. If we're not using GNU ld we use -z text
17605 # though, which does catch some bad symbols but isn't as heavy-handed
17607 no_undefined_flag_GCJ='${wl}-z,text'
17608 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17609 archive_cmds_need_lc_GCJ=no
17610 hardcode_shlibpath_var_GCJ=no
17611 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17612 hardcode_libdir_separator_GCJ=':'
17613 link_all_deplibs_GCJ=yes
17614 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17615 runpath_var='LD_RUN_PATH'
17617 if test "$GCC" = yes; then
17618 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17619 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17621 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17622 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17627 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17628 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17629 hardcode_shlibpath_var_GCJ=no
17638 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17639 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17640 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17643 # Do we need to explicitly link libc?
17645 case "x$archive_cmds_need_lc_GCJ" in
17647 # Assume -lc should be added
17648 archive_cmds_need_lc_GCJ=yes
17650 if test "$enable_shared" = yes && test "$GCC" = yes; then
17651 case $archive_cmds_GCJ in
17653 # FIXME: we may have to deal with multi-command sequences.
17656 # Test whether the compiler implicitly links with -lc since on some
17657 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17658 # to ld, don't add -lc before -lgcc.
17659 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17660 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17662 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17665 (eval $ac_compile) 2>&5
17667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17668 (exit $ac_status); } 2>conftest.err; then
17671 libobjs=conftest.$ac_objext
17673 wl=$lt_prog_compiler_wl_GCJ
17674 pic_flag=$lt_prog_compiler_pic_GCJ
17680 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17681 allow_undefined_flag_GCJ=
17682 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17683 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17686 (exit $ac_status); }
17688 archive_cmds_need_lc_GCJ=no
17690 archive_cmds_need_lc_GCJ=yes
17692 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17694 cat conftest.err 1>&5
17697 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17698 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17705 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17706 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17707 library_names_spec=
17708 libname_spec='lib$name'
17712 postuninstall_cmds=
17716 shlibpath_overrides_runpath=unknown
17718 dynamic_linker="$host_os ld.so"
17719 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17720 if test "$GCC" = yes; then
17721 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17722 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17723 # if the path contains ";" then we assume it to be the separator
17724 # otherwise default to the standard path separator (i.e. ":") - it is
17725 # assumed that no part of a normal pathname contains ";" but that should
17726 # okay in the real world where ";" in dirpaths is itself problematic.
17727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17729 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17732 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17734 need_lib_prefix=unknown
17735 hardcode_into_libs=no
17737 # when you set need_version to no, make sure it does not cause -set_version
17738 # flags to be left without arguments
17739 need_version=unknown
17744 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17745 shlibpath_var=LIBPATH
17747 # AIX 3 has no versioning support, so we append a major version to the name.
17748 soname_spec='${libname}${release}${shared_ext}$major'
17755 hardcode_into_libs=yes
17756 if test "$host_cpu" = ia64; then
17757 # AIX 5 supports IA64
17758 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17759 shlibpath_var=LD_LIBRARY_PATH
17761 # With GCC up to 2.95.x, collect2 would create an import file
17762 # for dependence libraries. The import file would start with
17763 # the line `#! .'. This would cause the generated library to
17764 # depend on `.', always an invalid library. This was fixed in
17765 # development snapshots of GCC prior to 3.0.
17767 aix4 | aix4.[01] | aix4.[01].*)
17768 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17770 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17773 can_build_shared=no
17777 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17778 # soname into executable. Probably we can add versioning support to
17779 # collect2, so additional links can be useful in future.
17780 if test "$aix_use_runtimelinking" = yes; then
17781 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17782 # instead of lib<name>.a to let people know that these are not
17783 # typical AIX shared libraries.
17784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17786 # We preserve .a as extension for shared libraries through AIX4.2
17787 # and later when we are not doing run time linking.
17788 library_names_spec='${libname}${release}.a $libname.a'
17789 soname_spec='${libname}${release}${shared_ext}$major'
17791 shlibpath_var=LIBPATH
17796 library_names_spec='$libname.ixlibrary $libname.a'
17797 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17798 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'
17802 library_names_spec='${libname}${shared_ext}'
17803 dynamic_linker="$host_os ld.so"
17804 shlibpath_var=LIBRARY_PATH
17810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17811 soname_spec='${libname}${release}${shared_ext}$major'
17812 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17813 shlibpath_var=LD_LIBRARY_PATH
17814 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17815 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17816 # the default ld.so.conf also contains /usr/contrib/lib and
17817 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17818 # libtool to hard-code these into programs
17821 cygwin* | mingw* | pw32*)
17822 version_type=windows
17827 case $GCC,$host_os in
17828 yes,cygwin* | yes,mingw* | yes,pw32*)
17829 library_names_spec='$libname.dll.a'
17830 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17831 postinstall_cmds='base_file=`basename \${file}`~
17832 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17833 dldir=$destdir/`dirname \$dlpath`~
17834 test -d \$dldir || mkdir -p \$dldir~
17835 $install_prog $dir/$dlname \$dldir/$dlname~
17836 chmod a+x \$dldir/$dlname'
17837 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17838 dlpath=$dir/\$dldll~
17840 shlibpath_overrides_runpath=yes
17844 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17845 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17846 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17849 # MinGW DLLs use traditional 'lib' prefix
17850 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17851 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17852 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17853 # It is most probably a Windows format PATH printed by
17854 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17855 # path with ; separators, and with drive letters. We can handle the
17856 # drive letters (cygwin fileutils understands them), so leave them,
17857 # especially as we might pass files found there to a mingw objdump,
17858 # which wouldn't understand a cygwinified path. Ahh.
17859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17861 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17865 # pw32 DLLs use 'pw' prefix rather than 'lib'
17866 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17872 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17875 dynamic_linker='Win32 ld.exe'
17876 # FIXME: first we should search . and the directory the executable is in
17880 darwin* | rhapsody*)
17881 dynamic_linker="$host_os dyld"
17882 version_type=darwin
17885 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17886 soname_spec='${libname}${release}${major}$shared_ext'
17887 shlibpath_overrides_runpath=yes
17888 shlibpath_var=DYLD_LIBRARY_PATH
17889 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17890 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17891 if test "$GCC" = yes; then
17892 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"`
17894 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17896 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17904 soname_spec='${libname}${release}${shared_ext}$major'
17905 shlibpath_var=LD_LIBRARY_PATH
17912 freebsd* | dragonfly*)
17913 # DragonFly does not have aout. When/if they implement a new
17914 # versioning mechanism, adjust this.
17915 if test -x /usr/bin/objformat; then
17916 objformat=`/usr/bin/objformat`
17919 freebsd[123]*) objformat=aout ;;
17920 *) objformat=elf ;;
17923 version_type=freebsd-$objformat
17924 case $version_type in
17926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17931 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17935 shlibpath_var=LD_LIBRARY_PATH
17938 shlibpath_overrides_runpath=yes
17940 freebsd3.[01]* | freebsdelf3.[01]*)
17941 shlibpath_overrides_runpath=yes
17942 hardcode_into_libs=yes
17944 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17945 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17946 shlibpath_overrides_runpath=no
17947 hardcode_into_libs=yes
17949 freebsd*) # from 4.6 on
17950 shlibpath_overrides_runpath=yes
17951 hardcode_into_libs=yes
17960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17961 soname_spec='${libname}${release}${shared_ext}$major'
17962 shlibpath_var=LD_LIBRARY_PATH
17963 hardcode_into_libs=yes
17966 hpux9* | hpux10* | hpux11*)
17967 # Give a soname corresponding to the major version so that dld.sl refuses to
17968 # link against other versions.
17975 hardcode_into_libs=yes
17976 dynamic_linker="$host_os dld.so"
17977 shlibpath_var=LD_LIBRARY_PATH
17978 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17980 soname_spec='${libname}${release}${shared_ext}$major'
17981 if test "X$HPUX_IA64_MODE" = X32; then
17982 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17984 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17986 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17990 hardcode_into_libs=yes
17991 dynamic_linker="$host_os dld.sl"
17992 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17993 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17995 soname_spec='${libname}${release}${shared_ext}$major'
17996 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18001 dynamic_linker="$host_os dld.sl"
18002 shlibpath_var=SHLIB_PATH
18003 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18005 soname_spec='${libname}${release}${shared_ext}$major'
18008 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18009 postinstall_cmds='chmod 555 $lib'
18016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18017 soname_spec='${libname}${release}${shared_ext}$major'
18018 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18019 shlibpath_var=LD_LIBRARY_PATH
18020 shlibpath_overrides_runpath=no
18021 hardcode_into_libs=yes
18024 irix5* | irix6* | nonstopux*)
18026 nonstopux*) version_type=nonstopux ;;
18028 if test "$lt_cv_prog_gnu_ld" = yes; then
18036 soname_spec='${libname}${release}${shared_ext}$major'
18037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18039 irix5* | nonstopux*)
18040 libsuff= shlibsuff=
18043 case $LD in # libtool.m4 will add one of these switches to LD
18044 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18045 libsuff= shlibsuff= libmagic=32-bit;;
18046 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18047 libsuff=32 shlibsuff=N32 libmagic=N32;;
18048 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18049 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18050 *) libsuff= shlibsuff= libmagic=never-match;;
18054 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18055 shlibpath_overrides_runpath=no
18056 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18057 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18058 hardcode_into_libs=yes
18061 # No shared lib support for Linux oldld, aout, or coff.
18062 linux*oldld* | linux*aout* | linux*coff*)
18066 # This must be Linux ELF.
18067 linux* | k*bsd*-gnu)
18071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18072 soname_spec='${libname}${release}${shared_ext}$major'
18073 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18074 shlibpath_var=LD_LIBRARY_PATH
18075 shlibpath_overrides_runpath=no
18076 # This implies no fast_install, which is unacceptable.
18077 # Some rework will be needed to allow for fast_install
18078 # before this can be enabled.
18079 hardcode_into_libs=yes
18081 # Append ld.so.conf contents to the search path
18082 if test -f /etc/ld.so.conf; then
18083 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' ' '`
18084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18087 # We used to test for /lib/ld.so.1 and disable shared libraries on
18088 # powerpc, because MkLinux only supported shared libraries with the
18089 # GNU dynamic linker. Since this was broken with cross compilers,
18090 # most powerpc-linux boxes support dynamic linking these days and
18091 # people can always --disable-shared, the test was removed, and we
18092 # assume the GNU/Linux dynamic linker is in use.
18093 dynamic_linker='GNU/Linux ld.so'
18100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18101 soname_spec='${libname}${release}${shared_ext}$major'
18102 shlibpath_var=LD_LIBRARY_PATH
18103 shlibpath_overrides_runpath=no
18104 hardcode_into_libs=yes
18105 dynamic_linker='NetBSD ld.elf_so'
18112 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18114 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18115 dynamic_linker='NetBSD (a.out) ld.so'
18117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18118 soname_spec='${libname}${release}${shared_ext}$major'
18119 dynamic_linker='NetBSD ld.elf_so'
18121 shlibpath_var=LD_LIBRARY_PATH
18122 shlibpath_overrides_runpath=yes
18123 hardcode_into_libs=yes
18128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18129 shlibpath_var=LD_LIBRARY_PATH
18130 shlibpath_overrides_runpath=yes
18137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18138 soname_spec='${libname}${release}${shared_ext}$major'
18139 shlibpath_var=LD_LIBRARY_PATH
18140 shlibpath_overrides_runpath=yes
18145 sys_lib_dlsearch_path_spec="/usr/lib"
18147 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18149 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18150 *) need_version=no ;;
18152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18153 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18154 shlibpath_var=LD_LIBRARY_PATH
18155 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18157 openbsd2.[89] | openbsd2.[89].*)
18158 shlibpath_overrides_runpath=no
18161 shlibpath_overrides_runpath=yes
18165 shlibpath_overrides_runpath=yes
18170 libname_spec='$name'
18173 library_names_spec='$libname${shared_ext} $libname.a'
18174 dynamic_linker='OS/2 ld.exe'
18175 shlibpath_var=LIBPATH
18178 osf3* | osf4* | osf5*)
18182 soname_spec='${libname}${release}${shared_ext}$major'
18183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18184 shlibpath_var=LD_LIBRARY_PATH
18185 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18186 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18194 soname_spec='${libname}${release}${shared_ext}$major'
18195 shlibpath_var=LD_LIBRARY_PATH
18196 shlibpath_overrides_runpath=yes
18197 hardcode_into_libs=yes
18198 # ldd complains unless libraries are executable
18199 postinstall_cmds='chmod +x $lib'
18204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18205 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18206 shlibpath_var=LD_LIBRARY_PATH
18207 shlibpath_overrides_runpath=yes
18208 if test "$with_gnu_ld" = yes; then
18216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18217 soname_spec='${libname}${release}${shared_ext}$major'
18218 shlibpath_var=LD_LIBRARY_PATH
18219 case $host_vendor in
18221 shlibpath_overrides_runpath=no
18223 export_dynamic_flag_spec='${wl}-Blargedynsym'
18224 runpath_var=LD_RUN_PATH
18232 shlibpath_overrides_runpath=no
18233 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18239 if test -d /usr/nec ;then
18241 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18242 soname_spec='$libname${shared_ext}.$major'
18243 shlibpath_var=LD_LIBRARY_PATH
18247 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18248 version_type=freebsd-elf
18251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18252 soname_spec='${libname}${release}${shared_ext}$major'
18253 shlibpath_var=LD_LIBRARY_PATH
18254 hardcode_into_libs=yes
18255 if test "$with_gnu_ld" = yes; then
18256 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18257 shlibpath_overrides_runpath=no
18259 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18260 shlibpath_overrides_runpath=yes
18263 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18267 sys_lib_dlsearch_path_spec='/usr/lib'
18272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18273 soname_spec='${libname}${release}${shared_ext}$major'
18274 shlibpath_var=LD_LIBRARY_PATH
18281 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18282 echo "${ECHO_T}$dynamic_linker" >&6; }
18283 test "$dynamic_linker" = no && can_build_shared=no
18285 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18286 if test "$GCC" = yes; then
18287 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18290 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18291 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18292 hardcode_action_GCJ=
18293 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18294 test -n "$runpath_var_GCJ" || \
18295 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18297 # We can hardcode non-existant directories.
18298 if test "$hardcode_direct_GCJ" != no &&
18299 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18300 # have to relink, otherwise we might link with an installed library
18301 # when we should be linking with a yet-to-be-installed one
18302 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18303 test "$hardcode_minus_L_GCJ" != no; then
18304 # Linking always hardcodes the temporary library directory.
18305 hardcode_action_GCJ=relink
18307 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18308 hardcode_action_GCJ=immediate
18311 # We cannot hardcode anything, or else we can only hardcode existing
18313 hardcode_action_GCJ=unsupported
18315 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18316 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18318 if test "$hardcode_action_GCJ" = relink; then
18319 # Fast installation is not supported
18320 enable_fast_install=no
18321 elif test "$shlibpath_overrides_runpath" = yes ||
18322 test "$enable_shared" = no; then
18323 # Fast installation is not necessary
18324 enable_fast_install=needless
18328 # The else clause should only fire when bootstrapping the
18329 # libtool distribution, otherwise you forgot to ship ltmain.sh
18330 # with your package, and you will get complaints that there are
18331 # no rules to generate ltmain.sh.
18332 if test -f "$ltmain"; then
18333 # See if we are running on zsh, and set the options which allow our commands through
18334 # without removal of \ escapes.
18335 if test -n "${ZSH_VERSION+set}" ; then
18336 setopt NO_GLOB_SUBST
18338 # Now quote all the things that may contain metacharacters while being
18339 # careful not to overquote the AC_SUBSTed values. We take copies of the
18340 # variables and quote the copies for generation of the libtool script.
18341 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18343 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18344 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18345 deplibs_check_method reload_flag reload_cmds need_locks \
18346 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18347 lt_cv_sys_global_symbol_to_c_name_address \
18348 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18349 old_postinstall_cmds old_postuninstall_cmds \
18353 lt_prog_compiler_wl_GCJ \
18354 lt_prog_compiler_pic_GCJ \
18355 lt_prog_compiler_static_GCJ \
18356 lt_prog_compiler_no_builtin_flag_GCJ \
18357 export_dynamic_flag_spec_GCJ \
18358 thread_safe_flag_spec_GCJ \
18359 whole_archive_flag_spec_GCJ \
18360 enable_shared_with_static_runtimes_GCJ \
18361 old_archive_cmds_GCJ \
18362 old_archive_from_new_cmds_GCJ \
18363 predep_objects_GCJ \
18364 postdep_objects_GCJ \
18367 compiler_lib_search_path_GCJ \
18369 archive_expsym_cmds_GCJ \
18370 postinstall_cmds_GCJ \
18371 postuninstall_cmds_GCJ \
18372 old_archive_from_expsyms_cmds_GCJ \
18373 allow_undefined_flag_GCJ \
18374 no_undefined_flag_GCJ \
18375 export_symbols_cmds_GCJ \
18376 hardcode_libdir_flag_spec_GCJ \
18377 hardcode_libdir_flag_spec_ld_GCJ \
18378 hardcode_libdir_separator_GCJ \
18379 hardcode_automatic_GCJ \
18381 module_expsym_cmds_GCJ \
18382 lt_cv_prog_compiler_c_o_GCJ \
18383 exclude_expsyms_GCJ \
18384 include_expsyms_GCJ; do
18387 old_archive_cmds_GCJ | \
18388 old_archive_from_new_cmds_GCJ | \
18389 archive_cmds_GCJ | \
18390 archive_expsym_cmds_GCJ | \
18391 module_cmds_GCJ | \
18392 module_expsym_cmds_GCJ | \
18393 old_archive_from_expsyms_cmds_GCJ | \
18394 export_symbols_cmds_GCJ | \
18395 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18396 postinstall_cmds | postuninstall_cmds | \
18397 old_postinstall_cmds | old_postuninstall_cmds | \
18398 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18399 # Double-quote double-evaled strings.
18400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18409 *'\$0 --fallback-echo"')
18410 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18416 cat <<__EOF__ >> "$cfgfile"
18417 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18419 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18421 # Shell to use when invoking shell scripts.
18424 # Whether or not to build shared libraries.
18425 build_libtool_libs=$enable_shared
18427 # Whether or not to build static libraries.
18428 build_old_libs=$enable_static
18430 # Whether or not to add -lc for building shared libraries.
18431 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18433 # Whether or not to disallow shared libs when runtime libs are static
18434 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18436 # Whether or not to optimize for fast installation.
18437 fast_install=$enable_fast_install
18440 host_alias=$host_alias
18444 # The build system.
18445 build_alias=$build_alias
18449 # An echo program that does not interpret backslashes.
18454 AR_FLAGS=$lt_AR_FLAGS
18459 # LTCC compiler flags.
18460 LTCFLAGS=$lt_LTCFLAGS
18462 # A language-specific compiler.
18463 CC=$lt_compiler_GCJ
18465 # Is the compiler the GNU C compiler?
18471 # The linker used to build libraries.
18474 # Whether we need hard or soft links.
18477 # A BSD-compatible nm program.
18480 # A symbol stripping program
18483 # Used to examine libraries when file_magic_cmd begins "file"
18484 MAGIC_CMD=$MAGIC_CMD
18486 # Used on cygwin: DLL creation program.
18489 # Used on cygwin: object dumper.
18492 # Used on cygwin: assembler.
18495 # The name of the directory that contains temporary libtool files.
18498 # How to create reloadable object files.
18499 reload_flag=$lt_reload_flag
18500 reload_cmds=$lt_reload_cmds
18502 # How to pass a linker flag through the compiler.
18503 wl=$lt_lt_prog_compiler_wl_GCJ
18505 # Object file suffix (normally "o").
18506 objext="$ac_objext"
18508 # Old archive suffix (normally "a").
18511 # Shared library suffix (normally ".so").
18512 shrext_cmds='$shrext_cmds'
18514 # Executable file suffix (normally "").
18517 # Additional compiler flags for building library objects.
18518 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18521 # What is the maximum length of a command?
18522 max_cmd_len=$lt_cv_sys_max_cmd_len
18524 # Does compiler simultaneously support -c and -o options?
18525 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18527 # Must we lock files when doing compilation?
18528 need_locks=$lt_need_locks
18530 # Do we need the lib prefix for modules?
18531 need_lib_prefix=$need_lib_prefix
18533 # Do we need a version for libraries?
18534 need_version=$need_version
18536 # Whether dlopen is supported.
18537 dlopen_support=$enable_dlopen
18539 # Whether dlopen of programs is supported.
18540 dlopen_self=$enable_dlopen_self
18542 # Whether dlopen of statically linked programs is supported.
18543 dlopen_self_static=$enable_dlopen_self_static
18545 # Compiler flag to prevent dynamic linking.
18546 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18548 # Compiler flag to turn off builtin functions.
18549 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18551 # Compiler flag to allow reflexive dlopens.
18552 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18554 # Compiler flag to generate shared objects directly from archives.
18555 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18557 # Compiler flag to generate thread-safe objects.
18558 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18560 # Library versioning type.
18561 version_type=$version_type
18563 # Format of library name prefix.
18564 libname_spec=$lt_libname_spec
18566 # List of archive names. First name is the real one, the rest are links.
18567 # The last name is the one that the linker finds with -lNAME.
18568 library_names_spec=$lt_library_names_spec
18570 # The coded name of the library, if different from the real name.
18571 soname_spec=$lt_soname_spec
18573 # Commands used to build and install an old-style archive.
18575 old_archive_cmds=$lt_old_archive_cmds_GCJ
18576 old_postinstall_cmds=$lt_old_postinstall_cmds
18577 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18579 # Create an old-style archive from a shared archive.
18580 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18582 # Create a temporary old-style archive to link instead of a shared archive.
18583 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18585 # Commands used to build and install a shared archive.
18586 archive_cmds=$lt_archive_cmds_GCJ
18587 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18588 postinstall_cmds=$lt_postinstall_cmds
18589 postuninstall_cmds=$lt_postuninstall_cmds
18591 # Commands used to build a loadable module (assumed same as above if empty)
18592 module_cmds=$lt_module_cmds_GCJ
18593 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18595 # Commands to strip libraries.
18596 old_striplib=$lt_old_striplib
18597 striplib=$lt_striplib
18599 # Dependencies to place before the objects being linked to create a
18601 predep_objects=$lt_predep_objects_GCJ
18603 # Dependencies to place after the objects being linked to create a
18605 postdep_objects=$lt_postdep_objects_GCJ
18607 # Dependencies to place before the objects being linked to create a
18609 predeps=$lt_predeps_GCJ
18611 # Dependencies to place after the objects being linked to create a
18613 postdeps=$lt_postdeps_GCJ
18615 # The library search path used internally by the compiler when linking
18616 # a shared library.
18617 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18619 # Method to check whether dependent libraries are shared objects.
18620 deplibs_check_method=$lt_deplibs_check_method
18622 # Command to use when deplibs_check_method == file_magic.
18623 file_magic_cmd=$lt_file_magic_cmd
18625 # Flag that allows shared libraries with undefined symbols to be built.
18626 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18628 # Flag that forces no undefined symbols.
18629 no_undefined_flag=$lt_no_undefined_flag_GCJ
18631 # Commands used to finish a libtool library installation in a directory.
18632 finish_cmds=$lt_finish_cmds
18634 # Same as above, but a single script fragment to be evaled but not shown.
18635 finish_eval=$lt_finish_eval
18637 # Take the output of nm and produce a listing of raw symbols and C names.
18638 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18640 # Transform the output of nm in a proper C declaration
18641 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18643 # Transform the output of nm in a C name address pair
18644 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18646 # This is the shared library runtime path variable.
18647 runpath_var=$runpath_var
18649 # This is the shared library path variable.
18650 shlibpath_var=$shlibpath_var
18652 # Is shlibpath searched before the hard-coded library search path?
18653 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18655 # How to hardcode a shared library path into an executable.
18656 hardcode_action=$hardcode_action_GCJ
18658 # Whether we should hardcode library paths into libraries.
18659 hardcode_into_libs=$hardcode_into_libs
18661 # Flag to hardcode \$libdir into a binary during linking.
18662 # This must work even if \$libdir does not exist.
18663 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18665 # If ld is used when linking, flag to hardcode \$libdir into
18666 # a binary during linking. This must work even if \$libdir does
18668 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18670 # Whether we need a single -rpath flag with a separated argument.
18671 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18673 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18674 # resulting binary.
18675 hardcode_direct=$hardcode_direct_GCJ
18677 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18678 # resulting binary.
18679 hardcode_minus_L=$hardcode_minus_L_GCJ
18681 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18682 # the resulting binary.
18683 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18685 # Set to yes if building a shared library automatically hardcodes DIR into the library
18686 # and all subsequent libraries and executables linked against it.
18687 hardcode_automatic=$hardcode_automatic_GCJ
18689 # Variables whose values should be saved in libtool wrapper scripts and
18690 # restored at relink time.
18691 variables_saved_for_relink="$variables_saved_for_relink"
18693 # Whether libtool must link a program against all its dependency libraries.
18694 link_all_deplibs=$link_all_deplibs_GCJ
18696 # Compile-time system search path for libraries
18697 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18699 # Run-time system search path for libraries
18700 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18702 # Fix the shell variable \$srcfile for the compiler.
18703 fix_srcfile_path="$fix_srcfile_path_GCJ"
18705 # Set to yes if exported symbols are required.
18706 always_export_symbols=$always_export_symbols_GCJ
18708 # The commands to list exported symbols.
18709 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18711 # The commands to extract the exported symbol list from a shared archive.
18712 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18714 # Symbols that should not be listed in the preloaded symbols.
18715 exclude_expsyms=$lt_exclude_expsyms_GCJ
18717 # Symbols that must always be exported.
18718 include_expsyms=$lt_include_expsyms_GCJ
18720 # ### END LIBTOOL TAG CONFIG: $tagname
18726 # If there is no Makefile yet, we rely on a make rule to execute
18727 # `config.status --recheck' to rerun these tests and create the
18728 # libtool script then.
18729 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18730 if test -f "$ltmain_in"; then
18731 test -f Makefile && make "$ltmain"
18737 ac_cpp='$CPP $CPPFLAGS'
18738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18752 # Source file extension for RC test sources.
18755 # Object file extension for compiled RC test sources.
18759 # Code to be used in simple compile tests
18760 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18762 # Code to be used in simple link tests
18763 lt_simple_link_test_code="$lt_simple_compile_test_code"
18765 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18767 # If no C compiler was specified, use CC.
18770 # If no C compiler flags were specified, use CFLAGS.
18771 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18773 # Allow CC to be a program name with arguments.
18777 # save warnings/boilerplate of simple test code
18778 ac_outfile=conftest.$ac_objext
18779 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18780 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18781 _lt_compiler_boilerplate=`cat conftest.err`
18784 ac_outfile=conftest.$ac_objext
18785 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18786 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18787 _lt_linker_boilerplate=`cat conftest.err`
18791 # Allow CC to be a program name with arguments.
18796 for cc_temp in $compiler""; do
18798 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18799 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18804 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18806 lt_cv_prog_compiler_c_o_RC=yes
18808 # The else clause should only fire when bootstrapping the
18809 # libtool distribution, otherwise you forgot to ship ltmain.sh
18810 # with your package, and you will get complaints that there are
18811 # no rules to generate ltmain.sh.
18812 if test -f "$ltmain"; then
18813 # See if we are running on zsh, and set the options which allow our commands through
18814 # without removal of \ escapes.
18815 if test -n "${ZSH_VERSION+set}" ; then
18816 setopt NO_GLOB_SUBST
18818 # Now quote all the things that may contain metacharacters while being
18819 # careful not to overquote the AC_SUBSTed values. We take copies of the
18820 # variables and quote the copies for generation of the libtool script.
18821 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18823 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18824 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18825 deplibs_check_method reload_flag reload_cmds need_locks \
18826 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18827 lt_cv_sys_global_symbol_to_c_name_address \
18828 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18829 old_postinstall_cmds old_postuninstall_cmds \
18833 lt_prog_compiler_wl_RC \
18834 lt_prog_compiler_pic_RC \
18835 lt_prog_compiler_static_RC \
18836 lt_prog_compiler_no_builtin_flag_RC \
18837 export_dynamic_flag_spec_RC \
18838 thread_safe_flag_spec_RC \
18839 whole_archive_flag_spec_RC \
18840 enable_shared_with_static_runtimes_RC \
18841 old_archive_cmds_RC \
18842 old_archive_from_new_cmds_RC \
18843 predep_objects_RC \
18844 postdep_objects_RC \
18847 compiler_lib_search_path_RC \
18849 archive_expsym_cmds_RC \
18850 postinstall_cmds_RC \
18851 postuninstall_cmds_RC \
18852 old_archive_from_expsyms_cmds_RC \
18853 allow_undefined_flag_RC \
18854 no_undefined_flag_RC \
18855 export_symbols_cmds_RC \
18856 hardcode_libdir_flag_spec_RC \
18857 hardcode_libdir_flag_spec_ld_RC \
18858 hardcode_libdir_separator_RC \
18859 hardcode_automatic_RC \
18861 module_expsym_cmds_RC \
18862 lt_cv_prog_compiler_c_o_RC \
18863 exclude_expsyms_RC \
18864 include_expsyms_RC; do
18867 old_archive_cmds_RC | \
18868 old_archive_from_new_cmds_RC | \
18869 archive_cmds_RC | \
18870 archive_expsym_cmds_RC | \
18872 module_expsym_cmds_RC | \
18873 old_archive_from_expsyms_cmds_RC | \
18874 export_symbols_cmds_RC | \
18875 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18876 postinstall_cmds | postuninstall_cmds | \
18877 old_postinstall_cmds | old_postuninstall_cmds | \
18878 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18879 # Double-quote double-evaled strings.
18880 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18883 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18889 *'\$0 --fallback-echo"')
18890 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18896 cat <<__EOF__ >> "$cfgfile"
18897 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18899 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18901 # Shell to use when invoking shell scripts.
18904 # Whether or not to build shared libraries.
18905 build_libtool_libs=$enable_shared
18907 # Whether or not to build static libraries.
18908 build_old_libs=$enable_static
18910 # Whether or not to add -lc for building shared libraries.
18911 build_libtool_need_lc=$archive_cmds_need_lc_RC
18913 # Whether or not to disallow shared libs when runtime libs are static
18914 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18916 # Whether or not to optimize for fast installation.
18917 fast_install=$enable_fast_install
18920 host_alias=$host_alias
18924 # The build system.
18925 build_alias=$build_alias
18929 # An echo program that does not interpret backslashes.
18934 AR_FLAGS=$lt_AR_FLAGS
18939 # LTCC compiler flags.
18940 LTCFLAGS=$lt_LTCFLAGS
18942 # A language-specific compiler.
18945 # Is the compiler the GNU C compiler?
18951 # The linker used to build libraries.
18954 # Whether we need hard or soft links.
18957 # A BSD-compatible nm program.
18960 # A symbol stripping program
18963 # Used to examine libraries when file_magic_cmd begins "file"
18964 MAGIC_CMD=$MAGIC_CMD
18966 # Used on cygwin: DLL creation program.
18969 # Used on cygwin: object dumper.
18972 # Used on cygwin: assembler.
18975 # The name of the directory that contains temporary libtool files.
18978 # How to create reloadable object files.
18979 reload_flag=$lt_reload_flag
18980 reload_cmds=$lt_reload_cmds
18982 # How to pass a linker flag through the compiler.
18983 wl=$lt_lt_prog_compiler_wl_RC
18985 # Object file suffix (normally "o").
18986 objext="$ac_objext"
18988 # Old archive suffix (normally "a").
18991 # Shared library suffix (normally ".so").
18992 shrext_cmds='$shrext_cmds'
18994 # Executable file suffix (normally "").
18997 # Additional compiler flags for building library objects.
18998 pic_flag=$lt_lt_prog_compiler_pic_RC
19001 # What is the maximum length of a command?
19002 max_cmd_len=$lt_cv_sys_max_cmd_len
19004 # Does compiler simultaneously support -c and -o options?
19005 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19007 # Must we lock files when doing compilation?
19008 need_locks=$lt_need_locks
19010 # Do we need the lib prefix for modules?
19011 need_lib_prefix=$need_lib_prefix
19013 # Do we need a version for libraries?
19014 need_version=$need_version
19016 # Whether dlopen is supported.
19017 dlopen_support=$enable_dlopen
19019 # Whether dlopen of programs is supported.
19020 dlopen_self=$enable_dlopen_self
19022 # Whether dlopen of statically linked programs is supported.
19023 dlopen_self_static=$enable_dlopen_self_static
19025 # Compiler flag to prevent dynamic linking.
19026 link_static_flag=$lt_lt_prog_compiler_static_RC
19028 # Compiler flag to turn off builtin functions.
19029 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19031 # Compiler flag to allow reflexive dlopens.
19032 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19034 # Compiler flag to generate shared objects directly from archives.
19035 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19037 # Compiler flag to generate thread-safe objects.
19038 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19040 # Library versioning type.
19041 version_type=$version_type
19043 # Format of library name prefix.
19044 libname_spec=$lt_libname_spec
19046 # List of archive names. First name is the real one, the rest are links.
19047 # The last name is the one that the linker finds with -lNAME.
19048 library_names_spec=$lt_library_names_spec
19050 # The coded name of the library, if different from the real name.
19051 soname_spec=$lt_soname_spec
19053 # Commands used to build and install an old-style archive.
19055 old_archive_cmds=$lt_old_archive_cmds_RC
19056 old_postinstall_cmds=$lt_old_postinstall_cmds
19057 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19059 # Create an old-style archive from a shared archive.
19060 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19062 # Create a temporary old-style archive to link instead of a shared archive.
19063 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19065 # Commands used to build and install a shared archive.
19066 archive_cmds=$lt_archive_cmds_RC
19067 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19068 postinstall_cmds=$lt_postinstall_cmds
19069 postuninstall_cmds=$lt_postuninstall_cmds
19071 # Commands used to build a loadable module (assumed same as above if empty)
19072 module_cmds=$lt_module_cmds_RC
19073 module_expsym_cmds=$lt_module_expsym_cmds_RC
19075 # Commands to strip libraries.
19076 old_striplib=$lt_old_striplib
19077 striplib=$lt_striplib
19079 # Dependencies to place before the objects being linked to create a
19081 predep_objects=$lt_predep_objects_RC
19083 # Dependencies to place after the objects being linked to create a
19085 postdep_objects=$lt_postdep_objects_RC
19087 # Dependencies to place before the objects being linked to create a
19089 predeps=$lt_predeps_RC
19091 # Dependencies to place after the objects being linked to create a
19093 postdeps=$lt_postdeps_RC
19095 # The library search path used internally by the compiler when linking
19096 # a shared library.
19097 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19099 # Method to check whether dependent libraries are shared objects.
19100 deplibs_check_method=$lt_deplibs_check_method
19102 # Command to use when deplibs_check_method == file_magic.
19103 file_magic_cmd=$lt_file_magic_cmd
19105 # Flag that allows shared libraries with undefined symbols to be built.
19106 allow_undefined_flag=$lt_allow_undefined_flag_RC
19108 # Flag that forces no undefined symbols.
19109 no_undefined_flag=$lt_no_undefined_flag_RC
19111 # Commands used to finish a libtool library installation in a directory.
19112 finish_cmds=$lt_finish_cmds
19114 # Same as above, but a single script fragment to be evaled but not shown.
19115 finish_eval=$lt_finish_eval
19117 # Take the output of nm and produce a listing of raw symbols and C names.
19118 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19120 # Transform the output of nm in a proper C declaration
19121 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19123 # Transform the output of nm in a C name address pair
19124 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19126 # This is the shared library runtime path variable.
19127 runpath_var=$runpath_var
19129 # This is the shared library path variable.
19130 shlibpath_var=$shlibpath_var
19132 # Is shlibpath searched before the hard-coded library search path?
19133 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19135 # How to hardcode a shared library path into an executable.
19136 hardcode_action=$hardcode_action_RC
19138 # Whether we should hardcode library paths into libraries.
19139 hardcode_into_libs=$hardcode_into_libs
19141 # Flag to hardcode \$libdir into a binary during linking.
19142 # This must work even if \$libdir does not exist.
19143 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19145 # If ld is used when linking, flag to hardcode \$libdir into
19146 # a binary during linking. This must work even if \$libdir does
19148 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19150 # Whether we need a single -rpath flag with a separated argument.
19151 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19153 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19154 # resulting binary.
19155 hardcode_direct=$hardcode_direct_RC
19157 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19158 # resulting binary.
19159 hardcode_minus_L=$hardcode_minus_L_RC
19161 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19162 # the resulting binary.
19163 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19165 # Set to yes if building a shared library automatically hardcodes DIR into the library
19166 # and all subsequent libraries and executables linked against it.
19167 hardcode_automatic=$hardcode_automatic_RC
19169 # Variables whose values should be saved in libtool wrapper scripts and
19170 # restored at relink time.
19171 variables_saved_for_relink="$variables_saved_for_relink"
19173 # Whether libtool must link a program against all its dependency libraries.
19174 link_all_deplibs=$link_all_deplibs_RC
19176 # Compile-time system search path for libraries
19177 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19179 # Run-time system search path for libraries
19180 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19182 # Fix the shell variable \$srcfile for the compiler.
19183 fix_srcfile_path="$fix_srcfile_path_RC"
19185 # Set to yes if exported symbols are required.
19186 always_export_symbols=$always_export_symbols_RC
19188 # The commands to list exported symbols.
19189 export_symbols_cmds=$lt_export_symbols_cmds_RC
19191 # The commands to extract the exported symbol list from a shared archive.
19192 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19194 # Symbols that should not be listed in the preloaded symbols.
19195 exclude_expsyms=$lt_exclude_expsyms_RC
19197 # Symbols that must always be exported.
19198 include_expsyms=$lt_include_expsyms_RC
19200 # ### END LIBTOOL TAG CONFIG: $tagname
19206 # If there is no Makefile yet, we rely on a make rule to execute
19207 # `config.status --recheck' to rerun these tests and create the
19208 # libtool script then.
19209 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19210 if test -f "$ltmain_in"; then
19211 test -f Makefile && make "$ltmain"
19217 ac_cpp='$CPP $CPPFLAGS'
19218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19227 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19228 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19229 { (exit 1); exit 1; }; }
19233 # Append the new tag name to the list of available tags.
19234 if test -n "$tagname" ; then
19235 available_tags="$available_tags $tagname"
19241 # Now substitute the updated list of available tags.
19242 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19243 mv "${ofile}T" "$ofile"
19247 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19248 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19249 { (exit 1); exit 1; }; }
19255 # This can be used to rebuild libtool when needed
19256 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19258 # Always use our own libtool.
19259 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19261 # Prevent multiple expansion
19285 # Checks for libraries.
19287 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
19288 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
19289 if test "${ac_cv_lib_apr_1_main+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19292 ac_check_lib_save_LIBS=$LIBS
19293 LIBS="-lapr-1 $LIBS"
19294 cat >conftest.$ac_ext <<_ACEOF
19297 cat confdefs.h >>conftest.$ac_ext
19298 cat >>conftest.$ac_ext <<_ACEOF
19299 /* end confdefs.h. */
19310 rm -f conftest.$ac_objext conftest$ac_exeext
19311 if { (ac_try="$ac_link"
19312 case "(($ac_try" in
19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314 *) ac_try_echo=$ac_try;;
19316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19317 (eval "$ac_link") 2>conftest.er1
19319 grep -v '^ *+' conftest.er1 >conftest.err
19321 cat conftest.err >&5
19322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19323 (exit $ac_status); } && {
19324 test -z "$ac_c_werror_flag" ||
19325 test ! -s conftest.err
19326 } && test -s conftest$ac_exeext &&
19327 $as_test_x conftest$ac_exeext; then
19328 ac_cv_lib_apr_1_main=yes
19330 echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19333 ac_cv_lib_apr_1_main=no
19336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19337 conftest$ac_exeext conftest.$ac_ext
19338 LIBS=$ac_check_lib_save_LIBS
19340 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
19341 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
19342 if test $ac_cv_lib_apr_1_main = yes; then
19343 cat >>confdefs.h <<_ACEOF
19344 #define HAVE_LIBAPR_1 1
19347 LIBS="-lapr-1 $LIBS"
19353 # Check whether --with-apache-header was given.
19354 if test "${with_apache_header+set}" = set; then
19355 withval=$with_apache_header;
19358 if test "x$with_apache_header" = "xyes"; then
19359 { { echo "$as_me:$LINENO: error:
19360 Please specify the --with-apache-header option. And, please specify the place of the header file.
19363 echo "$as_me: error:
19364 Please specify the --with-apache-header option. And, please specify the place of the header file.
19367 { (exit 1); exit 1; }; }
19371 # Check whether --with-apxs was given.
19372 if test "${with_apxs+set}" = set; then
19373 withval=$with_apxs;
19376 if test "x$with_apxs" = "x" ; then
19379 if test "x$with_apxs" = "xyes" ; then
19380 { { echo "$as_me:$LINENO: error:
19381 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19383 echo "$as_me: error:
19384 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19386 { (exit 1); exit 1; }; }
19390 # Check whether --with-apr-config was given.
19391 if test "${with_apr_config+set}" = set; then
19392 withval=$with_apr_config;
19395 if test "x$with_apr_config" = "xyes" ; then
19396 { { echo "$as_me:$LINENO: error:
19397 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19399 echo "$as_me: error:
19400 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19402 { (exit 1); exit 1; }; }
19406 # Check whether --with-apu-config was given.
19407 if test "${with_apu_config+set}" = set; then
19408 withval=$with_apu_config;
19411 if test "x$with_apu_config" = "xyes" ; then
19412 { { echo "$as_me:$LINENO: error:
19413 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19415 echo "$as_me: error:
19416 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19418 { (exit 1); exit 1; }; }
19422 # Check whether --with-pcre-config was given.
19423 if test "${with_pcre_config+set}" = set; then
19424 withval=$with_pcre_config;
19427 if test "x$with_pcre_config" = "xyes" ; then
19428 { { echo "$as_me:$LINENO: error:
19429 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19431 echo "$as_me: error:
19432 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19434 { (exit 1); exit 1; }; }
19437 # Check whether --enable-img-conv-f was given.
19438 if test "${enable_img_conv_f+set}" = set; then
19439 enableval=$enable_img_conv_f;
19442 if test "x$enable_img_conv_f" = "xyes"; then
19445 QDEFS="-DIMG_NOT_CONVERT_FILENAME"
19449 # Check whether --enable-memcache-cookie was given.
19450 if test "${enable_memcache_cookie+set}" = set; then
19451 enableval=$enable_memcache_cookie;
19454 # Check whether --enable-memcached-static was given.
19455 if test "${enable_memcached_static+set}" = set; then
19456 enableval=$enable_memcached_static;
19460 # Check whether --with-memcached-header was given.
19461 if test "${with_memcached_header+set}" = set; then
19462 withval=$with_memcached_header;
19466 # Check whether --with-memcached-lib-dir was given.
19467 if test "${with_memcached_lib_dir+set}" = set; then
19468 withval=$with_memcached_lib_dir;
19471 if test "x$enable_memcache_cookie" = "xyes" ; then
19472 if test "x${with_memcached_header}" = "x" -o "x${with_memcached_header}" = "xyes" ; then
19473 { { echo "$as_me:$LINENO: error:
19474 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
19476 echo "$as_me: error:
19477 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
19479 { (exit 1); exit 1; }; }
19481 if test "x${with_memcached_lib_dir}" = "x" -o "x${with_memcached_lib_dir}" = "xyes" ; then
19482 { { echo "$as_me:$LINENO: error:
19483 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
19485 echo "$as_me: error:
19486 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
19488 { (exit 1); exit 1; }; }
19490 if test "x$enable_memcached_static" = "xyes" ; then
19491 MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
19492 MEMCACHE_COOKIE_LIBS=" ${with_memcached_lib_dir}/libmemcached.a "
19494 MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
19495 MEMCACHE_COOKIE_LIBS="-L${with_memcached_lib_dir} -lmemcached "
19498 MEMCACHE_COOKIE_DEFS=""
19499 MEMCACHE_COOKIE_LIBS=""
19501 # Check whether --enable-mysql-cookie was given.
19502 if test "${enable_mysql_cookie+set}" = set; then
19503 enableval=$enable_mysql_cookie;
19507 # Check whether --with-mysql-header was given.
19508 if test "${with_mysql_header+set}" = set; then
19509 withval=$with_mysql_header;
19513 # Check whether --with-mysql-lib-dir was given.
19514 if test "${with_mysql_lib_dir+set}" = set; then
19515 withval=$with_mysql_lib_dir;
19518 if test "x$enable_mysql_cookie" = "xyes"; then
19519 if test "x$with_mysql_header" = "x" -o "x$with_mysql_header" = "xyes" ; then
19520 { { echo "$as_me:$LINENO: error:
19521 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19523 echo "$as_me: error:
19524 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19526 { (exit 1); exit 1; }; }
19528 if test "x$with_mysql_lib_dir" = "x" -o "x$with_mysql_lib_dir" = "xyes" ; then
19529 { { echo "$as_me:$LINENO: error:
19530 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19532 echo "$as_me: error:
19533 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19535 { (exit 1); exit 1; }; }
19537 MYSQL_COOKIE_DEFS="-DUSE_MYSQL_COOKIE -I${with_mysql_header}"
19538 MYSQL_COOKIE_LIBS="-L${with_mysql_lib_dir} -lmysqlclient_r"
19540 MYSQL_COOKIE_DEFS=""
19541 MYSQL_COOKIE_LIBS=""
19546 # Check whether --with-openssl was given.
19547 if test "${with_openssl+set}" = set; then
19548 withval=$with_openssl;
19549 if test "$withval" = "yes"; then
19550 { { echo "$as_me:$LINENO: error: --with-openssl requires a path" >&5
19551 echo "$as_me: error: --with-openssl requires a path" >&2;}
19552 { (exit 1); exit 1; }; }
19554 openssl_prefix=$withval
19556 if test "x$openssl_prefix" != "x" -a ! -d "$openssl_prefix"; then
19557 { { echo "$as_me:$LINENO: error: '--with-openssl requires a path to a directory'" >&5
19558 echo "$as_me: error: '--with-openssl requires a path to a directory'" >&2;}
19559 { (exit 1); exit 1; }; }
19562 CPPFLAGS="${CPPFLAGS} -I${openssl_prefix}/include"
19563 LDFLAGS="${LDFLAGS} -L${openssl_prefix}/lib"
19564 LDFLAGS="${LDFLAGS} -R${openssl_prefix}/lib"
19565 OPENSSL_PATH="--with-openssl ${openssl_prefix}"
19571 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
19572 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
19573 echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
19574 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
19575 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
19578 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
19580 # Is the header compilable?
19581 { echo "$as_me:$LINENO: checking openssl/opensslv.h usability" >&5
19582 echo $ECHO_N "checking openssl/opensslv.h usability... $ECHO_C" >&6; }
19583 cat >conftest.$ac_ext <<_ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h. */
19589 $ac_includes_default
19590 #include <openssl/opensslv.h>
19592 rm -f conftest.$ac_objext
19593 if { (ac_try="$ac_compile"
19594 case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_compile") 2>conftest.er1
19601 grep -v '^ *+' conftest.er1 >conftest.err
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); } && {
19606 test -z "$ac_c_werror_flag" ||
19607 test ! -s conftest.err
19608 } && test -s conftest.$ac_objext; then
19609 ac_header_compiler=yes
19611 echo "$as_me: failed program was:" >&5
19612 sed 's/^/| /' conftest.$ac_ext >&5
19614 ac_header_compiler=no
19617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19619 echo "${ECHO_T}$ac_header_compiler" >&6; }
19621 # Is the header present?
19622 { echo "$as_me:$LINENO: checking openssl/opensslv.h presence" >&5
19623 echo $ECHO_N "checking openssl/opensslv.h presence... $ECHO_C" >&6; }
19624 cat >conftest.$ac_ext <<_ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19630 #include <openssl/opensslv.h>
19632 if { (ac_try="$ac_cpp conftest.$ac_ext"
19633 case "(($ac_try" in
19634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19635 *) ac_try_echo=$ac_try;;
19637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19640 grep -v '^ *+' conftest.er1 >conftest.err
19642 cat conftest.err >&5
19643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19644 (exit $ac_status); } >/dev/null && {
19645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19646 test ! -s conftest.err
19648 ac_header_preproc=yes
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 ac_header_preproc=no
19656 rm -f conftest.err conftest.$ac_ext
19657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19658 echo "${ECHO_T}$ac_header_preproc" >&6; }
19660 # So? What about this header?
19661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19663 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&5
19664 echo "$as_me: WARNING: openssl/opensslv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19665 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&5
19666 echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the compiler's result" >&2;}
19667 ac_header_preproc=yes
19670 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: present but cannot be compiled" >&5
19671 echo "$as_me: WARNING: openssl/opensslv.h: present but cannot be compiled" >&2;}
19672 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&5
19673 echo "$as_me: WARNING: openssl/opensslv.h: check for missing prerequisite headers?" >&2;}
19674 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&5
19675 echo "$as_me: WARNING: openssl/opensslv.h: see the Autoconf documentation" >&2;}
19676 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&5
19677 echo "$as_me: WARNING: openssl/opensslv.h: section \"Present But Cannot Be Compiled\"" >&2;}
19678 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&5
19679 echo "$as_me: WARNING: openssl/opensslv.h: proceeding with the preprocessor's result" >&2;}
19680 { echo "$as_me:$LINENO: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&5
19681 echo "$as_me: WARNING: openssl/opensslv.h: in the future, the compiler will take precedence" >&2;}
19683 ## ---------------------------------------- ##
19684 ## Report this to konn@users.sourceforge.jp ##
19685 ## ---------------------------------------- ##
19687 ) | sed "s/^/$as_me: WARNING: /" >&2
19690 { echo "$as_me:$LINENO: checking for openssl/opensslv.h" >&5
19691 echo $ECHO_N "checking for openssl/opensslv.h... $ECHO_C" >&6; }
19692 if test "${ac_cv_header_openssl_opensslv_h+set}" = set; then
19693 echo $ECHO_N "(cached) $ECHO_C" >&6
19695 ac_cv_header_openssl_opensslv_h=$ac_header_preproc
19697 { echo "$as_me:$LINENO: result: $ac_cv_header_openssl_opensslv_h" >&5
19698 echo "${ECHO_T}$ac_cv_header_openssl_opensslv_h" >&6; }
19701 if test $ac_cv_header_openssl_opensslv_h = yes; then
19704 { { echo "$as_me:$LINENO: error: We require OpenSSL; try --with-openssl" >&5
19705 echo "$as_me: error: We require OpenSSL; try --with-openssl" >&2;}
19706 { (exit 1); exit 1; }; }
19711 # Check whether --enable-dump-log was given.
19712 if test "${enable_dump_log+set}" = set; then
19713 enableval=$enable_dump_log;
19716 if test "x$enable_dump_log" = "xyes"; then
19717 DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
19719 if test "x$enable_dump_log" != "x" ; then
19720 DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
19725 if test "x$with_apxs" = "x" ; then
19726 # Extract the first word of "apxs2", so it can be a program name with args.
19727 set dummy apxs2; ac_word=$2
19728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19730 if test "${ac_cv_path_APXS2+set}" = set; then
19731 echo $ECHO_N "(cached) $ECHO_C" >&6
19735 ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
19738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19739 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19740 for as_dir in $as_dummy
19743 test -z "$as_dir" && as_dir=.
19744 for ac_exec_ext in '' $ac_executable_extensions; do
19745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19746 ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
19747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19754 test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
19758 APXS2=$ac_cv_path_APXS2
19759 if test -n "$APXS2"; then
19760 { echo "$as_me:$LINENO: result: $APXS2" >&5
19761 echo "${ECHO_T}$APXS2" >&6; }
19763 { echo "$as_me:$LINENO: result: no" >&5
19764 echo "${ECHO_T}no" >&6; }
19768 if test "x$APXS2" = "xno"; then
19769 # Extract the first word of "apxs", so it can be a program name with args.
19770 set dummy apxs; ac_word=$2
19771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19773 if test "${ac_cv_path_APXS+set}" = set; then
19774 echo $ECHO_N "(cached) $ECHO_C" >&6
19778 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
19781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19782 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19783 for as_dir in $as_dummy
19786 test -z "$as_dir" && as_dir=.
19787 for ac_exec_ext in '' $ac_executable_extensions; do
19788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19789 ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
19790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19797 test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
19801 APXS=$ac_cv_path_APXS
19802 if test -n "$APXS"; then
19803 { echo "$as_me:$LINENO: result: $APXS" >&5
19804 echo "${ECHO_T}$APXS" >&6; }
19806 { echo "$as_me:$LINENO: result: no" >&5
19807 echo "${ECHO_T}no" >&6; }
19811 if test "x$APXS" = "xno" ; then
19812 { { echo "$as_me:$LINENO: error: apxs not found." >&5
19813 echo "$as_me: error: apxs not found." >&2;}
19814 { (exit 1); exit 1; }; }
19820 if test "x$with_apxs" != "x" ; then
19824 # Extract the first word of "libtool", so it can be a program name with args.
19825 set dummy libtool; ac_word=$2
19826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19828 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19829 echo $ECHO_N "(cached) $ECHO_C" >&6
19833 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19837 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19838 for as_dir in $as_dummy
19841 test -z "$as_dir" && as_dir=.
19842 for ac_exec_ext in '' $ac_executable_extensions; do
19843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19844 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19852 test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
19856 LIBTOOL=$ac_cv_path_LIBTOOL
19857 if test -n "$LIBTOOL"; then
19858 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19859 echo "${ECHO_T}$LIBTOOL" >&6; }
19861 { echo "$as_me:$LINENO: result: no" >&5
19862 echo "${ECHO_T}no" >&6; }
19866 if test "x$LIBTOOL" = "xno"; then
19867 { { echo "$as_me:$LINENO: error: libtool not found." >&5
19868 echo "$as_me: error: libtool not found." >&2;}
19869 { (exit 1); exit 1; }; }
19873 # Extract the first word of "Wand-config", so it can be a program name with args.
19874 set dummy Wand-config; ac_word=$2
19875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19877 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
19878 echo $ECHO_N "(cached) $ECHO_C" >&6
19880 case $WAND_CONFIG in
19882 ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
19885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19886 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19887 for as_dir in $as_dummy
19890 test -z "$as_dir" && as_dir=.
19891 for ac_exec_ext in '' $ac_executable_extensions; do
19892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19893 ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19901 test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
19905 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
19906 if test -n "$WAND_CONFIG"; then
19907 { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
19908 echo "${ECHO_T}$WAND_CONFIG" >&6; }
19910 { echo "$as_me:$LINENO: result: no" >&5
19911 echo "${ECHO_T}no" >&6; }
19915 if test "x$WAND_CONFIG" = "xno" ; then
19916 { { echo "$as_me:$LINENO: error: wand-config not found." >&5
19917 echo "$as_me: error: wand-config not found." >&2;}
19918 { (exit 1); exit 1; }; }
19921 if test "x$with_apr_config" = "x" ; then
19922 # Extract the first word of "apr-config", so it can be a program name with args.
19923 set dummy apr-config; ac_word=$2
19924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19926 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19929 case $APR_CONFIG in
19931 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
19934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19935 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19936 for as_dir in $as_dummy
19939 test -z "$as_dir" && as_dir=.
19940 for ac_exec_ext in '' $ac_executable_extensions; do
19941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19942 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19950 test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
19954 APR_CONFIG=$ac_cv_path_APR_CONFIG
19955 if test -n "$APR_CONFIG"; then
19956 { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
19957 echo "${ECHO_T}$APR_CONFIG" >&6; }
19959 { echo "$as_me:$LINENO: result: no" >&5
19960 echo "${ECHO_T}no" >&6; }
19964 if test "x$APR_CONFIG" = "xno" ; then
19965 # Extract the first word of "apr-1-config", so it can be a program name with args.
19966 set dummy apr-1-config; ac_word=$2
19967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19969 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 case $APR_1_CONFIG in
19974 ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
19977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19978 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19979 for as_dir in $as_dummy
19982 test -z "$as_dir" && as_dir=.
19983 for ac_exec_ext in '' $ac_executable_extensions; do
19984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19985 ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19993 test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
19997 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
19998 if test -n "$APR_1_CONFIG"; then
19999 { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
20000 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
20002 { echo "$as_me:$LINENO: result: no" >&5
20003 echo "${ECHO_T}no" >&6; }
20007 if test "x$APR_1_CONFIG" = "xno" ; then
20008 { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
20009 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
20010 { (exit 1); exit 1; }; }
20012 APR_CONFIG="$APR_1_CONFIG"
20016 if test "x$with_apr_config" != "x" ; then
20017 APR_CONFIG=$with_apr_config
20019 if test "x$with_apu_config" = "x" ; then
20020 # Extract the first word of "apu-config", so it can be a program name with args.
20021 set dummy apu-config; ac_word=$2
20022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20024 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
20025 echo $ECHO_N "(cached) $ECHO_C" >&6
20027 case $APU_CONFIG in
20029 ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
20032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20033 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20034 for as_dir in $as_dummy
20037 test -z "$as_dir" && as_dir=.
20038 for ac_exec_ext in '' $ac_executable_extensions; do
20039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20040 ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20048 test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
20052 APU_CONFIG=$ac_cv_path_APU_CONFIG
20053 if test -n "$APU_CONFIG"; then
20054 { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
20055 echo "${ECHO_T}$APU_CONFIG" >&6; }
20057 { echo "$as_me:$LINENO: result: no" >&5
20058 echo "${ECHO_T}no" >&6; }
20062 if test "x$APU_CONFIG" = "xno" ; then
20063 # Extract the first word of "apu-1-config", so it can be a program name with args.
20064 set dummy apu-1-config; ac_word=$2
20065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20067 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20070 case $APU_1_CONFIG in
20072 ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
20075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20076 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20077 for as_dir in $as_dummy
20080 test -z "$as_dir" && as_dir=.
20081 for ac_exec_ext in '' $ac_executable_extensions; do
20082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20083 ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20091 test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
20095 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
20096 if test -n "$APU_1_CONFIG"; then
20097 { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
20098 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
20100 { echo "$as_me:$LINENO: result: no" >&5
20101 echo "${ECHO_T}no" >&6; }
20105 if test "x$APU_1_CONFIG" = "xno" ; then
20106 { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
20107 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
20108 { (exit 1); exit 1; }; }
20110 APU_CONFIG="$APU_1_CONFIG"
20114 if test "x$with_apu_config" != "x" ; then
20115 APU_CONFIG=$with_apu_config
20121 CFLAGS="${CFLAGS} -I/usr/local/include "
20125 if test "x${with_apache_header}" = "x" ; then
20126 with_apache_header=`${APXS} -q includedir`
20129 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
20130 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
20131 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
20132 LIBS="${LIBS} ${MYSQL_COOKIE_LIBS}"
20133 LIBS="${LIBS} ${MEMCACHE_COOKIE_LIBS} "
20134 LIBS="${LIBS} -lcrypto -lssl "
20135 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
20136 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
20137 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
20138 CFLAGS="${CFLAGS} ${MYSQL_COOKIE_DEFS}"
20139 CFLAGS="${CFLAGS} ${MEMCACHE_COOKIE_DEFS}"
20140 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` -I${with_apache_header}"
20141 CPPFLAGS="${CPPFLAGS} ${MYSQL_COOKIE_DEFS}"
20142 CPPFLAGS="${CPPFLAGS} ${MEMCACHE_COOKIE_DEFS}"
20144 # Checks for header files.
20145 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20146 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20147 if test "${ac_cv_header_stdc+set}" = set; then
20148 echo $ECHO_N "(cached) $ECHO_C" >&6
20150 cat >conftest.$ac_ext <<_ACEOF
20153 cat confdefs.h >>conftest.$ac_ext
20154 cat >>conftest.$ac_ext <<_ACEOF
20155 /* end confdefs.h. */
20156 #include <stdlib.h>
20157 #include <stdarg.h>
20158 #include <string.h>
20169 rm -f conftest.$ac_objext
20170 if { (ac_try="$ac_compile"
20171 case "(($ac_try" in
20172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20173 *) ac_try_echo=$ac_try;;
20175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20176 (eval "$ac_compile") 2>conftest.er1
20178 grep -v '^ *+' conftest.er1 >conftest.err
20180 cat conftest.err >&5
20181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } && {
20183 test -z "$ac_c_werror_flag" ||
20184 test ! -s conftest.err
20185 } && test -s conftest.$ac_objext; then
20186 ac_cv_header_stdc=yes
20188 echo "$as_me: failed program was:" >&5
20189 sed 's/^/| /' conftest.$ac_ext >&5
20191 ac_cv_header_stdc=no
20194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20196 if test $ac_cv_header_stdc = yes; then
20197 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20198 cat >conftest.$ac_ext <<_ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20204 #include <string.h>
20207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20208 $EGREP "memchr" >/dev/null 2>&1; then
20211 ac_cv_header_stdc=no
20217 if test $ac_cv_header_stdc = yes; then
20218 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20219 cat >conftest.$ac_ext <<_ACEOF
20222 cat confdefs.h >>conftest.$ac_ext
20223 cat >>conftest.$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20225 #include <stdlib.h>
20228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20229 $EGREP "free" >/dev/null 2>&1; then
20232 ac_cv_header_stdc=no
20238 if test $ac_cv_header_stdc = yes; then
20239 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20240 if test "$cross_compiling" = yes; then
20243 cat >conftest.$ac_ext <<_ACEOF
20246 cat confdefs.h >>conftest.$ac_ext
20247 cat >>conftest.$ac_ext <<_ACEOF
20248 /* end confdefs.h. */
20250 #include <stdlib.h>
20251 #if ((' ' & 0x0FF) == 0x020)
20252 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20253 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20255 # define ISLOWER(c) \
20256 (('a' <= (c) && (c) <= 'i') \
20257 || ('j' <= (c) && (c) <= 'r') \
20258 || ('s' <= (c) && (c) <= 'z'))
20259 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20267 for (i = 0; i < 256; i++)
20268 if (XOR (islower (i), ISLOWER (i))
20269 || toupper (i) != TOUPPER (i))
20274 rm -f conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_link") 2>&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20285 { (case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20290 (eval "$ac_try") 2>&5
20292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293 (exit $ac_status); }; }; then
20296 echo "$as_me: program exited with status $ac_status" >&5
20297 echo "$as_me: failed program was:" >&5
20298 sed 's/^/| /' conftest.$ac_ext >&5
20300 ( exit $ac_status )
20301 ac_cv_header_stdc=no
20303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20309 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20310 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20311 if test $ac_cv_header_stdc = yes; then
20313 cat >>confdefs.h <<\_ACEOF
20314 #define STDC_HEADERS 1
20327 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.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;}
20443 ## ---------------------------------------- ##
20444 ## Report this to konn@users.sourceforge.jp ##
20445 ## ---------------------------------------- ##
20447 ) | sed "s/^/$as_me: WARNING: /" >&2
20450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 eval "$as_ac_Header=\$ac_header_preproc"
20457 ac_res=`eval echo '${'$as_ac_Header'}'`
20458 { echo "$as_me:$LINENO: result: $ac_res" >&5
20459 echo "${ECHO_T}$ac_res" >&6; }
20462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20463 cat >>confdefs.h <<_ACEOF
20464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20471 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
20474 for ac_header in apr_shm.h apr_global_mutex.h
20476 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20483 ac_res=`eval echo '${'$as_ac_Header'}'`
20484 { echo "$as_me:$LINENO: result: $ac_res" >&5
20485 echo "${ECHO_T}$ac_res" >&6; }
20487 # Is the header compilable?
20488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20490 cat >conftest.$ac_ext <<_ACEOF
20493 cat confdefs.h >>conftest.$ac_ext
20494 cat >>conftest.$ac_ext <<_ACEOF
20495 /* end confdefs.h. */
20496 $ac_includes_default
20497 #include <$ac_header>
20499 rm -f conftest.$ac_objext
20500 if { (ac_try="$ac_compile"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_compile") 2>conftest.er1
20508 grep -v '^ *+' conftest.er1 >conftest.err
20510 cat conftest.err >&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } && {
20513 test -z "$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 } && test -s conftest.$ac_objext; then
20516 ac_header_compiler=yes
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20521 ac_header_compiler=no
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20526 echo "${ECHO_T}$ac_header_compiler" >&6; }
20528 # Is the header present?
20529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20531 cat >conftest.$ac_ext <<_ACEOF
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 #include <$ac_header>
20539 if { (ac_try="$ac_cpp conftest.$ac_ext"
20540 case "(($ac_try" in
20541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20542 *) ac_try_echo=$ac_try;;
20544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20547 grep -v '^ *+' conftest.er1 >conftest.err
20549 cat conftest.err >&5
20550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20551 (exit $ac_status); } >/dev/null && {
20552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20553 test ! -s conftest.err
20555 ac_header_preproc=yes
20557 echo "$as_me: failed program was:" >&5
20558 sed 's/^/| /' conftest.$ac_ext >&5
20560 ac_header_preproc=no
20563 rm -f conftest.err conftest.$ac_ext
20564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20565 echo "${ECHO_T}$ac_header_preproc" >&6; }
20567 # So? What about this header?
20568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20574 ac_header_preproc=yes
20577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20590 ## ---------------------------------------- ##
20591 ## Report this to konn@users.sourceforge.jp ##
20592 ## ---------------------------------------- ##
20594 ) | sed "s/^/$as_me: WARNING: /" >&2
20597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20600 echo $ECHO_N "(cached) $ECHO_C" >&6
20602 eval "$as_ac_Header=\$ac_header_preproc"
20604 ac_res=`eval echo '${'$as_ac_Header'}'`
20605 { echo "$as_me:$LINENO: result: $ac_res" >&5
20606 echo "${ECHO_T}$ac_res" >&6; }
20609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20610 cat >>confdefs.h <<_ACEOF
20611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20619 for ac_header in apr.h
20621 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20626 echo $ECHO_N "(cached) $ECHO_C" >&6
20628 ac_res=`eval echo '${'$as_ac_Header'}'`
20629 { echo "$as_me:$LINENO: result: $ac_res" >&5
20630 echo "${ECHO_T}$ac_res" >&6; }
20632 # Is the header compilable?
20633 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20635 cat >conftest.$ac_ext <<_ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h. */
20641 $ac_includes_default
20642 #include <$ac_header>
20644 rm -f conftest.$ac_objext
20645 if { (ac_try="$ac_compile"
20646 case "(($ac_try" in
20647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648 *) ac_try_echo=$ac_try;;
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651 (eval "$ac_compile") 2>conftest.er1
20653 grep -v '^ *+' conftest.er1 >conftest.err
20655 cat conftest.err >&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); } && {
20658 test -z "$ac_c_werror_flag" ||
20659 test ! -s conftest.err
20660 } && test -s conftest.$ac_objext; then
20661 ac_header_compiler=yes
20663 echo "$as_me: failed program was:" >&5
20664 sed 's/^/| /' conftest.$ac_ext >&5
20666 ac_header_compiler=no
20669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20671 echo "${ECHO_T}$ac_header_compiler" >&6; }
20673 # Is the header present?
20674 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20675 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20676 cat >conftest.$ac_ext <<_ACEOF
20679 cat confdefs.h >>conftest.$ac_ext
20680 cat >>conftest.$ac_ext <<_ACEOF
20681 /* end confdefs.h. */
20682 #include <$ac_header>
20684 if { (ac_try="$ac_cpp conftest.$ac_ext"
20685 case "(($ac_try" in
20686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20687 *) ac_try_echo=$ac_try;;
20689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20692 grep -v '^ *+' conftest.er1 >conftest.err
20694 cat conftest.err >&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); } >/dev/null && {
20697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20698 test ! -s conftest.err
20700 ac_header_preproc=yes
20702 echo "$as_me: failed program was:" >&5
20703 sed 's/^/| /' conftest.$ac_ext >&5
20705 ac_header_preproc=no
20708 rm -f conftest.err conftest.$ac_ext
20709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20710 echo "${ECHO_T}$ac_header_preproc" >&6; }
20712 # So? What about this header?
20713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20715 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20716 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20718 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20719 ac_header_preproc=yes
20722 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20723 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20724 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20725 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20726 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20727 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20728 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20729 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20731 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20732 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20733 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20735 ## ---------------------------------------- ##
20736 ## Report this to konn@users.sourceforge.jp ##
20737 ## ---------------------------------------- ##
20739 ) | sed "s/^/$as_me: WARNING: /" >&2
20742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 eval "$as_ac_Header=\$ac_header_preproc"
20749 ac_res=`eval echo '${'$as_ac_Header'}'`
20750 { echo "$as_me:$LINENO: result: $ac_res" >&5
20751 echo "${ECHO_T}$ac_res" >&6; }
20754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20755 cat >>confdefs.h <<_ACEOF
20756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20764 for ac_header in ap_config.h
20766 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20771 echo $ECHO_N "(cached) $ECHO_C" >&6
20773 ac_res=`eval echo '${'$as_ac_Header'}'`
20774 { echo "$as_me:$LINENO: result: $ac_res" >&5
20775 echo "${ECHO_T}$ac_res" >&6; }
20777 # Is the header compilable?
20778 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20779 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20780 cat >conftest.$ac_ext <<_ACEOF
20783 cat confdefs.h >>conftest.$ac_ext
20784 cat >>conftest.$ac_ext <<_ACEOF
20785 /* end confdefs.h. */
20786 $ac_includes_default
20787 #include <$ac_header>
20789 rm -f conftest.$ac_objext
20790 if { (ac_try="$ac_compile"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_compile") 2>conftest.er1
20798 grep -v '^ *+' conftest.er1 >conftest.err
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); } && {
20803 test -z "$ac_c_werror_flag" ||
20804 test ! -s conftest.err
20805 } && test -s conftest.$ac_objext; then
20806 ac_header_compiler=yes
20808 echo "$as_me: failed program was:" >&5
20809 sed 's/^/| /' conftest.$ac_ext >&5
20811 ac_header_compiler=no
20814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20816 echo "${ECHO_T}$ac_header_compiler" >&6; }
20818 # Is the header present?
20819 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20820 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20827 #include <$ac_header>
20829 if { (ac_try="$ac_cpp conftest.$ac_ext"
20830 case "(($ac_try" in
20831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20832 *) ac_try_echo=$ac_try;;
20834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20837 grep -v '^ *+' conftest.er1 >conftest.err
20839 cat conftest.err >&5
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } >/dev/null && {
20842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20843 test ! -s conftest.err
20845 ac_header_preproc=yes
20847 echo "$as_me: failed program was:" >&5
20848 sed 's/^/| /' conftest.$ac_ext >&5
20850 ac_header_preproc=no
20853 rm -f conftest.err conftest.$ac_ext
20854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20855 echo "${ECHO_T}$ac_header_preproc" >&6; }
20857 # So? What about this header?
20858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20864 ac_header_preproc=yes
20867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20880 ## ---------------------------------------- ##
20881 ## Report this to konn@users.sourceforge.jp ##
20882 ## ---------------------------------------- ##
20884 ) | sed "s/^/$as_me: WARNING: /" >&2
20887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20892 eval "$as_ac_Header=\$ac_header_preproc"
20894 ac_res=`eval echo '${'$as_ac_Header'}'`
20895 { echo "$as_me:$LINENO: result: $ac_res" >&5
20896 echo "${ECHO_T}$ac_res" >&6; }
20899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20900 cat >>confdefs.h <<_ACEOF
20901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20908 #AC_CHECK_HEADERS([ap_regex.h],
20909 # AC_DEFINE([HAVE_AP_REGEX_H], [], [Define to 1 if you have the <ap_regex.h> header file.]),[],
20914 ##ifdef HAVE_AP_CONFIG_H
20915 ##include "ap_config.h"
20919 for ac_header in ap_regex.h
20921 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20925 echo $ECHO_N "(cached) $ECHO_C" >&6
20927 cat >conftest.$ac_ext <<_ACEOF
20930 cat confdefs.h >>conftest.$ac_ext
20931 cat >>conftest.$ac_ext <<_ACEOF
20932 /* end confdefs.h. */
20936 #ifdef HAVE_AP_CONFIG_H
20937 # include "ap_config.h"
20941 #include <$ac_header>
20943 rm -f conftest.$ac_objext
20944 if { (ac_try="$ac_compile"
20945 case "(($ac_try" in
20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947 *) ac_try_echo=$ac_try;;
20949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20950 (eval "$ac_compile") 2>conftest.er1
20952 grep -v '^ *+' conftest.er1 >conftest.err
20954 cat conftest.err >&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); } && {
20957 test -z "$ac_c_werror_flag" ||
20958 test ! -s conftest.err
20959 } && test -s conftest.$ac_objext; then
20960 eval "$as_ac_Header=yes"
20962 echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20965 eval "$as_ac_Header=no"
20968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20970 ac_res=`eval echo '${'$as_ac_Header'}'`
20971 { echo "$as_me:$LINENO: result: $ac_res" >&5
20972 echo "${ECHO_T}$ac_res" >&6; }
20973 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20974 cat >>confdefs.h <<_ACEOF
20975 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20979 use_pcre_flag="yes"
20984 if test "x$use_pcre_flag" = "xyes" ; then
20985 if test "x$with_pcre_config" = "x" ; then
20986 # Extract the first word of "pcre-config", so it can be a program name with args.
20987 set dummy pcre-config; ac_word=$2
20988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20990 if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
20991 echo $ECHO_N "(cached) $ECHO_C" >&6
20993 case $PCRE_CONFIG in
20995 ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
20998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20999 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21000 for as_dir in $as_dummy
21003 test -z "$as_dir" && as_dir=.
21004 for ac_exec_ext in '' $ac_executable_extensions; do
21005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21006 ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21014 test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
21018 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
21019 if test -n "$PCRE_CONFIG"; then
21020 { echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
21021 echo "${ECHO_T}$PCRE_CONFIG" >&6; }
21023 { echo "$as_me:$LINENO: result: no" >&5
21024 echo "${ECHO_T}no" >&6; }
21028 if test "x$PCRE_CONFIG" = "xno" ; then
21029 # Extract the first word of "pcre-1-config", so it can be a program name with args.
21030 set dummy pcre-1-config; ac_word=$2
21031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
21032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21033 if test "${ac_cv_path_PCRE_1_CONFIG+set}" = set; then
21034 echo $ECHO_N "(cached) $ECHO_C" >&6
21036 case $PCRE_1_CONFIG in
21038 ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
21041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21042 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
21043 for as_dir in $as_dummy
21046 test -z "$as_dir" && as_dir=.
21047 for ac_exec_ext in '' $ac_executable_extensions; do
21048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21049 ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21057 test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
21061 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
21062 if test -n "$PCRE_1_CONFIG"; then
21063 { echo "$as_me:$LINENO: result: $PCRE_1_CONFIG" >&5
21064 echo "${ECHO_T}$PCRE_1_CONFIG" >&6; }
21066 { echo "$as_me:$LINENO: result: no" >&5
21067 echo "${ECHO_T}no" >&6; }
21071 if test "x$PCRE_1_CONFIG" = "xno" ; then
21072 { { echo "$as_me:$LINENO: error: pcre-config and pcre-1-config not found." >&5
21073 echo "$as_me: error: pcre-config and pcre-1-config not found." >&2;}
21074 { (exit 1); exit 1; }; }
21076 PCRE_CONFIG="$PCRE_1_CONFIG"
21080 if test "x$with_pcre_config" != "x" ; then
21081 PCRE_CONFIG=$with_pcre_config
21083 CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
21086 cat >>confdefs.h <<\_ACEOF
21087 #define HAVE_AP_REGEX_H 1
21092 # Checks for typedefs, structures, and compiler characteristics.
21093 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21094 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21095 if test "${ac_cv_c_const+set}" = set; then
21096 echo $ECHO_N "(cached) $ECHO_C" >&6
21098 cat >conftest.$ac_ext <<_ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h. */
21108 /* FIXME: Include the comments suggested by Paul. */
21109 #ifndef __cplusplus
21110 /* Ultrix mips cc rejects this. */
21111 typedef int charset[2];
21113 /* SunOS 4.1.1 cc rejects this. */
21114 char const *const *pcpcc;
21116 /* NEC SVR4.0.2 mips cc rejects this. */
21117 struct point {int x, y;};
21118 static struct point const zero = {0,0};
21119 /* AIX XL C 1.02.0.0 rejects this.
21120 It does not let you subtract one const X* pointer from another in
21121 an arm of an if-expression whose if-part is not a constant
21123 const char *g = "string";
21124 pcpcc = &g + (g ? g-g : 0);
21125 /* HPUX 7.0 cc rejects these. */
21127 ppc = (char**) pcpcc;
21128 pcpcc = (char const *const *) ppc;
21129 { /* SCO 3.2v4 cc rejects this. */
21131 char const *s = 0 ? (char *) 0 : (char const *) 0;
21136 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21137 int x[] = {25, 17};
21138 const int *foo = &x[0];
21141 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21142 typedef const int *iptr;
21146 { /* AIX XL C 1.02.0.0 rejects this saying
21147 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21148 struct s { int j; const int *ap[3]; };
21149 struct s *b; b->j = 5;
21151 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21152 const int foo = 10;
21153 if (!foo) return 0;
21155 return !cs[0] && !zero.x;
21162 rm -f conftest.$ac_objext
21163 if { (ac_try="$ac_compile"
21164 case "(($ac_try" in
21165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21166 *) ac_try_echo=$ac_try;;
21168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21169 (eval "$ac_compile") 2>conftest.er1
21171 grep -v '^ *+' conftest.er1 >conftest.err
21173 cat conftest.err >&5
21174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21175 (exit $ac_status); } && {
21176 test -z "$ac_c_werror_flag" ||
21177 test ! -s conftest.err
21178 } && test -s conftest.$ac_objext; then
21181 echo "$as_me: failed program was:" >&5
21182 sed 's/^/| /' conftest.$ac_ext >&5
21187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21189 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21190 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21191 if test $ac_cv_c_const = no; then
21193 cat >>confdefs.h <<\_ACEOF
21200 # Checks for library functions.
21202 for ac_header in stdlib.h
21204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21209 echo $ECHO_N "(cached) $ECHO_C" >&6
21211 ac_res=`eval echo '${'$as_ac_Header'}'`
21212 { echo "$as_me:$LINENO: result: $ac_res" >&5
21213 echo "${ECHO_T}$ac_res" >&6; }
21215 # Is the header compilable?
21216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21218 cat >conftest.$ac_ext <<_ACEOF
21221 cat confdefs.h >>conftest.$ac_ext
21222 cat >>conftest.$ac_ext <<_ACEOF
21223 /* end confdefs.h. */
21224 $ac_includes_default
21225 #include <$ac_header>
21227 rm -f conftest.$ac_objext
21228 if { (ac_try="$ac_compile"
21229 case "(($ac_try" in
21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234 (eval "$ac_compile") 2>conftest.er1
21236 grep -v '^ *+' conftest.er1 >conftest.err
21238 cat conftest.err >&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); } && {
21241 test -z "$ac_c_werror_flag" ||
21242 test ! -s conftest.err
21243 } && test -s conftest.$ac_objext; then
21244 ac_header_compiler=yes
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 ac_header_compiler=no
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21254 echo "${ECHO_T}$ac_header_compiler" >&6; }
21256 # Is the header present?
21257 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21259 cat >conftest.$ac_ext <<_ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 #include <$ac_header>
21267 if { (ac_try="$ac_cpp conftest.$ac_ext"
21268 case "(($ac_try" in
21269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21270 *) ac_try_echo=$ac_try;;
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21275 grep -v '^ *+' conftest.er1 >conftest.err
21277 cat conftest.err >&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } >/dev/null && {
21280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21281 test ! -s conftest.err
21283 ac_header_preproc=yes
21285 echo "$as_me: failed program was:" >&5
21286 sed 's/^/| /' conftest.$ac_ext >&5
21288 ac_header_preproc=no
21291 rm -f conftest.err conftest.$ac_ext
21292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21293 echo "${ECHO_T}$ac_header_preproc" >&6; }
21295 # So? What about this header?
21296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21298 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21299 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21301 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21302 ac_header_preproc=yes
21305 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21306 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21307 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21308 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21309 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21310 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21311 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21312 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21314 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21315 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21316 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21318 ## ---------------------------------------- ##
21319 ## Report this to konn@users.sourceforge.jp ##
21320 ## ---------------------------------------- ##
21322 ) | sed "s/^/$as_me: WARNING: /" >&2
21325 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21328 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 eval "$as_ac_Header=\$ac_header_preproc"
21332 ac_res=`eval echo '${'$as_ac_Header'}'`
21333 { echo "$as_me:$LINENO: result: $ac_res" >&5
21334 echo "${ECHO_T}$ac_res" >&6; }
21337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21338 cat >>confdefs.h <<_ACEOF
21339 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21346 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21347 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21348 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21349 echo $ECHO_N "(cached) $ECHO_C" >&6
21351 if test "$cross_compiling" = yes; then
21352 ac_cv_func_malloc_0_nonnull=no
21354 cat >conftest.$ac_ext <<_ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21360 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21361 # include <stdlib.h>
21369 return ! malloc (0);
21374 rm -f conftest$ac_exeext
21375 if { (ac_try="$ac_link"
21376 case "(($ac_try" in
21377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21378 *) ac_try_echo=$ac_try;;
21380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21381 (eval "$ac_link") 2>&5
21383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21385 { (case "(($ac_try" in
21386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21387 *) ac_try_echo=$ac_try;;
21389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21390 (eval "$ac_try") 2>&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); }; }; then
21394 ac_cv_func_malloc_0_nonnull=yes
21396 echo "$as_me: program exited with status $ac_status" >&5
21397 echo "$as_me: failed program was:" >&5
21398 sed 's/^/| /' conftest.$ac_ext >&5
21400 ( exit $ac_status )
21401 ac_cv_func_malloc_0_nonnull=no
21403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21408 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21409 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21410 if test $ac_cv_func_malloc_0_nonnull = yes; then
21412 cat >>confdefs.h <<\_ACEOF
21413 #define HAVE_MALLOC 1
21417 cat >>confdefs.h <<\_ACEOF
21418 #define HAVE_MALLOC 0
21421 case " $LIBOBJS " in
21422 *" malloc.$ac_objext "* ) ;;
21423 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21428 cat >>confdefs.h <<\_ACEOF
21429 #define malloc rpl_malloc
21444 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
21446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21450 echo $ECHO_N "(cached) $ECHO_C" >&6
21452 cat >conftest.$ac_ext <<_ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21460 #define $ac_func innocuous_$ac_func
21462 /* System header to define __stub macros and hopefully few prototypes,
21463 which can conflict with char $ac_func (); below.
21464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21465 <limits.h> exists even on freestanding compilers. */
21468 # include <limits.h>
21470 # include <assert.h>
21475 /* Override any GCC internal prototype to avoid an error.
21476 Use char because int might match the return type of a GCC
21477 builtin and then its argument prototype would still apply. */
21482 /* The GNU C library defines this for functions which it implements
21483 to always fail with ENOSYS. Some functions are actually named
21484 something starting with __ and the normal name is an alias. */
21485 #if defined __stub_$ac_func || defined __stub___$ac_func
21492 return $ac_func ();
21497 rm -f conftest.$ac_objext conftest$ac_exeext
21498 if { (ac_try="$ac_link"
21499 case "(($ac_try" in
21500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501 *) ac_try_echo=$ac_try;;
21503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_link") 2>conftest.er1
21506 grep -v '^ *+' conftest.er1 >conftest.err
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21510 (exit $ac_status); } && {
21511 test -z "$ac_c_werror_flag" ||
21512 test ! -s conftest.err
21513 } && test -s conftest$ac_exeext &&
21514 $as_test_x conftest$ac_exeext; then
21515 eval "$as_ac_var=yes"
21517 echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 eval "$as_ac_var=no"
21523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21524 conftest$ac_exeext conftest.$ac_ext
21526 ac_res=`eval echo '${'$as_ac_var'}'`
21527 { echo "$as_me:$LINENO: result: $ac_res" >&5
21528 echo "${ECHO_T}$ac_res" >&6; }
21529 if test `eval echo '${'$as_ac_var'}'` = yes; then
21530 cat >>confdefs.h <<_ACEOF
21531 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21547 ac_config_files="$ac_config_files Makefile src/Makefile support/centos/mod-chxj.spec"
21549 cat >confcache <<\_ACEOF
21550 # This file is a shell script that caches the results of configure
21551 # tests run on this system so they can be shared between configure
21552 # scripts and configure runs, see configure's option --config-cache.
21553 # It is not useful on other systems. If it contains results you don't
21554 # want to keep, you may remove or edit it.
21556 # config.status only pays attention to the cache file if you give it
21557 # the --recheck option to rerun configure.
21559 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21560 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21561 # following values.
21565 # The following way of writing the cache mishandles newlines in values,
21566 # but we know of no workaround that is simple, portable, and efficient.
21567 # So, we kill variables containing newlines.
21568 # Ultrix sh set writes to stderr and can't be redirected directly,
21569 # and sets the high bit in the cache file unless we assign to the vars.
21571 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21572 eval ac_val=\$$ac_var
21576 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21577 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21580 _ | IFS | as_nl) ;; #(
21581 *) $as_unset $ac_var ;;
21587 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21588 *${as_nl}ac_space=\ *)
21589 # `set' does not quote correctly, so add quotes (double-quote
21590 # substitution turns \\\\ into \\, and sed turns \\ into \).
21593 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21596 # `set' quotes correctly as required by POSIX, so do not add quotes.
21597 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21606 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21608 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21610 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21611 if test -w "$cache_file"; then
21612 test "x$cache_file" != "x/dev/null" &&
21613 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21614 echo "$as_me: updating cache $cache_file" >&6;}
21615 cat confcache >$cache_file
21617 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21618 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21623 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21624 # Let make expand exec_prefix.
21625 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21627 DEFS=-DHAVE_CONFIG_H
21631 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21632 # 1. Remove the extension, and $U if already installed.
21633 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21634 ac_i=`echo "$ac_i" | sed "$ac_script"`
21635 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21636 # will be set to the directory where LIBOBJS objects are built.
21637 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21638 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21640 LIBOBJS=$ac_libobjs
21642 LTLIBOBJS=$ac_ltlibobjs
21645 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21646 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21647 Usually this means the macro was only invoked conditionally." >&5
21648 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21649 Usually this means the macro was only invoked conditionally." >&2;}
21650 { (exit 1); exit 1; }; }
21652 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21653 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21654 Usually this means the macro was only invoked conditionally." >&5
21655 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21656 Usually this means the macro was only invoked conditionally." >&2;}
21657 { (exit 1); exit 1; }; }
21659 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21660 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21661 Usually this means the macro was only invoked conditionally." >&5
21662 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21663 Usually this means the macro was only invoked conditionally." >&2;}
21664 { (exit 1); exit 1; }; }
21667 : ${CONFIG_STATUS=./config.status}
21668 ac_clean_files_save=$ac_clean_files
21669 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21670 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21671 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21672 cat >$CONFIG_STATUS <<_ACEOF
21674 # Generated by $as_me.
21675 # Run this file to recreate the current configuration.
21676 # Compiler output produced by configure, useful for debugging
21677 # configure, is in config.log if it exists.
21680 ac_cs_recheck=false
21682 SHELL=\${CONFIG_SHELL-$SHELL}
21685 cat >>$CONFIG_STATUS <<\_ACEOF
21686 ## --------------------- ##
21687 ## M4sh Initialization. ##
21688 ## --------------------- ##
21690 # Be more Bourne compatible
21691 DUALCASE=1; export DUALCASE # for MKS sh
21692 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21695 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21696 # is contrary to our usage. Disable this feature.
21697 alias -g '${1+"$@"}'='"$@"'
21698 setopt NO_GLOB_SUBST
21700 case `(set -o) 2>/dev/null` in
21701 *posix*) set -o posix ;;
21710 # Avoid depending upon Character Ranges.
21711 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21712 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21713 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21714 as_cr_digits='0123456789'
21715 as_cr_alnum=$as_cr_Letters$as_cr_digits
21717 # The user is always right.
21718 if test "${PATH_SEPARATOR+set}" != set; then
21719 echo "#! /bin/sh" >conf$$.sh
21720 echo "exit 0" >>conf$$.sh
21722 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21730 # Support unset when possible.
21731 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21739 # We need space, tab and new line, in precisely that order. Quoting is
21740 # there to prevent editors from complaining about space-tab.
21741 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21742 # splitting by setting IFS to empty value.)
21747 # Find who we are. Look in the path if we contain no directory separator.
21749 *[\\/]* ) as_myself=$0 ;;
21750 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21751 for as_dir in $PATH
21754 test -z "$as_dir" && as_dir=.
21755 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21761 # We did not find ourselves, most probably we were run as `sh COMMAND'
21762 # in which case we are not to be found in the path.
21763 if test "x$as_myself" = x; then
21766 if test ! -f "$as_myself"; then
21767 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21768 { (exit 1); exit 1; }
21771 # Work around bugs in pre-3.0 UWIN ksh.
21772 for as_var in ENV MAIL MAILPATH
21773 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21781 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21782 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21783 LC_TELEPHONE LC_TIME
21785 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21786 eval $as_var=C; export $as_var
21788 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21792 # Required to use basename.
21793 if expr a : '\(a\)' >/dev/null 2>&1 &&
21794 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21800 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21801 as_basename=basename
21807 # Name of the executable.
21808 as_me=`$as_basename -- "$0" ||
21809 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21810 X"$0" : 'X\(//\)$' \| \
21811 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21813 sed '/^.*\/\([^/][^/]*\)\/*$/{
21832 as_lineno_1=$LINENO
21833 as_lineno_2=$LINENO
21834 test "x$as_lineno_1" != "x$as_lineno_2" &&
21835 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21837 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21838 # uniformly replaced by the line number. The first 'sed' inserts a
21839 # line-number line after each line using $LINENO; the second 'sed'
21840 # does the real work. The second script uses 'N' to pair each
21841 # line-number line with the line containing $LINENO, and appends
21842 # trailing '-' during substitution so that $LINENO is not a special
21843 # case at line end.
21844 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21845 # scripts with optimization help from Paolo Bonzini. Blame Lee
21846 # E. McMahon (1931-1989) for sed's syntax. :-)
21858 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21861 ' >$as_me.lineno &&
21862 chmod +x "$as_me.lineno" ||
21863 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21864 { (exit 1); exit 1; }; }
21866 # Don't try to exec as it changes $[0], causing all sort of problems
21867 # (the dirname of $[0] is not the place where we might find the
21868 # original and so on. Autoconf is especially sensitive to this).
21869 . "./$as_me.lineno"
21870 # Exit status is that of the last command.
21875 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21881 ECHO_C= ECHO_N= ECHO_T=
21882 case `echo -n x` in
21884 case `echo 'x\c'` in
21885 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21892 if expr a : '\(a\)' >/dev/null 2>&1 &&
21893 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21899 rm -f conf$$ conf$$.exe conf$$.file
21900 if test -d conf$$.dir; then
21901 rm -f conf$$.dir/conf$$.file
21907 if ln -s conf$$.file conf$$ 2>/dev/null; then
21909 # ... but there are two gotchas:
21910 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21911 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21912 # In both cases, we have to default to `cp -p'.
21913 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21915 elif ln conf$$.file conf$$ 2>/dev/null; then
21920 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21921 rmdir conf$$.dir 2>/dev/null
21923 if mkdir -p . 2>/dev/null; then
21926 test -d ./-p && rmdir ./-p
21930 if test -x / >/dev/null 2>&1; then
21931 as_test_x='test -x'
21933 if ls -dL / >/dev/null 2>&1; then
21940 if test -d "$1"; then
21946 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21947 ???[sx]*):;;*)false;;esac;fi
21951 as_executable_p=$as_test_x
21953 # Sed expression to map a string onto a valid CPP name.
21954 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21956 # Sed expression to map a string onto a valid variable name.
21957 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21962 # Save the log message, to keep $[0] and so on meaningful, and to
21963 # report actual input values of CONFIG_FILES etc. instead of their
21964 # values after options handling.
21966 This file was extended by mod_chxj $as_me 0.12.35, which was
21967 generated by GNU Autoconf 2.61. Invocation command line was
21969 CONFIG_FILES = $CONFIG_FILES
21970 CONFIG_HEADERS = $CONFIG_HEADERS
21971 CONFIG_LINKS = $CONFIG_LINKS
21972 CONFIG_COMMANDS = $CONFIG_COMMANDS
21975 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21980 cat >>$CONFIG_STATUS <<_ACEOF
21981 # Files that config.status was made for.
21982 config_files="$ac_config_files"
21983 config_headers="$ac_config_headers"
21984 config_commands="$ac_config_commands"
21988 cat >>$CONFIG_STATUS <<\_ACEOF
21990 \`$as_me' instantiates files from templates according to the
21991 current configuration.
21993 Usage: $0 [OPTIONS] [FILE]...
21995 -h, --help print this help, then exit
21996 -V, --version print version number and configuration settings, then exit
21997 -q, --quiet do not print progress messages
21998 -d, --debug don't remove temporary files
21999 --recheck update $as_me by reconfiguring in the same conditions
22000 --file=FILE[:TEMPLATE]
22001 instantiate the configuration file FILE
22002 --header=FILE[:TEMPLATE]
22003 instantiate the configuration header FILE
22005 Configuration files:
22008 Configuration headers:
22011 Configuration commands:
22014 Report bugs to <bug-autoconf@gnu.org>."
22017 cat >>$CONFIG_STATUS <<_ACEOF
22019 mod_chxj config.status 0.12.35
22020 configured by $0, generated by GNU Autoconf 2.61,
22021 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
22023 Copyright (C) 2006 Free Software Foundation, Inc.
22024 This config.status script is free software; the Free Software Foundation
22025 gives unlimited permission to copy, distribute and modify it."
22033 cat >>$CONFIG_STATUS <<\_ACEOF
22034 # If no file are specified by the user, then we need to provide default
22035 # value. By we need to know if files were specified by the user.
22041 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22042 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22053 # Handling of the options.
22054 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22056 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22057 echo "$ac_cs_version"; exit ;;
22058 --debug | --debu | --deb | --de | --d | -d )
22060 --file | --fil | --fi | --f )
22062 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22063 ac_need_defaults=false;;
22064 --header | --heade | --head | --hea )
22066 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22067 ac_need_defaults=false;;
22069 # Conflict between --help and --header
22070 { echo "$as_me: error: ambiguous option: $1
22071 Try \`$0 --help' for more information." >&2
22072 { (exit 1); exit 1; }; };;
22073 --help | --hel | -h )
22074 echo "$ac_cs_usage"; exit ;;
22075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22076 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22079 # This is an error.
22080 -*) { echo "$as_me: error: unrecognized option: $1
22081 Try \`$0 --help' for more information." >&2
22082 { (exit 1); exit 1; }; } ;;
22084 *) ac_config_targets="$ac_config_targets $1"
22085 ac_need_defaults=false ;;
22091 ac_configure_extra_args=
22093 if $ac_cs_silent; then
22095 ac_configure_extra_args="$ac_configure_extra_args --silent"
22099 cat >>$CONFIG_STATUS <<_ACEOF
22100 if \$ac_cs_recheck; then
22101 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22102 CONFIG_SHELL=$SHELL
22103 export CONFIG_SHELL
22104 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22108 cat >>$CONFIG_STATUS <<\_ACEOF
22112 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22113 ## Running $as_me. ##
22119 cat >>$CONFIG_STATUS <<_ACEOF
22123 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22127 cat >>$CONFIG_STATUS <<\_ACEOF
22129 # Handling of arguments.
22130 for ac_config_target in $ac_config_targets
22132 case $ac_config_target in
22133 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22134 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22135 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22136 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22137 "support/centos/mod-chxj.spec") CONFIG_FILES="$CONFIG_FILES support/centos/mod-chxj.spec" ;;
22139 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22140 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22141 { (exit 1); exit 1; }; };;
22146 # If the user did not use the arguments to specify the items to instantiate,
22147 # then the envvar interface is used. Set only those that are not.
22148 # We use the long form for the default assignment because of an extremely
22149 # bizarre bug on SunOS 4.1.3.
22150 if $ac_need_defaults; then
22151 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22152 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22153 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22156 # Have a temporary directory for convenience. Make it in the build tree
22157 # simply because there is no reason against having it here, and in addition,
22158 # creating and moving files from /tmp can sometimes cause problems.
22159 # Hook for its removal unless debugging.
22160 # Note that there is a small window in which the directory will not be cleaned:
22161 # after its creation but before its name has been assigned to `$tmp'.
22165 trap 'exit_status=$?
22166 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22168 trap '{ (exit 1); exit 1; }' 1 2 13 15
22170 # Create a (secure) tmp directory for tmp files.
22173 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22174 test -n "$tmp" && test -d "$tmp"
22177 tmp=./conf$$-$RANDOM
22178 (umask 077 && mkdir "$tmp")
22181 echo "$me: cannot create a temporary directory in ." >&2
22182 { (exit 1); exit 1; }
22186 # Set up the sed scripts for CONFIG_FILES section.
22189 # No need to generate the scripts if there are no CONFIG_FILES.
22190 # This happens for instance when ./config.status config.h
22191 if test -n "$CONFIG_FILES"; then
22198 for ac_last_try in false false false false false :; do
22199 cat >conf$$subs.sed <<_ACEOF
22200 SHELL!$SHELL$ac_delim
22201 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22202 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22203 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22204 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22205 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22206 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22207 exec_prefix!$exec_prefix$ac_delim
22208 prefix!$prefix$ac_delim
22209 program_transform_name!$program_transform_name$ac_delim
22210 bindir!$bindir$ac_delim
22211 sbindir!$sbindir$ac_delim
22212 libexecdir!$libexecdir$ac_delim
22213 datarootdir!$datarootdir$ac_delim
22214 datadir!$datadir$ac_delim
22215 sysconfdir!$sysconfdir$ac_delim
22216 sharedstatedir!$sharedstatedir$ac_delim
22217 localstatedir!$localstatedir$ac_delim
22218 includedir!$includedir$ac_delim
22219 oldincludedir!$oldincludedir$ac_delim
22220 docdir!$docdir$ac_delim
22221 infodir!$infodir$ac_delim
22222 htmldir!$htmldir$ac_delim
22223 dvidir!$dvidir$ac_delim
22224 pdfdir!$pdfdir$ac_delim
22225 psdir!$psdir$ac_delim
22226 libdir!$libdir$ac_delim
22227 localedir!$localedir$ac_delim
22228 mandir!$mandir$ac_delim
22229 DEFS!$DEFS$ac_delim
22230 ECHO_C!$ECHO_C$ac_delim
22231 ECHO_N!$ECHO_N$ac_delim
22232 ECHO_T!$ECHO_T$ac_delim
22233 LIBS!$LIBS$ac_delim
22234 build_alias!$build_alias$ac_delim
22235 host_alias!$host_alias$ac_delim
22236 target_alias!$target_alias$ac_delim
22237 build!$build$ac_delim
22238 build_cpu!$build_cpu$ac_delim
22239 build_vendor!$build_vendor$ac_delim
22240 build_os!$build_os$ac_delim
22241 host!$host$ac_delim
22242 host_cpu!$host_cpu$ac_delim
22243 host_vendor!$host_vendor$ac_delim
22244 host_os!$host_os$ac_delim
22245 target!$target$ac_delim
22246 target_cpu!$target_cpu$ac_delim
22247 target_vendor!$target_vendor$ac_delim
22248 target_os!$target_os$ac_delim
22249 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22250 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22251 INSTALL_DATA!$INSTALL_DATA$ac_delim
22252 am__isrc!$am__isrc$ac_delim
22253 CYGPATH_W!$CYGPATH_W$ac_delim
22254 PACKAGE!$PACKAGE$ac_delim
22255 VERSION!$VERSION$ac_delim
22256 ACLOCAL!$ACLOCAL$ac_delim
22257 AUTOCONF!$AUTOCONF$ac_delim
22258 AUTOMAKE!$AUTOMAKE$ac_delim
22259 AUTOHEADER!$AUTOHEADER$ac_delim
22260 MAKEINFO!$MAKEINFO$ac_delim
22261 install_sh!$install_sh$ac_delim
22262 STRIP!$STRIP$ac_delim
22263 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22264 mkdir_p!$mkdir_p$ac_delim
22266 SET_MAKE!$SET_MAKE$ac_delim
22267 am__leading_dot!$am__leading_dot$ac_delim
22268 AMTAR!$AMTAR$ac_delim
22269 am__tar!$am__tar$ac_delim
22270 am__untar!$am__untar$ac_delim
22272 CFLAGS!$CFLAGS$ac_delim
22273 LDFLAGS!$LDFLAGS$ac_delim
22274 CPPFLAGS!$CPPFLAGS$ac_delim
22275 ac_ct_CC!$ac_ct_CC$ac_delim
22276 EXEEXT!$EXEEXT$ac_delim
22277 OBJEXT!$OBJEXT$ac_delim
22278 DEPDIR!$DEPDIR$ac_delim
22279 am__include!$am__include$ac_delim
22280 am__quote!$am__quote$ac_delim
22281 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22282 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22283 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22284 CCDEPMODE!$CCDEPMODE$ac_delim
22285 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22286 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22287 GREP!$GREP$ac_delim
22288 EGREP!$EGREP$ac_delim
22289 LN_S!$LN_S$ac_delim
22290 ECHO!$ECHO$ac_delim
22292 RANLIB!$RANLIB$ac_delim
22295 CXXFLAGS!$CXXFLAGS$ac_delim
22296 ac_ct_CXX!$ac_ct_CXX$ac_delim
22299 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22301 elif $ac_last_try; then
22302 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22303 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22304 { (exit 1); exit 1; }; }
22306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22310 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22311 if test -n "$ac_eof"; then
22312 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22313 ac_eof=`expr $ac_eof + 1`
22316 cat >>$CONFIG_STATUS <<_ACEOF
22317 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22321 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22322 s/^/s,@/; s/!/@,|#_!!_#|/
22325 s/'"$ac_delim"'$/,g/; t
22327 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22328 ' >>$CONFIG_STATUS <conf$$subs.sed
22329 rm -f conf$$subs.sed
22330 cat >>$CONFIG_STATUS <<_ACEOF
22336 for ac_last_try in false false false false false :; do
22337 cat >conf$$subs.sed <<_ACEOF
22338 CXXDEPMODE!$CXXDEPMODE$ac_delim
22339 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22340 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22341 CXXCPP!$CXXCPP$ac_delim
22343 FFLAGS!$FFLAGS$ac_delim
22344 ac_ct_F77!$ac_ct_F77$ac_delim
22345 LIBTOOL!$LIBTOOL$ac_delim
22346 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22347 APXS2!$APXS2$ac_delim
22348 APXS!$APXS$ac_delim
22349 WAND_CONFIG!$WAND_CONFIG$ac_delim
22350 APR_CONFIG!$APR_CONFIG$ac_delim
22351 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22352 APU_CONFIG!$APU_CONFIG$ac_delim
22353 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22354 PCRE_CONFIG!$PCRE_CONFIG$ac_delim
22355 PCRE_1_CONFIG!$PCRE_1_CONFIG$ac_delim
22356 LIBOBJS!$LIBOBJS$ac_delim
22357 with_apache_header!$with_apache_header$ac_delim
22358 QDEFS!$QDEFS$ac_delim
22359 DDEFS!$DDEFS$ac_delim
22360 OPENSSL_PATH!$OPENSSL_PATH$ac_delim
22361 LTLIBOBJS!$LTLIBOBJS$ac_delim
22364 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 24; then
22366 elif $ac_last_try; then
22367 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22368 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22369 { (exit 1); exit 1; }; }
22371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22375 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22376 if test -n "$ac_eof"; then
22377 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22378 ac_eof=`expr $ac_eof + 1`
22381 cat >>$CONFIG_STATUS <<_ACEOF
22382 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22383 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22386 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22387 s/^/s,@/; s/!/@,|#_!!_#|/
22390 s/'"$ac_delim"'$/,g/; t
22392 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22393 ' >>$CONFIG_STATUS <conf$$subs.sed
22394 rm -f conf$$subs.sed
22395 cat >>$CONFIG_STATUS <<_ACEOF
22402 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22403 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22404 # trailing colons and then remove the whole line if VPATH becomes empty
22405 # (actually we leave an empty line to preserve line numbers).
22406 if test "x$srcdir" = x.; then
22407 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22408 s/:*\$(srcdir):*/:/
22409 s/:*\${srcdir}:*/:/
22411 s/^\([^=]*=[ ]*\):*/\1/
22417 cat >>$CONFIG_STATUS <<\_ACEOF
22418 fi # test -n "$CONFIG_FILES"
22421 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22424 :[FHLC]) ac_mode=$ac_tag; continue;;
22426 case $ac_mode$ac_tag in
22428 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22429 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22430 { (exit 1); exit 1; }; };;
22431 :[FH]-) ac_tag=-:-;;
22432 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22449 -) ac_f="$tmp/stdin";;
22450 *) # Look for the file first in the build tree, then in the source tree
22451 # (if the path is not absolute). The absolute path cannot be DOS-style,
22452 # because $ac_f cannot contain `:'.
22456 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22458 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22459 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22460 { (exit 1); exit 1; }; };;
22462 ac_file_inputs="$ac_file_inputs $ac_f"
22465 # Let's still pretend it is `configure' which instantiates (i.e., don't
22466 # use $as_me), people would be surprised to read:
22467 # /* config.h. Generated by config.status. */
22468 configure_input="Generated from "`IFS=:
22469 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22470 if test x"$ac_file" != x-; then
22471 configure_input="$ac_file. $configure_input"
22472 { echo "$as_me:$LINENO: creating $ac_file" >&5
22473 echo "$as_me: creating $ac_file" >&6;}
22477 *:-:* | *:-) cat >"$tmp/stdin";;
22482 ac_dir=`$as_dirname -- "$ac_file" ||
22483 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22484 X"$ac_file" : 'X\(//\)[^/]' \| \
22485 X"$ac_file" : 'X\(//\)$' \| \
22486 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22492 /^X\(\/\/\)[^/].*/{
22507 -*) as_dir=./$as_dir;;
22509 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22513 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22514 *) as_qdir=$as_dir;;
22516 as_dirs="'$as_qdir' $as_dirs"
22517 as_dir=`$as_dirname -- "$as_dir" ||
22518 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22519 X"$as_dir" : 'X\(//\)[^/]' \| \
22520 X"$as_dir" : 'X\(//\)$' \| \
22521 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22527 /^X\(\/\/\)[^/].*/{
22540 test -d "$as_dir" && break
22542 test -z "$as_dirs" || eval "mkdir $as_dirs"
22543 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22544 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22545 { (exit 1); exit 1; }; }; }
22549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22552 # A ".." for each directory in $ac_dir_suffix.
22553 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22554 case $ac_top_builddir_sub in
22555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22559 ac_abs_top_builddir=$ac_pwd
22560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22561 # for backward compatibility:
22562 ac_top_builddir=$ac_top_build_prefix
22565 .) # We are building in place.
22567 ac_top_srcdir=$ac_top_builddir_sub
22568 ac_abs_top_srcdir=$ac_pwd ;;
22569 [\\/]* | ?:[\\/]* ) # Absolute name.
22570 ac_srcdir=$srcdir$ac_dir_suffix;
22571 ac_top_srcdir=$srcdir
22572 ac_abs_top_srcdir=$srcdir ;;
22573 *) # Relative name.
22574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22575 ac_top_srcdir=$ac_top_build_prefix$srcdir
22576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22588 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22589 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22591 ac_MKDIR_P=$MKDIR_P
22593 [\\/$]* | ?:[\\/]* ) ;;
22594 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22598 cat >>$CONFIG_STATUS <<\_ACEOF
22599 # If the template does not know about datarootdir, expand it.
22600 # FIXME: This hack should be removed a few years after 2.60.
22601 ac_datarootdir_hack=; ac_datarootdir_seen=
22603 case `sed -n '/datarootdir/ {
22612 ' $ac_file_inputs` in
22613 *datarootdir*) ac_datarootdir_seen=yes;;
22614 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22615 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22616 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22618 cat >>$CONFIG_STATUS <<_ACEOF
22619 ac_datarootdir_hack='
22620 s&@datadir@&$datadir&g
22621 s&@docdir@&$docdir&g
22622 s&@infodir@&$infodir&g
22623 s&@localedir@&$localedir&g
22624 s&@mandir@&$mandir&g
22625 s&\\\${datarootdir}&$datarootdir&g' ;;
22629 # Neutralize VPATH when `$srcdir' = `.'.
22630 # Shell code in configure.ac might set extrasub.
22631 # FIXME: do we really want to maintain this feature?
22632 cat >>$CONFIG_STATUS <<_ACEOF
22636 cat >>$CONFIG_STATUS <<\_ACEOF
22638 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22639 s&@configure_input@&$configure_input&;t t
22640 s&@top_builddir@&$ac_top_builddir_sub&;t t
22641 s&@srcdir@&$ac_srcdir&;t t
22642 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22643 s&@top_srcdir@&$ac_top_srcdir&;t t
22644 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22645 s&@builddir@&$ac_builddir&;t t
22646 s&@abs_builddir@&$ac_abs_builddir&;t t
22647 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22648 s&@INSTALL@&$ac_INSTALL&;t t
22649 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22650 $ac_datarootdir_hack
22651 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22653 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22654 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22655 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22656 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22657 which seems to be undefined. Please make sure it is defined." >&5
22658 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22659 which seems to be undefined. Please make sure it is defined." >&2;}
22663 -) cat "$tmp/out"; rm -f "$tmp/out";;
22664 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22673 # Transform confdefs.h into a sed script `conftest.defines', that
22674 # substitutes the proper values into config.h.in to produce config.h.
22675 rm -f conftest.defines conftest.tail
22676 # First, append a space to every undef/define line, to ease matching.
22677 echo 's/$/ /' >conftest.defines
22678 # Then, protect against being on the right side of a sed subst, or in
22679 # an unquoted here document, in config.status. If some macros were
22680 # called several times there might be several #defines for the same
22681 # symbol, which is useless. But do not sort them, since the last
22682 # AC_DEFINE must be honored.
22683 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22684 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22685 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22686 # PARAMS is the parameter list in the macro definition--in most cases, it's
22687 # just an empty string.
22688 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22689 ac_dB='\\)[ (].*,\\1define\\2'
22697 s/^[ ]*#[ ]*define[ ][ ]*//
22702 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22703 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22704 ' >>conftest.defines
22706 # Remove the space that was appended to ease matching.
22707 # Then replace #undef with comments. This is necessary, for
22708 # example, in the case of _POSIX_SOURCE, which is predefined and required
22709 # on some systems where configure will not decide to define it.
22710 # (The regexp can be short, since the line contains either #define or #undef.)
22712 s,^[ #]*u.*,/* & */,' >>conftest.defines
22714 # Break up conftest.defines:
22715 ac_max_sed_lines=50
22717 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22718 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22719 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22721 ac_in='$ac_file_inputs'
22722 ac_out='"$tmp/out1"'
22723 ac_nxt='"$tmp/out2"'
22727 # Write a here document:
22728 cat >>$CONFIG_STATUS <<_ACEOF
22729 # First, check the format of the line:
22730 cat >"\$tmp/defines.sed" <<\\CEOF
22731 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22732 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22736 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22738 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22739 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22740 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22741 grep . conftest.tail >/dev/null || break
22742 rm -f conftest.defines
22743 mv conftest.tail conftest.defines
22745 rm -f conftest.defines conftest.tail
22747 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22748 cat >>$CONFIG_STATUS <<\_ACEOF
22749 if test x"$ac_file" != x-; then
22750 echo "/* $configure_input */" >"$tmp/config.h"
22751 cat "$ac_result" >>"$tmp/config.h"
22752 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22753 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22754 echo "$as_me: $ac_file is unchanged" >&6;}
22757 mv "$tmp/config.h" $ac_file
22760 echo "/* $configure_input */"
22764 # Compute $ac_file's index in $config_headers.
22766 for _am_header in $config_headers :; do
22767 case $_am_header in
22768 $ac_file | $ac_file:* )
22771 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22774 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22775 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22776 X$ac_file : 'X\(//\)[^/]' \| \
22777 X$ac_file : 'X\(//\)$' \| \
22778 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22780 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22784 /^X\(\/\/\)[^/].*/{
22796 s/.*/./; q'`/stamp-h$_am_stamp_count
22799 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22800 echo "$as_me: executing $ac_file commands" >&6;}
22805 case $ac_file$ac_mode in
22806 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22807 # Strip MF so we end up with the name of the file.
22808 mf=`echo "$mf" | sed -e 's/:.*$//'`
22809 # Check whether this is an Automake generated Makefile or not.
22810 # We used to match only the files named `Makefile.in', but
22811 # some people rename them; so instead we look at the file content.
22812 # Grep'ing the first line is not enough: some people post-process
22813 # each Makefile.in and add a new line on top of each file to say so.
22814 # Grep'ing the whole file is not good either: AIX grep has a line
22815 # limit of 2048, but all sed's we know have understand at least 4000.
22816 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22817 dirpart=`$as_dirname -- "$mf" ||
22818 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22819 X"$mf" : 'X\(//\)[^/]' \| \
22820 X"$mf" : 'X\(//\)$' \| \
22821 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22827 /^X\(\/\/\)[^/].*/{
22843 # Extract the definition of DEPDIR, am__include, and am__quote
22844 # from the Makefile without running `make'.
22845 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22846 test -z "$DEPDIR" && continue
22847 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22848 test -z "am__include" && continue
22849 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22850 # When using ansi2knr, U may be empty or an underscore; expand it
22851 U=`sed -n 's/^U = //p' < "$mf"`
22852 # Find all dependency output files, they are included files with
22853 # $(DEPDIR) in their names. We invoke sed twice because it is the
22854 # simplest approach to changing $(DEPDIR) to its actual value in the
22856 for file in `sed -n "
22857 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22858 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22859 # Make sure the directory exists.
22860 test -f "$dirpart/$file" && continue
22861 fdir=`$as_dirname -- "$file" ||
22862 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22863 X"$file" : 'X\(//\)[^/]' \| \
22864 X"$file" : 'X\(//\)$' \| \
22865 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22871 /^X\(\/\/\)[^/].*/{
22884 { as_dir=$dirpart/$fdir
22886 -*) as_dir=./$as_dir;;
22888 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22892 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22893 *) as_qdir=$as_dir;;
22895 as_dirs="'$as_qdir' $as_dirs"
22896 as_dir=`$as_dirname -- "$as_dir" ||
22897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22898 X"$as_dir" : 'X\(//\)[^/]' \| \
22899 X"$as_dir" : 'X\(//\)$' \| \
22900 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22902 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22906 /^X\(\/\/\)[^/].*/{
22919 test -d "$as_dir" && break
22921 test -z "$as_dirs" || eval "mkdir $as_dirs"
22922 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22923 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22924 { (exit 1); exit 1; }; }; }
22925 # echo "creating $dirpart/$file"
22926 echo '# dummy' > "$dirpart/$file"
22935 { (exit 0); exit 0; }
22937 chmod +x $CONFIG_STATUS
22938 ac_clean_files=$ac_clean_files_save
22941 # configure is writing to config.log, and then calls config.status.
22942 # config.status does its own redirection, appending to config.log.
22943 # Unfortunately, on DOS this fails, as config.log is still kept open
22944 # by configure, so config.status won't be able to write to it; its
22945 # output is simply discarded. So we exec the FD to /dev/null,
22946 # effectively closing config.log, so it can be properly (re)opened and
22947 # appended to by config.status. When coming back to configure, we
22948 # need to make the FD available again.
22949 if test "$no_create" != yes; then
22951 ac_config_status_args=
22952 test "$silent" = yes &&
22953 ac_config_status_args="$ac_config_status_args --quiet"
22955 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22957 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22958 # would make configure fail if this is the last instruction.
22959 $ac_cs_success || { (exit 1); exit 1; }