2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for mod_chxj 0.12.27.
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.27'
732 PACKAGE_STRING='mod_chxj 0.12.27'
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
893 ac_precious_vars='build_alias
910 # Initialize some variables set by options.
912 ac_init_version=false
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
922 program_transform_name=s,x,x,
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir='${datarootdir}/info'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
968 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 # Accept the important Cygnus configure options, so we can diagnose typos.
974 case $ac_dashdash$ac_option in
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
983 -build | --build | --buil | --bui | --bu)
984 ac_prev=build_alias ;;
985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986 build_alias=$ac_optarg ;;
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993 cache_file=$ac_optarg ;;
996 cache_file=config.cache ;;
998 -datadir | --datadir | --datadi | --datad)
1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001 datadir=$ac_optarg ;;
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1010 -disable-* | --disable-*)
1011 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015 { (exit 1); exit 1; }; }
1016 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017 eval enable_$ac_feature=no ;;
1019 -docdir | --docdir | --docdi | --doc | --do)
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
1029 -enable-* | --enable-*)
1030 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1036 eval enable_$ac_feature=\$ac_optarg ;;
1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040 | --exec | --exe | --ex)
1041 ac_prev=exec_prefix ;;
1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044 | --exec=* | --exe=* | --ex=*)
1045 exec_prefix=$ac_optarg ;;
1047 -gas | --gas | --ga | --g)
1048 # Obsolete; use --with-gas.
1051 -help | --help | --hel | --he | -h)
1052 ac_init_help=long ;;
1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054 ac_init_help=recursive ;;
1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056 ac_init_help=short ;;
1058 -host | --host | --hos | --ho)
1059 ac_prev=host_alias ;;
1060 -host=* | --host=* | --hos=* | --ho=*)
1061 host_alias=$ac_optarg ;;
1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1067 htmldir=$ac_optarg ;;
1069 -includedir | --includedir | --includedi | --included | --include \
1070 | --includ | --inclu | --incl | --inc)
1071 ac_prev=includedir ;;
1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073 | --includ=* | --inclu=* | --incl=* | --inc=*)
1074 includedir=$ac_optarg ;;
1076 -infodir | --infodir | --infodi | --infod | --info | --inf)
1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1079 infodir=$ac_optarg ;;
1081 -libdir | --libdir | --libdi | --libd)
1083 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1084 libdir=$ac_optarg ;;
1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087 | --libexe | --libex | --libe)
1088 ac_prev=libexecdir ;;
1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090 | --libexe=* | --libex=* | --libe=*)
1091 libexecdir=$ac_optarg ;;
1093 -localedir | --localedir | --localedi | --localed | --locale)
1094 ac_prev=localedir ;;
1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096 localedir=$ac_optarg ;;
1098 -localstatedir | --localstatedir | --localstatedi | --localstated \
1099 | --localstate | --localstat | --localsta | --localst | --locals)
1100 ac_prev=localstatedir ;;
1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1103 localstatedir=$ac_optarg ;;
1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1108 mandir=$ac_optarg ;;
1110 -nfp | --nfp | --nf)
1111 # Obsolete; use --without-fp.
1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1115 | --no-cr | --no-c | -n)
1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124 | --oldin | --oldi | --old | --ol | --o)
1125 ac_prev=oldincludedir ;;
1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1129 oldincludedir=$ac_optarg ;;
1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1134 prefix=$ac_optarg ;;
1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1137 | --program-pre | --program-pr | --program-p)
1138 ac_prev=program_prefix ;;
1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1141 program_prefix=$ac_optarg ;;
1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1144 | --program-suf | --program-su | --program-s)
1145 ac_prev=program_suffix ;;
1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1148 program_suffix=$ac_optarg ;;
1150 -program-transform-name | --program-transform-name \
1151 | --program-transform-nam | --program-transform-na \
1152 | --program-transform-n | --program-transform- \
1153 | --program-transform | --program-transfor \
1154 | --program-transfo | --program-transf \
1155 | --program-trans | --program-tran \
1156 | --progr-tra | --program-tr | --program-t)
1157 ac_prev=program_transform_name ;;
1158 -program-transform-name=* | --program-transform-name=* \
1159 | --program-transform-nam=* | --program-transform-na=* \
1160 | --program-transform-n=* | --program-transform-=* \
1161 | --program-transform=* | --program-transfor=* \
1162 | --program-transfo=* | --program-transf=* \
1163 | --program-trans=* | --program-tran=* \
1164 | --progr-tra=* | --program-tr=* | --program-t=*)
1165 program_transform_name=$ac_optarg ;;
1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170 pdfdir=$ac_optarg ;;
1172 -psdir | --psdir | --psdi | --psd | --ps)
1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178 | -silent | --silent | --silen | --sile | --sil)
1181 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1183 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1185 sbindir=$ac_optarg ;;
1187 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189 | --sharedst | --shareds | --shared | --share | --shar \
1191 ac_prev=sharedstatedir ;;
1192 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1196 sharedstatedir=$ac_optarg ;;
1198 -site | --site | --sit)
1200 -site=* | --site=* | --sit=*)
1203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206 srcdir=$ac_optarg ;;
1208 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209 | --syscon | --sysco | --sysc | --sys | --sy)
1210 ac_prev=sysconfdir ;;
1211 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213 sysconfdir=$ac_optarg ;;
1215 -target | --target | --targe | --targ | --tar | --ta | --t)
1216 ac_prev=target_alias ;;
1217 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218 target_alias=$ac_optarg ;;
1220 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1223 -version | --version | --versio | --versi | --vers | -V)
1224 ac_init_version=: ;;
1227 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 { echo "$as_me: error: invalid package name: $ac_package" >&2
1231 { (exit 1); exit 1; }; }
1232 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233 eval with_$ac_package=\$ac_optarg ;;
1235 -without-* | --without-*)
1236 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 { echo "$as_me: error: invalid package name: $ac_package" >&2
1240 { (exit 1); exit 1; }; }
1241 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1242 eval with_$ac_package=no ;;
1245 # Obsolete; use --with-x.
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1262 -*) { echo "$as_me: error: unrecognized option: $ac_option
1263 Try \`$0 --help' for more information." >&2
1264 { (exit 1); exit 1; }; }
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1271 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1272 { (exit 1); exit 1; }; }
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1277 # FIXME: should be removed in autoconf 3.0.
1278 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 { echo "$as_me: error: missing argument to $ac_option" >&2
1290 { (exit 1); exit 1; }; }
1293 # Be sure to have absolute directory names.
1294 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
1299 eval ac_val=\$$ac_var
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1305 { (exit 1); exit 1; }; }
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1313 target=$target_alias
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317 if test "x$build_alias" = x; then
1318 cross_compiling=maybe
1319 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1320 If a cross compiler is detected then cross compile mode will be used." >&2
1321 elif test "x$build_alias" != "x$host_alias"; then
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329 test "$silent" = yes && exec 6>/dev/null
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335 { echo "$as_me: error: Working directory cannot be determined" >&2
1336 { (exit 1); exit 1; }; }
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 { echo "$as_me: error: pwd does not report name of working directory" >&2
1339 { (exit 1); exit 1; }; }
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344 ac_srcdir_defaulted=yes
1345 # Try the directory containing this script, then the parent directory.
1346 ac_confdir=`$as_dirname -- "$0" ||
1347 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348 X"$0" : 'X\(//\)[^/]' \| \
1349 X"$0" : 'X\(//\)$' \| \
1350 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1374 ac_srcdir_defaulted=no
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1379 { (exit 1); exit 1; }; }
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1383 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1384 { (exit 1); exit 1; }; }
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1396 for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 # Report the --help message.
1406 if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1410 \`configure' configures mod_chxj 0.12.27 to adapt to many kinds of systems.
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE. See below for descriptions of some of the useful variables.
1417 Defaults for the options are specified in brackets.
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
1424 -q, --quiet, --silent do not print \`checking...' messages
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1430 Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
1432 [$ac_default_prefix]
1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1441 For better control, use the options below.
1443 Fine tuning of the installation directories:
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/mod_chxj]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1468 --program-prefix=PREFIX prepend PREFIX to installed program names
1469 --program-suffix=SUFFIX append SUFFIX to installed program names
1470 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1473 --build=BUILD configure for building on BUILD [guessed]
1474 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1475 --target=TARGET configure for building compilers for TARGET [HOST]
1479 if test -n "$ac_init_help"; then
1480 case $ac_init_help in
1481 short | recursive ) echo "Configuration of mod_chxj 0.12.27:";;
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --disable-dependency-tracking speeds up one-time build
1489 --enable-dependency-tracking do not reject slow dependency extractors
1490 --enable-shared[=PKGS] build shared libraries [default=yes]
1491 --enable-static[=PKGS] build static libraries [default=yes]
1492 --enable-fast-install[=PKGS]
1493 optimize for fast installation [default=yes]
1494 --disable-libtool-lock avoid locking (might break parallel builds)
1495 --enable-img-conv-f Please specify it when you change the file name of the image being written in the
1496 source by the automatic operation.
1497 --enable-memcache-cookie Please specify it when you save Cookie in memcached.
1498 --enable-memcached-static use static link.
1499 --enable-mysql-cookie Please specify it when you save Cookie in MySQL.
1500 --enable-dump-log When the log of conversion is output, it specifies it with the output file.
1503 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1504 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1505 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1506 --with-pic try to use only PIC/non-PIC objects [default=use
1508 --with-tags[=TAGS] include additional configurations [automatic]
1509 --with-apache-header=ARG The directory with the header file of apache2.0 is specified.
1510 --with-apxs=ARG Path of apxs program file.
1511 --with-apr-config=ARG Path of apr-config program file.
1512 --with-apu-config=ARG Path of apu-config program file.
1513 --with-pcre-config=ARG Path of pcre-config program file.
1514 --with-memcached-header Path of "memcached.h"
1515 --with-memcached-lib-dir Path of "libmemcached.so"
1516 --with-mysql-header=ARG Path of "mysql.h"
1517 --with-mysql-lib-dir=ARG Path of libmysqlclient
1519 Some influential environment variables:
1520 CC C compiler command
1521 CFLAGS C compiler flags
1522 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1523 nonstandard directory <lib dir>
1524 LIBS libraries to pass to the linker, e.g. -l<library>
1525 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1526 you have headers in a nonstandard directory <include dir>
1528 CXX C++ compiler command
1529 CXXFLAGS C++ compiler flags
1530 CXXCPP C++ preprocessor
1531 F77 Fortran 77 compiler command
1532 FFLAGS Fortran 77 compiler flags
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1537 Report bugs to <konn@users.sourceforge.jp>.
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" || continue
1549 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1552 # A ".." for each directory in $ac_dir_suffix.
1553 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1554 case $ac_top_builddir_sub in
1555 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 ac_abs_top_builddir=$ac_pwd
1560 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1561 # for backward compatibility:
1562 ac_top_builddir=$ac_top_build_prefix
1565 .) # We are building in place.
1567 ac_top_srcdir=$ac_top_builddir_sub
1568 ac_abs_top_srcdir=$ac_pwd ;;
1569 [\\/]* | ?:[\\/]* ) # Absolute name.
1570 ac_srcdir=$srcdir$ac_dir_suffix;
1571 ac_top_srcdir=$srcdir
1572 ac_abs_top_srcdir=$srcdir ;;
1574 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1575 ac_top_srcdir=$ac_top_build_prefix$srcdir
1576 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580 cd "$ac_dir" || { ac_status=$?; continue; }
1581 # Check for guested configure.
1582 if test -f "$ac_srcdir/configure.gnu"; then
1584 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1585 elif test -f "$ac_srcdir/configure"; then
1587 $SHELL "$ac_srcdir/configure" --help=recursive
1589 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591 cd "$ac_pwd" || { ac_status=$?; break; }
1595 test -n "$ac_init_help" && exit $ac_status
1596 if $ac_init_version; then
1598 mod_chxj configure 0.12.27
1599 generated by GNU Autoconf 2.61
1601 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1602 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1603 This configure script is free software; the Free Software Foundation
1604 gives unlimited permission to copy, distribute and modify it.
1608 cat >config.log <<_ACEOF
1609 This file contains any messages produced by compilers while
1610 running configure, to aid debugging if configure makes a mistake.
1612 It was created by mod_chxj $as_me 0.12.27, which was
1613 generated by GNU Autoconf 2.61. Invocation command line was
1625 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1626 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1627 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1628 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1629 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1631 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1632 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1634 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1635 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1636 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1637 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1638 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1639 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1640 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1648 test -z "$as_dir" && as_dir=.
1649 echo "PATH: $as_dir"
1665 # Keep a trace of the command line.
1666 # Strip out --no-create and --no-recursion so they do not pile up.
1667 # Strip out --silent because we don't want to record it for future runs.
1668 # Also quote any args containing shell meta-characters.
1669 # Make two passes to allow for proper duplicate-argument suppression.
1673 ac_must_keep_next=false
1679 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1680 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1681 | -silent | --silent | --silen | --sile | --sil)
1684 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1687 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1689 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1690 if test $ac_must_keep_next = true; then
1691 ac_must_keep_next=false # Got value, back to normal.
1694 *=* | --config-cache | -C | -disable-* | --disable-* \
1695 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1696 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1697 | -with-* | --with-* | -without-* | --without-* | --x)
1698 case "$ac_configure_args0 " in
1699 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1702 -* ) ac_must_keep_next=true ;;
1705 ac_configure_args="$ac_configure_args '$ac_arg'"
1710 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1711 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1713 # When interrupted or exit'd, cleanup temporary files, and complete
1714 # config.log. We remove comments because anyway the quotes in there
1715 # would cause problems or look ugly.
1716 # WARNING: Use '\'' to represent an apostrophe within the trap.
1717 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1718 trap 'exit_status=$?
1719 # Save into config.log some information that might help in debugging.
1724 ## ---------------- ##
1725 ## Cache variables. ##
1726 ## ---------------- ##
1729 # The following way of writing the cache mishandles newlines in values,
1731 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1732 eval ac_val=\$$ac_var
1736 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1737 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1740 _ | IFS | as_nl) ;; #(
1741 *) $as_unset $ac_var ;;
1746 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1747 *${as_nl}ac_space=\ *)
1749 "s/'\''/'\''\\\\'\'''\''/g;
1750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1761 ## ----------------- ##
1762 ## Output variables. ##
1763 ## ----------------- ##
1766 for ac_var in $ac_subst_vars
1768 eval ac_val=\$$ac_var
1770 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1772 echo "$ac_var='\''$ac_val'\''"
1776 if test -n "$ac_subst_files"; then
1778 ## ------------------- ##
1779 ## File substitutions. ##
1780 ## ------------------- ##
1783 for ac_var in $ac_subst_files
1785 eval ac_val=\$$ac_var
1787 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1789 echo "$ac_var='\''$ac_val'\''"
1794 if test -s confdefs.h; then
1804 test "$ac_signal" != 0 &&
1805 echo "$as_me: caught signal $ac_signal"
1806 echo "$as_me: exit $exit_status"
1808 rm -f core *.core core.conftest.* &&
1809 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1812 for ac_signal in 1 2 13 15; do
1813 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1817 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1818 rm -f -r conftest* confdefs.h
1820 # Predefined preprocessor variables.
1822 cat >>confdefs.h <<_ACEOF
1823 #define PACKAGE_NAME "$PACKAGE_NAME"
1827 cat >>confdefs.h <<_ACEOF
1828 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1832 cat >>confdefs.h <<_ACEOF
1833 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1837 cat >>confdefs.h <<_ACEOF
1838 #define PACKAGE_STRING "$PACKAGE_STRING"
1842 cat >>confdefs.h <<_ACEOF
1843 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1847 # Let the site file select an alternate cache file if it wants to.
1848 # Prefer explicitly selected file to automatically selected ones.
1849 if test -n "$CONFIG_SITE"; then
1850 set x "$CONFIG_SITE"
1851 elif test "x$prefix" != xNONE; then
1852 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1854 set x "$ac_default_prefix/share/config.site" \
1855 "$ac_default_prefix/etc/config.site"
1860 if test -r "$ac_site_file"; then
1861 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1862 echo "$as_me: loading site script $ac_site_file" >&6;}
1863 sed 's/^/| /' "$ac_site_file" >&5
1868 if test -r "$cache_file"; then
1869 # Some versions of bash will fail to source /dev/null (special
1870 # files actually), so we avoid doing that.
1871 if test -f "$cache_file"; then
1872 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1873 echo "$as_me: loading cache $cache_file" >&6;}
1875 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1876 *) . "./$cache_file";;
1880 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1881 echo "$as_me: creating cache $cache_file" >&6;}
1885 # Check that the precious variables saved in the cache have kept the same
1887 ac_cache_corrupted=false
1888 for ac_var in $ac_precious_vars; do
1889 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1890 eval ac_new_set=\$ac_env_${ac_var}_set
1891 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1892 eval ac_new_val=\$ac_env_${ac_var}_value
1893 case $ac_old_set,$ac_new_set in
1895 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1896 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1897 ac_cache_corrupted=: ;;
1899 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1900 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1901 ac_cache_corrupted=: ;;
1904 if test "x$ac_old_val" != "x$ac_new_val"; then
1905 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1906 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1907 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1908 echo "$as_me: former value: $ac_old_val" >&2;}
1909 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1910 echo "$as_me: current value: $ac_new_val" >&2;}
1911 ac_cache_corrupted=:
1914 # Pass precious variables to config.status.
1915 if test "$ac_new_set" = set; then
1917 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1918 *) ac_arg=$ac_var=$ac_new_val ;;
1920 case " $ac_configure_args " in
1921 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1922 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1926 if $ac_cache_corrupted; then
1927 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1928 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1929 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1930 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1931 { (exit 1); exit 1; }; }
1959 ac_cpp='$CPP $CPPFLAGS'
1960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1968 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1969 if test -f "$ac_dir/install-sh"; then
1971 ac_install_sh="$ac_aux_dir/install-sh -c"
1973 elif test -f "$ac_dir/install.sh"; then
1975 ac_install_sh="$ac_aux_dir/install.sh -c"
1977 elif test -f "$ac_dir/shtool"; then
1979 ac_install_sh="$ac_aux_dir/shtool install -c"
1983 if test -z "$ac_aux_dir"; then
1984 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1985 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1986 { (exit 1); exit 1; }; }
1989 # These three variables are undocumented and unsupported,
1990 # and are intended to be withdrawn in a future Autoconf release.
1991 # They can cause serious problems if a builder's source tree is in a directory
1992 # whose full name contains unusual characters.
1993 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1994 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1995 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1998 # Make sure we can run config.sub.
1999 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2000 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2001 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2002 { (exit 1); exit 1; }; }
2004 { echo "$as_me:$LINENO: checking build system type" >&5
2005 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2006 if test "${ac_cv_build+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 ac_build_alias=$build_alias
2010 test "x$ac_build_alias" = x &&
2011 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2012 test "x$ac_build_alias" = x &&
2013 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2014 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2015 { (exit 1); exit 1; }; }
2016 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2017 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2018 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2019 { (exit 1); exit 1; }; }
2022 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2023 echo "${ECHO_T}$ac_cv_build" >&6; }
2024 case $ac_cv_build in
2026 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2027 echo "$as_me: error: invalid value of canonical build" >&2;}
2028 { (exit 1); exit 1; }; };;
2031 ac_save_IFS=$IFS; IFS='-'
2037 # Remember, the first character of IFS is used to create $*,
2038 # except with old shells:
2041 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2044 { echo "$as_me:$LINENO: checking host system type" >&5
2045 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2046 if test "${ac_cv_host+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2049 if test "x$host_alias" = x; then
2050 ac_cv_host=$ac_cv_build
2052 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2053 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2055 { (exit 1); exit 1; }; }
2059 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2060 echo "${ECHO_T}$ac_cv_host" >&6; }
2063 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2064 echo "$as_me: error: invalid value of canonical host" >&2;}
2065 { (exit 1); exit 1; }; };;
2068 ac_save_IFS=$IFS; IFS='-'
2074 # Remember, the first character of IFS is used to create $*,
2075 # except with old shells:
2078 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2081 { echo "$as_me:$LINENO: checking target system type" >&5
2082 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2083 if test "${ac_cv_target+set}" = set; then
2084 echo $ECHO_N "(cached) $ECHO_C" >&6
2086 if test "x$target_alias" = x; then
2087 ac_cv_target=$ac_cv_host
2089 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2090 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2091 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2092 { (exit 1); exit 1; }; }
2096 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2097 echo "${ECHO_T}$ac_cv_target" >&6; }
2098 case $ac_cv_target in
2100 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2101 echo "$as_me: error: invalid value of canonical target" >&2;}
2102 { (exit 1); exit 1; }; };;
2104 target=$ac_cv_target
2105 ac_save_IFS=$IFS; IFS='-'
2111 # Remember, the first character of IFS is used to create $*,
2112 # except with old shells:
2115 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2118 # The aliases save the names the user supplied, while $host etc.
2119 # will get canonicalized.
2120 test -n "$target_alias" &&
2121 test "$program_prefix$program_suffix$program_transform_name" = \
2123 program_prefix=${target_alias}-
2124 am__api_version='1.10'
2126 # Find a good install program. We prefer a C program (faster),
2127 # so one script is as good as another. But avoid the broken or
2128 # incompatible versions:
2129 # SysV /etc/install, /usr/sbin/install
2130 # SunOS /usr/etc/install
2131 # IRIX /sbin/install
2133 # AmigaOS /C/install, which installs bootblocks on floppy discs
2134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2137 # OS/2's system install, which has a completely different semantic
2138 # ./install, which can be erroneously created by make from ./install.sh.
2139 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2140 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2141 if test -z "$INSTALL"; then
2142 if test "${ac_cv_path_install+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 test -z "$as_dir" && as_dir=.
2150 # Account for people who put trailing slashes in PATH elements.
2152 ./ | .// | /cC/* | \
2153 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2154 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2157 # OSF1 and SCO ODT 3.0 have their own names for install.
2158 # Don't use installbsd from OSF since it installs stuff as root
2160 for ac_prog in ginstall scoinst install; do
2161 for ac_exec_ext in '' $ac_executable_extensions; do
2162 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2163 if test $ac_prog = install &&
2164 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2165 # AIX install. It has an incompatible calling convention.
2167 elif test $ac_prog = install &&
2168 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2169 # program-specific install script used by HP pwplus--don't use.
2172 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2185 if test "${ac_cv_path_install+set}" = set; then
2186 INSTALL=$ac_cv_path_install
2188 # As a last resort, use the slow shell script. Don't cache a
2189 # value for INSTALL within a source directory, because that will
2190 # break other packages using the cache if that directory is
2191 # removed, or if the value is a relative name.
2192 INSTALL=$ac_install_sh
2195 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2196 echo "${ECHO_T}$INSTALL" >&6; }
2198 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2199 # It thinks the first close brace ends the variable substitution.
2200 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2202 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2204 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2206 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2207 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2210 echo timestamp > conftest.file
2211 # Do `set' in a subshell so we don't clobber the current shell's
2212 # arguments. Must try -L first in case configure is actually a
2213 # symlink; some systems play weird games with the mod time of symlinks
2214 # (eg FreeBSD returns the mod time of the symlink's containing
2217 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2218 if test "$*" = "X"; then
2220 set X `ls -t $srcdir/configure conftest.file`
2223 if test "$*" != "X $srcdir/configure conftest.file" \
2224 && test "$*" != "X conftest.file $srcdir/configure"; then
2226 # If neither matched, then we have a broken ls. This can happen
2227 # if, for instance, CONFIG_SHELL is bash and it inherits a
2228 # broken ls alias from the environment. This has actually
2229 # happened. Such a system could not be considered "sane".
2230 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2231 alias in your environment" >&5
2232 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2233 alias in your environment" >&2;}
2234 { (exit 1); exit 1; }; }
2237 test "$2" = conftest.file
2243 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2244 Check your system clock" >&5
2245 echo "$as_me: error: newly created file is older than distributed files!
2246 Check your system clock" >&2;}
2247 { (exit 1); exit 1; }; }
2249 { echo "$as_me:$LINENO: result: yes" >&5
2250 echo "${ECHO_T}yes" >&6; }
2251 test "$program_prefix" != NONE &&
2252 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2253 # Use a double $ so make ignores it.
2254 test "$program_suffix" != NONE &&
2255 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2256 # Double any \ or $. echo might interpret backslashes.
2257 # By default was `s,x,x', remove it if useless.
2258 cat <<\_ACEOF >conftest.sed
2259 s/[\\$]/&&/g;s/;s,x,x,$//
2261 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2264 # expand $ac_aux_dir to an absolute path
2265 am_aux_dir=`cd $ac_aux_dir && pwd`
2267 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2268 # Use eval to expand $SHELL
2269 if eval "$MISSING --run true"; then
2270 am_missing_run="$MISSING --run "
2273 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2274 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2277 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2278 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2279 if test -z "$MKDIR_P"; then
2280 if test "${ac_cv_path_mkdir+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2284 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2287 test -z "$as_dir" && as_dir=.
2288 for ac_prog in mkdir gmkdir; do
2289 for ac_exec_ext in '' $ac_executable_extensions; do
2290 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2291 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2292 'mkdir (GNU coreutils) '* | \
2293 'mkdir (coreutils) '* | \
2294 'mkdir (fileutils) '4.1*)
2295 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2305 if test "${ac_cv_path_mkdir+set}" = set; then
2306 MKDIR_P="$ac_cv_path_mkdir -p"
2308 # As a last resort, use the slow shell script. Don't cache a
2309 # value for MKDIR_P within a source directory, because that will
2310 # break other packages using the cache if that directory is
2311 # removed, or if the value is a relative name.
2312 test -d ./--version && rmdir ./--version
2313 MKDIR_P="$ac_install_sh -d"
2316 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2317 echo "${ECHO_T}$MKDIR_P" >&6; }
2321 [\\/$]* | ?:[\\/]*) ;;
2322 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2325 for ac_prog in gawk mawk nawk awk
2327 # Extract the first word of "$ac_prog", so it can be a program name with args.
2328 set dummy $ac_prog; ac_word=$2
2329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2331 if test "${ac_cv_prog_AWK+set}" = set; then
2332 echo $ECHO_N "(cached) $ECHO_C" >&6
2334 if test -n "$AWK"; then
2335 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 test -z "$as_dir" && as_dir=.
2342 for ac_exec_ext in '' $ac_executable_extensions; do
2343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344 ac_cv_prog_AWK="$ac_prog"
2345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2355 if test -n "$AWK"; then
2356 { echo "$as_me:$LINENO: result: $AWK" >&5
2357 echo "${ECHO_T}$AWK" >&6; }
2359 { echo "$as_me:$LINENO: result: no" >&5
2360 echo "${ECHO_T}no" >&6; }
2364 test -n "$AWK" && break
2367 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2368 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2369 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2370 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2371 echo $ECHO_N "(cached) $ECHO_C" >&6
2373 cat >conftest.make <<\_ACEOF
2376 @echo '@@@%%%=$(MAKE)=@@@%%%'
2378 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2379 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2381 eval ac_cv_prog_make_${ac_make}_set=yes;;
2383 eval ac_cv_prog_make_${ac_make}_set=no;;
2387 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2388 { echo "$as_me:$LINENO: result: yes" >&5
2389 echo "${ECHO_T}yes" >&6; }
2392 { echo "$as_me:$LINENO: result: no" >&5
2393 echo "${ECHO_T}no" >&6; }
2394 SET_MAKE="MAKE=${MAKE-make}"
2397 rm -rf .tst 2>/dev/null
2398 mkdir .tst 2>/dev/null
2399 if test -d .tst; then
2404 rmdir .tst 2>/dev/null
2406 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2407 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2408 # is not polluted with repeated "-I."
2409 am__isrc=' -I$(srcdir)'
2410 # test to see if srcdir already configured
2411 if test -f $srcdir/config.status; then
2412 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2413 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2414 { (exit 1); exit 1; }; }
2418 # test whether we have cygpath
2419 if test -z "$CYGPATH_W"; then
2420 if (cygpath --version) >/dev/null 2>/dev/null; then
2421 CYGPATH_W='cygpath -w'
2428 # Define the identity of the package.
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE "$PACKAGE"
2438 cat >>confdefs.h <<_ACEOF
2439 #define VERSION "$VERSION"
2442 # Some tools Automake needs.
2444 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2447 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2450 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2453 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2456 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2458 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2460 # Installed binaries are usually stripped using `strip' when the user
2461 # run `make install-strip'. However `strip' might not be the right
2462 # tool to use in cross-compilation environments, therefore Automake
2463 # will honor the `STRIP' environment variable to overrule this program.
2464 if test "$cross_compiling" != no; then
2465 if test -n "$ac_tool_prefix"; then
2466 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2467 set dummy ${ac_tool_prefix}strip; ac_word=$2
2468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2470 if test "${ac_cv_prog_STRIP+set}" = set; then
2471 echo $ECHO_N "(cached) $ECHO_C" >&6
2473 if test -n "$STRIP"; then
2474 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2480 test -z "$as_dir" && as_dir=.
2481 for ac_exec_ext in '' $ac_executable_extensions; do
2482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2483 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2493 STRIP=$ac_cv_prog_STRIP
2494 if test -n "$STRIP"; then
2495 { echo "$as_me:$LINENO: result: $STRIP" >&5
2496 echo "${ECHO_T}$STRIP" >&6; }
2498 { echo "$as_me:$LINENO: result: no" >&5
2499 echo "${ECHO_T}no" >&6; }
2504 if test -z "$ac_cv_prog_STRIP"; then
2506 # Extract the first word of "strip", so it can be a program name with args.
2507 set dummy strip; ac_word=$2
2508 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2510 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2511 echo $ECHO_N "(cached) $ECHO_C" >&6
2513 if test -n "$ac_ct_STRIP"; then
2514 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 test -z "$as_dir" && as_dir=.
2521 for ac_exec_ext in '' $ac_executable_extensions; do
2522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2523 ac_cv_prog_ac_ct_STRIP="strip"
2524 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2534 if test -n "$ac_ct_STRIP"; then
2535 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2536 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2538 { echo "$as_me:$LINENO: result: no" >&5
2539 echo "${ECHO_T}no" >&6; }
2542 if test "x$ac_ct_STRIP" = x; then
2545 case $cross_compiling:$ac_tool_warned in
2547 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2548 whose name does not start with the host triplet. If you think this
2549 configuration is useful to you, please write to autoconf@gnu.org." >&5
2550 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2551 whose name does not start with the host triplet. If you think this
2552 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2553 ac_tool_warned=yes ;;
2558 STRIP="$ac_cv_prog_STRIP"
2562 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2564 # We need awk for the "check" target. The system "awk" is bad on
2566 # Always define AMTAR for backward compatibility.
2568 AMTAR=${AMTAR-"${am_missing_run}tar"}
2570 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2576 ac_config_headers="$ac_config_headers include/config.h"
2580 # Checks for programs.
2582 ac_cpp='$CPP $CPPFLAGS'
2583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2586 if test -n "$ac_tool_prefix"; then
2587 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2588 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 if test -n "$CC"; then
2616 { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2625 if test -z "$ac_cv_prog_CC"; then
2627 # Extract the first word of "gcc", so it can be a program name with args.
2628 set dummy gcc; ac_word=$2
2629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2631 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2634 if test -n "$ac_ct_CC"; then
2635 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 test -z "$as_dir" && as_dir=.
2642 for ac_exec_ext in '' $ac_executable_extensions; do
2643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2644 ac_cv_prog_ac_ct_CC="gcc"
2645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2655 if test -n "$ac_ct_CC"; then
2656 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2657 echo "${ECHO_T}$ac_ct_CC" >&6; }
2659 { echo "$as_me:$LINENO: result: no" >&5
2660 echo "${ECHO_T}no" >&6; }
2663 if test "x$ac_ct_CC" = x; then
2666 case $cross_compiling:$ac_tool_warned in
2668 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2669 whose name does not start with the host triplet. If you think this
2670 configuration is useful to you, please write to autoconf@gnu.org." >&5
2671 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2672 whose name does not start with the host triplet. If you think this
2673 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2674 ac_tool_warned=yes ;;
2682 if test -z "$CC"; then
2683 if test -n "$ac_tool_prefix"; then
2684 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2685 set dummy ${ac_tool_prefix}cc; ac_word=$2
2686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2688 if test "${ac_cv_prog_CC+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 if test -n "$CC"; then
2692 ac_cv_prog_CC="$CC" # Let the user override the test.
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2698 test -z "$as_dir" && as_dir=.
2699 for ac_exec_ext in '' $ac_executable_extensions; do
2700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2701 ac_cv_prog_CC="${ac_tool_prefix}cc"
2702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2712 if test -n "$CC"; then
2713 { echo "$as_me:$LINENO: result: $CC" >&5
2714 echo "${ECHO_T}$CC" >&6; }
2716 { echo "$as_me:$LINENO: result: no" >&5
2717 echo "${ECHO_T}no" >&6; }
2723 if test -z "$CC"; then
2724 # Extract the first word of "cc", so it can be a program name with args.
2725 set dummy cc; ac_word=$2
2726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2728 if test "${ac_cv_prog_CC+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2742 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2743 ac_prog_rejected=yes
2747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 if test $ac_prog_rejected = yes; then
2755 # We found a bogon in the path, so make sure we never use it.
2756 set dummy $ac_cv_prog_CC
2758 if test $# != 0; then
2759 # We chose a different compiler from the bogus one.
2760 # However, it has the same basename, so the bogon will be chosen
2761 # first if we set CC to just the basename; use the full file name.
2763 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2769 if test -n "$CC"; then
2770 { echo "$as_me:$LINENO: result: $CC" >&5
2771 echo "${ECHO_T}$CC" >&6; }
2773 { echo "$as_me:$LINENO: result: no" >&5
2774 echo "${ECHO_T}no" >&6; }
2779 if test -z "$CC"; then
2780 if test -n "$ac_tool_prefix"; then
2781 for ac_prog in cl.exe
2783 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2784 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2787 if test "${ac_cv_prog_CC+set}" = set; then
2788 echo $ECHO_N "(cached) $ECHO_C" >&6
2790 if test -n "$CC"; then
2791 ac_cv_prog_CC="$CC" # Let the user override the test.
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2811 if test -n "$CC"; then
2812 { echo "$as_me:$LINENO: result: $CC" >&5
2813 echo "${ECHO_T}$CC" >&6; }
2815 { echo "$as_me:$LINENO: result: no" >&5
2816 echo "${ECHO_T}no" >&6; }
2820 test -n "$CC" && break
2823 if test -z "$CC"; then
2825 for ac_prog in cl.exe
2827 # Extract the first word of "$ac_prog", so it can be a program name with args.
2828 set dummy $ac_prog; ac_word=$2
2829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2831 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2832 echo $ECHO_N "(cached) $ECHO_C" >&6
2834 if test -n "$ac_ct_CC"; then
2835 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 test -z "$as_dir" && as_dir=.
2842 for ac_exec_ext in '' $ac_executable_extensions; do
2843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2844 ac_cv_prog_ac_ct_CC="$ac_prog"
2845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2855 if test -n "$ac_ct_CC"; then
2856 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2857 echo "${ECHO_T}$ac_ct_CC" >&6; }
2859 { echo "$as_me:$LINENO: result: no" >&5
2860 echo "${ECHO_T}no" >&6; }
2864 test -n "$ac_ct_CC" && break
2867 if test "x$ac_ct_CC" = x; then
2870 case $cross_compiling:$ac_tool_warned in
2872 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2873 whose name does not start with the host triplet. If you think this
2874 configuration is useful to you, please write to autoconf@gnu.org." >&5
2875 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2876 whose name does not start with the host triplet. If you think this
2877 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2878 ac_tool_warned=yes ;;
2887 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2888 See \`config.log' for more details." >&5
2889 echo "$as_me: error: no acceptable C compiler found in \$PATH
2890 See \`config.log' for more details." >&2;}
2891 { (exit 1); exit 1; }; }
2893 # Provide some information about the compiler.
2894 echo "$as_me:$LINENO: checking for C compiler version" >&5
2895 ac_compiler=`set X $ac_compile; echo $2`
2896 { (ac_try="$ac_compiler --version >&5"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler --version >&5") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906 { (ac_try="$ac_compiler -v >&5"
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -v >&5") 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2916 { (ac_try="$ac_compiler -V >&5"
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2922 (eval "$ac_compiler -V >&5") 2>&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); }
2927 cat >conftest.$ac_ext <<_ACEOF
2930 cat confdefs.h >>conftest.$ac_ext
2931 cat >>conftest.$ac_ext <<_ACEOF
2932 /* end confdefs.h. */
2942 ac_clean_files_save=$ac_clean_files
2943 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2944 # Try to create an executable without -o first, disregard a.out.
2945 # It will help us diagnose broken compilers, and finding out an intuition
2947 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2948 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2949 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2951 # List of possible output files, starting from the most likely.
2952 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2953 # only as a last resort. b.out is created by i960 compilers.
2954 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2956 # The IRIX 6 linker writes into existing files which may not be
2957 # executable, retaining their permissions. Remove them first so a
2958 # subsequent execution test works.
2960 for ac_file in $ac_files
2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2964 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2969 if { (ac_try="$ac_link_default"
2971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2972 *) ac_try_echo=$ac_try;;
2974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2975 (eval "$ac_link_default") 2>&5
2977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2978 (exit $ac_status); }; then
2979 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2980 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2981 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2982 # so that the user can short-circuit this test for compilers unknown to
2984 for ac_file in $ac_files ''
2986 test -f "$ac_file" || continue
2988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2991 # We found the default executable, but exeext='' is most
2995 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2997 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2999 # We set ac_cv_exeext here because the later test for it is not
3000 # safe: cross compilers may not add the suffix if given an `-o'
3001 # argument, so we may need to know it at that point already.
3002 # Even if this section looks crufty: it has the advantage of
3009 test "$ac_cv_exeext" = no && ac_cv_exeext=
3015 { echo "$as_me:$LINENO: result: $ac_file" >&5
3016 echo "${ECHO_T}$ac_file" >&6; }
3017 if test -z "$ac_file"; then
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3021 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3022 See \`config.log' for more details." >&5
3023 echo "$as_me: error: C compiler cannot create executables
3024 See \`config.log' for more details." >&2;}
3025 { (exit 77); exit 77; }; }
3028 ac_exeext=$ac_cv_exeext
3030 # Check that the compiler produces executables we can run. If not, either
3031 # the compiler is broken, or we cross compile.
3032 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3033 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3034 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3035 # If not cross compiling, check that we can run a simple program.
3036 if test "$cross_compiling" != yes; then
3037 if { ac_try='./$ac_file'
3038 { (case "(($ac_try" in
3039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3040 *) ac_try_echo=$ac_try;;
3042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3043 (eval "$ac_try") 2>&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); }; }; then
3049 if test "$cross_compiling" = maybe; then
3052 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3053 If you meant to cross compile, use \`--host'.
3054 See \`config.log' for more details." >&5
3055 echo "$as_me: error: cannot run C compiled programs.
3056 If you meant to cross compile, use \`--host'.
3057 See \`config.log' for more details." >&2;}
3058 { (exit 1); exit 1; }; }
3062 { echo "$as_me:$LINENO: result: yes" >&5
3063 echo "${ECHO_T}yes" >&6; }
3065 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3066 ac_clean_files=$ac_clean_files_save
3067 # Check that the compiler produces executables we can run. If not, either
3068 # the compiler is broken, or we cross compile.
3069 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3070 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3071 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3072 echo "${ECHO_T}$cross_compiling" >&6; }
3074 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3075 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3076 if { (ac_try="$ac_link"
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3082 (eval "$ac_link") 2>&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); }; then
3086 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3087 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3088 # work properly (i.e., refer to `conftest.exe'), while it won't with
3090 for ac_file in conftest.exe conftest conftest.*; do
3091 test -f "$ac_file" || continue
3093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3094 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3100 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3101 See \`config.log' for more details." >&5
3102 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3103 See \`config.log' for more details." >&2;}
3104 { (exit 1); exit 1; }; }
3107 rm -f conftest$ac_cv_exeext
3108 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3109 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3111 rm -f conftest.$ac_ext
3112 EXEEXT=$ac_cv_exeext
3114 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3115 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3116 if test "${ac_cv_objext+set}" = set; then
3117 echo $ECHO_N "(cached) $ECHO_C" >&6
3119 cat >conftest.$ac_ext <<_ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3134 rm -f conftest.o conftest.obj
3135 if { (ac_try="$ac_compile"
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_compile") 2>&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); }; then
3145 for ac_file in conftest.o conftest.obj conftest.*; do
3146 test -f "$ac_file" || continue;
3148 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3149 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3157 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3160 See \`config.log' for more details." >&2;}
3161 { (exit 1); exit 1; }; }
3164 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3166 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3167 echo "${ECHO_T}$ac_cv_objext" >&6; }
3168 OBJEXT=$ac_cv_objext
3170 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3171 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3172 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3173 echo $ECHO_N "(cached) $ECHO_C" >&6
3175 cat >conftest.$ac_ext <<_ACEOF
3178 cat confdefs.h >>conftest.$ac_ext
3179 cat >>conftest.$ac_ext <<_ACEOF
3180 /* end confdefs.h. */
3193 rm -f conftest.$ac_objext
3194 if { (ac_try="$ac_compile"
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_compile") 2>conftest.er1
3202 grep -v '^ *+' conftest.er1 >conftest.err
3204 cat conftest.err >&5
3205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206 (exit $ac_status); } && {
3207 test -z "$ac_c_werror_flag" ||
3208 test ! -s conftest.err
3209 } && test -s conftest.$ac_objext; then
3212 echo "$as_me: failed program was:" >&5
3213 sed 's/^/| /' conftest.$ac_ext >&5
3218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3219 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3222 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3223 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3224 GCC=`test $ac_compiler_gnu = yes && echo yes`
3225 ac_test_CFLAGS=${CFLAGS+set}
3226 ac_save_CFLAGS=$CFLAGS
3227 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3228 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3229 if test "${ac_cv_prog_cc_g+set}" = set; then
3230 echo $ECHO_N "(cached) $ECHO_C" >&6
3232 ac_save_c_werror_flag=$ac_c_werror_flag
3233 ac_c_werror_flag=yes
3236 cat >conftest.$ac_ext <<_ACEOF
3239 cat confdefs.h >>conftest.$ac_ext
3240 cat >>conftest.$ac_ext <<_ACEOF
3241 /* end confdefs.h. */
3251 rm -f conftest.$ac_objext
3252 if { (ac_try="$ac_compile"
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_compile") 2>conftest.er1
3260 grep -v '^ *+' conftest.er1 >conftest.err
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } && {
3265 test -z "$ac_c_werror_flag" ||
3266 test ! -s conftest.err
3267 } && test -s conftest.$ac_objext; then
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3274 cat >conftest.$ac_ext <<_ACEOF
3277 cat confdefs.h >>conftest.$ac_ext
3278 cat >>conftest.$ac_ext <<_ACEOF
3279 /* end confdefs.h. */
3289 rm -f conftest.$ac_objext
3290 if { (ac_try="$ac_compile"
3292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3293 *) ac_try_echo=$ac_try;;
3295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3296 (eval "$ac_compile") 2>conftest.er1
3298 grep -v '^ *+' conftest.er1 >conftest.err
3300 cat conftest.err >&5
3301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3302 (exit $ac_status); } && {
3303 test -z "$ac_c_werror_flag" ||
3304 test ! -s conftest.err
3305 } && test -s conftest.$ac_objext; then
3308 echo "$as_me: failed program was:" >&5
3309 sed 's/^/| /' conftest.$ac_ext >&5
3311 ac_c_werror_flag=$ac_save_c_werror_flag
3313 cat >conftest.$ac_ext <<_ACEOF
3316 cat confdefs.h >>conftest.$ac_ext
3317 cat >>conftest.$ac_ext <<_ACEOF
3318 /* end confdefs.h. */
3328 rm -f conftest.$ac_objext
3329 if { (ac_try="$ac_compile"
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_compile") 2>conftest.er1
3337 grep -v '^ *+' conftest.er1 >conftest.err
3339 cat conftest.err >&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); } && {
3342 test -z "$ac_c_werror_flag" ||
3343 test ! -s conftest.err
3344 } && test -s conftest.$ac_objext; then
3347 echo "$as_me: failed program was:" >&5
3348 sed 's/^/| /' conftest.$ac_ext >&5
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3360 ac_c_werror_flag=$ac_save_c_werror_flag
3362 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3363 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3364 if test "$ac_test_CFLAGS" = set; then
3365 CFLAGS=$ac_save_CFLAGS
3366 elif test $ac_cv_prog_cc_g = yes; then
3367 if test "$GCC" = yes; then
3373 if test "$GCC" = yes; then
3379 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3380 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3381 if test "${ac_cv_prog_cc_c89+set}" = set; then
3382 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 ac_cv_prog_cc_c89=no
3386 cat >conftest.$ac_ext <<_ACEOF
3389 cat confdefs.h >>conftest.$ac_ext
3390 cat >>conftest.$ac_ext <<_ACEOF
3391 /* end confdefs.h. */
3394 #include <sys/types.h>
3395 #include <sys/stat.h>
3396 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3397 struct buf { int x; };
3398 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3399 static char *e (p, i)
3405 static char *f (char * (*g) (char **, int), char **p, ...)
3410 s = g (p, va_arg (v,int));
3415 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3416 function prototypes and stuff, but not '\xHH' hex character constants.
3417 These don't provoke an error unfortunately, instead are silently treated
3418 as 'x'. The following induces an error, until -std is added to get
3419 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3420 array size at least. It's necessary to write '\x00'==0 to get something
3421 that's true only with -std. */
3422 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3424 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3425 inside strings and character constants. */
3427 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3429 int test (int i, double x);
3430 struct s1 {int (*f) (int a);};
3431 struct s2 {int (*f) (double a);};
3432 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3438 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3443 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3444 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3446 CC="$ac_save_CC $ac_arg"
3447 rm -f conftest.$ac_objext
3448 if { (ac_try="$ac_compile"
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_compile") 2>conftest.er1
3456 grep -v '^ *+' conftest.er1 >conftest.err
3458 cat conftest.err >&5
3459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3460 (exit $ac_status); } && {
3461 test -z "$ac_c_werror_flag" ||
3462 test ! -s conftest.err
3463 } && test -s conftest.$ac_objext; then
3464 ac_cv_prog_cc_c89=$ac_arg
3466 echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3472 rm -f core conftest.err conftest.$ac_objext
3473 test "x$ac_cv_prog_cc_c89" != "xno" && break
3475 rm -f conftest.$ac_ext
3480 case "x$ac_cv_prog_cc_c89" in
3482 { echo "$as_me:$LINENO: result: none needed" >&5
3483 echo "${ECHO_T}none needed" >&6; } ;;
3485 { echo "$as_me:$LINENO: result: unsupported" >&5
3486 echo "${ECHO_T}unsupported" >&6; } ;;
3488 CC="$CC $ac_cv_prog_cc_c89"
3489 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3490 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3495 ac_cpp='$CPP $CPPFLAGS'
3496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3499 DEPDIR="${am__leading_dot}deps"
3501 ac_config_commands="$ac_config_commands depfiles"
3504 am_make=${MAKE-make}
3505 cat > confinc << 'END'
3510 # If we don't find an include directive, just comment out the code.
3511 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3512 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3516 # First try GNU make style include.
3517 echo "include confinc" > confmf
3518 # We grep out `Entering directory' and `Leaving directory'
3519 # messages which can occur if `w' ends up in MAKEFLAGS.
3520 # In particular we don't look at `^make:' because GNU make might
3521 # be invoked under some other name (usually "gmake"), in which
3522 # case it prints its new name instead of `make'.
3523 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3528 # Now try BSD make style include.
3529 if test "$am__include" = "#"; then
3530 echo '.include "confinc"' > confmf
3531 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3532 am__include=.include
3539 { echo "$as_me:$LINENO: result: $_am_result" >&5
3540 echo "${ECHO_T}$_am_result" >&6; }
3541 rm -f confinc confmf
3543 # Check whether --enable-dependency-tracking was given.
3544 if test "${enable_dependency_tracking+set}" = set; then
3545 enableval=$enable_dependency_tracking;
3548 if test "x$enable_dependency_tracking" != xno; then
3549 am_depcomp="$ac_aux_dir/depcomp"
3552 if test "x$enable_dependency_tracking" != xno; then
3562 depcc="$CC" am_compiler_list=
3564 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3565 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3566 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3567 echo $ECHO_N "(cached) $ECHO_C" >&6
3569 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3570 # We make a subdir and do the tests there. Otherwise we can end up
3571 # making bogus files that we don't know about and never remove. For
3572 # instance it was reported that on HP-UX the gcc test will end up
3573 # making a dummy file named `D' -- because `-MD' means `put the output
3576 # Copy depcomp to subdir because otherwise we won't find it if we're
3577 # using a relative directory.
3578 cp "$am_depcomp" conftest.dir
3580 # We will build objects and dependencies in a subdirectory because
3581 # it helps to detect inapplicable dependency modes. For instance
3582 # both Tru64's cc and ICC support -MD to output dependencies as a
3583 # side effect of compilation, but ICC will put the dependencies in
3584 # the current directory while Tru64 will put them in the object
3588 am_cv_CC_dependencies_compiler_type=none
3589 if test "$am_compiler_list" = ""; then
3590 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3592 for depmode in $am_compiler_list; do
3593 # Setup a source with many dependencies, because some compilers
3594 # like to wrap large dependency lists on column 80 (with \), and
3595 # we should not choose a depcomp mode which is confused by this.
3597 # We need to recreate these files for each test, as the compiler may
3598 # overwrite some of them when testing with obscure command lines.
3599 # This happens at least with the AIX C compiler.
3601 for i in 1 2 3 4 5 6; do
3602 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3603 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3604 # Solaris 8's {/usr,}/bin/sh.
3605 touch sub/conftst$i.h
3607 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3611 # after this tag, mechanisms are not by side-effect, so they'll
3612 # only be used when explicitly requested
3613 if test "x$enable_dependency_tracking" = xyes; then
3621 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3622 # mode. It turns out that the SunPro C++ compiler does not properly
3623 # handle `-M -o', and we need to detect this.
3624 if depmode=$depmode \
3625 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3626 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3627 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3628 >/dev/null 2>conftest.err &&
3629 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3630 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3631 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3632 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3633 # icc doesn't choke on unknown options, it will just issue warnings
3634 # or remarks (even with -Werror). So we grep stderr for any message
3635 # that says an option was ignored or not supported.
3636 # When given -MP, icc 7.0 and 7.1 complain thusly:
3637 # icc: Command line warning: ignoring option '-M'; no argument required
3638 # The diagnosis changed in icc 8.0:
3639 # icc: Command line remark: option '-MP' not supported
3640 if (grep 'ignoring option' conftest.err ||
3641 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3642 am_cv_CC_dependencies_compiler_type=$depmode
3651 am_cv_CC_dependencies_compiler_type=none
3655 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3656 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3657 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3660 test "x$enable_dependency_tracking" != xno \
3661 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3663 am__fastdepCC_FALSE='#'
3665 am__fastdepCC_TRUE='#'
3666 am__fastdepCC_FALSE=
3670 # Find a good install program. We prefer a C program (faster),
3671 # so one script is as good as another. But avoid the broken or
3672 # incompatible versions:
3673 # SysV /etc/install, /usr/sbin/install
3674 # SunOS /usr/etc/install
3675 # IRIX /sbin/install
3677 # AmigaOS /C/install, which installs bootblocks on floppy discs
3678 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3679 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3680 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3681 # OS/2's system install, which has a completely different semantic
3682 # ./install, which can be erroneously created by make from ./install.sh.
3683 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3684 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3685 if test -z "$INSTALL"; then
3686 if test "${ac_cv_path_install+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3693 test -z "$as_dir" && as_dir=.
3694 # Account for people who put trailing slashes in PATH elements.
3696 ./ | .// | /cC/* | \
3697 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3698 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3701 # OSF1 and SCO ODT 3.0 have their own names for install.
3702 # Don't use installbsd from OSF since it installs stuff as root
3704 for ac_prog in ginstall scoinst install; do
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3707 if test $ac_prog = install &&
3708 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3709 # AIX install. It has an incompatible calling convention.
3711 elif test $ac_prog = install &&
3712 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3713 # program-specific install script used by HP pwplus--don't use.
3716 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3729 if test "${ac_cv_path_install+set}" = set; then
3730 INSTALL=$ac_cv_path_install
3732 # As a last resort, use the slow shell script. Don't cache a
3733 # value for INSTALL within a source directory, because that will
3734 # break other packages using the cache if that directory is
3735 # removed, or if the value is a relative name.
3736 INSTALL=$ac_install_sh
3739 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3740 echo "${ECHO_T}$INSTALL" >&6; }
3742 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3743 # It thinks the first close brace ends the variable substitution.
3744 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3746 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3748 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3752 # Check whether --enable-shared was given.
3753 if test "${enable_shared+set}" = set; then
3754 enableval=$enable_shared; p=${PACKAGE-default}
3756 yes) enable_shared=yes ;;
3757 no) enable_shared=no ;;
3760 # Look at the argument we got. We use all the common list separators.
3761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3762 for pkg in $enableval; do
3764 if test "X$pkg" = "X$p"; then
3776 # Check whether --enable-static was given.
3777 if test "${enable_static+set}" = set; then
3778 enableval=$enable_static; p=${PACKAGE-default}
3780 yes) enable_static=yes ;;
3781 no) enable_static=no ;;
3784 # Look at the argument we got. We use all the common list separators.
3785 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3786 for pkg in $enableval; do
3788 if test "X$pkg" = "X$p"; then
3800 # Check whether --enable-fast-install was given.
3801 if test "${enable_fast_install+set}" = set; then
3802 enableval=$enable_fast_install; p=${PACKAGE-default}
3804 yes) enable_fast_install=yes ;;
3805 no) enable_fast_install=no ;;
3807 enable_fast_install=no
3808 # Look at the argument we got. We use all the common list separators.
3809 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3810 for pkg in $enableval; do
3812 if test "X$pkg" = "X$p"; then
3813 enable_fast_install=yes
3820 enable_fast_install=yes
3824 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3825 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3826 if test "${lt_cv_path_SED+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 # Loop through the user's path and test for sed and gsed.
3830 # Then use that list of sed's as ones to test for truncation.
3831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3835 test -z "$as_dir" && as_dir=.
3836 for lt_ac_prog in sed gsed; do
3837 for ac_exec_ext in '' $ac_executable_extensions; do
3838 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3839 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3846 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3847 # along with /bin/sed that truncates output.
3848 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3849 test ! -f $lt_ac_sed && continue
3850 cat /dev/null > conftest.in
3852 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3853 # Check for GNU sed and select it if it is found.
3854 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3855 lt_cv_path_SED=$lt_ac_sed
3859 cat conftest.in conftest.in >conftest.tmp
3860 mv conftest.tmp conftest.in
3861 cp conftest.in conftest.nl
3863 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3864 cmp -s conftest.out conftest.nl || break
3865 # 10000 chars as input seems more than enough
3866 test $lt_ac_count -gt 10 && break
3867 lt_ac_count=`expr $lt_ac_count + 1`
3868 if test $lt_ac_count -gt $lt_ac_max; then
3869 lt_ac_max=$lt_ac_count
3870 lt_cv_path_SED=$lt_ac_sed
3878 { echo "$as_me:$LINENO: result: $SED" >&5
3879 echo "${ECHO_T}$SED" >&6; }
3881 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3882 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3883 if test "${ac_cv_path_GREP+set}" = set; then
3884 echo $ECHO_N "(cached) $ECHO_C" >&6
3886 # Extract the first word of "grep ggrep" to use in msg output
3887 if test -z "$GREP"; then
3888 set dummy grep ggrep; ac_prog_name=$2
3889 if test "${ac_cv_path_GREP+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 ac_path_GREP_found=false
3893 # Loop through the user's path and test for each of PROGNAME-LIST
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3898 test -z "$as_dir" && as_dir=.
3899 for ac_prog in grep ggrep; do
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3902 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3903 # Check for GNU ac_path_GREP and select it if it is found.
3904 # Check for GNU $ac_path_GREP
3905 case `"$ac_path_GREP" --version 2>&1` in
3907 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3910 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3913 cat "conftest.in" "conftest.in" >"conftest.tmp"
3914 mv "conftest.tmp" "conftest.in"
3915 cp "conftest.in" "conftest.nl"
3916 echo 'GREP' >> "conftest.nl"
3917 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3919 ac_count=`expr $ac_count + 1`
3920 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3921 # Best one so far, save it but keep looking for a better one
3922 ac_cv_path_GREP="$ac_path_GREP"
3923 ac_path_GREP_max=$ac_count
3925 # 10*(2^10) chars as input seems more than enough
3926 test $ac_count -gt 10 && break
3928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3932 $ac_path_GREP_found && break 3
3942 GREP="$ac_cv_path_GREP"
3943 if test -z "$GREP"; then
3944 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3945 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3946 { (exit 1); exit 1; }; }
3950 ac_cv_path_GREP=$GREP
3955 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3956 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3957 GREP="$ac_cv_path_GREP"
3960 { echo "$as_me:$LINENO: checking for egrep" >&5
3961 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3962 if test "${ac_cv_path_EGREP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3966 then ac_cv_path_EGREP="$GREP -E"
3968 # Extract the first word of "egrep" to use in msg output
3969 if test -z "$EGREP"; then
3970 set dummy egrep; ac_prog_name=$2
3971 if test "${ac_cv_path_EGREP+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3974 ac_path_EGREP_found=false
3975 # Loop through the user's path and test for each of PROGNAME-LIST
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3980 test -z "$as_dir" && as_dir=.
3981 for ac_prog in egrep; do
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3984 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3985 # Check for GNU ac_path_EGREP and select it if it is found.
3986 # Check for GNU $ac_path_EGREP
3987 case `"$ac_path_EGREP" --version 2>&1` in
3989 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3992 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3995 cat "conftest.in" "conftest.in" >"conftest.tmp"
3996 mv "conftest.tmp" "conftest.in"
3997 cp "conftest.in" "conftest.nl"
3998 echo 'EGREP' >> "conftest.nl"
3999 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4000 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4001 ac_count=`expr $ac_count + 1`
4002 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4003 # Best one so far, save it but keep looking for a better one
4004 ac_cv_path_EGREP="$ac_path_EGREP"
4005 ac_path_EGREP_max=$ac_count
4007 # 10*(2^10) chars as input seems more than enough
4008 test $ac_count -gt 10 && break
4010 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4014 $ac_path_EGREP_found && break 3
4024 EGREP="$ac_cv_path_EGREP"
4025 if test -z "$EGREP"; then
4026 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4027 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4028 { (exit 1); exit 1; }; }
4032 ac_cv_path_EGREP=$EGREP
4038 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4039 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4040 EGREP="$ac_cv_path_EGREP"
4044 # Check whether --with-gnu-ld was given.
4045 if test "${with_gnu_ld+set}" = set; then
4046 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4052 if test "$GCC" = yes; then
4053 # Check if gcc -print-prog-name=ld gives a path.
4054 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4055 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4058 # gcc leaves a trailing carriage return which upsets mingw
4059 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4061 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4064 # Accept absolute paths.
4066 re_direlt='/[^/][^/]*/\.\./'
4067 # Canonicalize the pathname of ld
4068 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4069 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4070 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4072 test -z "$LD" && LD="$ac_prog"
4075 # If it fails, then pretend we aren't using GCC.
4079 # If it is relative, then search for the first ld in PATH.
4083 elif test "$with_gnu_ld" = yes; then
4084 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4085 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4087 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4088 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4090 if test "${lt_cv_path_LD+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 if test -z "$LD"; then
4094 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4095 for ac_dir in $PATH; do
4097 test -z "$ac_dir" && ac_dir=.
4098 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4099 lt_cv_path_LD="$ac_dir/$ac_prog"
4100 # Check to see if the program is GNU ld. I'd rather use --version,
4101 # but apparently some variants of GNU ld only accept -v.
4102 # Break only if it was the GNU/non-GNU ld that we prefer.
4103 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4104 *GNU* | *'with BFD'*)
4105 test "$with_gnu_ld" != no && break
4108 test "$with_gnu_ld" != yes && break
4115 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4120 if test -n "$LD"; then
4121 { echo "$as_me:$LINENO: result: $LD" >&5
4122 echo "${ECHO_T}$LD" >&6; }
4124 { echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6; }
4127 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4128 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4129 { (exit 1); exit 1; }; }
4130 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4131 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4132 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4136 case `$LD -v 2>&1 </dev/null` in
4137 *GNU* | *'with BFD'*)
4138 lt_cv_prog_gnu_ld=yes
4141 lt_cv_prog_gnu_ld=no
4145 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4146 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4147 with_gnu_ld=$lt_cv_prog_gnu_ld
4150 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4151 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4152 if test "${lt_cv_ld_reload_flag+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 lt_cv_ld_reload_flag='-r'
4157 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4158 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4159 reload_flag=$lt_cv_ld_reload_flag
4160 case $reload_flag in
4162 *) reload_flag=" $reload_flag" ;;
4164 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4167 if test "$GCC" = yes; then
4168 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4170 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4175 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4176 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4177 if test "${lt_cv_path_NM+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4180 if test -n "$NM"; then
4181 # Let the user override the test.
4184 lt_nm_to_check="${ac_tool_prefix}nm"
4185 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4186 lt_nm_to_check="$lt_nm_to_check nm"
4188 for lt_tmp_nm in $lt_nm_to_check; do
4189 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4190 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4192 test -z "$ac_dir" && ac_dir=.
4193 tmp_nm="$ac_dir/$lt_tmp_nm"
4194 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4195 # Check to see if the nm accepts a BSD-compat flag.
4196 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4197 # nm: unknown option "B" ignored
4198 # Tru64's nm complains that /dev/null is an invalid object file
4199 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4200 */dev/null* | *'Invalid file or object type'*)
4201 lt_cv_path_NM="$tmp_nm -B"
4205 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4207 lt_cv_path_NM="$tmp_nm -p"
4211 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4212 continue # so that we can try to find one that supports BSD flags
4221 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4224 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4225 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4228 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4229 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4231 if test "$LN_S" = "ln -s"; then
4232 { echo "$as_me:$LINENO: result: yes" >&5
4233 echo "${ECHO_T}yes" >&6; }
4235 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4236 echo "${ECHO_T}no, using $LN_S" >&6; }
4239 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4240 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4241 if test "${lt_cv_deplibs_check_method+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4244 lt_cv_file_magic_cmd='$MAGIC_CMD'
4245 lt_cv_file_magic_test_file=
4246 lt_cv_deplibs_check_method='unknown'
4247 # Need to set the preceding variable on all platforms that support
4248 # interlibrary dependencies.
4249 # 'none' -- dependencies not supported.
4250 # `unknown' -- same as none, but documents that we really don't know.
4251 # 'pass_all' -- all dependencies passed with no checks.
4252 # 'test_compile' -- check by making test program.
4253 # 'file_magic [[regex]]' -- check by looking for files in library path
4254 # which responds to the $file_magic_cmd with a given extended regex.
4255 # If you have `file' or equivalent on your system and you're not sure
4256 # whether `pass_all' will *always* work, you probably want this one.
4260 lt_cv_deplibs_check_method=pass_all
4264 lt_cv_deplibs_check_method=pass_all
4268 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4269 lt_cv_file_magic_cmd='/usr/bin/file -L'
4270 lt_cv_file_magic_test_file=/shlib/libc.so
4274 # func_win32_libid is a shell function defined in ltmain.sh
4275 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4276 lt_cv_file_magic_cmd='func_win32_libid'
4280 # Base MSYS/MinGW do not provide the 'file' command needed by
4281 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4282 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4283 lt_cv_file_magic_cmd='$OBJDUMP -f'
4286 darwin* | rhapsody*)
4287 lt_cv_deplibs_check_method=pass_all
4290 freebsd* | dragonfly*)
4291 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4294 # Not sure whether the presence of OpenBSD here was a mistake.
4295 # Let's accept both of them until this is cleared up.
4296 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4297 lt_cv_file_magic_cmd=/usr/bin/file
4298 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4302 lt_cv_deplibs_check_method=pass_all
4307 lt_cv_deplibs_check_method=pass_all
4310 hpux10.20* | hpux11*)
4311 lt_cv_file_magic_cmd=/usr/bin/file
4314 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4315 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4318 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]'
4319 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4322 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4323 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4329 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4330 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4333 irix5* | irix6* | nonstopux*)
4335 *-32|*"-32 ") libmagic=32-bit;;
4336 *-n32|*"-n32 ") libmagic=N32;;
4337 *-64|*"-64 ") libmagic=64-bit;;
4338 *) libmagic=never-match;;
4340 lt_cv_deplibs_check_method=pass_all
4343 # This must be Linux ELF.
4344 linux* | k*bsd*-gnu)
4345 lt_cv_deplibs_check_method=pass_all
4348 netbsd* | netbsdelf*-gnu)
4349 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4358 lt_cv_file_magic_cmd=/usr/bin/file
4359 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4363 lt_cv_deplibs_check_method=unknown
4367 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4368 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4374 osf3* | osf4* | osf5*)
4375 lt_cv_deplibs_check_method=pass_all
4379 lt_cv_deplibs_check_method=pass_all
4383 case $host_vendor in
4385 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]'
4386 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4389 lt_cv_deplibs_check_method=pass_all
4392 lt_cv_file_magic_cmd='/bin/file'
4393 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4396 lt_cv_file_magic_cmd='/bin/file'
4397 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4398 lt_cv_file_magic_test_file=/lib/libc.so
4401 lt_cv_deplibs_check_method=pass_all
4404 lt_cv_deplibs_check_method=pass_all
4409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4410 lt_cv_deplibs_check_method=pass_all
4415 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4416 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4417 file_magic_cmd=$lt_cv_file_magic_cmd
4418 deplibs_check_method=$lt_cv_deplibs_check_method
4419 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4424 # If no C compiler was specified, use CC.
4427 # If no C compiler flags were specified, use CFLAGS.
4428 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4430 # Allow CC to be a program name with arguments.
4434 # Check whether --enable-libtool-lock was given.
4435 if test "${enable_libtool_lock+set}" = set; then
4436 enableval=$enable_libtool_lock;
4439 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4441 # Some flags need to be propagated to the compiler or linker for good
4445 # Find out which ABI we are using.
4446 echo 'int i;' > conftest.$ac_ext
4447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4448 (eval $ac_compile) 2>&5
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; then
4452 case `/usr/bin/file conftest.$ac_objext` in
4464 # Find out which ABI we are using.
4465 echo '#line 4465 "configure"' > conftest.$ac_ext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; then
4471 if test "$lt_cv_prog_gnu_ld" = yes; then
4472 case `/usr/bin/file conftest.$ac_objext` in
4474 LD="${LD-ld} -melf32bsmip"
4477 LD="${LD-ld} -melf32bmipn32"
4480 LD="${LD-ld} -melf64bmip"
4484 case `/usr/bin/file conftest.$ac_objext` in
4500 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4501 # Find out which ABI we are using.
4502 echo 'int i;' > conftest.$ac_ext
4503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4504 (eval $ac_compile) 2>&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; then
4508 case `/usr/bin/file conftest.o` in
4512 LD="${LD-ld} -m elf_i386"
4514 ppc64-*linux*|powerpc64-*linux*)
4515 LD="${LD-ld} -m elf32ppclinux"
4518 LD="${LD-ld} -m elf_s390"
4521 LD="${LD-ld} -m elf32_sparc"
4528 LD="${LD-ld} -m elf_x86_64"
4530 ppc*-*linux*|powerpc*-*linux*)
4531 LD="${LD-ld} -m elf64ppc"
4534 LD="${LD-ld} -m elf64_s390"
4537 LD="${LD-ld} -m elf64_sparc"
4547 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4548 SAVE_CFLAGS="$CFLAGS"
4549 CFLAGS="$CFLAGS -belf"
4550 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4551 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4552 if test "${lt_cv_cc_needs_belf+set}" = set; then
4553 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 ac_cpp='$CPP $CPPFLAGS'
4557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4561 cat >conftest.$ac_ext <<_ACEOF
4564 cat confdefs.h >>conftest.$ac_ext
4565 cat >>conftest.$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4576 rm -f conftest.$ac_objext conftest$ac_exeext
4577 if { (ac_try="$ac_link"
4579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_link") 2>conftest.er1
4585 grep -v '^ *+' conftest.er1 >conftest.err
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } && {
4590 test -z "$ac_c_werror_flag" ||
4591 test ! -s conftest.err
4592 } && test -s conftest$ac_exeext &&
4593 $as_test_x conftest$ac_exeext; then
4594 lt_cv_cc_needs_belf=yes
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4599 lt_cv_cc_needs_belf=no
4602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4603 conftest$ac_exeext conftest.$ac_ext
4605 ac_cpp='$CPP $CPPFLAGS'
4606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4611 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4612 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4613 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4614 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4615 CFLAGS="$SAVE_CFLAGS"
4619 # Find out which ABI we are using.
4620 echo 'int i;' > conftest.$ac_ext
4621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622 (eval $ac_compile) 2>&5
4624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625 (exit $ac_status); }; then
4626 case `/usr/bin/file conftest.o` in
4628 case $lt_cv_prog_gnu_ld in
4629 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4630 *) LD="${LD-ld} -64" ;;
4641 need_locks="$enable_libtool_lock"
4645 ac_cpp='$CPP $CPPFLAGS'
4646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4649 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4650 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4651 # On Suns, sometimes $CPP names a directory.
4652 if test -n "$CPP" && test -d "$CPP"; then
4655 if test -z "$CPP"; then
4656 if test "${ac_cv_prog_CPP+set}" = set; then
4657 echo $ECHO_N "(cached) $ECHO_C" >&6
4659 # Double quotes because CPP needs to be expanded
4660 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4663 for ac_c_preproc_warn_flag in '' yes
4665 # Use a header file that comes with gcc, so configuring glibc
4666 # with a fresh cross-compiler works.
4667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4668 # <limits.h> exists even on freestanding compilers.
4669 # On the NeXT, cc -E runs the code through the compiler's parser,
4670 # not just through cpp. "Syntax error" is here to catch this case.
4671 cat >conftest.$ac_ext <<_ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h. */
4678 # include <limits.h>
4680 # include <assert.h>
4684 if { (ac_try="$ac_cpp conftest.$ac_ext"
4686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4687 *) ac_try_echo=$ac_try;;
4689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4692 grep -v '^ *+' conftest.er1 >conftest.err
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } >/dev/null && {
4697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4698 test ! -s conftest.err
4702 echo "$as_me: failed program was:" >&5
4703 sed 's/^/| /' conftest.$ac_ext >&5
4705 # Broken: fails on valid input.
4709 rm -f conftest.err conftest.$ac_ext
4711 # OK, works on sane cases. Now check whether nonexistent headers
4712 # can be detected and how.
4713 cat >conftest.$ac_ext <<_ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 #include <ac_nonexistent.h>
4721 if { (ac_try="$ac_cpp conftest.$ac_ext"
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4729 grep -v '^ *+' conftest.er1 >conftest.err
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } >/dev/null && {
4734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4735 test ! -s conftest.err
4737 # Broken: success on invalid input.
4740 echo "$as_me: failed program was:" >&5
4741 sed 's/^/| /' conftest.$ac_ext >&5
4743 # Passes both tests.
4748 rm -f conftest.err conftest.$ac_ext
4751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4752 rm -f conftest.err conftest.$ac_ext
4753 if $ac_preproc_ok; then
4765 { echo "$as_me:$LINENO: result: $CPP" >&5
4766 echo "${ECHO_T}$CPP" >&6; }
4768 for ac_c_preproc_warn_flag in '' yes
4770 # Use a header file that comes with gcc, so configuring glibc
4771 # with a fresh cross-compiler works.
4772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4773 # <limits.h> exists even on freestanding compilers.
4774 # On the NeXT, cc -E runs the code through the compiler's parser,
4775 # not just through cpp. "Syntax error" is here to catch this case.
4776 cat >conftest.$ac_ext <<_ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4783 # include <limits.h>
4785 # include <assert.h>
4789 if { (ac_try="$ac_cpp conftest.$ac_ext"
4791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4792 *) ac_try_echo=$ac_try;;
4794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4797 grep -v '^ *+' conftest.er1 >conftest.err
4799 cat conftest.err >&5
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } >/dev/null && {
4802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4803 test ! -s conftest.err
4807 echo "$as_me: failed program was:" >&5
4808 sed 's/^/| /' conftest.$ac_ext >&5
4810 # Broken: fails on valid input.
4814 rm -f conftest.err conftest.$ac_ext
4816 # OK, works on sane cases. Now check whether nonexistent headers
4817 # can be detected and how.
4818 cat >conftest.$ac_ext <<_ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 #include <ac_nonexistent.h>
4826 if { (ac_try="$ac_cpp conftest.$ac_ext"
4828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4829 *) ac_try_echo=$ac_try;;
4831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4832 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4834 grep -v '^ *+' conftest.er1 >conftest.err
4836 cat conftest.err >&5
4837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4838 (exit $ac_status); } >/dev/null && {
4839 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4840 test ! -s conftest.err
4842 # Broken: success on invalid input.
4845 echo "$as_me: failed program was:" >&5
4846 sed 's/^/| /' conftest.$ac_ext >&5
4848 # Passes both tests.
4853 rm -f conftest.err conftest.$ac_ext
4856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4857 rm -f conftest.err conftest.$ac_ext
4858 if $ac_preproc_ok; then
4861 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4862 See \`config.log' for more details." >&5
4863 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4864 See \`config.log' for more details." >&2;}
4865 { (exit 1); exit 1; }; }
4869 ac_cpp='$CPP $CPPFLAGS'
4870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4875 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4876 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4877 if test "${ac_cv_header_stdc+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4880 cat >conftest.$ac_ext <<_ACEOF
4883 cat confdefs.h >>conftest.$ac_ext
4884 cat >>conftest.$ac_ext <<_ACEOF
4885 /* end confdefs.h. */
4899 rm -f conftest.$ac_objext
4900 if { (ac_try="$ac_compile"
4902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4903 *) ac_try_echo=$ac_try;;
4905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4906 (eval "$ac_compile") 2>conftest.er1
4908 grep -v '^ *+' conftest.er1 >conftest.err
4910 cat conftest.err >&5
4911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4912 (exit $ac_status); } && {
4913 test -z "$ac_c_werror_flag" ||
4914 test ! -s conftest.err
4915 } && test -s conftest.$ac_objext; then
4916 ac_cv_header_stdc=yes
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.$ac_ext >&5
4921 ac_cv_header_stdc=no
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 if test $ac_cv_header_stdc = yes; then
4927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4928 cat >conftest.$ac_ext <<_ACEOF
4931 cat confdefs.h >>conftest.$ac_ext
4932 cat >>conftest.$ac_ext <<_ACEOF
4933 /* end confdefs.h. */
4937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4938 $EGREP "memchr" >/dev/null 2>&1; then
4941 ac_cv_header_stdc=no
4947 if test $ac_cv_header_stdc = yes; then
4948 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4949 cat >conftest.$ac_ext <<_ACEOF
4952 cat confdefs.h >>conftest.$ac_ext
4953 cat >>conftest.$ac_ext <<_ACEOF
4954 /* end confdefs.h. */
4958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4959 $EGREP "free" >/dev/null 2>&1; then
4962 ac_cv_header_stdc=no
4968 if test $ac_cv_header_stdc = yes; then
4969 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4970 if test "$cross_compiling" = yes; then
4973 cat >conftest.$ac_ext <<_ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4978 /* end confdefs.h. */
4981 #if ((' ' & 0x0FF) == 0x020)
4982 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4983 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4985 # define ISLOWER(c) \
4986 (('a' <= (c) && (c) <= 'i') \
4987 || ('j' <= (c) && (c) <= 'r') \
4988 || ('s' <= (c) && (c) <= 'z'))
4989 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4992 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4997 for (i = 0; i < 256; i++)
4998 if (XOR (islower (i), ISLOWER (i))
4999 || toupper (i) != TOUPPER (i))
5004 rm -f conftest$ac_exeext
5005 if { (ac_try="$ac_link"
5007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5008 *) ac_try_echo=$ac_try;;
5010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5011 (eval "$ac_link") 2>&5
5013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5015 { (case "(($ac_try" in
5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017 *) ac_try_echo=$ac_try;;
5019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5020 (eval "$ac_try") 2>&5
5022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5023 (exit $ac_status); }; }; then
5026 echo "$as_me: program exited with status $ac_status" >&5
5027 echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5031 ac_cv_header_stdc=no
5033 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5039 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5040 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5041 if test $ac_cv_header_stdc = yes; then
5043 cat >>confdefs.h <<\_ACEOF
5044 #define STDC_HEADERS 1
5049 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5059 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5060 inttypes.h stdint.h unistd.h
5062 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5063 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5064 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5065 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 cat >conftest.$ac_ext <<_ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h. */
5074 $ac_includes_default
5076 #include <$ac_header>
5078 rm -f conftest.$ac_objext
5079 if { (ac_try="$ac_compile"
5081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5082 *) ac_try_echo=$ac_try;;
5084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5085 (eval "$ac_compile") 2>conftest.er1
5087 grep -v '^ *+' conftest.er1 >conftest.err
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } && {
5092 test -z "$ac_c_werror_flag" ||
5093 test ! -s conftest.err
5094 } && test -s conftest.$ac_objext; then
5095 eval "$as_ac_Header=yes"
5097 echo "$as_me: failed program was:" >&5
5098 sed 's/^/| /' conftest.$ac_ext >&5
5100 eval "$as_ac_Header=no"
5103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 ac_res=`eval echo '${'$as_ac_Header'}'`
5106 { echo "$as_me:$LINENO: result: $ac_res" >&5
5107 echo "${ECHO_T}$ac_res" >&6; }
5108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5109 cat >>confdefs.h <<_ACEOF
5110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5119 for ac_header in dlfcn.h
5121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5123 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 ac_res=`eval echo '${'$as_ac_Header'}'`
5129 { echo "$as_me:$LINENO: result: $ac_res" >&5
5130 echo "${ECHO_T}$ac_res" >&6; }
5132 # Is the header compilable?
5133 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5135 cat >conftest.$ac_ext <<_ACEOF
5138 cat confdefs.h >>conftest.$ac_ext
5139 cat >>conftest.$ac_ext <<_ACEOF
5140 /* end confdefs.h. */
5141 $ac_includes_default
5142 #include <$ac_header>
5144 rm -f conftest.$ac_objext
5145 if { (ac_try="$ac_compile"
5147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148 *) ac_try_echo=$ac_try;;
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151 (eval "$ac_compile") 2>conftest.er1
5153 grep -v '^ *+' conftest.er1 >conftest.err
5155 cat conftest.err >&5
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); } && {
5158 test -z "$ac_c_werror_flag" ||
5159 test ! -s conftest.err
5160 } && test -s conftest.$ac_objext; then
5161 ac_header_compiler=yes
5163 echo "$as_me: failed program was:" >&5
5164 sed 's/^/| /' conftest.$ac_ext >&5
5166 ac_header_compiler=no
5169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5171 echo "${ECHO_T}$ac_header_compiler" >&6; }
5173 # Is the header present?
5174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5176 cat >conftest.$ac_ext <<_ACEOF
5179 cat confdefs.h >>conftest.$ac_ext
5180 cat >>conftest.$ac_ext <<_ACEOF
5181 /* end confdefs.h. */
5182 #include <$ac_header>
5184 if { (ac_try="$ac_cpp conftest.$ac_ext"
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5192 grep -v '^ *+' conftest.er1 >conftest.err
5194 cat conftest.err >&5
5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5196 (exit $ac_status); } >/dev/null && {
5197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5198 test ! -s conftest.err
5200 ac_header_preproc=yes
5202 echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5205 ac_header_preproc=no
5208 rm -f conftest.err conftest.$ac_ext
5209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5210 echo "${ECHO_T}$ac_header_preproc" >&6; }
5212 # So? What about this header?
5213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5219 ac_header_preproc=yes
5222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5235 ## ---------------------------------------- ##
5236 ## Report this to konn@users.sourceforge.jp ##
5237 ## ---------------------------------------- ##
5239 ) | sed "s/^/$as_me: WARNING: /" >&2
5242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 eval "$as_ac_Header=\$ac_header_preproc"
5249 ac_res=`eval echo '${'$as_ac_Header'}'`
5250 { echo "$as_me:$LINENO: result: $ac_res" >&5
5251 echo "${ECHO_T}$ac_res" >&6; }
5254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5255 cat >>confdefs.h <<_ACEOF
5256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5264 ac_cpp='$CXXCPP $CPPFLAGS'
5265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5268 if test -z "$CXX"; then
5269 if test -n "$CCC"; then
5272 if test -n "$ac_tool_prefix"; then
5273 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5279 if test "${ac_cv_prog_CXX+set}" = set; then
5280 echo $ECHO_N "(cached) $ECHO_C" >&6
5282 if test -n "$CXX"; then
5283 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 test -z "$as_dir" && as_dir=.
5290 for ac_exec_ext in '' $ac_executable_extensions; do
5291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5292 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 if test -n "$CXX"; then
5304 { echo "$as_me:$LINENO: result: $CXX" >&5
5305 echo "${ECHO_T}$CXX" >&6; }
5307 { echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6; }
5312 test -n "$CXX" && break
5315 if test -z "$CXX"; then
5317 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5319 # Extract the first word of "$ac_prog", so it can be a program name with args.
5320 set dummy $ac_prog; ac_word=$2
5321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5323 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5326 if test -n "$ac_ct_CXX"; then
5327 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5336 ac_cv_prog_ac_ct_CXX="$ac_prog"
5337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5347 if test -n "$ac_ct_CXX"; then
5348 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5349 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5351 { echo "$as_me:$LINENO: result: no" >&5
5352 echo "${ECHO_T}no" >&6; }
5356 test -n "$ac_ct_CXX" && break
5359 if test "x$ac_ct_CXX" = x; then
5362 case $cross_compiling:$ac_tool_warned in
5364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5365 whose name does not start with the host triplet. If you think this
5366 configuration is useful to you, please write to autoconf@gnu.org." >&5
5367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5368 whose name does not start with the host triplet. If you think this
5369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5370 ac_tool_warned=yes ;;
5378 # Provide some information about the compiler.
5379 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5380 ac_compiler=`set X $ac_compile; echo $2`
5381 { (ac_try="$ac_compiler --version >&5"
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_compiler --version >&5") 2>&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); }
5391 { (ac_try="$ac_compiler -v >&5"
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_compiler -v >&5") 2>&5
5399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5400 (exit $ac_status); }
5401 { (ac_try="$ac_compiler -V >&5"
5403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5404 *) ac_try_echo=$ac_try;;
5406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5407 (eval "$ac_compiler -V >&5") 2>&5
5409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410 (exit $ac_status); }
5412 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5413 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5414 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5415 echo $ECHO_N "(cached) $ECHO_C" >&6
5417 cat >conftest.$ac_ext <<_ACEOF
5420 cat confdefs.h >>conftest.$ac_ext
5421 cat >>conftest.$ac_ext <<_ACEOF
5422 /* end confdefs.h. */
5435 rm -f conftest.$ac_objext
5436 if { (ac_try="$ac_compile"
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_compile") 2>conftest.er1
5444 grep -v '^ *+' conftest.er1 >conftest.err
5446 cat conftest.err >&5
5447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448 (exit $ac_status); } && {
5449 test -z "$ac_cxx_werror_flag" ||
5450 test ! -s conftest.err
5451 } && test -s conftest.$ac_objext; then
5454 echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5461 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5464 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5465 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5466 GXX=`test $ac_compiler_gnu = yes && echo yes`
5467 ac_test_CXXFLAGS=${CXXFLAGS+set}
5468 ac_save_CXXFLAGS=$CXXFLAGS
5469 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5470 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5471 if test "${ac_cv_prog_cxx_g+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5474 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5475 ac_cxx_werror_flag=yes
5478 cat >conftest.$ac_ext <<_ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5493 rm -f conftest.$ac_objext
5494 if { (ac_try="$ac_compile"
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5500 (eval "$ac_compile") 2>conftest.er1
5502 grep -v '^ *+' conftest.er1 >conftest.err
5504 cat conftest.err >&5
5505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506 (exit $ac_status); } && {
5507 test -z "$ac_cxx_werror_flag" ||
5508 test ! -s conftest.err
5509 } && test -s conftest.$ac_objext; then
5510 ac_cv_prog_cxx_g=yes
5512 echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5516 cat >conftest.$ac_ext <<_ACEOF
5519 cat confdefs.h >>conftest.$ac_ext
5520 cat >>conftest.$ac_ext <<_ACEOF
5521 /* end confdefs.h. */
5531 rm -f conftest.$ac_objext
5532 if { (ac_try="$ac_compile"
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } && {
5545 test -z "$ac_cxx_werror_flag" ||
5546 test ! -s conftest.err
5547 } && test -s conftest.$ac_objext; then
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5553 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5555 cat >conftest.$ac_ext <<_ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5570 rm -f conftest.$ac_objext
5571 if { (ac_try="$ac_compile"
5573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5574 *) ac_try_echo=$ac_try;;
5576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5577 (eval "$ac_compile") 2>conftest.er1
5579 grep -v '^ *+' conftest.er1 >conftest.err
5581 cat conftest.err >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); } && {
5584 test -z "$ac_cxx_werror_flag" ||
5585 test ! -s conftest.err
5586 } && test -s conftest.$ac_objext; then
5587 ac_cv_prog_cxx_g=yes
5589 echo "$as_me: failed program was:" >&5
5590 sed 's/^/| /' conftest.$ac_ext >&5
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5604 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5605 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5606 if test "$ac_test_CXXFLAGS" = set; then
5607 CXXFLAGS=$ac_save_CXXFLAGS
5608 elif test $ac_cv_prog_cxx_g = yes; then
5609 if test "$GXX" = yes; then
5615 if test "$GXX" = yes; then
5622 ac_cpp='$CXXCPP $CPPFLAGS'
5623 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5624 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5625 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5627 depcc="$CXX" am_compiler_list=
5629 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5630 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5631 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5632 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5635 # We make a subdir and do the tests there. Otherwise we can end up
5636 # making bogus files that we don't know about and never remove. For
5637 # instance it was reported that on HP-UX the gcc test will end up
5638 # making a dummy file named `D' -- because `-MD' means `put the output
5641 # Copy depcomp to subdir because otherwise we won't find it if we're
5642 # using a relative directory.
5643 cp "$am_depcomp" conftest.dir
5645 # We will build objects and dependencies in a subdirectory because
5646 # it helps to detect inapplicable dependency modes. For instance
5647 # both Tru64's cc and ICC support -MD to output dependencies as a
5648 # side effect of compilation, but ICC will put the dependencies in
5649 # the current directory while Tru64 will put them in the object
5653 am_cv_CXX_dependencies_compiler_type=none
5654 if test "$am_compiler_list" = ""; then
5655 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5657 for depmode in $am_compiler_list; do
5658 # Setup a source with many dependencies, because some compilers
5659 # like to wrap large dependency lists on column 80 (with \), and
5660 # we should not choose a depcomp mode which is confused by this.
5662 # We need to recreate these files for each test, as the compiler may
5663 # overwrite some of them when testing with obscure command lines.
5664 # This happens at least with the AIX C compiler.
5666 for i in 1 2 3 4 5 6; do
5667 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5668 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5669 # Solaris 8's {/usr,}/bin/sh.
5670 touch sub/conftst$i.h
5672 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5676 # after this tag, mechanisms are not by side-effect, so they'll
5677 # only be used when explicitly requested
5678 if test "x$enable_dependency_tracking" = xyes; then
5686 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5687 # mode. It turns out that the SunPro C++ compiler does not properly
5688 # handle `-M -o', and we need to detect this.
5689 if depmode=$depmode \
5690 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5691 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5692 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5693 >/dev/null 2>conftest.err &&
5694 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5695 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5696 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5697 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5698 # icc doesn't choke on unknown options, it will just issue warnings
5699 # or remarks (even with -Werror). So we grep stderr for any message
5700 # that says an option was ignored or not supported.
5701 # When given -MP, icc 7.0 and 7.1 complain thusly:
5702 # icc: Command line warning: ignoring option '-M'; no argument required
5703 # The diagnosis changed in icc 8.0:
5704 # icc: Command line remark: option '-MP' not supported
5705 if (grep 'ignoring option' conftest.err ||
5706 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5707 am_cv_CXX_dependencies_compiler_type=$depmode
5716 am_cv_CXX_dependencies_compiler_type=none
5720 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5721 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5722 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5725 test "x$enable_dependency_tracking" != xno \
5726 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5727 am__fastdepCXX_TRUE=
5728 am__fastdepCXX_FALSE='#'
5730 am__fastdepCXX_TRUE='#'
5731 am__fastdepCXX_FALSE=
5737 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5738 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5739 (test "X$CXX" != "Xg++"))) ; then
5741 ac_cpp='$CXXCPP $CPPFLAGS'
5742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5745 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5746 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5747 if test -z "$CXXCPP"; then
5748 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 # Double quotes because CXXCPP needs to be expanded
5752 for CXXCPP in "$CXX -E" "/lib/cpp"
5755 for ac_cxx_preproc_warn_flag in '' yes
5757 # Use a header file that comes with gcc, so configuring glibc
5758 # with a fresh cross-compiler works.
5759 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5760 # <limits.h> exists even on freestanding compilers.
5761 # On the NeXT, cc -E runs the code through the compiler's parser,
5762 # not just through cpp. "Syntax error" is here to catch this case.
5763 cat >conftest.$ac_ext <<_ACEOF
5766 cat confdefs.h >>conftest.$ac_ext
5767 cat >>conftest.$ac_ext <<_ACEOF
5768 /* end confdefs.h. */
5770 # include <limits.h>
5772 # include <assert.h>
5776 if { (ac_try="$ac_cpp conftest.$ac_ext"
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5784 grep -v '^ *+' conftest.er1 >conftest.err
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } >/dev/null && {
5789 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5790 test ! -s conftest.err
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 # Broken: fails on valid input.
5801 rm -f conftest.err conftest.$ac_ext
5803 # OK, works on sane cases. Now check whether nonexistent headers
5804 # can be detected and how.
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #include <ac_nonexistent.h>
5813 if { (ac_try="$ac_cpp conftest.$ac_ext"
5815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5816 *) ac_try_echo=$ac_try;;
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5821 grep -v '^ *+' conftest.er1 >conftest.err
5823 cat conftest.err >&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } >/dev/null && {
5826 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5827 test ! -s conftest.err
5829 # Broken: success on invalid input.
5832 echo "$as_me: failed program was:" >&5
5833 sed 's/^/| /' conftest.$ac_ext >&5
5835 # Passes both tests.
5840 rm -f conftest.err conftest.$ac_ext
5843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5844 rm -f conftest.err conftest.$ac_ext
5845 if $ac_preproc_ok; then
5850 ac_cv_prog_CXXCPP=$CXXCPP
5853 CXXCPP=$ac_cv_prog_CXXCPP
5855 ac_cv_prog_CXXCPP=$CXXCPP
5857 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5858 echo "${ECHO_T}$CXXCPP" >&6; }
5860 for ac_cxx_preproc_warn_flag in '' yes
5862 # Use a header file that comes with gcc, so configuring glibc
5863 # with a fresh cross-compiler works.
5864 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5865 # <limits.h> exists even on freestanding compilers.
5866 # On the NeXT, cc -E runs the code through the compiler's parser,
5867 # not just through cpp. "Syntax error" is here to catch this case.
5868 cat >conftest.$ac_ext <<_ACEOF
5871 cat confdefs.h >>conftest.$ac_ext
5872 cat >>conftest.$ac_ext <<_ACEOF
5873 /* end confdefs.h. */
5875 # include <limits.h>
5877 # include <assert.h>
5881 if { (ac_try="$ac_cpp conftest.$ac_ext"
5883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5884 *) ac_try_echo=$ac_try;;
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5889 grep -v '^ *+' conftest.er1 >conftest.err
5891 cat conftest.err >&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } >/dev/null && {
5894 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5895 test ! -s conftest.err
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5902 # Broken: fails on valid input.
5906 rm -f conftest.err conftest.$ac_ext
5908 # OK, works on sane cases. Now check whether nonexistent headers
5909 # can be detected and how.
5910 cat >conftest.$ac_ext <<_ACEOF
5913 cat confdefs.h >>conftest.$ac_ext
5914 cat >>conftest.$ac_ext <<_ACEOF
5915 /* end confdefs.h. */
5916 #include <ac_nonexistent.h>
5918 if { (ac_try="$ac_cpp conftest.$ac_ext"
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5926 grep -v '^ *+' conftest.er1 >conftest.err
5928 cat conftest.err >&5
5929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5930 (exit $ac_status); } >/dev/null && {
5931 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5932 test ! -s conftest.err
5934 # Broken: success on invalid input.
5937 echo "$as_me: failed program was:" >&5
5938 sed 's/^/| /' conftest.$ac_ext >&5
5940 # Passes both tests.
5945 rm -f conftest.err conftest.$ac_ext
5948 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5949 rm -f conftest.err conftest.$ac_ext
5950 if $ac_preproc_ok; then
5953 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5954 See \`config.log' for more details." >&5
5955 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5956 See \`config.log' for more details." >&2;}
5957 { (exit 1); exit 1; }; }
5961 ac_cpp='$CXXCPP $CPPFLAGS'
5962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5970 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5971 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5972 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5973 if test -n "$ac_tool_prefix"; then
5974 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
5976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5978 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5980 if test "${ac_cv_prog_F77+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5983 if test -n "$F77"; then
5984 ac_cv_prog_F77="$F77" # Let the user override the test.
5986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 test -z "$as_dir" && as_dir=.
5991 for ac_exec_ext in '' $ac_executable_extensions; do
5992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5993 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 if test -n "$F77"; then
6005 { echo "$as_me:$LINENO: result: $F77" >&5
6006 echo "${ECHO_T}$F77" >&6; }
6008 { echo "$as_me:$LINENO: result: no" >&5
6009 echo "${ECHO_T}no" >&6; }
6013 test -n "$F77" && break
6016 if test -z "$F77"; then
6018 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
6020 # Extract the first word of "$ac_prog", so it can be a program name with args.
6021 set dummy $ac_prog; ac_word=$2
6022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6024 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6025 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 if test -n "$ac_ct_F77"; then
6028 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6037 ac_cv_prog_ac_ct_F77="$ac_prog"
6038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6048 if test -n "$ac_ct_F77"; then
6049 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6050 echo "${ECHO_T}$ac_ct_F77" >&6; }
6052 { echo "$as_me:$LINENO: result: no" >&5
6053 echo "${ECHO_T}no" >&6; }
6057 test -n "$ac_ct_F77" && break
6060 if test "x$ac_ct_F77" = x; then
6063 case $cross_compiling:$ac_tool_warned in
6065 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6066 whose name does not start with the host triplet. If you think this
6067 configuration is useful to you, please write to autoconf@gnu.org." >&5
6068 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6069 whose name does not start with the host triplet. If you think this
6070 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6071 ac_tool_warned=yes ;;
6078 # Provide some information about the compiler.
6079 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6080 ac_compiler=`set X $ac_compile; echo $2`
6081 { (ac_try="$ac_compiler --version >&5"
6083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084 *) ac_try_echo=$ac_try;;
6086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087 (eval "$ac_compiler --version >&5") 2>&5
6089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6090 (exit $ac_status); }
6091 { (ac_try="$ac_compiler -v >&5"
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_compiler -v >&5") 2>&5
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }
6101 { (ac_try="$ac_compiler -V >&5"
6103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6104 *) ac_try_echo=$ac_try;;
6106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6107 (eval "$ac_compiler -V >&5") 2>&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }
6113 # If we don't use `.F' as extension, the preprocessor is not run on the
6114 # input file. (Note that this only needs to work for GNU compilers.)
6117 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6118 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6119 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6120 echo $ECHO_N "(cached) $ECHO_C" >&6
6122 cat >conftest.$ac_ext <<_ACEOF
6130 rm -f conftest.$ac_objext
6131 if { (ac_try="$ac_compile"
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_compile") 2>conftest.er1
6139 grep -v '^ *+' conftest.er1 >conftest.err
6141 cat conftest.err >&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && {
6144 test -z "$ac_f77_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest.$ac_objext; then
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6159 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6160 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6162 ac_test_FFLAGS=${FFLAGS+set}
6163 ac_save_FFLAGS=$FFLAGS
6165 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6166 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6167 if test "${ac_cv_prog_f77_g+set}" = set; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 cat >conftest.$ac_ext <<_ACEOF
6176 rm -f conftest.$ac_objext
6177 if { (ac_try="$ac_compile"
6179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6180 *) ac_try_echo=$ac_try;;
6182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6183 (eval "$ac_compile") 2>conftest.er1
6185 grep -v '^ *+' conftest.er1 >conftest.err
6187 cat conftest.err >&5
6188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6189 (exit $ac_status); } && {
6190 test -z "$ac_f77_werror_flag" ||
6191 test ! -s conftest.err
6192 } && test -s conftest.$ac_objext; then
6193 ac_cv_prog_f77_g=yes
6195 echo "$as_me: failed program was:" >&5
6196 sed 's/^/| /' conftest.$ac_ext >&5
6201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6204 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6205 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6206 if test "$ac_test_FFLAGS" = set; then
6207 FFLAGS=$ac_save_FFLAGS
6208 elif test $ac_cv_prog_f77_g = yes; then
6209 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6215 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6222 G77=`test $ac_compiler_gnu = yes && echo yes`
6224 ac_cpp='$CPP $CPPFLAGS'
6225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6231 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6233 # find the maximum length of command line arguments
6234 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6235 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6236 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 # On DJGPP, this test can blow up pretty badly due to problems in libc
6245 # (any single argument exceeding 2000 bytes causes a buffer overrun
6246 # during glob expansion). Even if it were fixed, the result of this
6247 # check would be larger than it should be.
6248 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6252 # Under GNU Hurd, this test is not required because there is
6253 # no limit to the length of command line arguments.
6254 # Libtool will interpret -1 as no limit whatsoever
6255 lt_cv_sys_max_cmd_len=-1;
6259 # On Win9x/ME, this test blows up -- it succeeds, but takes
6260 # about 5 minutes as the teststring grows exponentially.
6261 # Worse, since 9x/ME are not pre-emptively multitasking,
6262 # you end up with a "frozen" computer, even though with patience
6263 # the test eventually succeeds (with a max line length of 256k).
6264 # Instead, let's just punt: use the minimum linelength reported by
6265 # all of the supported platforms: 8192 (on NT/2K/XP).
6266 lt_cv_sys_max_cmd_len=8192;
6270 # On AmigaOS with pdksh, this test takes hours, literally.
6271 # So we just punt and use a minimum line length of 8192.
6272 lt_cv_sys_max_cmd_len=8192;
6275 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6276 # This has been around since 386BSD, at least. Likely further.
6277 if test -x /sbin/sysctl; then
6278 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6279 elif test -x /usr/sbin/sysctl; then
6280 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6282 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6284 # And add a safety zone
6285 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6290 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6291 lt_cv_sys_max_cmd_len=196608
6295 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6296 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6297 # nice to cause kernel panics so lets avoid the loop below.
6298 # First set a reasonable default.
6299 lt_cv_sys_max_cmd_len=16384
6301 if test -x /sbin/sysconfig; then
6302 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6303 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6308 lt_cv_sys_max_cmd_len=102400
6310 sysv5* | sco5v6* | sysv4.2uw2*)
6311 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6312 if test -n "$kargmax"; then
6313 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6315 lt_cv_sys_max_cmd_len=32768
6319 # If test is not a shell built-in, we'll probably end up computing a
6320 # maximum length that is only half of the actual maximum length, but
6322 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6323 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6324 = "XX$teststring") >/dev/null 2>&1 &&
6325 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6326 lt_cv_sys_max_cmd_len=$new_result &&
6327 test $i != 17 # 1/2 MB should be enough
6330 teststring=$teststring$teststring
6333 # Add a significant safety factor because C++ compilers can tack on massive
6334 # amounts of additional arguments before passing them to the linker.
6335 # It appears as though 1/2 is a usable value.
6336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6342 if test -n $lt_cv_sys_max_cmd_len ; then
6343 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6344 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6346 { echo "$as_me:$LINENO: result: none" >&5
6347 echo "${ECHO_T}none" >&6; }
6353 # Check for command to grab the raw symbol name followed by C symbol from nm.
6354 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6355 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6356 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 # These are sane defaults that work on at least a few old systems.
6361 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6363 # Character class describing NM global symbol codes.
6364 symcode='[BCDEGRST]'
6366 # Regexp to match symbols that can be accessed directly from C.
6367 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6369 # Transform an extracted symbol line into a proper C declaration
6370 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6372 # Transform an extracted symbol line into symbol name and symbol address
6373 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'"
6375 # Define system-specific variables.
6380 cygwin* | mingw* | pw32*)
6381 symcode='[ABCDGISTW]'
6383 hpux*) # Its linker distinguishes data from code symbols
6384 if test "$host_cpu" = ia64; then
6385 symcode='[ABCDEGRST]'
6387 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6388 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'"
6390 linux* | k*bsd*-gnu)
6391 if test "$host_cpu" = ia64; then
6392 symcode='[ABCDGIRSTW]'
6393 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6394 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'"
6398 symcode='[BCDEGRST]'
6401 symcode='[BCDEGQRST]'
6412 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6420 # Handle CRLF in mingw tool chain
6424 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6428 # If we're using GNU nm, then use its standard symbol codes.
6429 case `$NM -V 2>&1` in
6430 *GNU* | *'with BFD'*)
6431 symcode='[ABCDGIRSTW]' ;;
6434 # Try without a prefix undercore, then with it.
6435 for ac_symprfx in "" "_"; do
6437 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6438 symxfrm="\\1 $ac_symprfx\\2 \\2"
6440 # Write the raw and C identifiers.
6441 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6443 # Check to see that the pipe works correctly.
6447 cat > conftest.$ac_ext <<EOF
6452 void nm_test_func(){}
6456 int main(){nm_test_var='a';nm_test_func();return(0);}
6459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6460 (eval $ac_compile) 2>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; then
6464 # Now try to grab the symbols.
6466 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6467 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && test -s "$nlist"; then
6471 # Try sorting and uniquifying the output.
6472 if sort "$nlist" | uniq > "$nlist"T; then
6473 mv -f "$nlist"T "$nlist"
6478 # Make sure that we snagged all the symbols we need.
6479 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6480 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6481 cat <<EOF > conftest.$ac_ext
6487 # Now generate the symbol file.
6488 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6490 cat <<EOF >> conftest.$ac_ext
6491 #if defined (__STDC__) && __STDC__
6492 # define lt_ptr_t void *
6494 # define lt_ptr_t char *
6498 /* The mapping between symbol names and symbols. */
6503 lt_preloaded_symbols[] =
6506 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6507 cat <<\EOF >> conftest.$ac_ext
6515 # Now try linking the two files.
6516 mv conftest.$ac_objext conftstm.$ac_objext
6517 lt_save_LIBS="$LIBS"
6518 lt_save_CFLAGS="$CFLAGS"
6519 LIBS="conftstm.$ac_objext"
6520 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6522 (eval $ac_link) 2>&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6528 LIBS="$lt_save_LIBS"
6529 CFLAGS="$lt_save_CFLAGS"
6531 echo "cannot find nm_test_func in $nlist" >&5
6534 echo "cannot find nm_test_var in $nlist" >&5
6537 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6540 echo "$progname: failed program was:" >&5
6541 cat conftest.$ac_ext >&5
6543 rm -f conftest* conftst*
6545 # Do not use the global_symbol_pipe unless it works.
6546 if test "$pipe_works" = yes; then
6549 lt_cv_sys_global_symbol_pipe=
6555 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6556 lt_cv_sys_global_symbol_to_cdecl=
6558 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6559 { echo "$as_me:$LINENO: result: failed" >&5
6560 echo "${ECHO_T}failed" >&6; }
6562 { echo "$as_me:$LINENO: result: ok" >&5
6563 echo "${ECHO_T}ok" >&6; }
6566 { echo "$as_me:$LINENO: checking for objdir" >&5
6567 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6568 if test "${lt_cv_objdir+set}" = set; then
6569 echo $ECHO_N "(cached) $ECHO_C" >&6
6571 rm -f .libs 2>/dev/null
6572 mkdir .libs 2>/dev/null
6573 if test -d .libs; then
6576 # MS-DOS does not allow filenames that begin with a dot.
6579 rmdir .libs 2>/dev/null
6581 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6582 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6583 objdir=$lt_cv_objdir
6591 # AIX sometimes has problems with the GCC collect2 program. For some
6592 # reason, if we set the COLLECT_NAMES environment variable, the problems
6593 # vanish in a puff of smoke.
6594 if test "X${COLLECT_NAMES+set}" != Xset; then
6596 export COLLECT_NAMES
6601 # Sed substitution that helps us do robust quoting. It backslashifies
6602 # metacharacters that are still active within double-quoted strings.
6603 Xsed='sed -e 1s/^X//'
6604 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6606 # Same as above, but do not quote variable references.
6607 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6609 # Sed substitution to delay expansion of an escaped shell variable in a
6610 # double_quote_subst'ed string.
6611 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6613 # Sed substitution to avoid accidental globbing in evaled expressions
6614 no_glob_subst='s/\*/\\\*/g'
6620 default_ofile=libtool
6621 can_build_shared=yes
6623 # All known linkers require a `.a' archive for static linking (except MSVC,
6624 # which needs '.lib').
6626 ltmain="$ac_aux_dir/ltmain.sh"
6627 ofile="$default_ofile"
6628 with_gnu_ld="$lt_cv_prog_gnu_ld"
6630 if test -n "$ac_tool_prefix"; then
6631 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}ar; ac_word=$2
6633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6635 if test "${ac_cv_prog_AR+set}" = set; then
6636 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 if test -n "$AR"; then
6639 ac_cv_prog_AR="$AR" # Let the user override the test.
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_AR="${ac_tool_prefix}ar"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6659 if test -n "$AR"; then
6660 { echo "$as_me:$LINENO: result: $AR" >&5
6661 echo "${ECHO_T}$AR" >&6; }
6663 { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6669 if test -z "$ac_cv_prog_AR"; then
6671 # Extract the first word of "ar", so it can be a program name with args.
6672 set dummy ar; ac_word=$2
6673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6675 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6676 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 if test -n "$ac_ct_AR"; then
6679 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_prog_ac_ct_AR="ar"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6698 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6699 if test -n "$ac_ct_AR"; then
6700 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6701 echo "${ECHO_T}$ac_ct_AR" >&6; }
6703 { echo "$as_me:$LINENO: result: no" >&5
6704 echo "${ECHO_T}no" >&6; }
6707 if test "x$ac_ct_AR" = x; then
6710 case $cross_compiling:$ac_tool_warned in
6712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6713 whose name does not start with the host triplet. If you think this
6714 configuration is useful to you, please write to autoconf@gnu.org." >&5
6715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6716 whose name does not start with the host triplet. If you think this
6717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6718 ac_tool_warned=yes ;;
6726 if test -n "$ac_tool_prefix"; then
6727 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6728 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6731 if test "${ac_cv_prog_RANLIB+set}" = set; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 if test -n "$RANLIB"; then
6735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 RANLIB=$ac_cv_prog_RANLIB
6755 if test -n "$RANLIB"; then
6756 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6757 echo "${ECHO_T}$RANLIB" >&6; }
6759 { echo "$as_me:$LINENO: result: no" >&5
6760 echo "${ECHO_T}no" >&6; }
6765 if test -z "$ac_cv_prog_RANLIB"; then
6766 ac_ct_RANLIB=$RANLIB
6767 # Extract the first word of "ranlib", so it can be a program name with args.
6768 set dummy ranlib; ac_word=$2
6769 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6771 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6772 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 if test -n "$ac_ct_RANLIB"; then
6775 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_prog_ac_ct_RANLIB="ranlib"
6785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6795 if test -n "$ac_ct_RANLIB"; then
6796 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6797 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6799 { echo "$as_me:$LINENO: result: no" >&5
6800 echo "${ECHO_T}no" >&6; }
6803 if test "x$ac_ct_RANLIB" = x; then
6806 case $cross_compiling:$ac_tool_warned in
6808 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6809 whose name does not start with the host triplet. If you think this
6810 configuration is useful to you, please write to autoconf@gnu.org." >&5
6811 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6812 whose name does not start with the host triplet. If you think this
6813 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6814 ac_tool_warned=yes ;;
6816 RANLIB=$ac_ct_RANLIB
6819 RANLIB="$ac_cv_prog_RANLIB"
6822 if test -n "$ac_tool_prefix"; then
6823 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6824 set dummy ${ac_tool_prefix}strip; ac_word=$2
6825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6827 if test "${ac_cv_prog_STRIP+set}" = set; then
6828 echo $ECHO_N "(cached) $ECHO_C" >&6
6830 if test -n "$STRIP"; then
6831 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6837 test -z "$as_dir" && as_dir=.
6838 for ac_exec_ext in '' $ac_executable_extensions; do
6839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6840 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6850 STRIP=$ac_cv_prog_STRIP
6851 if test -n "$STRIP"; then
6852 { echo "$as_me:$LINENO: result: $STRIP" >&5
6853 echo "${ECHO_T}$STRIP" >&6; }
6855 { echo "$as_me:$LINENO: result: no" >&5
6856 echo "${ECHO_T}no" >&6; }
6861 if test -z "$ac_cv_prog_STRIP"; then
6863 # Extract the first word of "strip", so it can be a program name with args.
6864 set dummy strip; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6870 if test -n "$ac_ct_STRIP"; then
6871 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877 test -z "$as_dir" && as_dir=.
6878 for ac_exec_ext in '' $ac_executable_extensions; do
6879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6880 ac_cv_prog_ac_ct_STRIP="strip"
6881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6891 if test -n "$ac_ct_STRIP"; then
6892 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6893 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6895 { echo "$as_me:$LINENO: result: no" >&5
6896 echo "${ECHO_T}no" >&6; }
6899 if test "x$ac_ct_STRIP" = x; then
6902 case $cross_compiling:$ac_tool_warned in
6904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6905 whose name does not start with the host triplet. If you think this
6906 configuration is useful to you, please write to autoconf@gnu.org." >&5
6907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6908 whose name does not start with the host triplet. If you think this
6909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6910 ac_tool_warned=yes ;;
6915 STRIP="$ac_cv_prog_STRIP"
6920 old_CFLAGS="$CFLAGS"
6922 # Set sane defaults for various variables
6923 test -z "$AR" && AR=ar
6924 test -z "$AR_FLAGS" && AR_FLAGS=cru
6925 test -z "$AS" && AS=as
6926 test -z "$CC" && CC=cc
6927 test -z "$LTCC" && LTCC=$CC
6928 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6929 test -z "$DLLTOOL" && DLLTOOL=dlltool
6930 test -z "$LD" && LD=ld
6931 test -z "$LN_S" && LN_S="ln -s"
6932 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6933 test -z "$NM" && NM=nm
6934 test -z "$SED" && SED=sed
6935 test -z "$OBJDUMP" && OBJDUMP=objdump
6936 test -z "$RANLIB" && RANLIB=:
6937 test -z "$STRIP" && STRIP=:
6938 test -z "$ac_objext" && ac_objext=o
6940 # Determine commands to create old-style static archives.
6941 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6942 old_postinstall_cmds='chmod 644 $oldlib'
6943 old_postuninstall_cmds=
6945 if test -n "$RANLIB"; then
6948 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6951 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6954 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6957 for cc_temp in $compiler""; do
6959 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6960 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6965 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6968 # Only perform the check for file, if the check method requires it
6969 case $deplibs_check_method in
6971 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6972 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6973 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6974 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6982 lt_save_MAGIC_CMD="$MAGIC_CMD"
6983 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6984 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6985 for ac_dir in $ac_dummy; do
6987 test -z "$ac_dir" && ac_dir=.
6988 if test -f $ac_dir/${ac_tool_prefix}file; then
6989 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6990 if test -n "$file_magic_test_file"; then
6991 case $deplibs_check_method in
6993 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6994 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6995 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6996 $EGREP "$file_magic_regex" > /dev/null; then
7001 *** Warning: the command libtool uses to detect shared libraries,
7002 *** $file_magic_cmd, produces output that libtool cannot recognize.
7003 *** The result is that libtool may fail to recognize shared libraries
7004 *** as such. This will affect the creation of libtool libraries that
7005 *** depend on shared libraries, but programs linked with such libtool
7006 *** libraries will work regardless of this problem. Nevertheless, you
7007 *** may want to report the problem to your system manager and/or to
7008 *** bug-libtool@gnu.org
7018 MAGIC_CMD="$lt_save_MAGIC_CMD"
7023 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7024 if test -n "$MAGIC_CMD"; then
7025 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7026 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7028 { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7032 if test -z "$lt_cv_path_MAGIC_CMD"; then
7033 if test -n "$ac_tool_prefix"; then
7034 { echo "$as_me:$LINENO: checking for file" >&5
7035 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7036 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7037 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7044 lt_save_MAGIC_CMD="$MAGIC_CMD"
7045 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7046 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7047 for ac_dir in $ac_dummy; do
7049 test -z "$ac_dir" && ac_dir=.
7050 if test -f $ac_dir/file; then
7051 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7052 if test -n "$file_magic_test_file"; then
7053 case $deplibs_check_method in
7055 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7057 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7058 $EGREP "$file_magic_regex" > /dev/null; then
7063 *** Warning: the command libtool uses to detect shared libraries,
7064 *** $file_magic_cmd, produces output that libtool cannot recognize.
7065 *** The result is that libtool may fail to recognize shared libraries
7066 *** as such. This will affect the creation of libtool libraries that
7067 *** depend on shared libraries, but programs linked with such libtool
7068 *** libraries will work regardless of this problem. Nevertheless, you
7069 *** may want to report the problem to your system manager and/or to
7070 *** bug-libtool@gnu.org
7080 MAGIC_CMD="$lt_save_MAGIC_CMD"
7085 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7086 if test -n "$MAGIC_CMD"; then
7087 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7088 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7090 { echo "$as_me:$LINENO: result: no" >&5
7091 echo "${ECHO_T}no" >&6; }
7106 # Check whether --enable-libtool-lock was given.
7107 if test "${enable_libtool_lock+set}" = set; then
7108 enableval=$enable_libtool_lock;
7111 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7114 # Check whether --with-pic was given.
7115 if test "${with_pic+set}" = set; then
7116 withval=$with_pic; pic_mode="$withval"
7121 test -z "$pic_mode" && pic_mode=default
7123 # Use C for the default configuration in the libtool script
7127 ac_cpp='$CPP $CPPFLAGS'
7128 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7129 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7130 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7133 # Source file extension for C test sources.
7136 # Object file extension for compiled C test sources.
7140 # Code to be used in simple compile tests
7141 lt_simple_compile_test_code="int some_variable = 0;\n"
7143 # Code to be used in simple link tests
7144 lt_simple_link_test_code='int main(){return(0);}\n'
7147 # If no C compiler was specified, use CC.
7150 # If no C compiler flags were specified, use CFLAGS.
7151 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7153 # Allow CC to be a program name with arguments.
7157 # save warnings/boilerplate of simple test code
7158 ac_outfile=conftest.$ac_objext
7159 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7160 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7161 _lt_compiler_boilerplate=`cat conftest.err`
7164 ac_outfile=conftest.$ac_objext
7165 printf "$lt_simple_link_test_code" >conftest.$ac_ext
7166 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7167 _lt_linker_boilerplate=`cat conftest.err`
7172 lt_prog_compiler_no_builtin_flag=
7174 if test "$GCC" = yes; then
7175 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7178 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7179 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7180 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 lt_cv_prog_compiler_rtti_exceptions=no
7184 ac_outfile=conftest.$ac_objext
7185 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7186 lt_compiler_flag="-fno-rtti -fno-exceptions"
7187 # Insert the option either (1) after the last *FLAGS variable, or
7188 # (2) before a word containing "conftest.", or (3) at the end.
7189 # Note that $ac_compile itself does not contain backslashes and begins
7190 # with a dollar sign (not a hyphen), so the echo should work correctly.
7191 # The option is referenced via a variable to avoid confusing sed.
7192 lt_compile=`echo "$ac_compile" | $SED \
7193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7195 -e 's:$: $lt_compiler_flag:'`
7196 (eval echo "\"\$as_me:7196: $lt_compile\"" >&5)
7197 (eval "$lt_compile" 2>conftest.err)
7199 cat conftest.err >&5
7200 echo "$as_me:7200: \$? = $ac_status" >&5
7201 if (exit $ac_status) && test -s "$ac_outfile"; then
7202 # The compiler can only warn and ignore the option if not recognized
7203 # So say no if there are warnings other than the usual output.
7204 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7205 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7206 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7207 lt_cv_prog_compiler_rtti_exceptions=yes
7213 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7214 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7216 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7217 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7224 lt_prog_compiler_wl=
7225 lt_prog_compiler_pic=
7226 lt_prog_compiler_static=
7228 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7229 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7231 if test "$GCC" = yes; then
7232 lt_prog_compiler_wl='-Wl,'
7233 lt_prog_compiler_static='-static'
7237 # All AIX code is PIC.
7238 if test "$host_cpu" = ia64; then
7239 # AIX 5 now supports IA64 processor
7240 lt_prog_compiler_static='-Bstatic'
7245 # FIXME: we need at least 68020 code to build shared libraries, but
7246 # adding the `-m68020' flag to GCC prevents building anything better,
7248 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7251 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7252 # PIC is the default for these OSes.
7255 mingw* | pw32* | os2*)
7256 # This hack is so that the source file can tell whether it is being
7257 # built for inclusion in a dll (and should export symbols for example).
7258 lt_prog_compiler_pic='-DDLL_EXPORT'
7261 darwin* | rhapsody*)
7262 # PIC is the default on this platform
7263 # Common symbols not allowed in MH_DYLIB files
7264 lt_prog_compiler_pic='-fno-common'
7268 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7269 # Instead, we relocate shared libraries at runtime.
7273 # Just because we use GCC doesn't mean we suddenly get shared libraries
7274 # on systems that don't support them.
7275 lt_prog_compiler_can_build_shared=no
7280 if test -d /usr/nec; then
7281 lt_prog_compiler_pic=-Kconform_pic
7286 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7293 lt_prog_compiler_pic='-fPIC'
7299 lt_prog_compiler_pic='-fPIC'
7303 # PORTME Check for flag to pass linker flags through the system compiler.
7306 lt_prog_compiler_wl='-Wl,'
7307 if test "$host_cpu" = ia64; then
7308 # AIX 5 now supports IA64 processor
7309 lt_prog_compiler_static='-Bstatic'
7311 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7315 # PIC is the default on this platform
7316 # Common symbols not allowed in MH_DYLIB files
7317 case $cc_basename in
7319 lt_prog_compiler_pic='-qnocommon'
7320 lt_prog_compiler_wl='-Wl,'
7325 mingw* | pw32* | os2*)
7326 # This hack is so that the source file can tell whether it is being
7327 # built for inclusion in a dll (and should export symbols for example).
7328 lt_prog_compiler_pic='-DDLL_EXPORT'
7331 hpux9* | hpux10* | hpux11*)
7332 lt_prog_compiler_wl='-Wl,'
7333 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7340 lt_prog_compiler_pic='+Z'
7343 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7344 lt_prog_compiler_static='${wl}-a ${wl}archive'
7347 irix5* | irix6* | nonstopux*)
7348 lt_prog_compiler_wl='-Wl,'
7349 # PIC (with -KPIC) is the default.
7350 lt_prog_compiler_static='-non_shared'
7354 lt_prog_compiler_pic='-KPIC'
7355 lt_prog_compiler_static='-Bstatic'
7358 linux* | k*bsd*-gnu)
7359 case $cc_basename in
7361 lt_prog_compiler_wl='-Wl,'
7362 lt_prog_compiler_pic='-KPIC'
7363 lt_prog_compiler_static='-static'
7365 pgcc* | pgf77* | pgf90* | pgf95*)
7366 # Portland Group compilers (*not* the Pentium gcc compiler,
7367 # which looks to be a dead project)
7368 lt_prog_compiler_wl='-Wl,'
7369 lt_prog_compiler_pic='-fpic'
7370 lt_prog_compiler_static='-Bstatic'
7373 lt_prog_compiler_wl='-Wl,'
7374 # All Alpha code is PIC.
7375 lt_prog_compiler_static='-non_shared'
7380 osf3* | osf4* | osf5*)
7381 lt_prog_compiler_wl='-Wl,'
7382 # All OSF/1 code is PIC.
7383 lt_prog_compiler_static='-non_shared'
7387 lt_prog_compiler_pic='-KPIC'
7388 lt_prog_compiler_static='-Bstatic'
7389 case $cc_basename in
7391 lt_prog_compiler_wl='-Qoption ld ';;
7393 lt_prog_compiler_wl='-Wl,';;
7398 lt_prog_compiler_wl='-Qoption ld '
7399 lt_prog_compiler_pic='-PIC'
7400 lt_prog_compiler_static='-Bstatic'
7403 sysv4 | sysv4.2uw2* | sysv4.3*)
7404 lt_prog_compiler_wl='-Wl,'
7405 lt_prog_compiler_pic='-KPIC'
7406 lt_prog_compiler_static='-Bstatic'
7410 if test -d /usr/nec ;then
7411 lt_prog_compiler_pic='-Kconform_pic'
7412 lt_prog_compiler_static='-Bstatic'
7416 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7417 lt_prog_compiler_wl='-Wl,'
7418 lt_prog_compiler_pic='-KPIC'
7419 lt_prog_compiler_static='-Bstatic'
7423 lt_prog_compiler_wl='-Wl,'
7424 lt_prog_compiler_can_build_shared=no
7428 lt_prog_compiler_pic='-pic'
7429 lt_prog_compiler_static='-Bstatic'
7433 lt_prog_compiler_can_build_shared=no
7438 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7439 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7442 # Check to make sure the PIC flag actually works.
7444 if test -n "$lt_prog_compiler_pic"; then
7446 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7447 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7448 if test "${lt_prog_compiler_pic_works+set}" = set; then
7449 echo $ECHO_N "(cached) $ECHO_C" >&6
7451 lt_prog_compiler_pic_works=no
7452 ac_outfile=conftest.$ac_objext
7453 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7454 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7455 # Insert the option either (1) after the last *FLAGS variable, or
7456 # (2) before a word containing "conftest.", or (3) at the end.
7457 # Note that $ac_compile itself does not contain backslashes and begins
7458 # with a dollar sign (not a hyphen), so the echo should work correctly.
7459 # The option is referenced via a variable to avoid confusing sed.
7460 lt_compile=`echo "$ac_compile" | $SED \
7461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7463 -e 's:$: $lt_compiler_flag:'`
7464 (eval echo "\"\$as_me:7464: $lt_compile\"" >&5)
7465 (eval "$lt_compile" 2>conftest.err)
7467 cat conftest.err >&5
7468 echo "$as_me:7468: \$? = $ac_status" >&5
7469 if (exit $ac_status) && test -s "$ac_outfile"; then
7470 # The compiler can only warn and ignore the option if not recognized
7471 # So say no if there are warnings other than the usual output.
7472 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7475 lt_prog_compiler_pic_works=yes
7481 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7482 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7484 if test x"$lt_prog_compiler_pic_works" = xyes; then
7485 case $lt_prog_compiler_pic in
7487 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7490 lt_prog_compiler_pic=
7491 lt_prog_compiler_can_build_shared=no
7496 # For platforms which do not support PIC, -DPIC is meaningless:
7498 lt_prog_compiler_pic=
7501 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7506 # Check to make sure the static flag actually works.
7508 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7509 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7510 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7511 if test "${lt_prog_compiler_static_works+set}" = set; then
7512 echo $ECHO_N "(cached) $ECHO_C" >&6
7514 lt_prog_compiler_static_works=no
7515 save_LDFLAGS="$LDFLAGS"
7516 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7517 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7518 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7519 # The linker can only warn and ignore the option if not recognized
7520 # So say no if there are warnings
7521 if test -s conftest.err; then
7522 # Append any errors to the config.log.
7523 cat conftest.err 1>&5
7524 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7525 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7526 if diff conftest.exp conftest.er2 >/dev/null; then
7527 lt_prog_compiler_static_works=yes
7530 lt_prog_compiler_static_works=yes
7534 LDFLAGS="$save_LDFLAGS"
7537 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7538 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7540 if test x"$lt_prog_compiler_static_works" = xyes; then
7543 lt_prog_compiler_static=
7547 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7548 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7549 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7550 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 lt_cv_prog_compiler_c_o=no
7553 $rm -r conftest 2>/dev/null
7557 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7559 lt_compiler_flag="-o out/conftest2.$ac_objext"
7560 # Insert the option either (1) after the last *FLAGS variable, or
7561 # (2) before a word containing "conftest.", or (3) at the end.
7562 # Note that $ac_compile itself does not contain backslashes and begins
7563 # with a dollar sign (not a hyphen), so the echo should work correctly.
7564 lt_compile=`echo "$ac_compile" | $SED \
7565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7567 -e 's:$: $lt_compiler_flag:'`
7568 (eval echo "\"\$as_me:7568: $lt_compile\"" >&5)
7569 (eval "$lt_compile" 2>out/conftest.err)
7571 cat out/conftest.err >&5
7572 echo "$as_me:7572: \$? = $ac_status" >&5
7573 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7575 # The compiler can only warn and ignore the option if not recognized
7576 # So say no if there are warnings
7577 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7578 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7579 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7580 lt_cv_prog_compiler_c_o=yes
7585 # SGI C++ compiler will create directory out/ii_files/ for
7586 # template instantiation
7587 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7588 $rm out/* && rmdir out
7594 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7595 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7598 hard_links="nottested"
7599 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7600 # do not overwrite the value of need_locks provided by the user
7601 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7602 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7605 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7607 ln conftest.a conftest.b 2>&5 || hard_links=no
7608 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7609 { echo "$as_me:$LINENO: result: $hard_links" >&5
7610 echo "${ECHO_T}$hard_links" >&6; }
7611 if test "$hard_links" = no; then
7612 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7613 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7620 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7621 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7624 allow_undefined_flag=
7625 enable_shared_with_static_runtimes=no
7627 archive_expsym_cmds=
7628 old_archive_From_new_cmds=
7629 old_archive_from_expsyms_cmds=
7630 export_dynamic_flag_spec=
7631 whole_archive_flag_spec=
7632 thread_safe_flag_spec=
7633 hardcode_libdir_flag_spec=
7634 hardcode_libdir_flag_spec_ld=
7635 hardcode_libdir_separator=
7638 hardcode_shlibpath_var=unsupported
7639 link_all_deplibs=unknown
7640 hardcode_automatic=no
7643 always_export_symbols=no
7644 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7645 # include_expsyms should be a list of space-separated symbols to be *always*
7646 # included in the symbol list
7648 # exclude_expsyms can be an extended regexp of symbols to exclude
7649 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7650 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7651 # as well as any symbol that contains `d'.
7652 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7653 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7654 # platforms (ab)use it in PIC code, but their linkers get confused if
7655 # the symbol is explicitly referenced. Since portable code cannot
7656 # rely on this symbol name, it's probably fine to never include it in
7657 # preloaded symbol tables.
7658 extract_expsyms_cmds=
7659 # Just being paranoid about ensuring that cc_basename is set.
7660 for cc_temp in $compiler""; do
7662 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7663 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7668 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7671 cygwin* | mingw* | pw32*)
7672 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7673 # When not using gcc, we currently assume that we are using
7674 # Microsoft Visual C++.
7675 if test "$GCC" != yes; then
7680 # we just hope/assume this is gcc and not c89 (= MSVC++)
7689 if test "$with_gnu_ld" = yes; then
7690 # If archive_cmds runs LD, not CC, wlarc should be empty
7693 # Set some defaults for GNU ld with shared library support. These
7694 # are reset later if shared libraries are not supported. Putting them
7695 # here allows them to be overridden if necessary.
7696 runpath_var=LD_RUN_PATH
7697 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7698 export_dynamic_flag_spec='${wl}--export-dynamic'
7699 # ancient GNU ld didn't support --whole-archive et. al.
7700 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7701 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7703 whole_archive_flag_spec=
7705 supports_anon_versioning=no
7706 case `$LD -v 2>/dev/null` in
7707 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7708 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7709 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7710 *\ 2.11.*) ;; # other 2.11 versions
7711 *) supports_anon_versioning=yes ;;
7714 # See if GNU ld supports shared libraries.
7716 aix3* | aix4* | aix5*)
7717 # On AIX/PPC, the GNU linker is very broken
7718 if test "$host_cpu" != ia64; then
7722 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7723 *** to be unable to reliably create shared libraries on AIX.
7724 *** Therefore, libtool is disabling shared libraries support. If you
7725 *** really care for shared libraries, you may want to modify your PATH
7726 *** so that a non-GNU linker is found, and then restart.
7733 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)'
7734 hardcode_libdir_flag_spec='-L$libdir'
7735 hardcode_minus_L=yes
7737 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7738 # that the semantics of dynamic libraries on AmigaOS, at least up
7739 # to version 4, is to share data among multiple programs linked
7740 # with the same dynamic library. Since this doesn't match the
7741 # behavior of shared libraries on other platforms, we can't use
7747 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7748 allow_undefined_flag=unsupported
7749 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7750 # support --undefined. This deserves some investigation. FIXME
7751 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7757 cygwin* | mingw* | pw32*)
7758 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7759 # as there is no search path for DLLs.
7760 hardcode_libdir_flag_spec='-L$libdir'
7761 allow_undefined_flag=unsupported
7762 always_export_symbols=no
7763 enable_shared_with_static_runtimes=yes
7764 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7766 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7767 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7768 # If the export-symbols file already is a .def file (1st line
7769 # is EXPORTS), use it as is; otherwise, prepend...
7770 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7771 cp $export_symbols $output_objdir/$soname.def;
7773 echo EXPORTS > $output_objdir/$soname.def;
7774 cat $export_symbols >> $output_objdir/$soname.def;
7776 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7784 hardcode_shlibpath_var=no
7785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7786 export_dynamic_flag_spec='${wl}-E'
7787 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7788 # Instead, shared libraries are loaded at an image base (0x10000000 by
7789 # default) and relocated if they conflict, which is a slow very memory
7790 # consuming and fragmenting process. To avoid this, we pick a random,
7791 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7792 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7793 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7794 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'
7797 linux* | k*bsd*-gnu)
7798 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7800 case $cc_basename,$host_cpu in
7801 pgcc*) # Portland Group C compiler
7802 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'
7803 tmp_addflag=' $pic_flag'
7805 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7806 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'
7807 tmp_addflag=' $pic_flag -Mnomain' ;;
7808 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7809 tmp_addflag=' -i_dynamic' ;;
7810 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7811 tmp_addflag=' -i_dynamic -nofor_main' ;;
7812 ifc* | ifort*) # Intel Fortran compiler
7813 tmp_addflag=' -nofor_main' ;;
7815 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7817 if test $supports_anon_versioning = yes; then
7818 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7819 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7820 $echo "local: *; };" >> $output_objdir/$libname.ver~
7821 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7829 netbsd* | netbsdelf*-gnu)
7830 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7831 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7834 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7835 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7840 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7844 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7845 *** create shared libraries on Solaris systems. Therefore, libtool
7846 *** is disabling shared libraries support. We urge you to upgrade GNU
7847 *** binutils to release 2.9.1 or newer. Another option is to modify
7848 *** your PATH or compiler configuration so that the native linker is
7849 *** used, and then restart.
7852 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7853 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7854 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7861 case `$LD -v 2>&1` in
7862 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7866 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7867 *** reliably create shared libraries on SCO systems. Therefore, libtool
7868 *** is disabling shared libraries support. We urge you to upgrade GNU
7869 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7870 *** your PATH or compiler configuration so that the native linker is
7871 *** used, and then restart.
7876 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7877 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7878 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7879 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7888 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7891 hardcode_shlibpath_var=no
7895 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7896 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7897 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7904 if test "$ld_shlibs" = no; then
7906 hardcode_libdir_flag_spec=
7907 export_dynamic_flag_spec=
7908 whole_archive_flag_spec=
7911 # PORTME fill in a description of your system's linker (not GNU ld)
7914 allow_undefined_flag=unsupported
7915 always_export_symbols=yes
7916 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'
7917 # Note: this linker hardcodes the directories in LIBPATH if there
7918 # are no directories specified by -L.
7919 hardcode_minus_L=yes
7920 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7921 # Neither direct hardcoding nor static linking is supported with a
7923 hardcode_direct=unsupported
7928 if test "$host_cpu" = ia64; then
7929 # On IA64, the linker does run time linking by default, so we don't
7930 # have to do anything special.
7931 aix_use_runtimelinking=no
7932 exp_sym_flag='-Bexport'
7935 # If we're using GNU nm, then we don't want the "-C" option.
7936 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7937 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7938 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'
7940 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'
7942 aix_use_runtimelinking=no
7944 # Test if we are trying to use run time linking or normal
7945 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7946 # need to do runtime linking.
7947 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7948 for ld_flag in $LDFLAGS; do
7949 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7950 aix_use_runtimelinking=yes
7957 exp_sym_flag='-bexport'
7958 no_entry_flag='-bnoentry'
7961 # When large executables or shared objects are built, AIX ld can
7962 # have problems creating the table of contents. If linking a library
7963 # or program results in "error TOC overflow" add -mminimal-toc to
7964 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7965 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7969 hardcode_libdir_separator=':'
7970 link_all_deplibs=yes
7972 if test "$GCC" = yes; then
7973 case $host_os in aix4.[012]|aix4.[012].*)
7974 # We only want to do this on AIX 4.2 and lower, the check
7975 # below for broken collect2 doesn't work under 4.3+
7976 collect2name=`${CC} -print-prog-name=collect2`
7977 if test -f "$collect2name" && \
7978 strings "$collect2name" | grep resolve_lib_name >/dev/null
7980 # We have reworked collect2
7983 # We have old collect2
7984 hardcode_direct=unsupported
7985 # It fails to find uninstalled libraries when the uninstalled
7986 # path is not listed in the libpath. Setting hardcode_minus_L
7987 # to unsupported forces relinking
7988 hardcode_minus_L=yes
7989 hardcode_libdir_flag_spec='-L$libdir'
7990 hardcode_libdir_separator=
7994 shared_flag='-shared'
7995 if test "$aix_use_runtimelinking" = yes; then
7996 shared_flag="$shared_flag "'${wl}-G'
8000 if test "$host_cpu" = ia64; then
8001 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8002 # chokes on -Wl,-G. The following line is correct:
8005 if test "$aix_use_runtimelinking" = yes; then
8006 shared_flag='${wl}-G'
8008 shared_flag='${wl}-bM:SRE'
8013 # It seems that -bexpall does not export symbols beginning with
8014 # underscore (_), so it is better to generate a list of symbols to export.
8015 always_export_symbols=yes
8016 if test "$aix_use_runtimelinking" = yes; then
8017 # Warning - without using the other runtime loading flags (-brtl),
8018 # -berok will link without error, but may produce a broken library.
8019 allow_undefined_flag='-berok'
8020 # Determine the default libpath from the value encoded in an empty executable.
8021 cat >conftest.$ac_ext <<_ACEOF
8024 cat confdefs.h >>conftest.$ac_ext
8025 cat >>conftest.$ac_ext <<_ACEOF
8026 /* end confdefs.h. */
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (ac_try="$ac_link"
8039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8040 *) ac_try_echo=$ac_try;;
8042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8043 (eval "$ac_link") 2>conftest.er1
8045 grep -v '^ *+' conftest.er1 >conftest.err
8047 cat conftest.err >&5
8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049 (exit $ac_status); } && {
8050 test -z "$ac_c_werror_flag" ||
8051 test ! -s conftest.err
8052 } && test -s conftest$ac_exeext &&
8053 $as_test_x conftest$ac_exeext; then
8055 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8057 # Check for a 64-bit object if we didn't find anything.
8058 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; }
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.$ac_ext >&5
8067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8068 conftest$ac_exeext conftest.$ac_ext
8069 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8071 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8072 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"
8074 if test "$host_cpu" = ia64; then
8075 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8076 allow_undefined_flag="-z nodefs"
8077 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"
8079 # Determine the default libpath from the value encoded in an empty executable.
8080 cat >conftest.$ac_ext <<_ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8095 rm -f conftest.$ac_objext conftest$ac_exeext
8096 if { (ac_try="$ac_link"
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_link") 2>conftest.er1
8104 grep -v '^ *+' conftest.er1 >conftest.err
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8108 (exit $ac_status); } && {
8109 test -z "$ac_c_werror_flag" ||
8110 test ! -s conftest.err
8111 } && test -s conftest$ac_exeext &&
8112 $as_test_x conftest$ac_exeext; then
8114 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8116 # Check for a 64-bit object if we didn't find anything.
8117 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; }
8120 echo "$as_me: failed program was:" >&5
8121 sed 's/^/| /' conftest.$ac_ext >&5
8126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8127 conftest$ac_exeext conftest.$ac_ext
8128 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8130 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8131 # Warning - without using the other run time loading flags,
8132 # -berok will link without error, but may produce a broken library.
8133 no_undefined_flag=' ${wl}-bernotok'
8134 allow_undefined_flag=' ${wl}-berok'
8135 # Exported symbols can be pulled into shared objects from archives
8136 whole_archive_flag_spec='$convenience'
8137 archive_cmds_need_lc=yes
8138 # This is similar to how AIX traditionally builds its shared libraries.
8139 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'
8145 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)'
8146 hardcode_libdir_flag_spec='-L$libdir'
8147 hardcode_minus_L=yes
8148 # see comment about different semantics on the GNU ld section
8153 export_dynamic_flag_spec=-rdynamic
8156 cygwin* | mingw* | pw32*)
8157 # When not using gcc, we currently assume that we are using
8158 # Microsoft Visual C++.
8159 # hardcode_libdir_flag_spec is actually meaningless, as there is
8160 # no search path for DLLs.
8161 hardcode_libdir_flag_spec=' '
8162 allow_undefined_flag=unsupported
8163 # Tell ltmain to make .lib files, not .a files.
8165 # Tell ltmain to make .dll files, not .so files.
8167 # FIXME: Setting linknames here is a bad hack.
8168 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8169 # The linker will automatically build a .lib file if we build a DLL.
8170 old_archive_From_new_cmds='true'
8171 # FIXME: Should let the user specify the lib program.
8172 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8173 fix_srcfile_path='`cygpath -w "$srcfile"`'
8174 enable_shared_with_static_runtimes=yes
8177 darwin* | rhapsody*)
8179 rhapsody* | darwin1.[012])
8180 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8183 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8184 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8186 case ${MACOSX_DEPLOYMENT_TARGET} in
8188 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8191 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8197 archive_cmds_need_lc=no
8199 hardcode_automatic=yes
8200 hardcode_shlibpath_var=unsupported
8201 whole_archive_flag_spec=''
8202 link_all_deplibs=yes
8203 if test "$GCC" = yes ; then
8204 output_verbose_link_cmd='echo'
8205 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8206 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8207 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8208 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8209 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8211 case $cc_basename in
8213 output_verbose_link_cmd='echo'
8214 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8215 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8216 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8217 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}'
8218 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}'
8228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8229 hardcode_libdir_flag_spec='-L$libdir'
8230 hardcode_shlibpath_var=no
8237 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8238 # support. Future versions do this automatically, but an explicit c++rt0.o
8239 # does not break anything, and helps significantly (at the cost of a little
8242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8243 hardcode_libdir_flag_spec='-R$libdir'
8245 hardcode_shlibpath_var=no
8248 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8250 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8252 hardcode_minus_L=yes
8253 hardcode_shlibpath_var=no
8256 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8257 freebsd* | dragonfly*)
8258 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8259 hardcode_libdir_flag_spec='-R$libdir'
8261 hardcode_shlibpath_var=no
8265 if test "$GCC" = yes; then
8266 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'
8268 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'
8270 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8271 hardcode_libdir_separator=:
8274 # hardcode_minus_L: Not really in the search PATH,
8275 # but as the default location of the library.
8276 hardcode_minus_L=yes
8277 export_dynamic_flag_spec='${wl}-E'
8281 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8282 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8284 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8286 if test "$with_gnu_ld" = no; then
8287 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8288 hardcode_libdir_separator=:
8291 export_dynamic_flag_spec='${wl}-E'
8293 # hardcode_minus_L: Not really in the search PATH,
8294 # but as the default location of the library.
8295 hardcode_minus_L=yes
8300 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8303 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8306 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8309 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8315 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8318 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8321 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8325 if test "$with_gnu_ld" = no; then
8326 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8327 hardcode_libdir_separator=:
8331 hardcode_libdir_flag_spec_ld='+b $libdir'
8333 hardcode_shlibpath_var=no
8337 export_dynamic_flag_spec='${wl}-E'
8339 # hardcode_minus_L: Not really in the search PATH,
8340 # but as the default location of the library.
8341 hardcode_minus_L=yes
8347 irix5* | irix6* | nonstopux*)
8348 if test "$GCC" = yes; then
8349 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'
8351 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'
8352 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8355 hardcode_libdir_separator=:
8356 link_all_deplibs=yes
8359 netbsd* | netbsdelf*-gnu)
8360 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8361 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8363 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8365 hardcode_libdir_flag_spec='-R$libdir'
8367 hardcode_shlibpath_var=no
8371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8373 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8374 hardcode_libdir_separator=:
8375 hardcode_shlibpath_var=no
8380 hardcode_shlibpath_var=no
8381 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8382 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8383 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8384 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8385 export_dynamic_flag_spec='${wl}-E'
8388 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8389 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8390 hardcode_libdir_flag_spec='-R$libdir'
8393 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8394 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8401 hardcode_libdir_flag_spec='-L$libdir'
8402 hardcode_minus_L=yes
8403 allow_undefined_flag=unsupported
8404 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'
8405 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8409 if test "$GCC" = yes; then
8410 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8411 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'
8413 allow_undefined_flag=' -expect_unresolved \*'
8414 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'
8416 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8417 hardcode_libdir_separator=:
8420 osf4* | osf5*) # as osf3* with the addition of -msym flag
8421 if test "$GCC" = yes; then
8422 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8423 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'
8424 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8426 allow_undefined_flag=' -expect_unresolved \*'
8427 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'
8428 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8429 $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'
8431 # Both c and cxx compiler support -rpath directly
8432 hardcode_libdir_flag_spec='-rpath $libdir'
8434 hardcode_libdir_separator=:
8438 no_undefined_flag=' -z text'
8439 if test "$GCC" = yes; then
8441 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8442 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8443 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8446 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8447 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8448 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8450 hardcode_libdir_flag_spec='-R$libdir'
8451 hardcode_shlibpath_var=no
8453 solaris2.[0-5] | solaris2.[0-5].*) ;;
8455 # The compiler driver will combine linker options so we
8456 # cannot just pass the convience library names through
8457 # without $wl, iff we do not link with $LD.
8458 # Luckily, gcc supports the same syntax we need for Sun Studio.
8459 # Supported since Solaris 2.6 (maybe 2.5.1?)
8462 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8464 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' ;;
8467 link_all_deplibs=yes
8471 if test "x$host_vendor" = xsequent; then
8472 # Use $CC to link under sequent, because it throws in some extra .o
8473 # files that make .init and .fini sections work.
8474 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8476 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8478 hardcode_libdir_flag_spec='-L$libdir'
8480 hardcode_minus_L=yes
8481 hardcode_shlibpath_var=no
8485 case $host_vendor in
8487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8488 hardcode_direct=yes # is this really true???
8491 ## LD is ld it makes a PLAMLIB
8492 ## CC just makes a GrossModule.
8493 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8494 reload_cmds='$CC -r -o $output$reload_objs'
8498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8499 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8502 runpath_var='LD_RUN_PATH'
8503 hardcode_shlibpath_var=no
8507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8508 hardcode_shlibpath_var=no
8509 export_dynamic_flag_spec='-Bexport'
8513 if test -d /usr/nec; then
8514 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8515 hardcode_shlibpath_var=no
8516 runpath_var=LD_RUN_PATH
8517 hardcode_runpath_var=yes
8522 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8523 no_undefined_flag='${wl}-z,text'
8524 archive_cmds_need_lc=no
8525 hardcode_shlibpath_var=no
8526 runpath_var='LD_RUN_PATH'
8528 if test "$GCC" = yes; then
8529 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8530 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8532 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8533 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8537 sysv5* | sco3.2v5* | sco5v6*)
8538 # Note: We can NOT use -z defs as we might desire, because we do not
8539 # link with -lc, and that would cause any symbols used from libc to
8540 # always be unresolved, which means just about no library would
8541 # ever link correctly. If we're not using GNU ld we use -z text
8542 # though, which does catch some bad symbols but isn't as heavy-handed
8544 no_undefined_flag='${wl}-z,text'
8545 allow_undefined_flag='${wl}-z,nodefs'
8546 archive_cmds_need_lc=no
8547 hardcode_shlibpath_var=no
8548 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8549 hardcode_libdir_separator=':'
8550 link_all_deplibs=yes
8551 export_dynamic_flag_spec='${wl}-Bexport'
8552 runpath_var='LD_RUN_PATH'
8554 if test "$GCC" = yes; then
8555 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8556 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8558 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8559 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8564 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8565 hardcode_libdir_flag_spec='-L$libdir'
8566 hardcode_shlibpath_var=no
8575 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8576 echo "${ECHO_T}$ld_shlibs" >&6; }
8577 test "$ld_shlibs" = no && can_build_shared=no
8580 # Do we need to explicitly link libc?
8582 case "x$archive_cmds_need_lc" in
8584 # Assume -lc should be added
8585 archive_cmds_need_lc=yes
8587 if test "$enable_shared" = yes && test "$GCC" = yes; then
8588 case $archive_cmds in
8590 # FIXME: we may have to deal with multi-command sequences.
8593 # Test whether the compiler implicitly links with -lc since on some
8594 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8595 # to ld, don't add -lc before -lgcc.
8596 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8597 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8599 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8602 (eval $ac_compile) 2>&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } 2>conftest.err; then
8608 libobjs=conftest.$ac_objext
8610 wl=$lt_prog_compiler_wl
8611 pic_flag=$lt_prog_compiler_pic
8617 lt_save_allow_undefined_flag=$allow_undefined_flag
8618 allow_undefined_flag=
8619 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8620 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }
8625 archive_cmds_need_lc=no
8627 archive_cmds_need_lc=yes
8629 allow_undefined_flag=$lt_save_allow_undefined_flag
8631 cat conftest.err 1>&5
8634 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8635 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8642 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8643 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8645 libname_spec='lib$name'
8653 shlibpath_overrides_runpath=unknown
8655 dynamic_linker="$host_os ld.so"
8656 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8657 if test "$GCC" = yes; then
8658 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8659 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8660 # if the path contains ";" then we assume it to be the separator
8661 # otherwise default to the standard path separator (i.e. ":") - it is
8662 # assumed that no part of a normal pathname contains ";" but that should
8663 # okay in the real world where ";" in dirpaths is itself problematic.
8664 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8669 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8671 need_lib_prefix=unknown
8672 hardcode_into_libs=no
8674 # when you set need_version to no, make sure it does not cause -set_version
8675 # flags to be left without arguments
8676 need_version=unknown
8681 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8682 shlibpath_var=LIBPATH
8684 # AIX 3 has no versioning support, so we append a major version to the name.
8685 soname_spec='${libname}${release}${shared_ext}$major'
8692 hardcode_into_libs=yes
8693 if test "$host_cpu" = ia64; then
8694 # AIX 5 supports IA64
8695 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8696 shlibpath_var=LD_LIBRARY_PATH
8698 # With GCC up to 2.95.x, collect2 would create an import file
8699 # for dependence libraries. The import file would start with
8700 # the line `#! .'. This would cause the generated library to
8701 # depend on `.', always an invalid library. This was fixed in
8702 # development snapshots of GCC prior to 3.0.
8704 aix4 | aix4.[01] | aix4.[01].*)
8705 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8707 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8714 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8715 # soname into executable. Probably we can add versioning support to
8716 # collect2, so additional links can be useful in future.
8717 if test "$aix_use_runtimelinking" = yes; then
8718 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8719 # instead of lib<name>.a to let people know that these are not
8720 # typical AIX shared libraries.
8721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8723 # We preserve .a as extension for shared libraries through AIX4.2
8724 # and later when we are not doing run time linking.
8725 library_names_spec='${libname}${release}.a $libname.a'
8726 soname_spec='${libname}${release}${shared_ext}$major'
8728 shlibpath_var=LIBPATH
8733 library_names_spec='$libname.ixlibrary $libname.a'
8734 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8735 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'
8739 library_names_spec='${libname}${shared_ext}'
8740 dynamic_linker="$host_os ld.so"
8741 shlibpath_var=LIBRARY_PATH
8747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8748 soname_spec='${libname}${release}${shared_ext}$major'
8749 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8750 shlibpath_var=LD_LIBRARY_PATH
8751 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8752 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8753 # the default ld.so.conf also contains /usr/contrib/lib and
8754 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8755 # libtool to hard-code these into programs
8758 cygwin* | mingw* | pw32*)
8759 version_type=windows
8764 case $GCC,$host_os in
8765 yes,cygwin* | yes,mingw* | yes,pw32*)
8766 library_names_spec='$libname.dll.a'
8767 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8768 postinstall_cmds='base_file=`basename \${file}`~
8769 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8770 dldir=$destdir/`dirname \$dlpath`~
8771 test -d \$dldir || mkdir -p \$dldir~
8772 $install_prog $dir/$dlname \$dldir/$dlname~
8773 chmod a+x \$dldir/$dlname'
8774 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8775 dlpath=$dir/\$dldll~
8777 shlibpath_overrides_runpath=yes
8781 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8782 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8783 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8786 # MinGW DLLs use traditional 'lib' prefix
8787 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8788 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8789 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8790 # It is most probably a Windows format PATH printed by
8791 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8792 # path with ; separators, and with drive letters. We can handle the
8793 # drive letters (cygwin fileutils understands them), so leave them,
8794 # especially as we might pass files found there to a mingw objdump,
8795 # which wouldn't understand a cygwinified path. Ahh.
8796 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8798 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8802 # pw32 DLLs use 'pw' prefix rather than 'lib'
8803 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8809 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8812 dynamic_linker='Win32 ld.exe'
8813 # FIXME: first we should search . and the directory the executable is in
8817 darwin* | rhapsody*)
8818 dynamic_linker="$host_os dyld"
8822 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8823 soname_spec='${libname}${release}${major}$shared_ext'
8824 shlibpath_overrides_runpath=yes
8825 shlibpath_var=DYLD_LIBRARY_PATH
8826 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8827 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8828 if test "$GCC" = yes; then
8829 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"`
8831 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8833 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8841 soname_spec='${libname}${release}${shared_ext}$major'
8842 shlibpath_var=LD_LIBRARY_PATH
8849 freebsd* | dragonfly*)
8850 # DragonFly does not have aout. When/if they implement a new
8851 # versioning mechanism, adjust this.
8852 if test -x /usr/bin/objformat; then
8853 objformat=`/usr/bin/objformat`
8856 freebsd[123]*) objformat=aout ;;
8860 version_type=freebsd-$objformat
8861 case $version_type in
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8868 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8872 shlibpath_var=LD_LIBRARY_PATH
8875 shlibpath_overrides_runpath=yes
8877 freebsd3.[01]* | freebsdelf3.[01]*)
8878 shlibpath_overrides_runpath=yes
8879 hardcode_into_libs=yes
8881 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8882 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8883 shlibpath_overrides_runpath=no
8884 hardcode_into_libs=yes
8886 freebsd*) # from 4.6 on
8887 shlibpath_overrides_runpath=yes
8888 hardcode_into_libs=yes
8897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8898 soname_spec='${libname}${release}${shared_ext}$major'
8899 shlibpath_var=LD_LIBRARY_PATH
8900 hardcode_into_libs=yes
8903 hpux9* | hpux10* | hpux11*)
8904 # Give a soname corresponding to the major version so that dld.sl refuses to
8905 # link against other versions.
8912 hardcode_into_libs=yes
8913 dynamic_linker="$host_os dld.so"
8914 shlibpath_var=LD_LIBRARY_PATH
8915 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8917 soname_spec='${libname}${release}${shared_ext}$major'
8918 if test "X$HPUX_IA64_MODE" = X32; then
8919 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8921 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8923 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8927 hardcode_into_libs=yes
8928 dynamic_linker="$host_os dld.sl"
8929 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8930 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8934 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8938 dynamic_linker="$host_os dld.sl"
8939 shlibpath_var=SHLIB_PATH
8940 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8942 soname_spec='${libname}${release}${shared_ext}$major'
8945 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8946 postinstall_cmds='chmod 555 $lib'
8953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8954 soname_spec='${libname}${release}${shared_ext}$major'
8955 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8956 shlibpath_var=LD_LIBRARY_PATH
8957 shlibpath_overrides_runpath=no
8958 hardcode_into_libs=yes
8961 irix5* | irix6* | nonstopux*)
8963 nonstopux*) version_type=nonstopux ;;
8965 if test "$lt_cv_prog_gnu_ld" = yes; then
8973 soname_spec='${libname}${release}${shared_ext}$major'
8974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8976 irix5* | nonstopux*)
8980 case $LD in # libtool.m4 will add one of these switches to LD
8981 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8982 libsuff= shlibsuff= libmagic=32-bit;;
8983 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8984 libsuff=32 shlibsuff=N32 libmagic=N32;;
8985 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8986 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8987 *) libsuff= shlibsuff= libmagic=never-match;;
8991 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8992 shlibpath_overrides_runpath=no
8993 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8994 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8995 hardcode_into_libs=yes
8998 # No shared lib support for Linux oldld, aout, or coff.
8999 linux*oldld* | linux*aout* | linux*coff*)
9003 # This must be Linux ELF.
9004 linux* | k*bsd*-gnu)
9008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9009 soname_spec='${libname}${release}${shared_ext}$major'
9010 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9011 shlibpath_var=LD_LIBRARY_PATH
9012 shlibpath_overrides_runpath=no
9013 # This implies no fast_install, which is unacceptable.
9014 # Some rework will be needed to allow for fast_install
9015 # before this can be enabled.
9016 hardcode_into_libs=yes
9018 # Append ld.so.conf contents to the search path
9019 if test -f /etc/ld.so.conf; then
9020 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' ' '`
9021 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9024 # We used to test for /lib/ld.so.1 and disable shared libraries on
9025 # powerpc, because MkLinux only supported shared libraries with the
9026 # GNU dynamic linker. Since this was broken with cross compilers,
9027 # most powerpc-linux boxes support dynamic linking these days and
9028 # people can always --disable-shared, the test was removed, and we
9029 # assume the GNU/Linux dynamic linker is in use.
9030 dynamic_linker='GNU/Linux ld.so'
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 shlibpath_overrides_runpath=no
9041 hardcode_into_libs=yes
9042 dynamic_linker='NetBSD ld.elf_so'
9049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9051 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9052 dynamic_linker='NetBSD (a.out) ld.so'
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9055 soname_spec='${libname}${release}${shared_ext}$major'
9056 dynamic_linker='NetBSD ld.elf_so'
9058 shlibpath_var=LD_LIBRARY_PATH
9059 shlibpath_overrides_runpath=yes
9060 hardcode_into_libs=yes
9065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9066 shlibpath_var=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath=yes
9074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9075 soname_spec='${libname}${release}${shared_ext}$major'
9076 shlibpath_var=LD_LIBRARY_PATH
9077 shlibpath_overrides_runpath=yes
9082 sys_lib_dlsearch_path_spec="/usr/lib"
9084 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9086 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9087 *) need_version=no ;;
9089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9091 shlibpath_var=LD_LIBRARY_PATH
9092 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9094 openbsd2.[89] | openbsd2.[89].*)
9095 shlibpath_overrides_runpath=no
9098 shlibpath_overrides_runpath=yes
9102 shlibpath_overrides_runpath=yes
9107 libname_spec='$name'
9110 library_names_spec='$libname${shared_ext} $libname.a'
9111 dynamic_linker='OS/2 ld.exe'
9112 shlibpath_var=LIBPATH
9115 osf3* | osf4* | osf5*)
9119 soname_spec='${libname}${release}${shared_ext}$major'
9120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 shlibpath_var=LD_LIBRARY_PATH
9122 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9123 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9131 soname_spec='${libname}${release}${shared_ext}$major'
9132 shlibpath_var=LD_LIBRARY_PATH
9133 shlibpath_overrides_runpath=yes
9134 hardcode_into_libs=yes
9135 # ldd complains unless libraries are executable
9136 postinstall_cmds='chmod +x $lib'
9141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9142 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9143 shlibpath_var=LD_LIBRARY_PATH
9144 shlibpath_overrides_runpath=yes
9145 if test "$with_gnu_ld" = yes; then
9153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9154 soname_spec='${libname}${release}${shared_ext}$major'
9155 shlibpath_var=LD_LIBRARY_PATH
9156 case $host_vendor in
9158 shlibpath_overrides_runpath=no
9160 export_dynamic_flag_spec='${wl}-Blargedynsym'
9161 runpath_var=LD_RUN_PATH
9169 shlibpath_overrides_runpath=no
9170 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9176 if test -d /usr/nec ;then
9178 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9179 soname_spec='$libname${shared_ext}.$major'
9180 shlibpath_var=LD_LIBRARY_PATH
9184 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9185 version_type=freebsd-elf
9188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9189 soname_spec='${libname}${release}${shared_ext}$major'
9190 shlibpath_var=LD_LIBRARY_PATH
9191 hardcode_into_libs=yes
9192 if test "$with_gnu_ld" = yes; then
9193 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9194 shlibpath_overrides_runpath=no
9196 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9197 shlibpath_overrides_runpath=yes
9200 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9204 sys_lib_dlsearch_path_spec='/usr/lib'
9209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9210 soname_spec='${libname}${release}${shared_ext}$major'
9211 shlibpath_var=LD_LIBRARY_PATH
9218 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9219 echo "${ECHO_T}$dynamic_linker" >&6; }
9220 test "$dynamic_linker" = no && can_build_shared=no
9222 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9223 if test "$GCC" = yes; then
9224 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9227 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9228 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9230 if test -n "$hardcode_libdir_flag_spec" || \
9231 test -n "$runpath_var" || \
9232 test "X$hardcode_automatic" = "Xyes" ; then
9234 # We can hardcode non-existant directories.
9235 if test "$hardcode_direct" != no &&
9236 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9237 # have to relink, otherwise we might link with an installed library
9238 # when we should be linking with a yet-to-be-installed one
9239 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9240 test "$hardcode_minus_L" != no; then
9241 # Linking always hardcodes the temporary library directory.
9242 hardcode_action=relink
9244 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9245 hardcode_action=immediate
9248 # We cannot hardcode anything, or else we can only hardcode existing
9250 hardcode_action=unsupported
9252 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9253 echo "${ECHO_T}$hardcode_action" >&6; }
9255 if test "$hardcode_action" = relink; then
9256 # Fast installation is not supported
9257 enable_fast_install=no
9258 elif test "$shlibpath_overrides_runpath" = yes ||
9259 test "$enable_shared" = no; then
9260 # Fast installation is not necessary
9261 enable_fast_install=needless
9266 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9267 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9268 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9269 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9270 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9271 { echo "$as_me:$LINENO: result: yes" >&5
9272 echo "${ECHO_T}yes" >&6; }
9274 # FIXME - insert some real tests, host_os isn't really good enough
9277 if test -n "$STRIP" ; then
9278 striplib="$STRIP -x"
9279 { echo "$as_me:$LINENO: result: yes" >&5
9280 echo "${ECHO_T}yes" >&6; }
9282 { echo "$as_me:$LINENO: result: no" >&5
9283 echo "${ECHO_T}no" >&6; }
9287 { echo "$as_me:$LINENO: result: no" >&5
9288 echo "${ECHO_T}no" >&6; }
9293 if test "x$enable_dlopen" != xyes; then
9294 enable_dlopen=unknown
9295 enable_dlopen_self=unknown
9296 enable_dlopen_self_static=unknown
9303 lt_cv_dlopen="load_add_on"
9305 lt_cv_dlopen_self=yes
9309 lt_cv_dlopen="LoadLibrary"
9314 lt_cv_dlopen="dlopen"
9319 # if libdl is installed we need to link against it
9320 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9321 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9322 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 ac_check_lib_save_LIBS=$LIBS
9327 cat >conftest.$ac_ext <<_ACEOF
9330 cat confdefs.h >>conftest.$ac_ext
9331 cat >>conftest.$ac_ext <<_ACEOF
9332 /* end confdefs.h. */
9334 /* Override any GCC internal prototype to avoid an error.
9335 Use char because int might match the return type of a GCC
9336 builtin and then its argument prototype would still apply. */
9349 rm -f conftest.$ac_objext conftest$ac_exeext
9350 if { (ac_try="$ac_link"
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_link") 2>conftest.er1
9358 grep -v '^ *+' conftest.er1 >conftest.err
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } && {
9363 test -z "$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9365 } && test -s conftest$ac_exeext &&
9366 $as_test_x conftest$ac_exeext; then
9367 ac_cv_lib_dl_dlopen=yes
9369 echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9372 ac_cv_lib_dl_dlopen=no
9375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9376 conftest$ac_exeext conftest.$ac_ext
9377 LIBS=$ac_check_lib_save_LIBS
9379 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9380 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9381 if test $ac_cv_lib_dl_dlopen = yes; then
9382 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9387 lt_cv_dlopen_self=yes
9394 { echo "$as_me:$LINENO: checking for shl_load" >&5
9395 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9396 if test "${ac_cv_func_shl_load+set}" = set; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 cat >conftest.$ac_ext <<_ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h. */
9405 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9406 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9407 #define shl_load innocuous_shl_load
9409 /* System header to define __stub macros and hopefully few prototypes,
9410 which can conflict with char shl_load (); below.
9411 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9412 <limits.h> exists even on freestanding compilers. */
9415 # include <limits.h>
9417 # include <assert.h>
9422 /* Override any GCC internal prototype to avoid an error.
9423 Use char because int might match the return type of a GCC
9424 builtin and then its argument prototype would still apply. */
9429 /* The GNU C library defines this for functions which it implements
9430 to always fail with ENOSYS. Some functions are actually named
9431 something starting with __ and the normal name is an alias. */
9432 #if defined __stub_shl_load || defined __stub___shl_load
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (ac_try="$ac_link"
9447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9448 *) ac_try_echo=$ac_try;;
9450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_link") 2>conftest.er1
9453 grep -v '^ *+' conftest.er1 >conftest.err
9455 cat conftest.err >&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } && {
9458 test -z "$ac_c_werror_flag" ||
9459 test ! -s conftest.err
9460 } && test -s conftest$ac_exeext &&
9461 $as_test_x conftest$ac_exeext; then
9462 ac_cv_func_shl_load=yes
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9467 ac_cv_func_shl_load=no
9470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9471 conftest$ac_exeext conftest.$ac_ext
9473 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9474 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9475 if test $ac_cv_func_shl_load = yes; then
9476 lt_cv_dlopen="shl_load"
9478 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9479 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9480 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 ac_check_lib_save_LIBS=$LIBS
9485 cat >conftest.$ac_ext <<_ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9492 /* Override any GCC internal prototype to avoid an error.
9493 Use char because int might match the return type of a GCC
9494 builtin and then its argument prototype would still apply. */
9507 rm -f conftest.$ac_objext conftest$ac_exeext
9508 if { (ac_try="$ac_link"
9510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9511 *) ac_try_echo=$ac_try;;
9513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9514 (eval "$ac_link") 2>conftest.er1
9516 grep -v '^ *+' conftest.er1 >conftest.err
9518 cat conftest.err >&5
9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520 (exit $ac_status); } && {
9521 test -z "$ac_c_werror_flag" ||
9522 test ! -s conftest.err
9523 } && test -s conftest$ac_exeext &&
9524 $as_test_x conftest$ac_exeext; then
9525 ac_cv_lib_dld_shl_load=yes
9527 echo "$as_me: failed program was:" >&5
9528 sed 's/^/| /' conftest.$ac_ext >&5
9530 ac_cv_lib_dld_shl_load=no
9533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9534 conftest$ac_exeext conftest.$ac_ext
9535 LIBS=$ac_check_lib_save_LIBS
9537 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9538 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9539 if test $ac_cv_lib_dld_shl_load = yes; then
9540 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9542 { echo "$as_me:$LINENO: checking for dlopen" >&5
9543 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9544 if test "${ac_cv_func_dlopen+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 cat >conftest.$ac_ext <<_ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9553 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9554 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9555 #define dlopen innocuous_dlopen
9557 /* System header to define __stub macros and hopefully few prototypes,
9558 which can conflict with char dlopen (); below.
9559 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9560 <limits.h> exists even on freestanding compilers. */
9563 # include <limits.h>
9565 # include <assert.h>
9570 /* Override any GCC internal prototype to avoid an error.
9571 Use char because int might match the return type of a GCC
9572 builtin and then its argument prototype would still apply. */
9577 /* The GNU C library defines this for functions which it implements
9578 to always fail with ENOSYS. Some functions are actually named
9579 something starting with __ and the normal name is an alias. */
9580 #if defined __stub_dlopen || defined __stub___dlopen
9592 rm -f conftest.$ac_objext conftest$ac_exeext
9593 if { (ac_try="$ac_link"
9595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9596 *) ac_try_echo=$ac_try;;
9598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9599 (eval "$ac_link") 2>conftest.er1
9601 grep -v '^ *+' conftest.er1 >conftest.err
9603 cat conftest.err >&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 (exit $ac_status); } && {
9606 test -z "$ac_c_werror_flag" ||
9607 test ! -s conftest.err
9608 } && test -s conftest$ac_exeext &&
9609 $as_test_x conftest$ac_exeext; then
9610 ac_cv_func_dlopen=yes
9612 echo "$as_me: failed program was:" >&5
9613 sed 's/^/| /' conftest.$ac_ext >&5
9615 ac_cv_func_dlopen=no
9618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9619 conftest$ac_exeext conftest.$ac_ext
9621 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9622 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9623 if test $ac_cv_func_dlopen = yes; then
9624 lt_cv_dlopen="dlopen"
9626 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9629 echo $ECHO_N "(cached) $ECHO_C" >&6
9631 ac_check_lib_save_LIBS=$LIBS
9633 cat >conftest.$ac_ext <<_ACEOF
9636 cat confdefs.h >>conftest.$ac_ext
9637 cat >>conftest.$ac_ext <<_ACEOF
9638 /* end confdefs.h. */
9640 /* Override any GCC internal prototype to avoid an error.
9641 Use char because int might match the return type of a GCC
9642 builtin and then its argument prototype would still apply. */
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (ac_try="$ac_link"
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_link") 2>conftest.er1
9664 grep -v '^ *+' conftest.er1 >conftest.err
9666 cat conftest.err >&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } && {
9669 test -z "$ac_c_werror_flag" ||
9670 test ! -s conftest.err
9671 } && test -s conftest$ac_exeext &&
9672 $as_test_x conftest$ac_exeext; then
9673 ac_cv_lib_dl_dlopen=yes
9675 echo "$as_me: failed program was:" >&5
9676 sed 's/^/| /' conftest.$ac_ext >&5
9678 ac_cv_lib_dl_dlopen=no
9681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9682 conftest$ac_exeext conftest.$ac_ext
9683 LIBS=$ac_check_lib_save_LIBS
9685 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9686 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9687 if test $ac_cv_lib_dl_dlopen = yes; then
9688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9690 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9691 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9692 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 ac_check_lib_save_LIBS=$LIBS
9697 cat >conftest.$ac_ext <<_ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9704 /* Override any GCC internal prototype to avoid an error.
9705 Use char because int might match the return type of a GCC
9706 builtin and then its argument prototype would still apply. */
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (ac_try="$ac_link"
9722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_link") 2>conftest.er1
9728 grep -v '^ *+' conftest.er1 >conftest.err
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest$ac_exeext &&
9736 $as_test_x conftest$ac_exeext; then
9737 ac_cv_lib_svld_dlopen=yes
9739 echo "$as_me: failed program was:" >&5
9740 sed 's/^/| /' conftest.$ac_ext >&5
9742 ac_cv_lib_svld_dlopen=no
9745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9746 conftest$ac_exeext conftest.$ac_ext
9747 LIBS=$ac_check_lib_save_LIBS
9749 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9750 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9751 if test $ac_cv_lib_svld_dlopen = yes; then
9752 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9754 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9755 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9756 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 ac_check_lib_save_LIBS=$LIBS
9761 cat >conftest.$ac_ext <<_ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9768 /* Override any GCC internal prototype to avoid an error.
9769 Use char because int might match the return type of a GCC
9770 builtin and then its argument prototype would still apply. */
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (ac_try="$ac_link"
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_link") 2>conftest.er1
9792 grep -v '^ *+' conftest.er1 >conftest.err
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } && {
9797 test -z "$ac_c_werror_flag" ||
9798 test ! -s conftest.err
9799 } && test -s conftest$ac_exeext &&
9800 $as_test_x conftest$ac_exeext; then
9801 ac_cv_lib_dld_dld_link=yes
9803 echo "$as_me: failed program was:" >&5
9804 sed 's/^/| /' conftest.$ac_ext >&5
9806 ac_cv_lib_dld_dld_link=no
9809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9810 conftest$ac_exeext conftest.$ac_ext
9811 LIBS=$ac_check_lib_save_LIBS
9813 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9814 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9815 if test $ac_cv_lib_dld_dld_link = yes; then
9816 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9837 if test "x$lt_cv_dlopen" != xno; then
9843 case $lt_cv_dlopen in
9845 save_CPPFLAGS="$CPPFLAGS"
9846 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9848 save_LDFLAGS="$LDFLAGS"
9849 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9852 LIBS="$lt_cv_dlopen_libs $LIBS"
9854 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9855 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9856 if test "${lt_cv_dlopen_self+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 if test "$cross_compiling" = yes; then :
9860 lt_cv_dlopen_self=cross
9862 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9863 lt_status=$lt_dlunknown
9864 cat > conftest.$ac_ext <<EOF
9865 #line 9865 "configure"
9866 #include "confdefs.h"
9875 # define LT_DLGLOBAL RTLD_GLOBAL
9878 # define LT_DLGLOBAL DL_GLOBAL
9880 # define LT_DLGLOBAL 0
9884 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9885 find out it does not work in some platform. */
9886 #ifndef LT_DLLAZY_OR_NOW
9888 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9891 # define LT_DLLAZY_OR_NOW DL_LAZY
9894 # define LT_DLLAZY_OR_NOW RTLD_NOW
9897 # define LT_DLLAZY_OR_NOW DL_NOW
9899 # define LT_DLLAZY_OR_NOW 0
9907 extern "C" void exit (int);
9910 void fnord() { int i=42;}
9913 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9914 int status = $lt_dlunknown;
9918 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9919 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9920 /* dlclose (self); */
9928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9929 (eval $ac_link) 2>&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9933 (./conftest; exit; ) >&5 2>/dev/null
9936 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9937 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9938 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9941 # compilation failed
9942 lt_cv_dlopen_self=no
9949 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9950 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9952 if test "x$lt_cv_dlopen_self" = xyes; then
9953 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9954 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9955 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9956 if test "${lt_cv_dlopen_self_static+set}" = set; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 if test "$cross_compiling" = yes; then :
9960 lt_cv_dlopen_self_static=cross
9962 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9963 lt_status=$lt_dlunknown
9964 cat > conftest.$ac_ext <<EOF
9965 #line 9965 "configure"
9966 #include "confdefs.h"
9975 # define LT_DLGLOBAL RTLD_GLOBAL
9978 # define LT_DLGLOBAL DL_GLOBAL
9980 # define LT_DLGLOBAL 0
9984 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9985 find out it does not work in some platform. */
9986 #ifndef LT_DLLAZY_OR_NOW
9988 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9991 # define LT_DLLAZY_OR_NOW DL_LAZY
9994 # define LT_DLLAZY_OR_NOW RTLD_NOW
9997 # define LT_DLLAZY_OR_NOW DL_NOW
9999 # define LT_DLLAZY_OR_NOW 0
10007 extern "C" void exit (int);
10010 void fnord() { int i=42;}
10013 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10014 int status = $lt_dlunknown;
10018 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10019 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10020 /* dlclose (self); */
10028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10029 (eval $ac_link) 2>&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10033 (./conftest; exit; ) >&5 2>/dev/null
10035 case x$lt_status in
10036 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10037 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10038 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10041 # compilation failed
10042 lt_cv_dlopen_self_static=no
10049 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10050 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10053 CPPFLAGS="$save_CPPFLAGS"
10054 LDFLAGS="$save_LDFLAGS"
10059 case $lt_cv_dlopen_self in
10060 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10061 *) enable_dlopen_self=unknown ;;
10064 case $lt_cv_dlopen_self_static in
10065 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10066 *) enable_dlopen_self_static=unknown ;;
10071 # Report which library types will actually be built
10072 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10073 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10074 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10075 echo "${ECHO_T}$can_build_shared" >&6; }
10077 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10078 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10079 test "$can_build_shared" = "no" && enable_shared=no
10081 # On AIX, shared libraries and static libraries use the same namespace, and
10082 # are all built from PIC.
10085 test "$enable_shared" = yes && enable_static=no
10086 if test -n "$RANLIB"; then
10087 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10088 postinstall_cmds='$RANLIB $lib'
10093 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10094 test "$enable_shared" = yes && enable_static=no
10098 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10099 echo "${ECHO_T}$enable_shared" >&6; }
10101 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10102 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10103 # Make sure either enable_shared or enable_static is yes.
10104 test "$enable_shared" = yes || enable_static=yes
10105 { echo "$as_me:$LINENO: result: $enable_static" >&5
10106 echo "${ECHO_T}$enable_static" >&6; }
10108 # The else clause should only fire when bootstrapping the
10109 # libtool distribution, otherwise you forgot to ship ltmain.sh
10110 # with your package, and you will get complaints that there are
10111 # no rules to generate ltmain.sh.
10112 if test -f "$ltmain"; then
10113 # See if we are running on zsh, and set the options which allow our commands through
10114 # without removal of \ escapes.
10115 if test -n "${ZSH_VERSION+set}" ; then
10116 setopt NO_GLOB_SUBST
10118 # Now quote all the things that may contain metacharacters while being
10119 # careful not to overquote the AC_SUBSTed values. We take copies of the
10120 # variables and quote the copies for generation of the libtool script.
10121 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10123 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10124 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10125 deplibs_check_method reload_flag reload_cmds need_locks \
10126 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10127 lt_cv_sys_global_symbol_to_c_name_address \
10128 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10129 old_postinstall_cmds old_postuninstall_cmds \
10133 lt_prog_compiler_wl \
10134 lt_prog_compiler_pic \
10135 lt_prog_compiler_static \
10136 lt_prog_compiler_no_builtin_flag \
10137 export_dynamic_flag_spec \
10138 thread_safe_flag_spec \
10139 whole_archive_flag_spec \
10140 enable_shared_with_static_runtimes \
10142 old_archive_from_new_cmds \
10147 compiler_lib_search_path \
10149 archive_expsym_cmds \
10151 postuninstall_cmds \
10152 old_archive_from_expsyms_cmds \
10153 allow_undefined_flag \
10154 no_undefined_flag \
10155 export_symbols_cmds \
10156 hardcode_libdir_flag_spec \
10157 hardcode_libdir_flag_spec_ld \
10158 hardcode_libdir_separator \
10159 hardcode_automatic \
10161 module_expsym_cmds \
10162 lt_cv_prog_compiler_c_o \
10164 include_expsyms; do
10167 old_archive_cmds | \
10168 old_archive_from_new_cmds | \
10170 archive_expsym_cmds | \
10172 module_expsym_cmds | \
10173 old_archive_from_expsyms_cmds | \
10174 export_symbols_cmds | \
10175 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10176 postinstall_cmds | postuninstall_cmds | \
10177 old_postinstall_cmds | old_postuninstall_cmds | \
10178 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10179 # Double-quote double-evaled strings.
10180 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10183 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10189 *'\$0 --fallback-echo"')
10190 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10194 cfgfile="${ofile}T"
10195 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10197 { echo "$as_me:$LINENO: creating $ofile" >&5
10198 echo "$as_me: creating $ofile" >&6;}
10200 cat <<__EOF__ >> "$cfgfile"
10203 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10204 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10205 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10207 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10208 # Free Software Foundation, Inc.
10210 # This file is part of GNU Libtool:
10211 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10213 # This program is free software; you can redistribute it and/or modify
10214 # it under the terms of the GNU General Public License as published by
10215 # the Free Software Foundation; either version 2 of the License, or
10216 # (at your option) any later version.
10218 # This program is distributed in the hope that it will be useful, but
10219 # WITHOUT ANY WARRANTY; without even the implied warranty of
10220 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10221 # General Public License for more details.
10223 # You should have received a copy of the GNU General Public License
10224 # along with this program; if not, write to the Free Software
10225 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10227 # As a special exception to the GNU General Public License, if you
10228 # distribute this file as part of a program that contains a
10229 # configuration script generated by Autoconf, you may include it under
10230 # the same distribution terms that you use for the rest of that program.
10232 # A sed program that does not truncate output.
10235 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10236 Xsed="$SED -e 1s/^X//"
10238 # The HP-UX ksh and POSIX shell print the target directory to stdout
10239 # if CDPATH is set.
10240 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10242 # The names of the tagged configurations supported by this script.
10245 # ### BEGIN LIBTOOL CONFIG
10247 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10249 # Shell to use when invoking shell scripts.
10252 # Whether or not to build shared libraries.
10253 build_libtool_libs=$enable_shared
10255 # Whether or not to build static libraries.
10256 build_old_libs=$enable_static
10258 # Whether or not to add -lc for building shared libraries.
10259 build_libtool_need_lc=$archive_cmds_need_lc
10261 # Whether or not to disallow shared libs when runtime libs are static
10262 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10264 # Whether or not to optimize for fast installation.
10265 fast_install=$enable_fast_install
10268 host_alias=$host_alias
10272 # The build system.
10273 build_alias=$build_alias
10277 # An echo program that does not interpret backslashes.
10282 AR_FLAGS=$lt_AR_FLAGS
10287 # LTCC compiler flags.
10288 LTCFLAGS=$lt_LTCFLAGS
10290 # A language-specific compiler.
10293 # Is the compiler the GNU C compiler?
10299 # The linker used to build libraries.
10302 # Whether we need hard or soft links.
10305 # A BSD-compatible nm program.
10308 # A symbol stripping program
10311 # Used to examine libraries when file_magic_cmd begins "file"
10312 MAGIC_CMD=$MAGIC_CMD
10314 # Used on cygwin: DLL creation program.
10317 # Used on cygwin: object dumper.
10320 # Used on cygwin: assembler.
10323 # The name of the directory that contains temporary libtool files.
10326 # How to create reloadable object files.
10327 reload_flag=$lt_reload_flag
10328 reload_cmds=$lt_reload_cmds
10330 # How to pass a linker flag through the compiler.
10331 wl=$lt_lt_prog_compiler_wl
10333 # Object file suffix (normally "o").
10334 objext="$ac_objext"
10336 # Old archive suffix (normally "a").
10339 # Shared library suffix (normally ".so").
10340 shrext_cmds='$shrext_cmds'
10342 # Executable file suffix (normally "").
10345 # Additional compiler flags for building library objects.
10346 pic_flag=$lt_lt_prog_compiler_pic
10349 # What is the maximum length of a command?
10350 max_cmd_len=$lt_cv_sys_max_cmd_len
10352 # Does compiler simultaneously support -c and -o options?
10353 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10355 # Must we lock files when doing compilation?
10356 need_locks=$lt_need_locks
10358 # Do we need the lib prefix for modules?
10359 need_lib_prefix=$need_lib_prefix
10361 # Do we need a version for libraries?
10362 need_version=$need_version
10364 # Whether dlopen is supported.
10365 dlopen_support=$enable_dlopen
10367 # Whether dlopen of programs is supported.
10368 dlopen_self=$enable_dlopen_self
10370 # Whether dlopen of statically linked programs is supported.
10371 dlopen_self_static=$enable_dlopen_self_static
10373 # Compiler flag to prevent dynamic linking.
10374 link_static_flag=$lt_lt_prog_compiler_static
10376 # Compiler flag to turn off builtin functions.
10377 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10379 # Compiler flag to allow reflexive dlopens.
10380 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10382 # Compiler flag to generate shared objects directly from archives.
10383 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10385 # Compiler flag to generate thread-safe objects.
10386 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10388 # Library versioning type.
10389 version_type=$version_type
10391 # Format of library name prefix.
10392 libname_spec=$lt_libname_spec
10394 # List of archive names. First name is the real one, the rest are links.
10395 # The last name is the one that the linker finds with -lNAME.
10396 library_names_spec=$lt_library_names_spec
10398 # The coded name of the library, if different from the real name.
10399 soname_spec=$lt_soname_spec
10401 # Commands used to build and install an old-style archive.
10403 old_archive_cmds=$lt_old_archive_cmds
10404 old_postinstall_cmds=$lt_old_postinstall_cmds
10405 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10407 # Create an old-style archive from a shared archive.
10408 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10410 # Create a temporary old-style archive to link instead of a shared archive.
10411 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10413 # Commands used to build and install a shared archive.
10414 archive_cmds=$lt_archive_cmds
10415 archive_expsym_cmds=$lt_archive_expsym_cmds
10416 postinstall_cmds=$lt_postinstall_cmds
10417 postuninstall_cmds=$lt_postuninstall_cmds
10419 # Commands used to build a loadable module (assumed same as above if empty)
10420 module_cmds=$lt_module_cmds
10421 module_expsym_cmds=$lt_module_expsym_cmds
10423 # Commands to strip libraries.
10424 old_striplib=$lt_old_striplib
10425 striplib=$lt_striplib
10427 # Dependencies to place before the objects being linked to create a
10429 predep_objects=$lt_predep_objects
10431 # Dependencies to place after the objects being linked to create a
10433 postdep_objects=$lt_postdep_objects
10435 # Dependencies to place before the objects being linked to create a
10437 predeps=$lt_predeps
10439 # Dependencies to place after the objects being linked to create a
10441 postdeps=$lt_postdeps
10443 # The library search path used internally by the compiler when linking
10444 # a shared library.
10445 compiler_lib_search_path=$lt_compiler_lib_search_path
10447 # Method to check whether dependent libraries are shared objects.
10448 deplibs_check_method=$lt_deplibs_check_method
10450 # Command to use when deplibs_check_method == file_magic.
10451 file_magic_cmd=$lt_file_magic_cmd
10453 # Flag that allows shared libraries with undefined symbols to be built.
10454 allow_undefined_flag=$lt_allow_undefined_flag
10456 # Flag that forces no undefined symbols.
10457 no_undefined_flag=$lt_no_undefined_flag
10459 # Commands used to finish a libtool library installation in a directory.
10460 finish_cmds=$lt_finish_cmds
10462 # Same as above, but a single script fragment to be evaled but not shown.
10463 finish_eval=$lt_finish_eval
10465 # Take the output of nm and produce a listing of raw symbols and C names.
10466 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10468 # Transform the output of nm in a proper C declaration
10469 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10471 # Transform the output of nm in a C name address pair
10472 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10474 # This is the shared library runtime path variable.
10475 runpath_var=$runpath_var
10477 # This is the shared library path variable.
10478 shlibpath_var=$shlibpath_var
10480 # Is shlibpath searched before the hard-coded library search path?
10481 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10483 # How to hardcode a shared library path into an executable.
10484 hardcode_action=$hardcode_action
10486 # Whether we should hardcode library paths into libraries.
10487 hardcode_into_libs=$hardcode_into_libs
10489 # Flag to hardcode \$libdir into a binary during linking.
10490 # This must work even if \$libdir does not exist.
10491 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10493 # If ld is used when linking, flag to hardcode \$libdir into
10494 # a binary during linking. This must work even if \$libdir does
10496 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10498 # Whether we need a single -rpath flag with a separated argument.
10499 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10501 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10502 # resulting binary.
10503 hardcode_direct=$hardcode_direct
10505 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10506 # resulting binary.
10507 hardcode_minus_L=$hardcode_minus_L
10509 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10510 # the resulting binary.
10511 hardcode_shlibpath_var=$hardcode_shlibpath_var
10513 # Set to yes if building a shared library automatically hardcodes DIR into the library
10514 # and all subsequent libraries and executables linked against it.
10515 hardcode_automatic=$hardcode_automatic
10517 # Variables whose values should be saved in libtool wrapper scripts and
10518 # restored at relink time.
10519 variables_saved_for_relink="$variables_saved_for_relink"
10521 # Whether libtool must link a program against all its dependency libraries.
10522 link_all_deplibs=$link_all_deplibs
10524 # Compile-time system search path for libraries
10525 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10527 # Run-time system search path for libraries
10528 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10530 # Fix the shell variable \$srcfile for the compiler.
10531 fix_srcfile_path="$fix_srcfile_path"
10533 # Set to yes if exported symbols are required.
10534 always_export_symbols=$always_export_symbols
10536 # The commands to list exported symbols.
10537 export_symbols_cmds=$lt_export_symbols_cmds
10539 # The commands to extract the exported symbol list from a shared archive.
10540 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10542 # Symbols that should not be listed in the preloaded symbols.
10543 exclude_expsyms=$lt_exclude_expsyms
10545 # Symbols that must always be exported.
10546 include_expsyms=$lt_include_expsyms
10548 # ### END LIBTOOL CONFIG
10555 cat <<\EOF >> "$cfgfile"
10557 # AIX sometimes has problems with the GCC collect2 program. For some
10558 # reason, if we set the COLLECT_NAMES environment variable, the problems
10559 # vanish in a puff of smoke.
10560 if test "X${COLLECT_NAMES+set}" != Xset; then
10562 export COLLECT_NAMES
10568 # We use sed instead of cat because bash on DJGPP gets confused if
10569 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10570 # text mode, it properly converts lines to CR/LF. This bash problem
10571 # is reportedly fixed, but why not run on old versions too?
10572 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10574 mv -f "$cfgfile" "$ofile" || \
10575 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10579 # If there is no Makefile yet, we rely on a make rule to execute
10580 # `config.status --recheck' to rerun these tests and create the
10581 # libtool script then.
10582 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10583 if test -f "$ltmain_in"; then
10584 test -f Makefile && make "$ltmain"
10590 ac_cpp='$CPP $CPPFLAGS'
10591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10598 # Check whether --with-tags was given.
10599 if test "${with_tags+set}" = set; then
10600 withval=$with_tags; tagnames="$withval"
10604 if test -f "$ltmain" && test -n "$tagnames"; then
10605 if test ! -f "${ofile}"; then
10606 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10607 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10610 if test -z "$LTCC"; then
10611 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10612 if test -z "$LTCC"; then
10613 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10614 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10616 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10617 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10620 if test -z "$LTCFLAGS"; then
10621 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10624 # Extract list of available tagged configurations in $ofile.
10625 # Note that this assumes the entire list is on one line.
10626 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10628 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10629 for tagname in $tagnames; do
10631 # Check whether tagname contains only valid characters
10632 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10634 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10635 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10636 { (exit 1); exit 1; }; }
10640 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10642 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10643 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10644 { (exit 1); exit 1; }; }
10647 # Update the list of available tags.
10648 if test -n "$tagname"; then
10649 echo appending configuration tag \"$tagname\" to $ofile
10653 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10654 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10655 (test "X$CXX" != "Xg++"))) ; then
10657 ac_cpp='$CXXCPP $CPPFLAGS'
10658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10665 archive_cmds_need_lc_CXX=no
10666 allow_undefined_flag_CXX=
10667 always_export_symbols_CXX=no
10668 archive_expsym_cmds_CXX=
10669 export_dynamic_flag_spec_CXX=
10670 hardcode_direct_CXX=no
10671 hardcode_libdir_flag_spec_CXX=
10672 hardcode_libdir_flag_spec_ld_CXX=
10673 hardcode_libdir_separator_CXX=
10674 hardcode_minus_L_CXX=no
10675 hardcode_shlibpath_var_CXX=unsupported
10676 hardcode_automatic_CXX=no
10678 module_expsym_cmds_CXX=
10679 link_all_deplibs_CXX=unknown
10680 old_archive_cmds_CXX=$old_archive_cmds
10681 no_undefined_flag_CXX=
10682 whole_archive_flag_spec_CXX=
10683 enable_shared_with_static_runtimes_CXX=no
10685 # Dependencies to place before and after the object being linked:
10686 predep_objects_CXX=
10687 postdep_objects_CXX=
10690 compiler_lib_search_path_CXX=
10692 # Source file extension for C++ test sources.
10695 # Object file extension for compiled C++ test sources.
10699 # Code to be used in simple compile tests
10700 lt_simple_compile_test_code="int some_variable = 0;\n"
10702 # Code to be used in simple link tests
10703 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10705 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10707 # If no C compiler was specified, use CC.
10710 # If no C compiler flags were specified, use CFLAGS.
10711 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10713 # Allow CC to be a program name with arguments.
10717 # save warnings/boilerplate of simple test code
10718 ac_outfile=conftest.$ac_objext
10719 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10720 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10721 _lt_compiler_boilerplate=`cat conftest.err`
10724 ac_outfile=conftest.$ac_objext
10725 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10726 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10727 _lt_linker_boilerplate=`cat conftest.err`
10731 # Allow CC to be a program name with arguments.
10736 lt_save_with_gnu_ld=$with_gnu_ld
10737 lt_save_path_LD=$lt_cv_path_LD
10738 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10739 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10741 $as_unset lt_cv_prog_gnu_ld
10743 if test -n "${lt_cv_path_LDCXX+set}"; then
10744 lt_cv_path_LD=$lt_cv_path_LDCXX
10746 $as_unset lt_cv_path_LD
10748 test -z "${LDCXX+set}" || LD=$LDCXX
10752 for cc_temp in $compiler""; do
10754 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10755 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10760 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10763 # We don't want -fno-exception wen compiling C++ code, so set the
10764 # no_builtin_flag separately
10765 if test "$GXX" = yes; then
10766 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10768 lt_prog_compiler_no_builtin_flag_CXX=
10771 if test "$GXX" = yes; then
10772 # Set up default GNU C++ configuration
10775 # Check whether --with-gnu-ld was given.
10776 if test "${with_gnu_ld+set}" = set; then
10777 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10783 if test "$GCC" = yes; then
10784 # Check if gcc -print-prog-name=ld gives a path.
10785 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10786 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10789 # gcc leaves a trailing carriage return which upsets mingw
10790 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10792 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10795 # Accept absolute paths.
10797 re_direlt='/[^/][^/]*/\.\./'
10798 # Canonicalize the pathname of ld
10799 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10800 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10801 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10803 test -z "$LD" && LD="$ac_prog"
10806 # If it fails, then pretend we aren't using GCC.
10810 # If it is relative, then search for the first ld in PATH.
10811 with_gnu_ld=unknown
10814 elif test "$with_gnu_ld" = yes; then
10815 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10816 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10818 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10819 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10821 if test "${lt_cv_path_LD+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 if test -z "$LD"; then
10825 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10826 for ac_dir in $PATH; do
10828 test -z "$ac_dir" && ac_dir=.
10829 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10830 lt_cv_path_LD="$ac_dir/$ac_prog"
10831 # Check to see if the program is GNU ld. I'd rather use --version,
10832 # but apparently some variants of GNU ld only accept -v.
10833 # Break only if it was the GNU/non-GNU ld that we prefer.
10834 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10835 *GNU* | *'with BFD'*)
10836 test "$with_gnu_ld" != no && break
10839 test "$with_gnu_ld" != yes && break
10846 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10850 LD="$lt_cv_path_LD"
10851 if test -n "$LD"; then
10852 { echo "$as_me:$LINENO: result: $LD" >&5
10853 echo "${ECHO_T}$LD" >&6; }
10855 { echo "$as_me:$LINENO: result: no" >&5
10856 echo "${ECHO_T}no" >&6; }
10858 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10859 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10860 { (exit 1); exit 1; }; }
10861 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10862 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10863 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10866 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10867 case `$LD -v 2>&1 </dev/null` in
10868 *GNU* | *'with BFD'*)
10869 lt_cv_prog_gnu_ld=yes
10872 lt_cv_prog_gnu_ld=no
10876 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10877 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10878 with_gnu_ld=$lt_cv_prog_gnu_ld
10882 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10883 # archiving commands below assume that GNU ld is being used.
10884 if test "$with_gnu_ld" = yes; then
10885 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10886 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'
10888 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10889 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10891 # If archive_cmds runs LD, not CC, wlarc should be empty
10892 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10893 # investigate it a little bit more. (MM)
10896 # ancient GNU ld didn't support --whole-archive et. al.
10897 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10898 grep 'no-whole-archive' > /dev/null; then
10899 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10901 whole_archive_flag_spec_CXX=
10907 # A generic and very simple default shared library creation
10908 # command for GNU C++ for the case where it uses the native
10909 # linker, instead of GNU ld. If possible, this setting should
10910 # overridden to take advantage of the native linker features on
10911 # the platform it is being used on.
10912 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10915 # Commands to make compiler produce verbose output that lists
10916 # what "hidden" libraries, object files and flags are used when
10917 # linking a shared library.
10918 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10926 # PORTME: fill in a description of your system's C++ link characteristics
10927 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10928 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10932 # FIXME: insert proper C++ library support
10936 if test "$host_cpu" = ia64; then
10937 # On IA64, the linker does run time linking by default, so we don't
10938 # have to do anything special.
10939 aix_use_runtimelinking=no
10940 exp_sym_flag='-Bexport'
10943 aix_use_runtimelinking=no
10945 # Test if we are trying to use run time linking or normal
10946 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10947 # need to do runtime linking.
10948 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10949 for ld_flag in $LDFLAGS; do
10952 aix_use_runtimelinking=yes
10960 exp_sym_flag='-bexport'
10961 no_entry_flag='-bnoentry'
10964 # When large executables or shared objects are built, AIX ld can
10965 # have problems creating the table of contents. If linking a library
10966 # or program results in "error TOC overflow" add -mminimal-toc to
10967 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10968 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10970 archive_cmds_CXX=''
10971 hardcode_direct_CXX=yes
10972 hardcode_libdir_separator_CXX=':'
10973 link_all_deplibs_CXX=yes
10975 if test "$GXX" = yes; then
10976 case $host_os in aix4.[012]|aix4.[012].*)
10977 # We only want to do this on AIX 4.2 and lower, the check
10978 # below for broken collect2 doesn't work under 4.3+
10979 collect2name=`${CC} -print-prog-name=collect2`
10980 if test -f "$collect2name" && \
10981 strings "$collect2name" | grep resolve_lib_name >/dev/null
10983 # We have reworked collect2
10984 hardcode_direct_CXX=yes
10986 # We have old collect2
10987 hardcode_direct_CXX=unsupported
10988 # It fails to find uninstalled libraries when the uninstalled
10989 # path is not listed in the libpath. Setting hardcode_minus_L
10990 # to unsupported forces relinking
10991 hardcode_minus_L_CXX=yes
10992 hardcode_libdir_flag_spec_CXX='-L$libdir'
10993 hardcode_libdir_separator_CXX=
10997 shared_flag='-shared'
10998 if test "$aix_use_runtimelinking" = yes; then
10999 shared_flag="$shared_flag "'${wl}-G'
11003 if test "$host_cpu" = ia64; then
11004 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11005 # chokes on -Wl,-G. The following line is correct:
11008 if test "$aix_use_runtimelinking" = yes; then
11009 shared_flag='${wl}-G'
11011 shared_flag='${wl}-bM:SRE'
11016 # It seems that -bexpall does not export symbols beginning with
11017 # underscore (_), so it is better to generate a list of symbols to export.
11018 always_export_symbols_CXX=yes
11019 if test "$aix_use_runtimelinking" = yes; then
11020 # Warning - without using the other runtime loading flags (-brtl),
11021 # -berok will link without error, but may produce a broken library.
11022 allow_undefined_flag_CXX='-berok'
11023 # Determine the default libpath from the value encoded in an empty executable.
11024 cat >conftest.$ac_ext <<_ACEOF
11027 cat confdefs.h >>conftest.$ac_ext
11028 cat >>conftest.$ac_ext <<_ACEOF
11029 /* end confdefs.h. */
11039 rm -f conftest.$ac_objext conftest$ac_exeext
11040 if { (ac_try="$ac_link"
11041 case "(($ac_try" in
11042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_link") 2>conftest.er1
11048 grep -v '^ *+' conftest.er1 >conftest.err
11050 cat conftest.err >&5
11051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11052 (exit $ac_status); } && {
11053 test -z "$ac_cxx_werror_flag" ||
11054 test ! -s conftest.err
11055 } && test -s conftest$ac_exeext &&
11056 $as_test_x conftest$ac_exeext; then
11058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11060 # Check for a 64-bit object if we didn't find anything.
11061 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; }
11064 echo "$as_me: failed program was:" >&5
11065 sed 's/^/| /' conftest.$ac_ext >&5
11070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11071 conftest$ac_exeext conftest.$ac_ext
11072 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11074 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11076 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"
11078 if test "$host_cpu" = ia64; then
11079 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11080 allow_undefined_flag_CXX="-z nodefs"
11081 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"
11083 # Determine the default libpath from the value encoded in an empty executable.
11084 cat >conftest.$ac_ext <<_ACEOF
11087 cat confdefs.h >>conftest.$ac_ext
11088 cat >>conftest.$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11099 rm -f conftest.$ac_objext conftest$ac_exeext
11100 if { (ac_try="$ac_link"
11101 case "(($ac_try" in
11102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11103 *) ac_try_echo=$ac_try;;
11105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11106 (eval "$ac_link") 2>conftest.er1
11108 grep -v '^ *+' conftest.er1 >conftest.err
11110 cat conftest.err >&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && {
11113 test -z "$ac_cxx_werror_flag" ||
11114 test ! -s conftest.err
11115 } && test -s conftest$ac_exeext &&
11116 $as_test_x conftest$ac_exeext; then
11118 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11120 # Check for a 64-bit object if we didn't find anything.
11121 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; }
11124 echo "$as_me: failed program was:" >&5
11125 sed 's/^/| /' conftest.$ac_ext >&5
11130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11131 conftest$ac_exeext conftest.$ac_ext
11132 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11134 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11135 # Warning - without using the other run time loading flags,
11136 # -berok will link without error, but may produce a broken library.
11137 no_undefined_flag_CXX=' ${wl}-bernotok'
11138 allow_undefined_flag_CXX=' ${wl}-berok'
11139 # Exported symbols can be pulled into shared objects from archives
11140 whole_archive_flag_spec_CXX='$convenience'
11141 archive_cmds_need_lc_CXX=yes
11142 # This is similar to how AIX traditionally builds its shared libraries.
11143 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'
11149 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11150 allow_undefined_flag_CXX=unsupported
11151 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11152 # support --undefined. This deserves some investigation. FIXME
11153 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11160 case $cc_basename in
11162 # FIXME: insert proper C++ library support
11168 cygwin* | mingw* | pw32*)
11169 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11170 # as there is no search path for DLLs.
11171 hardcode_libdir_flag_spec_CXX='-L$libdir'
11172 allow_undefined_flag_CXX=unsupported
11173 always_export_symbols_CXX=no
11174 enable_shared_with_static_runtimes_CXX=yes
11176 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11177 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'
11178 # If the export-symbols file already is a .def file (1st line
11179 # is EXPORTS), use it as is; otherwise, prepend...
11180 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11181 cp $export_symbols $output_objdir/$soname.def;
11183 echo EXPORTS > $output_objdir/$soname.def;
11184 cat $export_symbols >> $output_objdir/$soname.def;
11186 $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'
11191 darwin* | rhapsody*)
11193 rhapsody* | darwin1.[012])
11194 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11197 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11198 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11200 case ${MACOSX_DEPLOYMENT_TARGET} in
11202 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11205 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11211 archive_cmds_need_lc_CXX=no
11212 hardcode_direct_CXX=no
11213 hardcode_automatic_CXX=yes
11214 hardcode_shlibpath_var_CXX=unsupported
11215 whole_archive_flag_spec_CXX=''
11216 link_all_deplibs_CXX=yes
11218 if test "$GXX" = yes ; then
11219 lt_int_apple_cc_single_mod=no
11220 output_verbose_link_cmd='echo'
11221 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11222 lt_int_apple_cc_single_mod=yes
11224 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11225 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11227 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'
11229 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11230 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11231 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11232 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}'
11234 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}'
11236 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11238 case $cc_basename in
11240 output_verbose_link_cmd='echo'
11241 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'
11242 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11243 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11244 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}'
11245 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}'
11255 case $cc_basename in
11257 # FIXME: insert proper C++ library support
11261 # Green Hills C++ Compiler
11262 # FIXME: insert proper C++ library support
11266 # FIXME: insert proper C++ library support
11272 # C++ shared libraries reported to be fairly broken before switch to ELF
11276 archive_cmds_need_lc_CXX=no
11278 freebsd* | dragonfly*)
11279 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11286 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11287 hardcode_libdir_separator_CXX=:
11288 export_dynamic_flag_spec_CXX='${wl}-E'
11289 hardcode_direct_CXX=yes
11290 hardcode_minus_L_CXX=yes # Not in the search PATH,
11291 # but as the default
11292 # location of the library.
11294 case $cc_basename in
11296 # FIXME: insert proper C++ library support
11300 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'
11301 # Commands to make compiler produce verbose output that lists
11302 # what "hidden" libraries, object files and flags are used when
11303 # linking a shared library.
11305 # There doesn't appear to be a way to prevent this compiler from
11306 # explicitly linking system object files so we need to strip them
11307 # from the output so that they don't get included in the library
11309 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'
11312 if test "$GXX" = yes; then
11313 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'
11315 # FIXME: insert proper C++ library support
11322 if test $with_gnu_ld = no; then
11323 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11324 hardcode_libdir_separator_CXX=:
11328 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11331 export_dynamic_flag_spec_CXX='${wl}-E'
11337 hardcode_direct_CXX=no
11338 hardcode_shlibpath_var_CXX=no
11341 hardcode_direct_CXX=yes
11342 hardcode_minus_L_CXX=yes # Not in the search PATH,
11343 # but as the default
11344 # location of the library.
11348 case $cc_basename in
11350 # FIXME: insert proper C++ library support
11356 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11359 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11362 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11365 # Commands to make compiler produce verbose output that lists
11366 # what "hidden" libraries, object files and flags are used when
11367 # linking a shared library.
11369 # There doesn't appear to be a way to prevent this compiler from
11370 # explicitly linking system object files so we need to strip them
11371 # from the output so that they don't get included in the library
11373 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'
11376 if test "$GXX" = yes; then
11377 if test $with_gnu_ld = no; then
11380 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11383 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11386 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'
11391 # FIXME: insert proper C++ library support
11398 hardcode_direct_CXX=no
11399 hardcode_shlibpath_var_CXX=no
11400 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11401 export_dynamic_flag_spec_CXX='${wl}-E'
11402 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11403 # Instead, shared libraries are loaded at an image base (0x10000000 by
11404 # default) and relocated if they conflict, which is a slow very memory
11405 # consuming and fragmenting process. To avoid this, we pick a random,
11406 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11407 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11408 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'
11409 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'
11412 case $cc_basename in
11415 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'
11417 # Archives containing C++ object files must be created using
11418 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11419 # necessary to make sure instantiated templates are included
11421 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11424 if test "$GXX" = yes; then
11425 if test "$with_gnu_ld" = no; then
11426 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'
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` -o $lib'
11431 link_all_deplibs_CXX=yes
11434 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11435 hardcode_libdir_separator_CXX=:
11437 linux* | k*bsd*-gnu)
11438 case $cc_basename in
11440 # Kuck and Associates, Inc. (KAI) C++ Compiler
11442 # KCC will only create a shared library if the output file
11443 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11444 # to its proper name (with version) after linking.
11445 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'
11446 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'
11447 # Commands to make compiler produce verbose output that lists
11448 # what "hidden" libraries, object files and flags are used when
11449 # linking a shared library.
11451 # There doesn't appear to be a way to prevent this compiler from
11452 # explicitly linking system object files so we need to strip them
11453 # from the output so that they don't get included in the library
11455 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'
11457 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11458 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11460 # Archives containing C++ object files must be created using
11461 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11462 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11467 # version 8.0 and above of icpc choke on multiply defined symbols
11468 # if we add $predep_objects and $postdep_objects, however 7.1 and
11469 # earlier do not add the objects themselves.
11470 case `$CC -V 2>&1` in
11472 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11473 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'
11475 *) # Version 8.0 or newer
11478 ia64*) tmp_idyn=' -i_dynamic';;
11480 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11481 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'
11484 archive_cmds_need_lc_CXX=no
11485 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11486 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11487 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11490 # Portland Group C++ compiler
11491 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11492 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'
11494 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11495 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11496 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'
11500 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11501 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'
11503 runpath_var=LD_RUN_PATH
11504 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11505 hardcode_libdir_separator_CXX=:
11507 # Commands to make compiler produce verbose output that lists
11508 # what "hidden" libraries, object files and flags are used when
11509 # linking a shared library.
11511 # There doesn't appear to be a way to prevent this compiler from
11512 # explicitly linking system object files so we need to strip them
11513 # from the output so that they don't get included in the library
11515 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'
11520 # FIXME: insert proper C++ library support
11524 # FIXME: insert proper C++ library support
11528 case $cc_basename in
11530 # FIXME: insert proper C++ library support
11534 # FIXME: insert proper C++ library support
11539 netbsd* | netbsdelf*-gnu)
11540 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11541 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11543 hardcode_libdir_flag_spec_CXX='-R$libdir'
11544 hardcode_direct_CXX=yes
11545 hardcode_shlibpath_var_CXX=no
11547 # Workaround some broken pre-1.5 toolchains
11548 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11551 # C++ shared libraries are fairly broken
11555 hardcode_direct_CXX=yes
11556 hardcode_shlibpath_var_CXX=no
11557 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11558 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11559 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11560 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11561 export_dynamic_flag_spec_CXX='${wl}-E'
11562 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11564 output_verbose_link_cmd='echo'
11567 case $cc_basename in
11569 # Kuck and Associates, Inc. (KAI) C++ Compiler
11571 # KCC will only create a shared library if the output file
11572 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11573 # to its proper name (with version) after linking.
11574 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'
11576 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11577 hardcode_libdir_separator_CXX=:
11579 # Archives containing C++ object files must be created using
11580 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11581 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11585 # Rational C++ 2.4.1
11586 # FIXME: insert proper C++ library support
11590 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11591 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'
11593 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11594 hardcode_libdir_separator_CXX=:
11596 # Commands to make compiler produce verbose output that lists
11597 # what "hidden" libraries, object files and flags are used when
11598 # linking a shared library.
11600 # There doesn't appear to be a way to prevent this compiler from
11601 # explicitly linking system object files so we need to strip them
11602 # from the output so that they don't get included in the library
11604 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'
11607 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11608 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11609 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'
11611 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11612 hardcode_libdir_separator_CXX=:
11614 # Commands to make compiler produce verbose output that lists
11615 # what "hidden" libraries, object files and flags are used when
11616 # linking a shared library.
11617 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11620 # FIXME: insert proper C++ library support
11627 case $cc_basename in
11629 # Kuck and Associates, Inc. (KAI) C++ Compiler
11631 # KCC will only create a shared library if the output file
11632 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11633 # to its proper name (with version) after linking.
11634 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'
11636 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11637 hardcode_libdir_separator_CXX=:
11639 # Archives containing C++ object files must be created using
11640 # the KAI C++ compiler.
11641 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11644 # Rational C++ 2.4.1
11645 # FIXME: insert proper C++ library support
11649 allow_undefined_flag_CXX=' -expect_unresolved \*'
11650 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'
11651 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11652 echo "-hidden">> $lib.exp~
11653 $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~
11656 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11657 hardcode_libdir_separator_CXX=:
11659 # Commands to make compiler produce verbose output that lists
11660 # what "hidden" libraries, object files and flags are used when
11661 # linking a shared library.
11663 # There doesn't appear to be a way to prevent this compiler from
11664 # explicitly linking system object files so we need to strip them
11665 # from the output so that they don't get included in the library
11667 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'
11670 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11671 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11672 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'
11674 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11675 hardcode_libdir_separator_CXX=:
11677 # Commands to make compiler produce verbose output that lists
11678 # what "hidden" libraries, object files and flags are used when
11679 # linking a shared library.
11680 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11683 # FIXME: insert proper C++ library support
11690 # FIXME: insert proper C++ library support
11694 case $cc_basename in
11697 # FIXME: insert proper C++ library support
11702 # FIXME: insert proper C++ library support
11706 # FIXME: insert proper C++ library support
11712 case $cc_basename in
11714 # Sun C++ 4.2, 5.x and Centerline C++
11715 archive_cmds_need_lc_CXX=yes
11716 no_undefined_flag_CXX=' -zdefs'
11717 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11718 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11719 $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'
11721 hardcode_libdir_flag_spec_CXX='-R$libdir'
11722 hardcode_shlibpath_var_CXX=no
11724 solaris2.[0-5] | solaris2.[0-5].*) ;;
11726 # The C++ compiler is used as linker so we must use $wl
11727 # flag to pass the commands to the underlying system
11728 # linker. We must also pass each convience library through
11729 # to the system linker between allextract/defaultextract.
11730 # The C++ compiler will combine linker options so we
11731 # cannot just pass the convience library names through
11733 # Supported since Solaris 2.6 (maybe 2.5.1?)
11734 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'
11737 link_all_deplibs_CXX=yes
11739 output_verbose_link_cmd='echo'
11741 # Archives containing C++ object files must be created using
11742 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11743 # necessary to make sure instantiated templates are included
11745 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11748 # Green Hills C++ Compiler
11749 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11751 # The C++ compiler must be used to create the archive.
11752 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11755 # GNU C++ compiler with Solaris linker
11756 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11757 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11758 if $CC --version | grep -v '^2\.7' > /dev/null; then
11759 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11760 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11761 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11763 # Commands to make compiler produce verbose output that lists
11764 # what "hidden" libraries, object files and flags are used when
11765 # linking a shared library.
11766 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11768 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11770 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11771 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11772 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11774 # Commands to make compiler produce verbose output that lists
11775 # what "hidden" libraries, object files and flags are used when
11776 # linking a shared library.
11777 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11780 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11785 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11786 no_undefined_flag_CXX='${wl}-z,text'
11787 archive_cmds_need_lc_CXX=no
11788 hardcode_shlibpath_var_CXX=no
11789 runpath_var='LD_RUN_PATH'
11791 case $cc_basename in
11793 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11794 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11797 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11798 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11802 sysv5* | sco3.2v5* | sco5v6*)
11803 # Note: We can NOT use -z defs as we might desire, because we do not
11804 # link with -lc, and that would cause any symbols used from libc to
11805 # always be unresolved, which means just about no library would
11806 # ever link correctly. If we're not using GNU ld we use -z text
11807 # though, which does catch some bad symbols but isn't as heavy-handed
11809 # For security reasons, it is highly recommended that you always
11810 # use absolute paths for naming shared libraries, and exclude the
11811 # DT_RUNPATH tag from executables and libraries. But doing so
11812 # requires that you compile everything twice, which is a pain.
11813 # So that behaviour is only enabled if SCOABSPATH is set to a
11814 # non-empty value in the environment. Most likely only useful for
11815 # creating official distributions of packages.
11816 # This is a hack until libtool officially supports absolute path
11817 # names for shared libraries.
11818 no_undefined_flag_CXX='${wl}-z,text'
11819 allow_undefined_flag_CXX='${wl}-z,nodefs'
11820 archive_cmds_need_lc_CXX=no
11821 hardcode_shlibpath_var_CXX=no
11822 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11823 hardcode_libdir_separator_CXX=':'
11824 link_all_deplibs_CXX=yes
11825 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11826 runpath_var='LD_RUN_PATH'
11828 case $cc_basename in
11830 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11831 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11834 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11835 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11840 case $cc_basename in
11842 # NonStop-UX NCC 3.20
11843 # FIXME: insert proper C++ library support
11847 # FIXME: insert proper C++ library support
11853 # FIXME: insert proper C++ library support
11857 # FIXME: insert proper C++ library support
11861 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11862 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11863 test "$ld_shlibs_CXX" = no && can_build_shared=no
11869 cat > conftest.$ac_ext <<EOF
11873 Foo (void) { a = 0; }
11879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11880 (eval $ac_compile) 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; then
11884 # Parse the compiler output and extract the necessary
11885 # objects, libraries and library flags.
11887 # Sentinel used to keep track of whether or not we are before
11888 # the conftest object file.
11889 pre_test_object_deps_done=no
11891 # The `*' in the case matches for architectures that use `case' in
11892 # $output_verbose_cmd can trigger glob expansion during the loop
11893 # eval without this substitution.
11894 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11896 for p in `eval $output_verbose_link_cmd`; do
11900 # Some compilers place space between "-{L,R}" and the path.
11901 # Remove the space.
11902 if test $p = "-L" \
11903 || test $p = "-R"; then
11910 if test "$pre_test_object_deps_done" = no; then
11913 # Internal compiler library paths should come after those
11914 # provided the user. The postdeps already come after the
11915 # user supplied libs so there is no need to process them.
11916 if test -z "$compiler_lib_search_path_CXX"; then
11917 compiler_lib_search_path_CXX="${prev}${p}"
11919 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11922 # The "-l" case would never come before the object being
11923 # linked, so don't bother handling this case.
11926 if test -z "$postdeps_CXX"; then
11927 postdeps_CXX="${prev}${p}"
11929 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11935 # This assumes that the test object file only shows up
11936 # once in the compiler output.
11937 if test "$p" = "conftest.$objext"; then
11938 pre_test_object_deps_done=yes
11942 if test "$pre_test_object_deps_done" = no; then
11943 if test -z "$predep_objects_CXX"; then
11944 predep_objects_CXX="$p"
11946 predep_objects_CXX="$predep_objects_CXX $p"
11949 if test -z "$postdep_objects_CXX"; then
11950 postdep_objects_CXX="$p"
11952 postdep_objects_CXX="$postdep_objects_CXX $p"
11957 *) ;; # Ignore the rest.
11965 echo "libtool.m4: error: problem compiling CXX test program"
11968 $rm -f confest.$objext
11970 # PORTME: override above test on systems where it is broken
11973 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11974 # hack all around it, let's just trust "g++" to DTRT.
11975 predep_objects_CXX=
11976 postdep_objects_CXX=
11981 case $cc_basename in
11983 # Adding this requires a known-good setup of shared libraries for
11984 # Sun compiler versions before 5.6, else PIC objects from an old
11985 # archive will be linked into the output, leading to subtle bugs.
11986 postdeps_CXX='-lCstd -lCrun'
11993 case " $postdeps_CXX " in
11994 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11997 lt_prog_compiler_wl_CXX=
11998 lt_prog_compiler_pic_CXX=
11999 lt_prog_compiler_static_CXX=
12001 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12002 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12004 # C++ specific cases for pic, static, wl, etc.
12005 if test "$GXX" = yes; then
12006 lt_prog_compiler_wl_CXX='-Wl,'
12007 lt_prog_compiler_static_CXX='-static'
12011 # All AIX code is PIC.
12012 if test "$host_cpu" = ia64; then
12013 # AIX 5 now supports IA64 processor
12014 lt_prog_compiler_static_CXX='-Bstatic'
12018 # FIXME: we need at least 68020 code to build shared libraries, but
12019 # adding the `-m68020' flag to GCC prevents building anything better,
12021 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12023 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12024 # PIC is the default for these OSes.
12026 mingw* | os2* | pw32*)
12027 # This hack is so that the source file can tell whether it is being
12028 # built for inclusion in a dll (and should export symbols for example).
12029 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12031 darwin* | rhapsody*)
12032 # PIC is the default on this platform
12033 # Common symbols not allowed in MH_DYLIB files
12034 lt_prog_compiler_pic_CXX='-fno-common'
12037 # DJGPP does not support shared libraries at all
12038 lt_prog_compiler_pic_CXX=
12041 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12042 # Instead, we relocate shared libraries at runtime.
12045 if test -d /usr/nec; then
12046 lt_prog_compiler_pic_CXX=-Kconform_pic
12050 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12051 # not for PA HP-UX.
12056 lt_prog_compiler_pic_CXX='-fPIC'
12061 lt_prog_compiler_pic_CXX='-fPIC'
12067 # All AIX code is PIC.
12068 if test "$host_cpu" = ia64; then
12069 # AIX 5 now supports IA64 processor
12070 lt_prog_compiler_static_CXX='-Bstatic'
12072 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12076 case $cc_basename in
12078 # Green Hills C++ Compiler
12079 # _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"
12084 # PIC is the default on this platform
12085 # Common symbols not allowed in MH_DYLIB files
12086 case $cc_basename in
12088 lt_prog_compiler_pic_CXX='-qnocommon'
12089 lt_prog_compiler_wl_CXX='-Wl,'
12094 case $cc_basename in
12096 lt_prog_compiler_pic_CXX='-KPIC'
12099 # Green Hills C++ Compiler
12100 lt_prog_compiler_pic_CXX='-pic'
12106 freebsd* | dragonfly*)
12107 # FreeBSD uses GNU C++
12109 hpux9* | hpux10* | hpux11*)
12110 case $cc_basename in
12112 lt_prog_compiler_wl_CXX='-Wl,'
12113 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12114 if test "$host_cpu" != ia64; then
12115 lt_prog_compiler_pic_CXX='+Z'
12119 lt_prog_compiler_wl_CXX='-Wl,'
12120 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12126 lt_prog_compiler_pic_CXX='+Z'
12135 # This is c89, which is MS Visual C++ (no shared libs)
12136 # Anyone wants to do a port?
12138 irix5* | irix6* | nonstopux*)
12139 case $cc_basename in
12141 lt_prog_compiler_wl_CXX='-Wl,'
12142 lt_prog_compiler_static_CXX='-non_shared'
12143 # CC pic flag -KPIC is the default.
12149 linux* | k*bsd*-gnu)
12150 case $cc_basename in
12153 lt_prog_compiler_wl_CXX='--backend -Wl,'
12154 lt_prog_compiler_pic_CXX='-fPIC'
12158 lt_prog_compiler_wl_CXX='-Wl,'
12159 lt_prog_compiler_pic_CXX='-KPIC'
12160 lt_prog_compiler_static_CXX='-static'
12163 # Portland Group C++ compiler.
12164 lt_prog_compiler_wl_CXX='-Wl,'
12165 lt_prog_compiler_pic_CXX='-fpic'
12166 lt_prog_compiler_static_CXX='-Bstatic'
12170 # Make sure the PIC flag is empty. It appears that all Alpha
12171 # Linux and Compaq Tru64 Unix objects are PIC.
12172 lt_prog_compiler_pic_CXX=
12173 lt_prog_compiler_static_CXX='-non_shared'
12184 case $cc_basename in
12186 lt_prog_compiler_pic_CXX='-W c,exportall'
12192 netbsd* | netbsdelf*-gnu)
12194 osf3* | osf4* | osf5*)
12195 case $cc_basename in
12197 lt_prog_compiler_wl_CXX='--backend -Wl,'
12200 # Rational C++ 2.4.1
12201 lt_prog_compiler_pic_CXX='-pic'
12204 # Digital/Compaq C++
12205 lt_prog_compiler_wl_CXX='-Wl,'
12206 # Make sure the PIC flag is empty. It appears that all Alpha
12207 # Linux and Compaq Tru64 Unix objects are PIC.
12208 lt_prog_compiler_pic_CXX=
12209 lt_prog_compiler_static_CXX='-non_shared'
12218 case $cc_basename in
12220 # Sun C++ 4.2, 5.x and Centerline C++
12221 lt_prog_compiler_pic_CXX='-KPIC'
12222 lt_prog_compiler_static_CXX='-Bstatic'
12223 lt_prog_compiler_wl_CXX='-Qoption ld '
12226 # Green Hills C++ Compiler
12227 lt_prog_compiler_pic_CXX='-PIC'
12234 case $cc_basename in
12237 lt_prog_compiler_pic_CXX='-pic'
12238 lt_prog_compiler_static_CXX='-Bstatic'
12242 lt_prog_compiler_pic_CXX='-pic'
12249 case $cc_basename in
12251 # NonStop-UX NCC 3.20
12252 lt_prog_compiler_pic_CXX='-KPIC'
12258 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12259 case $cc_basename in
12261 lt_prog_compiler_wl_CXX='-Wl,'
12262 lt_prog_compiler_pic_CXX='-KPIC'
12263 lt_prog_compiler_static_CXX='-Bstatic'
12270 lt_prog_compiler_can_build_shared_CXX=no
12275 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12276 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12279 # Check to make sure the PIC flag actually works.
12281 if test -n "$lt_prog_compiler_pic_CXX"; then
12283 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12284 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12285 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12288 lt_prog_compiler_pic_works_CXX=no
12289 ac_outfile=conftest.$ac_objext
12290 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12291 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12292 # Insert the option either (1) after the last *FLAGS variable, or
12293 # (2) before a word containing "conftest.", or (3) at the end.
12294 # Note that $ac_compile itself does not contain backslashes and begins
12295 # with a dollar sign (not a hyphen), so the echo should work correctly.
12296 # The option is referenced via a variable to avoid confusing sed.
12297 lt_compile=`echo "$ac_compile" | $SED \
12298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12300 -e 's:$: $lt_compiler_flag:'`
12301 (eval echo "\"\$as_me:12301: $lt_compile\"" >&5)
12302 (eval "$lt_compile" 2>conftest.err)
12304 cat conftest.err >&5
12305 echo "$as_me:12305: \$? = $ac_status" >&5
12306 if (exit $ac_status) && test -s "$ac_outfile"; then
12307 # The compiler can only warn and ignore the option if not recognized
12308 # So say no if there are warnings other than the usual output.
12309 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12310 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12311 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12312 lt_prog_compiler_pic_works_CXX=yes
12318 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12319 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12321 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12322 case $lt_prog_compiler_pic_CXX in
12324 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12327 lt_prog_compiler_pic_CXX=
12328 lt_prog_compiler_can_build_shared_CXX=no
12333 # For platforms which do not support PIC, -DPIC is meaningless:
12335 lt_prog_compiler_pic_CXX=
12338 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12343 # Check to make sure the static flag actually works.
12345 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12346 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12347 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12348 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
12351 lt_prog_compiler_static_works_CXX=no
12352 save_LDFLAGS="$LDFLAGS"
12353 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12354 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12355 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12356 # The linker can only warn and ignore the option if not recognized
12357 # So say no if there are warnings
12358 if test -s conftest.err; then
12359 # Append any errors to the config.log.
12360 cat conftest.err 1>&5
12361 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12362 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12363 if diff conftest.exp conftest.er2 >/dev/null; then
12364 lt_prog_compiler_static_works_CXX=yes
12367 lt_prog_compiler_static_works_CXX=yes
12371 LDFLAGS="$save_LDFLAGS"
12374 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12375 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12377 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12380 lt_prog_compiler_static_CXX=
12384 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12385 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12386 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 lt_cv_prog_compiler_c_o_CXX=no
12390 $rm -r conftest 2>/dev/null
12394 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12396 lt_compiler_flag="-o out/conftest2.$ac_objext"
12397 # Insert the option either (1) after the last *FLAGS variable, or
12398 # (2) before a word containing "conftest.", or (3) at the end.
12399 # Note that $ac_compile itself does not contain backslashes and begins
12400 # with a dollar sign (not a hyphen), so the echo should work correctly.
12401 lt_compile=`echo "$ac_compile" | $SED \
12402 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12403 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12404 -e 's:$: $lt_compiler_flag:'`
12405 (eval echo "\"\$as_me:12405: $lt_compile\"" >&5)
12406 (eval "$lt_compile" 2>out/conftest.err)
12408 cat out/conftest.err >&5
12409 echo "$as_me:12409: \$? = $ac_status" >&5
12410 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12412 # The compiler can only warn and ignore the option if not recognized
12413 # So say no if there are warnings
12414 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12415 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12416 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12417 lt_cv_prog_compiler_c_o_CXX=yes
12422 # SGI C++ compiler will create directory out/ii_files/ for
12423 # template instantiation
12424 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12425 $rm out/* && rmdir out
12431 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12432 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12435 hard_links="nottested"
12436 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12437 # do not overwrite the value of need_locks provided by the user
12438 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12439 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12442 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12444 ln conftest.a conftest.b 2>&5 || hard_links=no
12445 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12446 { echo "$as_me:$LINENO: result: $hard_links" >&5
12447 echo "${ECHO_T}$hard_links" >&6; }
12448 if test "$hard_links" = no; then
12449 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12450 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12457 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12458 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12460 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12463 # If we're using GNU nm, then we don't want the "-C" option.
12464 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12465 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12466 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'
12468 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'
12472 export_symbols_cmds_CXX="$ltdll_cmds"
12475 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'
12477 linux* | k*bsd*-gnu)
12478 link_all_deplibs_CXX=no
12481 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12485 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12486 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12487 test "$ld_shlibs_CXX" = no && can_build_shared=no
12490 # Do we need to explicitly link libc?
12492 case "x$archive_cmds_need_lc_CXX" in
12494 # Assume -lc should be added
12495 archive_cmds_need_lc_CXX=yes
12497 if test "$enable_shared" = yes && test "$GCC" = yes; then
12498 case $archive_cmds_CXX in
12500 # FIXME: we may have to deal with multi-command sequences.
12503 # Test whether the compiler implicitly links with -lc since on some
12504 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12505 # to ld, don't add -lc before -lgcc.
12506 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12507 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12512 (eval $ac_compile) 2>&5
12514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12515 (exit $ac_status); } 2>conftest.err; then
12518 libobjs=conftest.$ac_objext
12520 wl=$lt_prog_compiler_wl_CXX
12521 pic_flag=$lt_prog_compiler_pic_CXX
12527 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12528 allow_undefined_flag_CXX=
12529 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12530 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12533 (exit $ac_status); }
12535 archive_cmds_need_lc_CXX=no
12537 archive_cmds_need_lc_CXX=yes
12539 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12541 cat conftest.err 1>&5
12544 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12545 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12552 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12553 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12554 library_names_spec=
12555 libname_spec='lib$name'
12559 postuninstall_cmds=
12563 shlibpath_overrides_runpath=unknown
12565 dynamic_linker="$host_os ld.so"
12566 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12567 if test "$GCC" = yes; then
12568 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12569 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12570 # if the path contains ";" then we assume it to be the separator
12571 # otherwise default to the standard path separator (i.e. ":") - it is
12572 # assumed that no part of a normal pathname contains ";" but that should
12573 # okay in the real world where ";" in dirpaths is itself problematic.
12574 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12576 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12579 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12581 need_lib_prefix=unknown
12582 hardcode_into_libs=no
12584 # when you set need_version to no, make sure it does not cause -set_version
12585 # flags to be left without arguments
12586 need_version=unknown
12591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12592 shlibpath_var=LIBPATH
12594 # AIX 3 has no versioning support, so we append a major version to the name.
12595 soname_spec='${libname}${release}${shared_ext}$major'
12602 hardcode_into_libs=yes
12603 if test "$host_cpu" = ia64; then
12604 # AIX 5 supports IA64
12605 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12606 shlibpath_var=LD_LIBRARY_PATH
12608 # With GCC up to 2.95.x, collect2 would create an import file
12609 # for dependence libraries. The import file would start with
12610 # the line `#! .'. This would cause the generated library to
12611 # depend on `.', always an invalid library. This was fixed in
12612 # development snapshots of GCC prior to 3.0.
12614 aix4 | aix4.[01] | aix4.[01].*)
12615 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12617 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12620 can_build_shared=no
12624 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12625 # soname into executable. Probably we can add versioning support to
12626 # collect2, so additional links can be useful in future.
12627 if test "$aix_use_runtimelinking" = yes; then
12628 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12629 # instead of lib<name>.a to let people know that these are not
12630 # typical AIX shared libraries.
12631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12633 # We preserve .a as extension for shared libraries through AIX4.2
12634 # and later when we are not doing run time linking.
12635 library_names_spec='${libname}${release}.a $libname.a'
12636 soname_spec='${libname}${release}${shared_ext}$major'
12638 shlibpath_var=LIBPATH
12643 library_names_spec='$libname.ixlibrary $libname.a'
12644 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12645 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'
12649 library_names_spec='${libname}${shared_ext}'
12650 dynamic_linker="$host_os ld.so"
12651 shlibpath_var=LIBRARY_PATH
12657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12658 soname_spec='${libname}${release}${shared_ext}$major'
12659 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12660 shlibpath_var=LD_LIBRARY_PATH
12661 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12662 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12663 # the default ld.so.conf also contains /usr/contrib/lib and
12664 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12665 # libtool to hard-code these into programs
12668 cygwin* | mingw* | pw32*)
12669 version_type=windows
12674 case $GCC,$host_os in
12675 yes,cygwin* | yes,mingw* | yes,pw32*)
12676 library_names_spec='$libname.dll.a'
12677 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12678 postinstall_cmds='base_file=`basename \${file}`~
12679 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12680 dldir=$destdir/`dirname \$dlpath`~
12681 test -d \$dldir || mkdir -p \$dldir~
12682 $install_prog $dir/$dlname \$dldir/$dlname~
12683 chmod a+x \$dldir/$dlname'
12684 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12685 dlpath=$dir/\$dldll~
12687 shlibpath_overrides_runpath=yes
12691 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12692 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12693 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12696 # MinGW DLLs use traditional 'lib' prefix
12697 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12698 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12699 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12700 # It is most probably a Windows format PATH printed by
12701 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12702 # path with ; separators, and with drive letters. We can handle the
12703 # drive letters (cygwin fileutils understands them), so leave them,
12704 # especially as we might pass files found there to a mingw objdump,
12705 # which wouldn't understand a cygwinified path. Ahh.
12706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12708 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12712 # pw32 DLLs use 'pw' prefix rather than 'lib'
12713 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12719 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12722 dynamic_linker='Win32 ld.exe'
12723 # FIXME: first we should search . and the directory the executable is in
12727 darwin* | rhapsody*)
12728 dynamic_linker="$host_os dyld"
12729 version_type=darwin
12732 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12733 soname_spec='${libname}${release}${major}$shared_ext'
12734 shlibpath_overrides_runpath=yes
12735 shlibpath_var=DYLD_LIBRARY_PATH
12736 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12737 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12738 if test "$GCC" = yes; then
12739 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"`
12741 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12743 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12751 soname_spec='${libname}${release}${shared_ext}$major'
12752 shlibpath_var=LD_LIBRARY_PATH
12759 freebsd* | dragonfly*)
12760 # DragonFly does not have aout. When/if they implement a new
12761 # versioning mechanism, adjust this.
12762 if test -x /usr/bin/objformat; then
12763 objformat=`/usr/bin/objformat`
12766 freebsd[123]*) objformat=aout ;;
12767 *) objformat=elf ;;
12770 version_type=freebsd-$objformat
12771 case $version_type in
12773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12778 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12782 shlibpath_var=LD_LIBRARY_PATH
12785 shlibpath_overrides_runpath=yes
12787 freebsd3.[01]* | freebsdelf3.[01]*)
12788 shlibpath_overrides_runpath=yes
12789 hardcode_into_libs=yes
12791 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12792 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12793 shlibpath_overrides_runpath=no
12794 hardcode_into_libs=yes
12796 freebsd*) # from 4.6 on
12797 shlibpath_overrides_runpath=yes
12798 hardcode_into_libs=yes
12807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12808 soname_spec='${libname}${release}${shared_ext}$major'
12809 shlibpath_var=LD_LIBRARY_PATH
12810 hardcode_into_libs=yes
12813 hpux9* | hpux10* | hpux11*)
12814 # Give a soname corresponding to the major version so that dld.sl refuses to
12815 # link against other versions.
12822 hardcode_into_libs=yes
12823 dynamic_linker="$host_os dld.so"
12824 shlibpath_var=LD_LIBRARY_PATH
12825 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12827 soname_spec='${libname}${release}${shared_ext}$major'
12828 if test "X$HPUX_IA64_MODE" = X32; then
12829 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12831 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12833 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12837 hardcode_into_libs=yes
12838 dynamic_linker="$host_os dld.sl"
12839 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12840 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12842 soname_spec='${libname}${release}${shared_ext}$major'
12843 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12844 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12848 dynamic_linker="$host_os dld.sl"
12849 shlibpath_var=SHLIB_PATH
12850 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12852 soname_spec='${libname}${release}${shared_ext}$major'
12855 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12856 postinstall_cmds='chmod 555 $lib'
12863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12864 soname_spec='${libname}${release}${shared_ext}$major'
12865 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12866 shlibpath_var=LD_LIBRARY_PATH
12867 shlibpath_overrides_runpath=no
12868 hardcode_into_libs=yes
12871 irix5* | irix6* | nonstopux*)
12873 nonstopux*) version_type=nonstopux ;;
12875 if test "$lt_cv_prog_gnu_ld" = yes; then
12883 soname_spec='${libname}${release}${shared_ext}$major'
12884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12886 irix5* | nonstopux*)
12887 libsuff= shlibsuff=
12890 case $LD in # libtool.m4 will add one of these switches to LD
12891 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12892 libsuff= shlibsuff= libmagic=32-bit;;
12893 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12894 libsuff=32 shlibsuff=N32 libmagic=N32;;
12895 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12896 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12897 *) libsuff= shlibsuff= libmagic=never-match;;
12901 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12902 shlibpath_overrides_runpath=no
12903 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12904 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12905 hardcode_into_libs=yes
12908 # No shared lib support for Linux oldld, aout, or coff.
12909 linux*oldld* | linux*aout* | linux*coff*)
12913 # This must be Linux ELF.
12914 linux* | k*bsd*-gnu)
12918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12919 soname_spec='${libname}${release}${shared_ext}$major'
12920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12921 shlibpath_var=LD_LIBRARY_PATH
12922 shlibpath_overrides_runpath=no
12923 # This implies no fast_install, which is unacceptable.
12924 # Some rework will be needed to allow for fast_install
12925 # before this can be enabled.
12926 hardcode_into_libs=yes
12928 # Append ld.so.conf contents to the search path
12929 if test -f /etc/ld.so.conf; then
12930 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' ' '`
12931 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12934 # We used to test for /lib/ld.so.1 and disable shared libraries on
12935 # powerpc, because MkLinux only supported shared libraries with the
12936 # GNU dynamic linker. Since this was broken with cross compilers,
12937 # most powerpc-linux boxes support dynamic linking these days and
12938 # people can always --disable-shared, the test was removed, and we
12939 # assume the GNU/Linux dynamic linker is in use.
12940 dynamic_linker='GNU/Linux ld.so'
12947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12948 soname_spec='${libname}${release}${shared_ext}$major'
12949 shlibpath_var=LD_LIBRARY_PATH
12950 shlibpath_overrides_runpath=no
12951 hardcode_into_libs=yes
12952 dynamic_linker='NetBSD ld.elf_so'
12959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12962 dynamic_linker='NetBSD (a.out) ld.so'
12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12965 soname_spec='${libname}${release}${shared_ext}$major'
12966 dynamic_linker='NetBSD ld.elf_so'
12968 shlibpath_var=LD_LIBRARY_PATH
12969 shlibpath_overrides_runpath=yes
12970 hardcode_into_libs=yes
12975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12976 shlibpath_var=LD_LIBRARY_PATH
12977 shlibpath_overrides_runpath=yes
12984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12985 soname_spec='${libname}${release}${shared_ext}$major'
12986 shlibpath_var=LD_LIBRARY_PATH
12987 shlibpath_overrides_runpath=yes
12992 sys_lib_dlsearch_path_spec="/usr/lib"
12994 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12996 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12997 *) need_version=no ;;
12999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13001 shlibpath_var=LD_LIBRARY_PATH
13002 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13004 openbsd2.[89] | openbsd2.[89].*)
13005 shlibpath_overrides_runpath=no
13008 shlibpath_overrides_runpath=yes
13012 shlibpath_overrides_runpath=yes
13017 libname_spec='$name'
13020 library_names_spec='$libname${shared_ext} $libname.a'
13021 dynamic_linker='OS/2 ld.exe'
13022 shlibpath_var=LIBPATH
13025 osf3* | osf4* | osf5*)
13029 soname_spec='${libname}${release}${shared_ext}$major'
13030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13031 shlibpath_var=LD_LIBRARY_PATH
13032 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13033 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13041 soname_spec='${libname}${release}${shared_ext}$major'
13042 shlibpath_var=LD_LIBRARY_PATH
13043 shlibpath_overrides_runpath=yes
13044 hardcode_into_libs=yes
13045 # ldd complains unless libraries are executable
13046 postinstall_cmds='chmod +x $lib'
13051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13052 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13053 shlibpath_var=LD_LIBRARY_PATH
13054 shlibpath_overrides_runpath=yes
13055 if test "$with_gnu_ld" = yes; then
13063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13064 soname_spec='${libname}${release}${shared_ext}$major'
13065 shlibpath_var=LD_LIBRARY_PATH
13066 case $host_vendor in
13068 shlibpath_overrides_runpath=no
13070 export_dynamic_flag_spec='${wl}-Blargedynsym'
13071 runpath_var=LD_RUN_PATH
13079 shlibpath_overrides_runpath=no
13080 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13086 if test -d /usr/nec ;then
13088 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13089 soname_spec='$libname${shared_ext}.$major'
13090 shlibpath_var=LD_LIBRARY_PATH
13094 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13095 version_type=freebsd-elf
13098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13099 soname_spec='${libname}${release}${shared_ext}$major'
13100 shlibpath_var=LD_LIBRARY_PATH
13101 hardcode_into_libs=yes
13102 if test "$with_gnu_ld" = yes; then
13103 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13104 shlibpath_overrides_runpath=no
13106 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13107 shlibpath_overrides_runpath=yes
13110 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13114 sys_lib_dlsearch_path_spec='/usr/lib'
13119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13120 soname_spec='${libname}${release}${shared_ext}$major'
13121 shlibpath_var=LD_LIBRARY_PATH
13128 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13129 echo "${ECHO_T}$dynamic_linker" >&6; }
13130 test "$dynamic_linker" = no && can_build_shared=no
13132 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13133 if test "$GCC" = yes; then
13134 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13137 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13138 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13139 hardcode_action_CXX=
13140 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13141 test -n "$runpath_var_CXX" || \
13142 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13144 # We can hardcode non-existant directories.
13145 if test "$hardcode_direct_CXX" != no &&
13146 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13147 # have to relink, otherwise we might link with an installed library
13148 # when we should be linking with a yet-to-be-installed one
13149 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13150 test "$hardcode_minus_L_CXX" != no; then
13151 # Linking always hardcodes the temporary library directory.
13152 hardcode_action_CXX=relink
13154 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13155 hardcode_action_CXX=immediate
13158 # We cannot hardcode anything, or else we can only hardcode existing
13160 hardcode_action_CXX=unsupported
13162 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13163 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13165 if test "$hardcode_action_CXX" = relink; then
13166 # Fast installation is not supported
13167 enable_fast_install=no
13168 elif test "$shlibpath_overrides_runpath" = yes ||
13169 test "$enable_shared" = no; then
13170 # Fast installation is not necessary
13171 enable_fast_install=needless
13175 # The else clause should only fire when bootstrapping the
13176 # libtool distribution, otherwise you forgot to ship ltmain.sh
13177 # with your package, and you will get complaints that there are
13178 # no rules to generate ltmain.sh.
13179 if test -f "$ltmain"; then
13180 # See if we are running on zsh, and set the options which allow our commands through
13181 # without removal of \ escapes.
13182 if test -n "${ZSH_VERSION+set}" ; then
13183 setopt NO_GLOB_SUBST
13185 # Now quote all the things that may contain metacharacters while being
13186 # careful not to overquote the AC_SUBSTed values. We take copies of the
13187 # variables and quote the copies for generation of the libtool script.
13188 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13190 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13191 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13192 deplibs_check_method reload_flag reload_cmds need_locks \
13193 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13194 lt_cv_sys_global_symbol_to_c_name_address \
13195 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13196 old_postinstall_cmds old_postuninstall_cmds \
13200 lt_prog_compiler_wl_CXX \
13201 lt_prog_compiler_pic_CXX \
13202 lt_prog_compiler_static_CXX \
13203 lt_prog_compiler_no_builtin_flag_CXX \
13204 export_dynamic_flag_spec_CXX \
13205 thread_safe_flag_spec_CXX \
13206 whole_archive_flag_spec_CXX \
13207 enable_shared_with_static_runtimes_CXX \
13208 old_archive_cmds_CXX \
13209 old_archive_from_new_cmds_CXX \
13210 predep_objects_CXX \
13211 postdep_objects_CXX \
13214 compiler_lib_search_path_CXX \
13216 archive_expsym_cmds_CXX \
13217 postinstall_cmds_CXX \
13218 postuninstall_cmds_CXX \
13219 old_archive_from_expsyms_cmds_CXX \
13220 allow_undefined_flag_CXX \
13221 no_undefined_flag_CXX \
13222 export_symbols_cmds_CXX \
13223 hardcode_libdir_flag_spec_CXX \
13224 hardcode_libdir_flag_spec_ld_CXX \
13225 hardcode_libdir_separator_CXX \
13226 hardcode_automatic_CXX \
13228 module_expsym_cmds_CXX \
13229 lt_cv_prog_compiler_c_o_CXX \
13230 exclude_expsyms_CXX \
13231 include_expsyms_CXX; do
13234 old_archive_cmds_CXX | \
13235 old_archive_from_new_cmds_CXX | \
13236 archive_cmds_CXX | \
13237 archive_expsym_cmds_CXX | \
13238 module_cmds_CXX | \
13239 module_expsym_cmds_CXX | \
13240 old_archive_from_expsyms_cmds_CXX | \
13241 export_symbols_cmds_CXX | \
13242 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13243 postinstall_cmds | postuninstall_cmds | \
13244 old_postinstall_cmds | old_postuninstall_cmds | \
13245 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13246 # Double-quote double-evaled strings.
13247 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13250 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13256 *'\$0 --fallback-echo"')
13257 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13263 cat <<__EOF__ >> "$cfgfile"
13264 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13266 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13268 # Shell to use when invoking shell scripts.
13271 # Whether or not to build shared libraries.
13272 build_libtool_libs=$enable_shared
13274 # Whether or not to build static libraries.
13275 build_old_libs=$enable_static
13277 # Whether or not to add -lc for building shared libraries.
13278 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13280 # Whether or not to disallow shared libs when runtime libs are static
13281 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13283 # Whether or not to optimize for fast installation.
13284 fast_install=$enable_fast_install
13287 host_alias=$host_alias
13291 # The build system.
13292 build_alias=$build_alias
13296 # An echo program that does not interpret backslashes.
13301 AR_FLAGS=$lt_AR_FLAGS
13306 # LTCC compiler flags.
13307 LTCFLAGS=$lt_LTCFLAGS
13309 # A language-specific compiler.
13310 CC=$lt_compiler_CXX
13312 # Is the compiler the GNU C compiler?
13318 # The linker used to build libraries.
13321 # Whether we need hard or soft links.
13324 # A BSD-compatible nm program.
13327 # A symbol stripping program
13330 # Used to examine libraries when file_magic_cmd begins "file"
13331 MAGIC_CMD=$MAGIC_CMD
13333 # Used on cygwin: DLL creation program.
13336 # Used on cygwin: object dumper.
13339 # Used on cygwin: assembler.
13342 # The name of the directory that contains temporary libtool files.
13345 # How to create reloadable object files.
13346 reload_flag=$lt_reload_flag
13347 reload_cmds=$lt_reload_cmds
13349 # How to pass a linker flag through the compiler.
13350 wl=$lt_lt_prog_compiler_wl_CXX
13352 # Object file suffix (normally "o").
13353 objext="$ac_objext"
13355 # Old archive suffix (normally "a").
13358 # Shared library suffix (normally ".so").
13359 shrext_cmds='$shrext_cmds'
13361 # Executable file suffix (normally "").
13364 # Additional compiler flags for building library objects.
13365 pic_flag=$lt_lt_prog_compiler_pic_CXX
13368 # What is the maximum length of a command?
13369 max_cmd_len=$lt_cv_sys_max_cmd_len
13371 # Does compiler simultaneously support -c and -o options?
13372 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13374 # Must we lock files when doing compilation?
13375 need_locks=$lt_need_locks
13377 # Do we need the lib prefix for modules?
13378 need_lib_prefix=$need_lib_prefix
13380 # Do we need a version for libraries?
13381 need_version=$need_version
13383 # Whether dlopen is supported.
13384 dlopen_support=$enable_dlopen
13386 # Whether dlopen of programs is supported.
13387 dlopen_self=$enable_dlopen_self
13389 # Whether dlopen of statically linked programs is supported.
13390 dlopen_self_static=$enable_dlopen_self_static
13392 # Compiler flag to prevent dynamic linking.
13393 link_static_flag=$lt_lt_prog_compiler_static_CXX
13395 # Compiler flag to turn off builtin functions.
13396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13398 # Compiler flag to allow reflexive dlopens.
13399 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13401 # Compiler flag to generate shared objects directly from archives.
13402 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13404 # Compiler flag to generate thread-safe objects.
13405 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13407 # Library versioning type.
13408 version_type=$version_type
13410 # Format of library name prefix.
13411 libname_spec=$lt_libname_spec
13413 # List of archive names. First name is the real one, the rest are links.
13414 # The last name is the one that the linker finds with -lNAME.
13415 library_names_spec=$lt_library_names_spec
13417 # The coded name of the library, if different from the real name.
13418 soname_spec=$lt_soname_spec
13420 # Commands used to build and install an old-style archive.
13422 old_archive_cmds=$lt_old_archive_cmds_CXX
13423 old_postinstall_cmds=$lt_old_postinstall_cmds
13424 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13426 # Create an old-style archive from a shared archive.
13427 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13429 # Create a temporary old-style archive to link instead of a shared archive.
13430 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13432 # Commands used to build and install a shared archive.
13433 archive_cmds=$lt_archive_cmds_CXX
13434 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13435 postinstall_cmds=$lt_postinstall_cmds
13436 postuninstall_cmds=$lt_postuninstall_cmds
13438 # Commands used to build a loadable module (assumed same as above if empty)
13439 module_cmds=$lt_module_cmds_CXX
13440 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13442 # Commands to strip libraries.
13443 old_striplib=$lt_old_striplib
13444 striplib=$lt_striplib
13446 # Dependencies to place before the objects being linked to create a
13448 predep_objects=$lt_predep_objects_CXX
13450 # Dependencies to place after the objects being linked to create a
13452 postdep_objects=$lt_postdep_objects_CXX
13454 # Dependencies to place before the objects being linked to create a
13456 predeps=$lt_predeps_CXX
13458 # Dependencies to place after the objects being linked to create a
13460 postdeps=$lt_postdeps_CXX
13462 # The library search path used internally by the compiler when linking
13463 # a shared library.
13464 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13466 # Method to check whether dependent libraries are shared objects.
13467 deplibs_check_method=$lt_deplibs_check_method
13469 # Command to use when deplibs_check_method == file_magic.
13470 file_magic_cmd=$lt_file_magic_cmd
13472 # Flag that allows shared libraries with undefined symbols to be built.
13473 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13475 # Flag that forces no undefined symbols.
13476 no_undefined_flag=$lt_no_undefined_flag_CXX
13478 # Commands used to finish a libtool library installation in a directory.
13479 finish_cmds=$lt_finish_cmds
13481 # Same as above, but a single script fragment to be evaled but not shown.
13482 finish_eval=$lt_finish_eval
13484 # Take the output of nm and produce a listing of raw symbols and C names.
13485 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13487 # Transform the output of nm in a proper C declaration
13488 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13490 # Transform the output of nm in a C name address pair
13491 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13493 # This is the shared library runtime path variable.
13494 runpath_var=$runpath_var
13496 # This is the shared library path variable.
13497 shlibpath_var=$shlibpath_var
13499 # Is shlibpath searched before the hard-coded library search path?
13500 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13502 # How to hardcode a shared library path into an executable.
13503 hardcode_action=$hardcode_action_CXX
13505 # Whether we should hardcode library paths into libraries.
13506 hardcode_into_libs=$hardcode_into_libs
13508 # Flag to hardcode \$libdir into a binary during linking.
13509 # This must work even if \$libdir does not exist.
13510 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13512 # If ld is used when linking, flag to hardcode \$libdir into
13513 # a binary during linking. This must work even if \$libdir does
13515 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13517 # Whether we need a single -rpath flag with a separated argument.
13518 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13520 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13521 # resulting binary.
13522 hardcode_direct=$hardcode_direct_CXX
13524 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13525 # resulting binary.
13526 hardcode_minus_L=$hardcode_minus_L_CXX
13528 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13529 # the resulting binary.
13530 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13532 # Set to yes if building a shared library automatically hardcodes DIR into the library
13533 # and all subsequent libraries and executables linked against it.
13534 hardcode_automatic=$hardcode_automatic_CXX
13536 # Variables whose values should be saved in libtool wrapper scripts and
13537 # restored at relink time.
13538 variables_saved_for_relink="$variables_saved_for_relink"
13540 # Whether libtool must link a program against all its dependency libraries.
13541 link_all_deplibs=$link_all_deplibs_CXX
13543 # Compile-time system search path for libraries
13544 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13546 # Run-time system search path for libraries
13547 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13549 # Fix the shell variable \$srcfile for the compiler.
13550 fix_srcfile_path="$fix_srcfile_path_CXX"
13552 # Set to yes if exported symbols are required.
13553 always_export_symbols=$always_export_symbols_CXX
13555 # The commands to list exported symbols.
13556 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13558 # The commands to extract the exported symbol list from a shared archive.
13559 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13561 # Symbols that should not be listed in the preloaded symbols.
13562 exclude_expsyms=$lt_exclude_expsyms_CXX
13564 # Symbols that must always be exported.
13565 include_expsyms=$lt_include_expsyms_CXX
13567 # ### END LIBTOOL TAG CONFIG: $tagname
13573 # If there is no Makefile yet, we rely on a make rule to execute
13574 # `config.status --recheck' to rerun these tests and create the
13575 # libtool script then.
13576 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13577 if test -f "$ltmain_in"; then
13578 test -f Makefile && make "$ltmain"
13584 ac_cpp='$CPP $CPPFLAGS'
13585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13593 with_gnu_ldcxx=$with_gnu_ld
13594 with_gnu_ld=$lt_save_with_gnu_ld
13595 lt_cv_path_LDCXX=$lt_cv_path_LD
13596 lt_cv_path_LD=$lt_save_path_LD
13597 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13598 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13606 if test -n "$F77" && test "X$F77" != "Xno"; then
13609 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13610 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13611 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13614 archive_cmds_need_lc_F77=no
13615 allow_undefined_flag_F77=
13616 always_export_symbols_F77=no
13617 archive_expsym_cmds_F77=
13618 export_dynamic_flag_spec_F77=
13619 hardcode_direct_F77=no
13620 hardcode_libdir_flag_spec_F77=
13621 hardcode_libdir_flag_spec_ld_F77=
13622 hardcode_libdir_separator_F77=
13623 hardcode_minus_L_F77=no
13624 hardcode_automatic_F77=no
13626 module_expsym_cmds_F77=
13627 link_all_deplibs_F77=unknown
13628 old_archive_cmds_F77=$old_archive_cmds
13629 no_undefined_flag_F77=
13630 whole_archive_flag_spec_F77=
13631 enable_shared_with_static_runtimes_F77=no
13633 # Source file extension for f77 test sources.
13636 # Object file extension for compiled f77 test sources.
13640 # Code to be used in simple compile tests
13641 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13643 # Code to be used in simple link tests
13644 lt_simple_link_test_code=" program t\n end\n"
13646 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13648 # If no C compiler was specified, use CC.
13651 # If no C compiler flags were specified, use CFLAGS.
13652 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13654 # Allow CC to be a program name with arguments.
13658 # save warnings/boilerplate of simple test code
13659 ac_outfile=conftest.$ac_objext
13660 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13661 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13662 _lt_compiler_boilerplate=`cat conftest.err`
13665 ac_outfile=conftest.$ac_objext
13666 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13667 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13668 _lt_linker_boilerplate=`cat conftest.err`
13672 # Allow CC to be a program name with arguments.
13677 for cc_temp in $compiler""; do
13679 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13680 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13685 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13688 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13689 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13690 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13691 echo "${ECHO_T}$can_build_shared" >&6; }
13693 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13694 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13695 test "$can_build_shared" = "no" && enable_shared=no
13697 # On AIX, shared libraries and static libraries use the same namespace, and
13698 # are all built from PIC.
13701 test "$enable_shared" = yes && enable_static=no
13702 if test -n "$RANLIB"; then
13703 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13704 postinstall_cmds='$RANLIB $lib'
13708 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13709 test "$enable_shared" = yes && enable_static=no
13713 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13714 echo "${ECHO_T}$enable_shared" >&6; }
13716 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13717 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13718 # Make sure either enable_shared or enable_static is yes.
13719 test "$enable_shared" = yes || enable_static=yes
13720 { echo "$as_me:$LINENO: result: $enable_static" >&5
13721 echo "${ECHO_T}$enable_static" >&6; }
13726 lt_prog_compiler_wl_F77=
13727 lt_prog_compiler_pic_F77=
13728 lt_prog_compiler_static_F77=
13730 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13731 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13733 if test "$GCC" = yes; then
13734 lt_prog_compiler_wl_F77='-Wl,'
13735 lt_prog_compiler_static_F77='-static'
13739 # All AIX code is PIC.
13740 if test "$host_cpu" = ia64; then
13741 # AIX 5 now supports IA64 processor
13742 lt_prog_compiler_static_F77='-Bstatic'
13747 # FIXME: we need at least 68020 code to build shared libraries, but
13748 # adding the `-m68020' flag to GCC prevents building anything better,
13750 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13753 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13754 # PIC is the default for these OSes.
13757 mingw* | pw32* | os2*)
13758 # This hack is so that the source file can tell whether it is being
13759 # built for inclusion in a dll (and should export symbols for example).
13760 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13763 darwin* | rhapsody*)
13764 # PIC is the default on this platform
13765 # Common symbols not allowed in MH_DYLIB files
13766 lt_prog_compiler_pic_F77='-fno-common'
13770 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13771 # Instead, we relocate shared libraries at runtime.
13775 # Just because we use GCC doesn't mean we suddenly get shared libraries
13776 # on systems that don't support them.
13777 lt_prog_compiler_can_build_shared_F77=no
13782 if test -d /usr/nec; then
13783 lt_prog_compiler_pic_F77=-Kconform_pic
13788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13789 # not for PA HP-UX.
13795 lt_prog_compiler_pic_F77='-fPIC'
13801 lt_prog_compiler_pic_F77='-fPIC'
13805 # PORTME Check for flag to pass linker flags through the system compiler.
13808 lt_prog_compiler_wl_F77='-Wl,'
13809 if test "$host_cpu" = ia64; then
13810 # AIX 5 now supports IA64 processor
13811 lt_prog_compiler_static_F77='-Bstatic'
13813 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13817 # PIC is the default on this platform
13818 # Common symbols not allowed in MH_DYLIB files
13819 case $cc_basename in
13821 lt_prog_compiler_pic_F77='-qnocommon'
13822 lt_prog_compiler_wl_F77='-Wl,'
13827 mingw* | pw32* | os2*)
13828 # This hack is so that the source file can tell whether it is being
13829 # built for inclusion in a dll (and should export symbols for example).
13830 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13833 hpux9* | hpux10* | hpux11*)
13834 lt_prog_compiler_wl_F77='-Wl,'
13835 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13836 # not for PA HP-UX.
13842 lt_prog_compiler_pic_F77='+Z'
13845 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13846 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13849 irix5* | irix6* | nonstopux*)
13850 lt_prog_compiler_wl_F77='-Wl,'
13851 # PIC (with -KPIC) is the default.
13852 lt_prog_compiler_static_F77='-non_shared'
13856 lt_prog_compiler_pic_F77='-KPIC'
13857 lt_prog_compiler_static_F77='-Bstatic'
13860 linux* | k*bsd*-gnu)
13861 case $cc_basename in
13863 lt_prog_compiler_wl_F77='-Wl,'
13864 lt_prog_compiler_pic_F77='-KPIC'
13865 lt_prog_compiler_static_F77='-static'
13867 pgcc* | pgf77* | pgf90* | pgf95*)
13868 # Portland Group compilers (*not* the Pentium gcc compiler,
13869 # which looks to be a dead project)
13870 lt_prog_compiler_wl_F77='-Wl,'
13871 lt_prog_compiler_pic_F77='-fpic'
13872 lt_prog_compiler_static_F77='-Bstatic'
13875 lt_prog_compiler_wl_F77='-Wl,'
13876 # All Alpha code is PIC.
13877 lt_prog_compiler_static_F77='-non_shared'
13882 osf3* | osf4* | osf5*)
13883 lt_prog_compiler_wl_F77='-Wl,'
13884 # All OSF/1 code is PIC.
13885 lt_prog_compiler_static_F77='-non_shared'
13889 lt_prog_compiler_pic_F77='-KPIC'
13890 lt_prog_compiler_static_F77='-Bstatic'
13891 case $cc_basename in
13892 f77* | f90* | f95*)
13893 lt_prog_compiler_wl_F77='-Qoption ld ';;
13895 lt_prog_compiler_wl_F77='-Wl,';;
13900 lt_prog_compiler_wl_F77='-Qoption ld '
13901 lt_prog_compiler_pic_F77='-PIC'
13902 lt_prog_compiler_static_F77='-Bstatic'
13905 sysv4 | sysv4.2uw2* | sysv4.3*)
13906 lt_prog_compiler_wl_F77='-Wl,'
13907 lt_prog_compiler_pic_F77='-KPIC'
13908 lt_prog_compiler_static_F77='-Bstatic'
13912 if test -d /usr/nec ;then
13913 lt_prog_compiler_pic_F77='-Kconform_pic'
13914 lt_prog_compiler_static_F77='-Bstatic'
13918 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13919 lt_prog_compiler_wl_F77='-Wl,'
13920 lt_prog_compiler_pic_F77='-KPIC'
13921 lt_prog_compiler_static_F77='-Bstatic'
13925 lt_prog_compiler_wl_F77='-Wl,'
13926 lt_prog_compiler_can_build_shared_F77=no
13930 lt_prog_compiler_pic_F77='-pic'
13931 lt_prog_compiler_static_F77='-Bstatic'
13935 lt_prog_compiler_can_build_shared_F77=no
13940 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13941 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13944 # Check to make sure the PIC flag actually works.
13946 if test -n "$lt_prog_compiler_pic_F77"; then
13948 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13949 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13950 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 lt_prog_compiler_pic_works_F77=no
13954 ac_outfile=conftest.$ac_objext
13955 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13956 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13957 # Insert the option either (1) after the last *FLAGS variable, or
13958 # (2) before a word containing "conftest.", or (3) at the end.
13959 # Note that $ac_compile itself does not contain backslashes and begins
13960 # with a dollar sign (not a hyphen), so the echo should work correctly.
13961 # The option is referenced via a variable to avoid confusing sed.
13962 lt_compile=`echo "$ac_compile" | $SED \
13963 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13964 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13965 -e 's:$: $lt_compiler_flag:'`
13966 (eval echo "\"\$as_me:13966: $lt_compile\"" >&5)
13967 (eval "$lt_compile" 2>conftest.err)
13969 cat conftest.err >&5
13970 echo "$as_me:13970: \$? = $ac_status" >&5
13971 if (exit $ac_status) && test -s "$ac_outfile"; then
13972 # The compiler can only warn and ignore the option if not recognized
13973 # So say no if there are warnings other than the usual output.
13974 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13975 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13976 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13977 lt_prog_compiler_pic_works_F77=yes
13983 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13984 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13986 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13987 case $lt_prog_compiler_pic_F77 in
13989 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13992 lt_prog_compiler_pic_F77=
13993 lt_prog_compiler_can_build_shared_F77=no
13998 # For platforms which do not support PIC, -DPIC is meaningless:
14000 lt_prog_compiler_pic_F77=
14003 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14008 # Check to make sure the static flag actually works.
14010 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14011 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14012 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14013 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14014 echo $ECHO_N "(cached) $ECHO_C" >&6
14016 lt_prog_compiler_static_works_F77=no
14017 save_LDFLAGS="$LDFLAGS"
14018 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14019 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14020 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14021 # The linker can only warn and ignore the option if not recognized
14022 # So say no if there are warnings
14023 if test -s conftest.err; then
14024 # Append any errors to the config.log.
14025 cat conftest.err 1>&5
14026 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14028 if diff conftest.exp conftest.er2 >/dev/null; then
14029 lt_prog_compiler_static_works_F77=yes
14032 lt_prog_compiler_static_works_F77=yes
14036 LDFLAGS="$save_LDFLAGS"
14039 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14040 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14042 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14045 lt_prog_compiler_static_F77=
14049 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14050 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14051 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14052 echo $ECHO_N "(cached) $ECHO_C" >&6
14054 lt_cv_prog_compiler_c_o_F77=no
14055 $rm -r conftest 2>/dev/null
14059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14061 lt_compiler_flag="-o out/conftest2.$ac_objext"
14062 # Insert the option either (1) after the last *FLAGS variable, or
14063 # (2) before a word containing "conftest.", or (3) at the end.
14064 # Note that $ac_compile itself does not contain backslashes and begins
14065 # with a dollar sign (not a hyphen), so the echo should work correctly.
14066 lt_compile=`echo "$ac_compile" | $SED \
14067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14069 -e 's:$: $lt_compiler_flag:'`
14070 (eval echo "\"\$as_me:14070: $lt_compile\"" >&5)
14071 (eval "$lt_compile" 2>out/conftest.err)
14073 cat out/conftest.err >&5
14074 echo "$as_me:14074: \$? = $ac_status" >&5
14075 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14077 # The compiler can only warn and ignore the option if not recognized
14078 # So say no if there are warnings
14079 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14080 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14081 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14082 lt_cv_prog_compiler_c_o_F77=yes
14087 # SGI C++ compiler will create directory out/ii_files/ for
14088 # template instantiation
14089 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14090 $rm out/* && rmdir out
14096 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14097 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14100 hard_links="nottested"
14101 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14102 # do not overwrite the value of need_locks provided by the user
14103 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14104 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14109 ln conftest.a conftest.b 2>&5 || hard_links=no
14110 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14111 { echo "$as_me:$LINENO: result: $hard_links" >&5
14112 echo "${ECHO_T}$hard_links" >&6; }
14113 if test "$hard_links" = no; then
14114 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14115 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14122 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14123 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14126 allow_undefined_flag_F77=
14127 enable_shared_with_static_runtimes_F77=no
14129 archive_expsym_cmds_F77=
14130 old_archive_From_new_cmds_F77=
14131 old_archive_from_expsyms_cmds_F77=
14132 export_dynamic_flag_spec_F77=
14133 whole_archive_flag_spec_F77=
14134 thread_safe_flag_spec_F77=
14135 hardcode_libdir_flag_spec_F77=
14136 hardcode_libdir_flag_spec_ld_F77=
14137 hardcode_libdir_separator_F77=
14138 hardcode_direct_F77=no
14139 hardcode_minus_L_F77=no
14140 hardcode_shlibpath_var_F77=unsupported
14141 link_all_deplibs_F77=unknown
14142 hardcode_automatic_F77=no
14144 module_expsym_cmds_F77=
14145 always_export_symbols_F77=no
14146 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14147 # include_expsyms should be a list of space-separated symbols to be *always*
14148 # included in the symbol list
14149 include_expsyms_F77=
14150 # exclude_expsyms can be an extended regexp of symbols to exclude
14151 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14152 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14153 # as well as any symbol that contains `d'.
14154 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14155 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14156 # platforms (ab)use it in PIC code, but their linkers get confused if
14157 # the symbol is explicitly referenced. Since portable code cannot
14158 # rely on this symbol name, it's probably fine to never include it in
14159 # preloaded symbol tables.
14160 extract_expsyms_cmds=
14161 # Just being paranoid about ensuring that cc_basename is set.
14162 for cc_temp in $compiler""; do
14164 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14165 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14170 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14173 cygwin* | mingw* | pw32*)
14174 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14175 # When not using gcc, we currently assume that we are using
14176 # Microsoft Visual C++.
14177 if test "$GCC" != yes; then
14182 # we just hope/assume this is gcc and not c89 (= MSVC++)
14191 if test "$with_gnu_ld" = yes; then
14192 # If archive_cmds runs LD, not CC, wlarc should be empty
14195 # Set some defaults for GNU ld with shared library support. These
14196 # are reset later if shared libraries are not supported. Putting them
14197 # here allows them to be overridden if necessary.
14198 runpath_var=LD_RUN_PATH
14199 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14200 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14201 # ancient GNU ld didn't support --whole-archive et. al.
14202 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14203 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14205 whole_archive_flag_spec_F77=
14207 supports_anon_versioning=no
14208 case `$LD -v 2>/dev/null` in
14209 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14210 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14211 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14212 *\ 2.11.*) ;; # other 2.11 versions
14213 *) supports_anon_versioning=yes ;;
14216 # See if GNU ld supports shared libraries.
14218 aix3* | aix4* | aix5*)
14219 # On AIX/PPC, the GNU linker is very broken
14220 if test "$host_cpu" != ia64; then
14224 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14225 *** to be unable to reliably create shared libraries on AIX.
14226 *** Therefore, libtool is disabling shared libraries support. If you
14227 *** really care for shared libraries, you may want to modify your PATH
14228 *** so that a non-GNU linker is found, and then restart.
14235 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)'
14236 hardcode_libdir_flag_spec_F77='-L$libdir'
14237 hardcode_minus_L_F77=yes
14239 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14240 # that the semantics of dynamic libraries on AmigaOS, at least up
14241 # to version 4, is to share data among multiple programs linked
14242 # with the same dynamic library. Since this doesn't match the
14243 # behavior of shared libraries on other platforms, we can't use
14249 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14250 allow_undefined_flag_F77=unsupported
14251 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14252 # support --undefined. This deserves some investigation. FIXME
14253 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14259 cygwin* | mingw* | pw32*)
14260 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14261 # as there is no search path for DLLs.
14262 hardcode_libdir_flag_spec_F77='-L$libdir'
14263 allow_undefined_flag_F77=unsupported
14264 always_export_symbols_F77=no
14265 enable_shared_with_static_runtimes_F77=yes
14266 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14268 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14269 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14270 # If the export-symbols file already is a .def file (1st line
14271 # is EXPORTS), use it as is; otherwise, prepend...
14272 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14273 cp $export_symbols $output_objdir/$soname.def;
14275 echo EXPORTS > $output_objdir/$soname.def;
14276 cat $export_symbols >> $output_objdir/$soname.def;
14278 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14285 hardcode_direct_F77=no
14286 hardcode_shlibpath_var_F77=no
14287 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14288 export_dynamic_flag_spec_F77='${wl}-E'
14289 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14290 # Instead, shared libraries are loaded at an image base (0x10000000 by
14291 # default) and relocated if they conflict, which is a slow very memory
14292 # consuming and fragmenting process. To avoid this, we pick a random,
14293 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14294 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14295 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'
14296 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'
14299 linux* | k*bsd*-gnu)
14300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14302 case $cc_basename,$host_cpu in
14303 pgcc*) # Portland Group C compiler
14304 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'
14305 tmp_addflag=' $pic_flag'
14307 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14308 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'
14309 tmp_addflag=' $pic_flag -Mnomain' ;;
14310 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14311 tmp_addflag=' -i_dynamic' ;;
14312 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14313 tmp_addflag=' -i_dynamic -nofor_main' ;;
14314 ifc* | ifort*) # Intel Fortran compiler
14315 tmp_addflag=' -nofor_main' ;;
14317 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14319 if test $supports_anon_versioning = yes; then
14320 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14321 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14322 $echo "local: *; };" >> $output_objdir/$libname.ver~
14323 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14325 link_all_deplibs_F77=no
14331 netbsd* | netbsdelf*-gnu)
14332 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14333 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14336 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14337 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14342 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14346 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14347 *** create shared libraries on Solaris systems. Therefore, libtool
14348 *** is disabling shared libraries support. We urge you to upgrade GNU
14349 *** binutils to release 2.9.1 or newer. Another option is to modify
14350 *** your PATH or compiler configuration so that the native linker is
14351 *** used, and then restart.
14354 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14355 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14356 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14362 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14363 case `$LD -v 2>&1` in
14364 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14368 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14369 *** reliably create shared libraries on SCO systems. Therefore, libtool
14370 *** is disabling shared libraries support. We urge you to upgrade GNU
14371 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14372 *** your PATH or compiler configuration so that the native linker is
14373 *** used, and then restart.
14378 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14379 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14380 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14381 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14390 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14392 hardcode_direct_F77=yes
14393 hardcode_shlibpath_var_F77=no
14397 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14398 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14399 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14406 if test "$ld_shlibs_F77" = no; then
14408 hardcode_libdir_flag_spec_F77=
14409 export_dynamic_flag_spec_F77=
14410 whole_archive_flag_spec_F77=
14413 # PORTME fill in a description of your system's linker (not GNU ld)
14416 allow_undefined_flag_F77=unsupported
14417 always_export_symbols_F77=yes
14418 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'
14419 # Note: this linker hardcodes the directories in LIBPATH if there
14420 # are no directories specified by -L.
14421 hardcode_minus_L_F77=yes
14422 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14423 # Neither direct hardcoding nor static linking is supported with a
14425 hardcode_direct_F77=unsupported
14430 if test "$host_cpu" = ia64; then
14431 # On IA64, the linker does run time linking by default, so we don't
14432 # have to do anything special.
14433 aix_use_runtimelinking=no
14434 exp_sym_flag='-Bexport'
14437 # If we're using GNU nm, then we don't want the "-C" option.
14438 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14439 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14440 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'
14442 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'
14444 aix_use_runtimelinking=no
14446 # Test if we are trying to use run time linking or normal
14447 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14448 # need to do runtime linking.
14449 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14450 for ld_flag in $LDFLAGS; do
14451 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14452 aix_use_runtimelinking=yes
14459 exp_sym_flag='-bexport'
14460 no_entry_flag='-bnoentry'
14463 # When large executables or shared objects are built, AIX ld can
14464 # have problems creating the table of contents. If linking a library
14465 # or program results in "error TOC overflow" add -mminimal-toc to
14466 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14467 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14469 archive_cmds_F77=''
14470 hardcode_direct_F77=yes
14471 hardcode_libdir_separator_F77=':'
14472 link_all_deplibs_F77=yes
14474 if test "$GCC" = yes; then
14475 case $host_os in aix4.[012]|aix4.[012].*)
14476 # We only want to do this on AIX 4.2 and lower, the check
14477 # below for broken collect2 doesn't work under 4.3+
14478 collect2name=`${CC} -print-prog-name=collect2`
14479 if test -f "$collect2name" && \
14480 strings "$collect2name" | grep resolve_lib_name >/dev/null
14482 # We have reworked collect2
14483 hardcode_direct_F77=yes
14485 # We have old collect2
14486 hardcode_direct_F77=unsupported
14487 # It fails to find uninstalled libraries when the uninstalled
14488 # path is not listed in the libpath. Setting hardcode_minus_L
14489 # to unsupported forces relinking
14490 hardcode_minus_L_F77=yes
14491 hardcode_libdir_flag_spec_F77='-L$libdir'
14492 hardcode_libdir_separator_F77=
14496 shared_flag='-shared'
14497 if test "$aix_use_runtimelinking" = yes; then
14498 shared_flag="$shared_flag "'${wl}-G'
14502 if test "$host_cpu" = ia64; then
14503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14504 # chokes on -Wl,-G. The following line is correct:
14507 if test "$aix_use_runtimelinking" = yes; then
14508 shared_flag='${wl}-G'
14510 shared_flag='${wl}-bM:SRE'
14515 # It seems that -bexpall does not export symbols beginning with
14516 # underscore (_), so it is better to generate a list of symbols to export.
14517 always_export_symbols_F77=yes
14518 if test "$aix_use_runtimelinking" = yes; then
14519 # Warning - without using the other runtime loading flags (-brtl),
14520 # -berok will link without error, but may produce a broken library.
14521 allow_undefined_flag_F77='-berok'
14522 # Determine the default libpath from the value encoded in an empty executable.
14523 cat >conftest.$ac_ext <<_ACEOF
14528 rm -f conftest.$ac_objext conftest$ac_exeext
14529 if { (ac_try="$ac_link"
14530 case "(($ac_try" in
14531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14532 *) ac_try_echo=$ac_try;;
14534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14535 (eval "$ac_link") 2>conftest.er1
14537 grep -v '^ *+' conftest.er1 >conftest.err
14539 cat conftest.err >&5
14540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } && {
14542 test -z "$ac_f77_werror_flag" ||
14543 test ! -s conftest.err
14544 } && test -s conftest$ac_exeext &&
14545 $as_test_x conftest$ac_exeext; then
14547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14549 # Check for a 64-bit object if we didn't find anything.
14550 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; }
14553 echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14560 conftest$ac_exeext conftest.$ac_ext
14561 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14563 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14564 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"
14566 if test "$host_cpu" = ia64; then
14567 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14568 allow_undefined_flag_F77="-z nodefs"
14569 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"
14571 # Determine the default libpath from the value encoded in an empty executable.
14572 cat >conftest.$ac_ext <<_ACEOF
14577 rm -f conftest.$ac_objext conftest$ac_exeext
14578 if { (ac_try="$ac_link"
14579 case "(($ac_try" in
14580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14581 *) ac_try_echo=$ac_try;;
14583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14584 (eval "$ac_link") 2>conftest.er1
14586 grep -v '^ *+' conftest.er1 >conftest.err
14588 cat conftest.err >&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } && {
14591 test -z "$ac_f77_werror_flag" ||
14592 test ! -s conftest.err
14593 } && test -s conftest$ac_exeext &&
14594 $as_test_x conftest$ac_exeext; then
14596 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14598 # Check for a 64-bit object if we didn't find anything.
14599 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; }
14602 echo "$as_me: failed program was:" >&5
14603 sed 's/^/| /' conftest.$ac_ext >&5
14608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14609 conftest$ac_exeext conftest.$ac_ext
14610 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14612 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14613 # Warning - without using the other run time loading flags,
14614 # -berok will link without error, but may produce a broken library.
14615 no_undefined_flag_F77=' ${wl}-bernotok'
14616 allow_undefined_flag_F77=' ${wl}-berok'
14617 # Exported symbols can be pulled into shared objects from archives
14618 whole_archive_flag_spec_F77='$convenience'
14619 archive_cmds_need_lc_F77=yes
14620 # This is similar to how AIX traditionally builds its shared libraries.
14621 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'
14627 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)'
14628 hardcode_libdir_flag_spec_F77='-L$libdir'
14629 hardcode_minus_L_F77=yes
14630 # see comment about different semantics on the GNU ld section
14635 export_dynamic_flag_spec_F77=-rdynamic
14638 cygwin* | mingw* | pw32*)
14639 # When not using gcc, we currently assume that we are using
14640 # Microsoft Visual C++.
14641 # hardcode_libdir_flag_spec is actually meaningless, as there is
14642 # no search path for DLLs.
14643 hardcode_libdir_flag_spec_F77=' '
14644 allow_undefined_flag_F77=unsupported
14645 # Tell ltmain to make .lib files, not .a files.
14647 # Tell ltmain to make .dll files, not .so files.
14649 # FIXME: Setting linknames here is a bad hack.
14650 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14651 # The linker will automatically build a .lib file if we build a DLL.
14652 old_archive_From_new_cmds_F77='true'
14653 # FIXME: Should let the user specify the lib program.
14654 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14655 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14656 enable_shared_with_static_runtimes_F77=yes
14659 darwin* | rhapsody*)
14661 rhapsody* | darwin1.[012])
14662 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14665 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14666 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14668 case ${MACOSX_DEPLOYMENT_TARGET} in
14670 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14673 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14679 archive_cmds_need_lc_F77=no
14680 hardcode_direct_F77=no
14681 hardcode_automatic_F77=yes
14682 hardcode_shlibpath_var_F77=unsupported
14683 whole_archive_flag_spec_F77=''
14684 link_all_deplibs_F77=yes
14685 if test "$GCC" = yes ; then
14686 output_verbose_link_cmd='echo'
14687 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14688 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14689 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14690 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14691 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14693 case $cc_basename in
14695 output_verbose_link_cmd='echo'
14696 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14697 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14698 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14699 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}'
14700 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}'
14710 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14711 hardcode_libdir_flag_spec_F77='-L$libdir'
14712 hardcode_shlibpath_var_F77=no
14719 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14720 # support. Future versions do this automatically, but an explicit c++rt0.o
14721 # does not break anything, and helps significantly (at the cost of a little
14724 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14725 hardcode_libdir_flag_spec_F77='-R$libdir'
14726 hardcode_direct_F77=yes
14727 hardcode_shlibpath_var_F77=no
14730 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14732 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14733 hardcode_direct_F77=yes
14734 hardcode_minus_L_F77=yes
14735 hardcode_shlibpath_var_F77=no
14738 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14739 freebsd* | dragonfly*)
14740 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14741 hardcode_libdir_flag_spec_F77='-R$libdir'
14742 hardcode_direct_F77=yes
14743 hardcode_shlibpath_var_F77=no
14747 if test "$GCC" = yes; then
14748 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'
14750 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'
14752 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14753 hardcode_libdir_separator_F77=:
14754 hardcode_direct_F77=yes
14756 # hardcode_minus_L: Not really in the search PATH,
14757 # but as the default location of the library.
14758 hardcode_minus_L_F77=yes
14759 export_dynamic_flag_spec_F77='${wl}-E'
14763 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14764 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14766 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14768 if test "$with_gnu_ld" = no; then
14769 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14770 hardcode_libdir_separator_F77=:
14772 hardcode_direct_F77=yes
14773 export_dynamic_flag_spec_F77='${wl}-E'
14775 # hardcode_minus_L: Not really in the search PATH,
14776 # but as the default location of the library.
14777 hardcode_minus_L_F77=yes
14782 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14785 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14788 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14791 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14797 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14800 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14803 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14807 if test "$with_gnu_ld" = no; then
14808 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14809 hardcode_libdir_separator_F77=:
14813 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14814 hardcode_direct_F77=no
14815 hardcode_shlibpath_var_F77=no
14818 hardcode_direct_F77=yes
14819 export_dynamic_flag_spec_F77='${wl}-E'
14821 # hardcode_minus_L: Not really in the search PATH,
14822 # but as the default location of the library.
14823 hardcode_minus_L_F77=yes
14829 irix5* | irix6* | nonstopux*)
14830 if test "$GCC" = yes; then
14831 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'
14833 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'
14834 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14836 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14837 hardcode_libdir_separator_F77=:
14838 link_all_deplibs_F77=yes
14841 netbsd* | netbsdelf*-gnu)
14842 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14843 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14845 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14847 hardcode_libdir_flag_spec_F77='-R$libdir'
14848 hardcode_direct_F77=yes
14849 hardcode_shlibpath_var_F77=no
14853 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14854 hardcode_direct_F77=yes
14855 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14856 hardcode_libdir_separator_F77=:
14857 hardcode_shlibpath_var_F77=no
14861 hardcode_direct_F77=yes
14862 hardcode_shlibpath_var_F77=no
14863 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14864 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14865 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14866 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14867 export_dynamic_flag_spec_F77='${wl}-E'
14870 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14871 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14872 hardcode_libdir_flag_spec_F77='-R$libdir'
14875 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14876 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14883 hardcode_libdir_flag_spec_F77='-L$libdir'
14884 hardcode_minus_L_F77=yes
14885 allow_undefined_flag_F77=unsupported
14886 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'
14887 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14891 if test "$GCC" = yes; then
14892 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14893 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'
14895 allow_undefined_flag_F77=' -expect_unresolved \*'
14896 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'
14898 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14899 hardcode_libdir_separator_F77=:
14902 osf4* | osf5*) # as osf3* with the addition of -msym flag
14903 if test "$GCC" = yes; then
14904 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14905 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'
14906 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14908 allow_undefined_flag_F77=' -expect_unresolved \*'
14909 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'
14910 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~
14911 $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'
14913 # Both c and cxx compiler support -rpath directly
14914 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14916 hardcode_libdir_separator_F77=:
14920 no_undefined_flag_F77=' -z text'
14921 if test "$GCC" = yes; then
14923 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14924 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14925 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14928 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14929 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14930 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14932 hardcode_libdir_flag_spec_F77='-R$libdir'
14933 hardcode_shlibpath_var_F77=no
14935 solaris2.[0-5] | solaris2.[0-5].*) ;;
14937 # The compiler driver will combine linker options so we
14938 # cannot just pass the convience library names through
14939 # without $wl, iff we do not link with $LD.
14940 # Luckily, gcc supports the same syntax we need for Sun Studio.
14941 # Supported since Solaris 2.6 (maybe 2.5.1?)
14944 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14946 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' ;;
14949 link_all_deplibs_F77=yes
14953 if test "x$host_vendor" = xsequent; then
14954 # Use $CC to link under sequent, because it throws in some extra .o
14955 # files that make .init and .fini sections work.
14956 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14958 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14960 hardcode_libdir_flag_spec_F77='-L$libdir'
14961 hardcode_direct_F77=yes
14962 hardcode_minus_L_F77=yes
14963 hardcode_shlibpath_var_F77=no
14967 case $host_vendor in
14969 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14970 hardcode_direct_F77=yes # is this really true???
14973 ## LD is ld it makes a PLAMLIB
14974 ## CC just makes a GrossModule.
14975 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14976 reload_cmds_F77='$CC -r -o $output$reload_objs'
14977 hardcode_direct_F77=no
14980 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14981 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14984 runpath_var='LD_RUN_PATH'
14985 hardcode_shlibpath_var_F77=no
14989 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14990 hardcode_shlibpath_var_F77=no
14991 export_dynamic_flag_spec_F77='-Bexport'
14995 if test -d /usr/nec; then
14996 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14997 hardcode_shlibpath_var_F77=no
14998 runpath_var=LD_RUN_PATH
14999 hardcode_runpath_var=yes
15004 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15005 no_undefined_flag_F77='${wl}-z,text'
15006 archive_cmds_need_lc_F77=no
15007 hardcode_shlibpath_var_F77=no
15008 runpath_var='LD_RUN_PATH'
15010 if test "$GCC" = yes; then
15011 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15012 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15014 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15015 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15019 sysv5* | sco3.2v5* | sco5v6*)
15020 # Note: We can NOT use -z defs as we might desire, because we do not
15021 # link with -lc, and that would cause any symbols used from libc to
15022 # always be unresolved, which means just about no library would
15023 # ever link correctly. If we're not using GNU ld we use -z text
15024 # though, which does catch some bad symbols but isn't as heavy-handed
15026 no_undefined_flag_F77='${wl}-z,text'
15027 allow_undefined_flag_F77='${wl}-z,nodefs'
15028 archive_cmds_need_lc_F77=no
15029 hardcode_shlibpath_var_F77=no
15030 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15031 hardcode_libdir_separator_F77=':'
15032 link_all_deplibs_F77=yes
15033 export_dynamic_flag_spec_F77='${wl}-Bexport'
15034 runpath_var='LD_RUN_PATH'
15036 if test "$GCC" = yes; then
15037 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15038 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15040 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15041 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15046 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15047 hardcode_libdir_flag_spec_F77='-L$libdir'
15048 hardcode_shlibpath_var_F77=no
15057 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15058 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15059 test "$ld_shlibs_F77" = no && can_build_shared=no
15062 # Do we need to explicitly link libc?
15064 case "x$archive_cmds_need_lc_F77" in
15066 # Assume -lc should be added
15067 archive_cmds_need_lc_F77=yes
15069 if test "$enable_shared" = yes && test "$GCC" = yes; then
15070 case $archive_cmds_F77 in
15072 # FIXME: we may have to deal with multi-command sequences.
15075 # Test whether the compiler implicitly links with -lc since on some
15076 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15077 # to ld, don't add -lc before -lgcc.
15078 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15079 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15081 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15084 (eval $ac_compile) 2>&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } 2>conftest.err; then
15090 libobjs=conftest.$ac_objext
15092 wl=$lt_prog_compiler_wl_F77
15093 pic_flag=$lt_prog_compiler_pic_F77
15099 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15100 allow_undefined_flag_F77=
15101 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15102 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }
15107 archive_cmds_need_lc_F77=no
15109 archive_cmds_need_lc_F77=yes
15111 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15113 cat conftest.err 1>&5
15116 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15117 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15124 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15125 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15126 library_names_spec=
15127 libname_spec='lib$name'
15131 postuninstall_cmds=
15135 shlibpath_overrides_runpath=unknown
15137 dynamic_linker="$host_os ld.so"
15138 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15139 if test "$GCC" = yes; then
15140 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15141 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15142 # if the path contains ";" then we assume it to be the separator
15143 # otherwise default to the standard path separator (i.e. ":") - it is
15144 # assumed that no part of a normal pathname contains ";" but that should
15145 # okay in the real world where ";" in dirpaths is itself problematic.
15146 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15148 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15151 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15153 need_lib_prefix=unknown
15154 hardcode_into_libs=no
15156 # when you set need_version to no, make sure it does not cause -set_version
15157 # flags to be left without arguments
15158 need_version=unknown
15163 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15164 shlibpath_var=LIBPATH
15166 # AIX 3 has no versioning support, so we append a major version to the name.
15167 soname_spec='${libname}${release}${shared_ext}$major'
15174 hardcode_into_libs=yes
15175 if test "$host_cpu" = ia64; then
15176 # AIX 5 supports IA64
15177 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15178 shlibpath_var=LD_LIBRARY_PATH
15180 # With GCC up to 2.95.x, collect2 would create an import file
15181 # for dependence libraries. The import file would start with
15182 # the line `#! .'. This would cause the generated library to
15183 # depend on `.', always an invalid library. This was fixed in
15184 # development snapshots of GCC prior to 3.0.
15186 aix4 | aix4.[01] | aix4.[01].*)
15187 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15189 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15192 can_build_shared=no
15196 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15197 # soname into executable. Probably we can add versioning support to
15198 # collect2, so additional links can be useful in future.
15199 if test "$aix_use_runtimelinking" = yes; then
15200 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15201 # instead of lib<name>.a to let people know that these are not
15202 # typical AIX shared libraries.
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 # We preserve .a as extension for shared libraries through AIX4.2
15206 # and later when we are not doing run time linking.
15207 library_names_spec='${libname}${release}.a $libname.a'
15208 soname_spec='${libname}${release}${shared_ext}$major'
15210 shlibpath_var=LIBPATH
15215 library_names_spec='$libname.ixlibrary $libname.a'
15216 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15217 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'
15221 library_names_spec='${libname}${shared_ext}'
15222 dynamic_linker="$host_os ld.so"
15223 shlibpath_var=LIBRARY_PATH
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15230 soname_spec='${libname}${release}${shared_ext}$major'
15231 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15232 shlibpath_var=LD_LIBRARY_PATH
15233 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15234 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15235 # the default ld.so.conf also contains /usr/contrib/lib and
15236 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15237 # libtool to hard-code these into programs
15240 cygwin* | mingw* | pw32*)
15241 version_type=windows
15246 case $GCC,$host_os in
15247 yes,cygwin* | yes,mingw* | yes,pw32*)
15248 library_names_spec='$libname.dll.a'
15249 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15250 postinstall_cmds='base_file=`basename \${file}`~
15251 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15252 dldir=$destdir/`dirname \$dlpath`~
15253 test -d \$dldir || mkdir -p \$dldir~
15254 $install_prog $dir/$dlname \$dldir/$dlname~
15255 chmod a+x \$dldir/$dlname'
15256 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15257 dlpath=$dir/\$dldll~
15259 shlibpath_overrides_runpath=yes
15263 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15264 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15265 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15268 # MinGW DLLs use traditional 'lib' prefix
15269 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15270 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15271 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15272 # It is most probably a Windows format PATH printed by
15273 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15274 # path with ; separators, and with drive letters. We can handle the
15275 # drive letters (cygwin fileutils understands them), so leave them,
15276 # especially as we might pass files found there to a mingw objdump,
15277 # which wouldn't understand a cygwinified path. Ahh.
15278 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15280 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15284 # pw32 DLLs use 'pw' prefix rather than 'lib'
15285 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15291 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15294 dynamic_linker='Win32 ld.exe'
15295 # FIXME: first we should search . and the directory the executable is in
15299 darwin* | rhapsody*)
15300 dynamic_linker="$host_os dyld"
15301 version_type=darwin
15304 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15305 soname_spec='${libname}${release}${major}$shared_ext'
15306 shlibpath_overrides_runpath=yes
15307 shlibpath_var=DYLD_LIBRARY_PATH
15308 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15309 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15310 if test "$GCC" = yes; then
15311 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"`
15313 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15315 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15323 soname_spec='${libname}${release}${shared_ext}$major'
15324 shlibpath_var=LD_LIBRARY_PATH
15331 freebsd* | dragonfly*)
15332 # DragonFly does not have aout. When/if they implement a new
15333 # versioning mechanism, adjust this.
15334 if test -x /usr/bin/objformat; then
15335 objformat=`/usr/bin/objformat`
15338 freebsd[123]*) objformat=aout ;;
15339 *) objformat=elf ;;
15342 version_type=freebsd-$objformat
15343 case $version_type in
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15354 shlibpath_var=LD_LIBRARY_PATH
15357 shlibpath_overrides_runpath=yes
15359 freebsd3.[01]* | freebsdelf3.[01]*)
15360 shlibpath_overrides_runpath=yes
15361 hardcode_into_libs=yes
15363 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15364 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15365 shlibpath_overrides_runpath=no
15366 hardcode_into_libs=yes
15368 freebsd*) # from 4.6 on
15369 shlibpath_overrides_runpath=yes
15370 hardcode_into_libs=yes
15379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 shlibpath_var=LD_LIBRARY_PATH
15382 hardcode_into_libs=yes
15385 hpux9* | hpux10* | hpux11*)
15386 # Give a soname corresponding to the major version so that dld.sl refuses to
15387 # link against other versions.
15394 hardcode_into_libs=yes
15395 dynamic_linker="$host_os dld.so"
15396 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15399 soname_spec='${libname}${release}${shared_ext}$major'
15400 if test "X$HPUX_IA64_MODE" = X32; then
15401 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15403 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15409 hardcode_into_libs=yes
15410 dynamic_linker="$host_os dld.sl"
15411 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15412 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15414 soname_spec='${libname}${release}${shared_ext}$major'
15415 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15416 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15420 dynamic_linker="$host_os dld.sl"
15421 shlibpath_var=SHLIB_PATH
15422 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15424 soname_spec='${libname}${release}${shared_ext}$major'
15427 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15428 postinstall_cmds='chmod 555 $lib'
15435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15436 soname_spec='${libname}${release}${shared_ext}$major'
15437 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15438 shlibpath_var=LD_LIBRARY_PATH
15439 shlibpath_overrides_runpath=no
15440 hardcode_into_libs=yes
15443 irix5* | irix6* | nonstopux*)
15445 nonstopux*) version_type=nonstopux ;;
15447 if test "$lt_cv_prog_gnu_ld" = yes; then
15455 soname_spec='${libname}${release}${shared_ext}$major'
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15458 irix5* | nonstopux*)
15459 libsuff= shlibsuff=
15462 case $LD in # libtool.m4 will add one of these switches to LD
15463 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15464 libsuff= shlibsuff= libmagic=32-bit;;
15465 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15466 libsuff=32 shlibsuff=N32 libmagic=N32;;
15467 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15468 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15469 *) libsuff= shlibsuff= libmagic=never-match;;
15473 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15474 shlibpath_overrides_runpath=no
15475 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15476 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15477 hardcode_into_libs=yes
15480 # No shared lib support for Linux oldld, aout, or coff.
15481 linux*oldld* | linux*aout* | linux*coff*)
15485 # This must be Linux ELF.
15486 linux* | k*bsd*-gnu)
15490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15491 soname_spec='${libname}${release}${shared_ext}$major'
15492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15493 shlibpath_var=LD_LIBRARY_PATH
15494 shlibpath_overrides_runpath=no
15495 # This implies no fast_install, which is unacceptable.
15496 # Some rework will be needed to allow for fast_install
15497 # before this can be enabled.
15498 hardcode_into_libs=yes
15500 # Append ld.so.conf contents to the search path
15501 if test -f /etc/ld.so.conf; then
15502 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' ' '`
15503 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15506 # We used to test for /lib/ld.so.1 and disable shared libraries on
15507 # powerpc, because MkLinux only supported shared libraries with the
15508 # GNU dynamic linker. Since this was broken with cross compilers,
15509 # most powerpc-linux boxes support dynamic linking these days and
15510 # people can always --disable-shared, the test was removed, and we
15511 # assume the GNU/Linux dynamic linker is in use.
15512 dynamic_linker='GNU/Linux ld.so'
15519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15520 soname_spec='${libname}${release}${shared_ext}$major'
15521 shlibpath_var=LD_LIBRARY_PATH
15522 shlibpath_overrides_runpath=no
15523 hardcode_into_libs=yes
15524 dynamic_linker='NetBSD ld.elf_so'
15531 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15533 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15534 dynamic_linker='NetBSD (a.out) ld.so'
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15537 soname_spec='${libname}${release}${shared_ext}$major'
15538 dynamic_linker='NetBSD ld.elf_so'
15540 shlibpath_var=LD_LIBRARY_PATH
15541 shlibpath_overrides_runpath=yes
15542 hardcode_into_libs=yes
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15548 shlibpath_var=LD_LIBRARY_PATH
15549 shlibpath_overrides_runpath=yes
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 shlibpath_var=LD_LIBRARY_PATH
15559 shlibpath_overrides_runpath=yes
15564 sys_lib_dlsearch_path_spec="/usr/lib"
15566 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15568 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15569 *) need_version=no ;;
15571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15572 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15573 shlibpath_var=LD_LIBRARY_PATH
15574 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15576 openbsd2.[89] | openbsd2.[89].*)
15577 shlibpath_overrides_runpath=no
15580 shlibpath_overrides_runpath=yes
15584 shlibpath_overrides_runpath=yes
15589 libname_spec='$name'
15592 library_names_spec='$libname${shared_ext} $libname.a'
15593 dynamic_linker='OS/2 ld.exe'
15594 shlibpath_var=LIBPATH
15597 osf3* | osf4* | osf5*)
15601 soname_spec='${libname}${release}${shared_ext}$major'
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15605 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613 soname_spec='${libname}${release}${shared_ext}$major'
15614 shlibpath_var=LD_LIBRARY_PATH
15615 shlibpath_overrides_runpath=yes
15616 hardcode_into_libs=yes
15617 # ldd complains unless libraries are executable
15618 postinstall_cmds='chmod +x $lib'
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15624 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15625 shlibpath_var=LD_LIBRARY_PATH
15626 shlibpath_overrides_runpath=yes
15627 if test "$with_gnu_ld" = yes; then
15635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15636 soname_spec='${libname}${release}${shared_ext}$major'
15637 shlibpath_var=LD_LIBRARY_PATH
15638 case $host_vendor in
15640 shlibpath_overrides_runpath=no
15642 export_dynamic_flag_spec='${wl}-Blargedynsym'
15643 runpath_var=LD_RUN_PATH
15651 shlibpath_overrides_runpath=no
15652 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15658 if test -d /usr/nec ;then
15660 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15661 soname_spec='$libname${shared_ext}.$major'
15662 shlibpath_var=LD_LIBRARY_PATH
15666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15667 version_type=freebsd-elf
15670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15671 soname_spec='${libname}${release}${shared_ext}$major'
15672 shlibpath_var=LD_LIBRARY_PATH
15673 hardcode_into_libs=yes
15674 if test "$with_gnu_ld" = yes; then
15675 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15676 shlibpath_overrides_runpath=no
15678 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15679 shlibpath_overrides_runpath=yes
15682 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15686 sys_lib_dlsearch_path_spec='/usr/lib'
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 shlibpath_var=LD_LIBRARY_PATH
15700 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15701 echo "${ECHO_T}$dynamic_linker" >&6; }
15702 test "$dynamic_linker" = no && can_build_shared=no
15704 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15705 if test "$GCC" = yes; then
15706 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15709 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15710 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15711 hardcode_action_F77=
15712 if test -n "$hardcode_libdir_flag_spec_F77" || \
15713 test -n "$runpath_var_F77" || \
15714 test "X$hardcode_automatic_F77" = "Xyes" ; then
15716 # We can hardcode non-existant directories.
15717 if test "$hardcode_direct_F77" != no &&
15718 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15719 # have to relink, otherwise we might link with an installed library
15720 # when we should be linking with a yet-to-be-installed one
15721 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15722 test "$hardcode_minus_L_F77" != no; then
15723 # Linking always hardcodes the temporary library directory.
15724 hardcode_action_F77=relink
15726 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15727 hardcode_action_F77=immediate
15730 # We cannot hardcode anything, or else we can only hardcode existing
15732 hardcode_action_F77=unsupported
15734 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15735 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15737 if test "$hardcode_action_F77" = relink; then
15738 # Fast installation is not supported
15739 enable_fast_install=no
15740 elif test "$shlibpath_overrides_runpath" = yes ||
15741 test "$enable_shared" = no; then
15742 # Fast installation is not necessary
15743 enable_fast_install=needless
15747 # The else clause should only fire when bootstrapping the
15748 # libtool distribution, otherwise you forgot to ship ltmain.sh
15749 # with your package, and you will get complaints that there are
15750 # no rules to generate ltmain.sh.
15751 if test -f "$ltmain"; then
15752 # See if we are running on zsh, and set the options which allow our commands through
15753 # without removal of \ escapes.
15754 if test -n "${ZSH_VERSION+set}" ; then
15755 setopt NO_GLOB_SUBST
15757 # Now quote all the things that may contain metacharacters while being
15758 # careful not to overquote the AC_SUBSTed values. We take copies of the
15759 # variables and quote the copies for generation of the libtool script.
15760 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15762 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15763 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15764 deplibs_check_method reload_flag reload_cmds need_locks \
15765 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15766 lt_cv_sys_global_symbol_to_c_name_address \
15767 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15768 old_postinstall_cmds old_postuninstall_cmds \
15772 lt_prog_compiler_wl_F77 \
15773 lt_prog_compiler_pic_F77 \
15774 lt_prog_compiler_static_F77 \
15775 lt_prog_compiler_no_builtin_flag_F77 \
15776 export_dynamic_flag_spec_F77 \
15777 thread_safe_flag_spec_F77 \
15778 whole_archive_flag_spec_F77 \
15779 enable_shared_with_static_runtimes_F77 \
15780 old_archive_cmds_F77 \
15781 old_archive_from_new_cmds_F77 \
15782 predep_objects_F77 \
15783 postdep_objects_F77 \
15786 compiler_lib_search_path_F77 \
15788 archive_expsym_cmds_F77 \
15789 postinstall_cmds_F77 \
15790 postuninstall_cmds_F77 \
15791 old_archive_from_expsyms_cmds_F77 \
15792 allow_undefined_flag_F77 \
15793 no_undefined_flag_F77 \
15794 export_symbols_cmds_F77 \
15795 hardcode_libdir_flag_spec_F77 \
15796 hardcode_libdir_flag_spec_ld_F77 \
15797 hardcode_libdir_separator_F77 \
15798 hardcode_automatic_F77 \
15800 module_expsym_cmds_F77 \
15801 lt_cv_prog_compiler_c_o_F77 \
15802 exclude_expsyms_F77 \
15803 include_expsyms_F77; do
15806 old_archive_cmds_F77 | \
15807 old_archive_from_new_cmds_F77 | \
15808 archive_cmds_F77 | \
15809 archive_expsym_cmds_F77 | \
15810 module_cmds_F77 | \
15811 module_expsym_cmds_F77 | \
15812 old_archive_from_expsyms_cmds_F77 | \
15813 export_symbols_cmds_F77 | \
15814 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15815 postinstall_cmds | postuninstall_cmds | \
15816 old_postinstall_cmds | old_postuninstall_cmds | \
15817 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15818 # Double-quote double-evaled strings.
15819 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15822 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15828 *'\$0 --fallback-echo"')
15829 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15835 cat <<__EOF__ >> "$cfgfile"
15836 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15838 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15840 # Shell to use when invoking shell scripts.
15843 # Whether or not to build shared libraries.
15844 build_libtool_libs=$enable_shared
15846 # Whether or not to build static libraries.
15847 build_old_libs=$enable_static
15849 # Whether or not to add -lc for building shared libraries.
15850 build_libtool_need_lc=$archive_cmds_need_lc_F77
15852 # Whether or not to disallow shared libs when runtime libs are static
15853 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15855 # Whether or not to optimize for fast installation.
15856 fast_install=$enable_fast_install
15859 host_alias=$host_alias
15863 # The build system.
15864 build_alias=$build_alias
15868 # An echo program that does not interpret backslashes.
15873 AR_FLAGS=$lt_AR_FLAGS
15878 # LTCC compiler flags.
15879 LTCFLAGS=$lt_LTCFLAGS
15881 # A language-specific compiler.
15882 CC=$lt_compiler_F77
15884 # Is the compiler the GNU C compiler?
15890 # The linker used to build libraries.
15893 # Whether we need hard or soft links.
15896 # A BSD-compatible nm program.
15899 # A symbol stripping program
15902 # Used to examine libraries when file_magic_cmd begins "file"
15903 MAGIC_CMD=$MAGIC_CMD
15905 # Used on cygwin: DLL creation program.
15908 # Used on cygwin: object dumper.
15911 # Used on cygwin: assembler.
15914 # The name of the directory that contains temporary libtool files.
15917 # How to create reloadable object files.
15918 reload_flag=$lt_reload_flag
15919 reload_cmds=$lt_reload_cmds
15921 # How to pass a linker flag through the compiler.
15922 wl=$lt_lt_prog_compiler_wl_F77
15924 # Object file suffix (normally "o").
15925 objext="$ac_objext"
15927 # Old archive suffix (normally "a").
15930 # Shared library suffix (normally ".so").
15931 shrext_cmds='$shrext_cmds'
15933 # Executable file suffix (normally "").
15936 # Additional compiler flags for building library objects.
15937 pic_flag=$lt_lt_prog_compiler_pic_F77
15940 # What is the maximum length of a command?
15941 max_cmd_len=$lt_cv_sys_max_cmd_len
15943 # Does compiler simultaneously support -c and -o options?
15944 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15946 # Must we lock files when doing compilation?
15947 need_locks=$lt_need_locks
15949 # Do we need the lib prefix for modules?
15950 need_lib_prefix=$need_lib_prefix
15952 # Do we need a version for libraries?
15953 need_version=$need_version
15955 # Whether dlopen is supported.
15956 dlopen_support=$enable_dlopen
15958 # Whether dlopen of programs is supported.
15959 dlopen_self=$enable_dlopen_self
15961 # Whether dlopen of statically linked programs is supported.
15962 dlopen_self_static=$enable_dlopen_self_static
15964 # Compiler flag to prevent dynamic linking.
15965 link_static_flag=$lt_lt_prog_compiler_static_F77
15967 # Compiler flag to turn off builtin functions.
15968 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15970 # Compiler flag to allow reflexive dlopens.
15971 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15973 # Compiler flag to generate shared objects directly from archives.
15974 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15976 # Compiler flag to generate thread-safe objects.
15977 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15979 # Library versioning type.
15980 version_type=$version_type
15982 # Format of library name prefix.
15983 libname_spec=$lt_libname_spec
15985 # List of archive names. First name is the real one, the rest are links.
15986 # The last name is the one that the linker finds with -lNAME.
15987 library_names_spec=$lt_library_names_spec
15989 # The coded name of the library, if different from the real name.
15990 soname_spec=$lt_soname_spec
15992 # Commands used to build and install an old-style archive.
15994 old_archive_cmds=$lt_old_archive_cmds_F77
15995 old_postinstall_cmds=$lt_old_postinstall_cmds
15996 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15998 # Create an old-style archive from a shared archive.
15999 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16001 # Create a temporary old-style archive to link instead of a shared archive.
16002 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16004 # Commands used to build and install a shared archive.
16005 archive_cmds=$lt_archive_cmds_F77
16006 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16007 postinstall_cmds=$lt_postinstall_cmds
16008 postuninstall_cmds=$lt_postuninstall_cmds
16010 # Commands used to build a loadable module (assumed same as above if empty)
16011 module_cmds=$lt_module_cmds_F77
16012 module_expsym_cmds=$lt_module_expsym_cmds_F77
16014 # Commands to strip libraries.
16015 old_striplib=$lt_old_striplib
16016 striplib=$lt_striplib
16018 # Dependencies to place before the objects being linked to create a
16020 predep_objects=$lt_predep_objects_F77
16022 # Dependencies to place after the objects being linked to create a
16024 postdep_objects=$lt_postdep_objects_F77
16026 # Dependencies to place before the objects being linked to create a
16028 predeps=$lt_predeps_F77
16030 # Dependencies to place after the objects being linked to create a
16032 postdeps=$lt_postdeps_F77
16034 # The library search path used internally by the compiler when linking
16035 # a shared library.
16036 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16038 # Method to check whether dependent libraries are shared objects.
16039 deplibs_check_method=$lt_deplibs_check_method
16041 # Command to use when deplibs_check_method == file_magic.
16042 file_magic_cmd=$lt_file_magic_cmd
16044 # Flag that allows shared libraries with undefined symbols to be built.
16045 allow_undefined_flag=$lt_allow_undefined_flag_F77
16047 # Flag that forces no undefined symbols.
16048 no_undefined_flag=$lt_no_undefined_flag_F77
16050 # Commands used to finish a libtool library installation in a directory.
16051 finish_cmds=$lt_finish_cmds
16053 # Same as above, but a single script fragment to be evaled but not shown.
16054 finish_eval=$lt_finish_eval
16056 # Take the output of nm and produce a listing of raw symbols and C names.
16057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16059 # Transform the output of nm in a proper C declaration
16060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16062 # Transform the output of nm in a C name address pair
16063 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16065 # This is the shared library runtime path variable.
16066 runpath_var=$runpath_var
16068 # This is the shared library path variable.
16069 shlibpath_var=$shlibpath_var
16071 # Is shlibpath searched before the hard-coded library search path?
16072 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16074 # How to hardcode a shared library path into an executable.
16075 hardcode_action=$hardcode_action_F77
16077 # Whether we should hardcode library paths into libraries.
16078 hardcode_into_libs=$hardcode_into_libs
16080 # Flag to hardcode \$libdir into a binary during linking.
16081 # This must work even if \$libdir does not exist.
16082 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16084 # If ld is used when linking, flag to hardcode \$libdir into
16085 # a binary during linking. This must work even if \$libdir does
16087 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16089 # Whether we need a single -rpath flag with a separated argument.
16090 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16092 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16093 # resulting binary.
16094 hardcode_direct=$hardcode_direct_F77
16096 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16097 # resulting binary.
16098 hardcode_minus_L=$hardcode_minus_L_F77
16100 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16101 # the resulting binary.
16102 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16104 # Set to yes if building a shared library automatically hardcodes DIR into the library
16105 # and all subsequent libraries and executables linked against it.
16106 hardcode_automatic=$hardcode_automatic_F77
16108 # Variables whose values should be saved in libtool wrapper scripts and
16109 # restored at relink time.
16110 variables_saved_for_relink="$variables_saved_for_relink"
16112 # Whether libtool must link a program against all its dependency libraries.
16113 link_all_deplibs=$link_all_deplibs_F77
16115 # Compile-time system search path for libraries
16116 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16118 # Run-time system search path for libraries
16119 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16121 # Fix the shell variable \$srcfile for the compiler.
16122 fix_srcfile_path="$fix_srcfile_path_F77"
16124 # Set to yes if exported symbols are required.
16125 always_export_symbols=$always_export_symbols_F77
16127 # The commands to list exported symbols.
16128 export_symbols_cmds=$lt_export_symbols_cmds_F77
16130 # The commands to extract the exported symbol list from a shared archive.
16131 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16133 # Symbols that should not be listed in the preloaded symbols.
16134 exclude_expsyms=$lt_exclude_expsyms_F77
16136 # Symbols that must always be exported.
16137 include_expsyms=$lt_include_expsyms_F77
16139 # ### END LIBTOOL TAG CONFIG: $tagname
16145 # If there is no Makefile yet, we rely on a make rule to execute
16146 # `config.status --recheck' to rerun these tests and create the
16147 # libtool script then.
16148 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16149 if test -f "$ltmain_in"; then
16150 test -f Makefile && make "$ltmain"
16156 ac_cpp='$CPP $CPPFLAGS'
16157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16169 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16172 # Source file extension for Java test sources.
16175 # Object file extension for compiled Java test sources.
16179 # Code to be used in simple compile tests
16180 lt_simple_compile_test_code="class foo {}\n"
16182 # Code to be used in simple link tests
16183 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16185 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16187 # If no C compiler was specified, use CC.
16190 # If no C compiler flags were specified, use CFLAGS.
16191 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16193 # Allow CC to be a program name with arguments.
16197 # save warnings/boilerplate of simple test code
16198 ac_outfile=conftest.$ac_objext
16199 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16200 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16201 _lt_compiler_boilerplate=`cat conftest.err`
16204 ac_outfile=conftest.$ac_objext
16205 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16206 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16207 _lt_linker_boilerplate=`cat conftest.err`
16211 # Allow CC to be a program name with arguments.
16216 for cc_temp in $compiler""; do
16218 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16219 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16224 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16227 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16228 archive_cmds_need_lc_GCJ=no
16230 old_archive_cmds_GCJ=$old_archive_cmds
16233 lt_prog_compiler_no_builtin_flag_GCJ=
16235 if test "$GCC" = yes; then
16236 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16239 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16240 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16241 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16242 echo $ECHO_N "(cached) $ECHO_C" >&6
16244 lt_cv_prog_compiler_rtti_exceptions=no
16245 ac_outfile=conftest.$ac_objext
16246 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16247 lt_compiler_flag="-fno-rtti -fno-exceptions"
16248 # Insert the option either (1) after the last *FLAGS variable, or
16249 # (2) before a word containing "conftest.", or (3) at the end.
16250 # Note that $ac_compile itself does not contain backslashes and begins
16251 # with a dollar sign (not a hyphen), so the echo should work correctly.
16252 # The option is referenced via a variable to avoid confusing sed.
16253 lt_compile=`echo "$ac_compile" | $SED \
16254 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16255 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16256 -e 's:$: $lt_compiler_flag:'`
16257 (eval echo "\"\$as_me:16257: $lt_compile\"" >&5)
16258 (eval "$lt_compile" 2>conftest.err)
16260 cat conftest.err >&5
16261 echo "$as_me:16261: \$? = $ac_status" >&5
16262 if (exit $ac_status) && test -s "$ac_outfile"; then
16263 # The compiler can only warn and ignore the option if not recognized
16264 # So say no if there are warnings other than the usual output.
16265 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16266 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16267 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16268 lt_cv_prog_compiler_rtti_exceptions=yes
16274 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16275 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16277 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16278 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16285 lt_prog_compiler_wl_GCJ=
16286 lt_prog_compiler_pic_GCJ=
16287 lt_prog_compiler_static_GCJ=
16289 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16290 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16292 if test "$GCC" = yes; then
16293 lt_prog_compiler_wl_GCJ='-Wl,'
16294 lt_prog_compiler_static_GCJ='-static'
16298 # All AIX code is PIC.
16299 if test "$host_cpu" = ia64; then
16300 # AIX 5 now supports IA64 processor
16301 lt_prog_compiler_static_GCJ='-Bstatic'
16306 # FIXME: we need at least 68020 code to build shared libraries, but
16307 # adding the `-m68020' flag to GCC prevents building anything better,
16309 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16312 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16313 # PIC is the default for these OSes.
16316 mingw* | pw32* | os2*)
16317 # This hack is so that the source file can tell whether it is being
16318 # built for inclusion in a dll (and should export symbols for example).
16319 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16322 darwin* | rhapsody*)
16323 # PIC is the default on this platform
16324 # Common symbols not allowed in MH_DYLIB files
16325 lt_prog_compiler_pic_GCJ='-fno-common'
16329 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16330 # Instead, we relocate shared libraries at runtime.
16334 # Just because we use GCC doesn't mean we suddenly get shared libraries
16335 # on systems that don't support them.
16336 lt_prog_compiler_can_build_shared_GCJ=no
16341 if test -d /usr/nec; then
16342 lt_prog_compiler_pic_GCJ=-Kconform_pic
16347 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16348 # not for PA HP-UX.
16354 lt_prog_compiler_pic_GCJ='-fPIC'
16360 lt_prog_compiler_pic_GCJ='-fPIC'
16364 # PORTME Check for flag to pass linker flags through the system compiler.
16367 lt_prog_compiler_wl_GCJ='-Wl,'
16368 if test "$host_cpu" = ia64; then
16369 # AIX 5 now supports IA64 processor
16370 lt_prog_compiler_static_GCJ='-Bstatic'
16372 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16376 # PIC is the default on this platform
16377 # Common symbols not allowed in MH_DYLIB files
16378 case $cc_basename in
16380 lt_prog_compiler_pic_GCJ='-qnocommon'
16381 lt_prog_compiler_wl_GCJ='-Wl,'
16386 mingw* | pw32* | os2*)
16387 # This hack is so that the source file can tell whether it is being
16388 # built for inclusion in a dll (and should export symbols for example).
16389 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16392 hpux9* | hpux10* | hpux11*)
16393 lt_prog_compiler_wl_GCJ='-Wl,'
16394 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16395 # not for PA HP-UX.
16401 lt_prog_compiler_pic_GCJ='+Z'
16404 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16405 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16408 irix5* | irix6* | nonstopux*)
16409 lt_prog_compiler_wl_GCJ='-Wl,'
16410 # PIC (with -KPIC) is the default.
16411 lt_prog_compiler_static_GCJ='-non_shared'
16415 lt_prog_compiler_pic_GCJ='-KPIC'
16416 lt_prog_compiler_static_GCJ='-Bstatic'
16419 linux* | k*bsd*-gnu)
16420 case $cc_basename in
16422 lt_prog_compiler_wl_GCJ='-Wl,'
16423 lt_prog_compiler_pic_GCJ='-KPIC'
16424 lt_prog_compiler_static_GCJ='-static'
16426 pgcc* | pgf77* | pgf90* | pgf95*)
16427 # Portland Group compilers (*not* the Pentium gcc compiler,
16428 # which looks to be a dead project)
16429 lt_prog_compiler_wl_GCJ='-Wl,'
16430 lt_prog_compiler_pic_GCJ='-fpic'
16431 lt_prog_compiler_static_GCJ='-Bstatic'
16434 lt_prog_compiler_wl_GCJ='-Wl,'
16435 # All Alpha code is PIC.
16436 lt_prog_compiler_static_GCJ='-non_shared'
16441 osf3* | osf4* | osf5*)
16442 lt_prog_compiler_wl_GCJ='-Wl,'
16443 # All OSF/1 code is PIC.
16444 lt_prog_compiler_static_GCJ='-non_shared'
16448 lt_prog_compiler_pic_GCJ='-KPIC'
16449 lt_prog_compiler_static_GCJ='-Bstatic'
16450 case $cc_basename in
16451 f77* | f90* | f95*)
16452 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16454 lt_prog_compiler_wl_GCJ='-Wl,';;
16459 lt_prog_compiler_wl_GCJ='-Qoption ld '
16460 lt_prog_compiler_pic_GCJ='-PIC'
16461 lt_prog_compiler_static_GCJ='-Bstatic'
16464 sysv4 | sysv4.2uw2* | sysv4.3*)
16465 lt_prog_compiler_wl_GCJ='-Wl,'
16466 lt_prog_compiler_pic_GCJ='-KPIC'
16467 lt_prog_compiler_static_GCJ='-Bstatic'
16471 if test -d /usr/nec ;then
16472 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16473 lt_prog_compiler_static_GCJ='-Bstatic'
16477 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16478 lt_prog_compiler_wl_GCJ='-Wl,'
16479 lt_prog_compiler_pic_GCJ='-KPIC'
16480 lt_prog_compiler_static_GCJ='-Bstatic'
16484 lt_prog_compiler_wl_GCJ='-Wl,'
16485 lt_prog_compiler_can_build_shared_GCJ=no
16489 lt_prog_compiler_pic_GCJ='-pic'
16490 lt_prog_compiler_static_GCJ='-Bstatic'
16494 lt_prog_compiler_can_build_shared_GCJ=no
16499 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16500 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16503 # Check to make sure the PIC flag actually works.
16505 if test -n "$lt_prog_compiler_pic_GCJ"; then
16507 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16508 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16509 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16510 echo $ECHO_N "(cached) $ECHO_C" >&6
16512 lt_prog_compiler_pic_works_GCJ=no
16513 ac_outfile=conftest.$ac_objext
16514 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16515 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16516 # Insert the option either (1) after the last *FLAGS variable, or
16517 # (2) before a word containing "conftest.", or (3) at the end.
16518 # Note that $ac_compile itself does not contain backslashes and begins
16519 # with a dollar sign (not a hyphen), so the echo should work correctly.
16520 # The option is referenced via a variable to avoid confusing sed.
16521 lt_compile=`echo "$ac_compile" | $SED \
16522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16524 -e 's:$: $lt_compiler_flag:'`
16525 (eval echo "\"\$as_me:16525: $lt_compile\"" >&5)
16526 (eval "$lt_compile" 2>conftest.err)
16528 cat conftest.err >&5
16529 echo "$as_me:16529: \$? = $ac_status" >&5
16530 if (exit $ac_status) && test -s "$ac_outfile"; then
16531 # The compiler can only warn and ignore the option if not recognized
16532 # So say no if there are warnings other than the usual output.
16533 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16534 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16535 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16536 lt_prog_compiler_pic_works_GCJ=yes
16542 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16543 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16545 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16546 case $lt_prog_compiler_pic_GCJ in
16548 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16551 lt_prog_compiler_pic_GCJ=
16552 lt_prog_compiler_can_build_shared_GCJ=no
16557 # For platforms which do not support PIC, -DPIC is meaningless:
16559 lt_prog_compiler_pic_GCJ=
16562 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16567 # Check to make sure the static flag actually works.
16569 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16570 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16571 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16572 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16575 lt_prog_compiler_static_works_GCJ=no
16576 save_LDFLAGS="$LDFLAGS"
16577 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16578 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16579 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16580 # The linker can only warn and ignore the option if not recognized
16581 # So say no if there are warnings
16582 if test -s conftest.err; then
16583 # Append any errors to the config.log.
16584 cat conftest.err 1>&5
16585 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16586 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16587 if diff conftest.exp conftest.er2 >/dev/null; then
16588 lt_prog_compiler_static_works_GCJ=yes
16591 lt_prog_compiler_static_works_GCJ=yes
16595 LDFLAGS="$save_LDFLAGS"
16598 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16599 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16601 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16604 lt_prog_compiler_static_GCJ=
16608 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16609 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16610 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 lt_cv_prog_compiler_c_o_GCJ=no
16614 $rm -r conftest 2>/dev/null
16618 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16620 lt_compiler_flag="-o out/conftest2.$ac_objext"
16621 # Insert the option either (1) after the last *FLAGS variable, or
16622 # (2) before a word containing "conftest.", or (3) at the end.
16623 # Note that $ac_compile itself does not contain backslashes and begins
16624 # with a dollar sign (not a hyphen), so the echo should work correctly.
16625 lt_compile=`echo "$ac_compile" | $SED \
16626 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16627 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16628 -e 's:$: $lt_compiler_flag:'`
16629 (eval echo "\"\$as_me:16629: $lt_compile\"" >&5)
16630 (eval "$lt_compile" 2>out/conftest.err)
16632 cat out/conftest.err >&5
16633 echo "$as_me:16633: \$? = $ac_status" >&5
16634 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16636 # The compiler can only warn and ignore the option if not recognized
16637 # So say no if there are warnings
16638 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16639 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16640 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16641 lt_cv_prog_compiler_c_o_GCJ=yes
16646 # SGI C++ compiler will create directory out/ii_files/ for
16647 # template instantiation
16648 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16649 $rm out/* && rmdir out
16655 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16656 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16659 hard_links="nottested"
16660 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16661 # do not overwrite the value of need_locks provided by the user
16662 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16663 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16668 ln conftest.a conftest.b 2>&5 || hard_links=no
16669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16670 { echo "$as_me:$LINENO: result: $hard_links" >&5
16671 echo "${ECHO_T}$hard_links" >&6; }
16672 if test "$hard_links" = no; then
16673 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16674 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16681 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16682 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16685 allow_undefined_flag_GCJ=
16686 enable_shared_with_static_runtimes_GCJ=no
16688 archive_expsym_cmds_GCJ=
16689 old_archive_From_new_cmds_GCJ=
16690 old_archive_from_expsyms_cmds_GCJ=
16691 export_dynamic_flag_spec_GCJ=
16692 whole_archive_flag_spec_GCJ=
16693 thread_safe_flag_spec_GCJ=
16694 hardcode_libdir_flag_spec_GCJ=
16695 hardcode_libdir_flag_spec_ld_GCJ=
16696 hardcode_libdir_separator_GCJ=
16697 hardcode_direct_GCJ=no
16698 hardcode_minus_L_GCJ=no
16699 hardcode_shlibpath_var_GCJ=unsupported
16700 link_all_deplibs_GCJ=unknown
16701 hardcode_automatic_GCJ=no
16703 module_expsym_cmds_GCJ=
16704 always_export_symbols_GCJ=no
16705 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16706 # include_expsyms should be a list of space-separated symbols to be *always*
16707 # included in the symbol list
16708 include_expsyms_GCJ=
16709 # exclude_expsyms can be an extended regexp of symbols to exclude
16710 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16711 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16712 # as well as any symbol that contains `d'.
16713 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16714 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16715 # platforms (ab)use it in PIC code, but their linkers get confused if
16716 # the symbol is explicitly referenced. Since portable code cannot
16717 # rely on this symbol name, it's probably fine to never include it in
16718 # preloaded symbol tables.
16719 extract_expsyms_cmds=
16720 # Just being paranoid about ensuring that cc_basename is set.
16721 for cc_temp in $compiler""; do
16723 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16724 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16729 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16732 cygwin* | mingw* | pw32*)
16733 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16734 # When not using gcc, we currently assume that we are using
16735 # Microsoft Visual C++.
16736 if test "$GCC" != yes; then
16741 # we just hope/assume this is gcc and not c89 (= MSVC++)
16750 if test "$with_gnu_ld" = yes; then
16751 # If archive_cmds runs LD, not CC, wlarc should be empty
16754 # Set some defaults for GNU ld with shared library support. These
16755 # are reset later if shared libraries are not supported. Putting them
16756 # here allows them to be overridden if necessary.
16757 runpath_var=LD_RUN_PATH
16758 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16759 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16760 # ancient GNU ld didn't support --whole-archive et. al.
16761 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16762 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16764 whole_archive_flag_spec_GCJ=
16766 supports_anon_versioning=no
16767 case `$LD -v 2>/dev/null` in
16768 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16769 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16770 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16771 *\ 2.11.*) ;; # other 2.11 versions
16772 *) supports_anon_versioning=yes ;;
16775 # See if GNU ld supports shared libraries.
16777 aix3* | aix4* | aix5*)
16778 # On AIX/PPC, the GNU linker is very broken
16779 if test "$host_cpu" != ia64; then
16783 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16784 *** to be unable to reliably create shared libraries on AIX.
16785 *** Therefore, libtool is disabling shared libraries support. If you
16786 *** really care for shared libraries, you may want to modify your PATH
16787 *** so that a non-GNU linker is found, and then restart.
16794 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)'
16795 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16796 hardcode_minus_L_GCJ=yes
16798 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16799 # that the semantics of dynamic libraries on AmigaOS, at least up
16800 # to version 4, is to share data among multiple programs linked
16801 # with the same dynamic library. Since this doesn't match the
16802 # behavior of shared libraries on other platforms, we can't use
16808 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16809 allow_undefined_flag_GCJ=unsupported
16810 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16811 # support --undefined. This deserves some investigation. FIXME
16812 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16818 cygwin* | mingw* | pw32*)
16819 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16820 # as there is no search path for DLLs.
16821 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16822 allow_undefined_flag_GCJ=unsupported
16823 always_export_symbols_GCJ=no
16824 enable_shared_with_static_runtimes_GCJ=yes
16825 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16827 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16828 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16829 # If the export-symbols file already is a .def file (1st line
16830 # is EXPORTS), use it as is; otherwise, prepend...
16831 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16832 cp $export_symbols $output_objdir/$soname.def;
16834 echo EXPORTS > $output_objdir/$soname.def;
16835 cat $export_symbols >> $output_objdir/$soname.def;
16837 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16844 hardcode_direct_GCJ=no
16845 hardcode_shlibpath_var_GCJ=no
16846 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16847 export_dynamic_flag_spec_GCJ='${wl}-E'
16848 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16849 # Instead, shared libraries are loaded at an image base (0x10000000 by
16850 # default) and relocated if they conflict, which is a slow very memory
16851 # consuming and fragmenting process. To avoid this, we pick a random,
16852 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16853 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16854 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'
16855 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'
16858 linux* | k*bsd*-gnu)
16859 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16861 case $cc_basename,$host_cpu in
16862 pgcc*) # Portland Group C compiler
16863 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'
16864 tmp_addflag=' $pic_flag'
16866 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16867 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'
16868 tmp_addflag=' $pic_flag -Mnomain' ;;
16869 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16870 tmp_addflag=' -i_dynamic' ;;
16871 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16872 tmp_addflag=' -i_dynamic -nofor_main' ;;
16873 ifc* | ifort*) # Intel Fortran compiler
16874 tmp_addflag=' -nofor_main' ;;
16876 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16878 if test $supports_anon_versioning = yes; then
16879 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16880 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16881 $echo "local: *; };" >> $output_objdir/$libname.ver~
16882 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16884 link_all_deplibs_GCJ=no
16890 netbsd* | netbsdelf*-gnu)
16891 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16892 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16895 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16896 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16901 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16905 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16906 *** create shared libraries on Solaris systems. Therefore, libtool
16907 *** is disabling shared libraries support. We urge you to upgrade GNU
16908 *** binutils to release 2.9.1 or newer. Another option is to modify
16909 *** your PATH or compiler configuration so that the native linker is
16910 *** used, and then restart.
16913 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16914 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16915 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16922 case `$LD -v 2>&1` in
16923 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16927 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16928 *** reliably create shared libraries on SCO systems. Therefore, libtool
16929 *** is disabling shared libraries support. We urge you to upgrade GNU
16930 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16931 *** your PATH or compiler configuration so that the native linker is
16932 *** used, and then restart.
16937 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16938 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16939 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16940 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16949 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16951 hardcode_direct_GCJ=yes
16952 hardcode_shlibpath_var_GCJ=no
16956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16957 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16958 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16965 if test "$ld_shlibs_GCJ" = no; then
16967 hardcode_libdir_flag_spec_GCJ=
16968 export_dynamic_flag_spec_GCJ=
16969 whole_archive_flag_spec_GCJ=
16972 # PORTME fill in a description of your system's linker (not GNU ld)
16975 allow_undefined_flag_GCJ=unsupported
16976 always_export_symbols_GCJ=yes
16977 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'
16978 # Note: this linker hardcodes the directories in LIBPATH if there
16979 # are no directories specified by -L.
16980 hardcode_minus_L_GCJ=yes
16981 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16982 # Neither direct hardcoding nor static linking is supported with a
16984 hardcode_direct_GCJ=unsupported
16989 if test "$host_cpu" = ia64; then
16990 # On IA64, the linker does run time linking by default, so we don't
16991 # have to do anything special.
16992 aix_use_runtimelinking=no
16993 exp_sym_flag='-Bexport'
16996 # If we're using GNU nm, then we don't want the "-C" option.
16997 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16998 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16999 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'
17001 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'
17003 aix_use_runtimelinking=no
17005 # Test if we are trying to use run time linking or normal
17006 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17007 # need to do runtime linking.
17008 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17009 for ld_flag in $LDFLAGS; do
17010 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17011 aix_use_runtimelinking=yes
17018 exp_sym_flag='-bexport'
17019 no_entry_flag='-bnoentry'
17022 # When large executables or shared objects are built, AIX ld can
17023 # have problems creating the table of contents. If linking a library
17024 # or program results in "error TOC overflow" add -mminimal-toc to
17025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17028 archive_cmds_GCJ=''
17029 hardcode_direct_GCJ=yes
17030 hardcode_libdir_separator_GCJ=':'
17031 link_all_deplibs_GCJ=yes
17033 if test "$GCC" = yes; then
17034 case $host_os in aix4.[012]|aix4.[012].*)
17035 # We only want to do this on AIX 4.2 and lower, the check
17036 # below for broken collect2 doesn't work under 4.3+
17037 collect2name=`${CC} -print-prog-name=collect2`
17038 if test -f "$collect2name" && \
17039 strings "$collect2name" | grep resolve_lib_name >/dev/null
17041 # We have reworked collect2
17042 hardcode_direct_GCJ=yes
17044 # We have old collect2
17045 hardcode_direct_GCJ=unsupported
17046 # It fails to find uninstalled libraries when the uninstalled
17047 # path is not listed in the libpath. Setting hardcode_minus_L
17048 # to unsupported forces relinking
17049 hardcode_minus_L_GCJ=yes
17050 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17051 hardcode_libdir_separator_GCJ=
17055 shared_flag='-shared'
17056 if test "$aix_use_runtimelinking" = yes; then
17057 shared_flag="$shared_flag "'${wl}-G'
17061 if test "$host_cpu" = ia64; then
17062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17063 # chokes on -Wl,-G. The following line is correct:
17066 if test "$aix_use_runtimelinking" = yes; then
17067 shared_flag='${wl}-G'
17069 shared_flag='${wl}-bM:SRE'
17074 # It seems that -bexpall does not export symbols beginning with
17075 # underscore (_), so it is better to generate a list of symbols to export.
17076 always_export_symbols_GCJ=yes
17077 if test "$aix_use_runtimelinking" = yes; then
17078 # Warning - without using the other runtime loading flags (-brtl),
17079 # -berok will link without error, but may produce a broken library.
17080 allow_undefined_flag_GCJ='-berok'
17081 # Determine the default libpath from the value encoded in an empty executable.
17082 cat >conftest.$ac_ext <<_ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h. */
17097 rm -f conftest.$ac_objext conftest$ac_exeext
17098 if { (ac_try="$ac_link"
17099 case "(($ac_try" in
17100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17101 *) ac_try_echo=$ac_try;;
17103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17104 (eval "$ac_link") 2>conftest.er1
17106 grep -v '^ *+' conftest.er1 >conftest.err
17108 cat conftest.err >&5
17109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } && {
17111 test -z "$ac_c_werror_flag" ||
17112 test ! -s conftest.err
17113 } && test -s conftest$ac_exeext &&
17114 $as_test_x conftest$ac_exeext; then
17116 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17118 # Check for a 64-bit object if we didn't find anything.
17119 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; }
17122 echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17129 conftest$ac_exeext conftest.$ac_ext
17130 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17132 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17133 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"
17135 if test "$host_cpu" = ia64; then
17136 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17137 allow_undefined_flag_GCJ="-z nodefs"
17138 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"
17140 # Determine the default libpath from the value encoded in an empty executable.
17141 cat >conftest.$ac_ext <<_ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17156 rm -f conftest.$ac_objext conftest$ac_exeext
17157 if { (ac_try="$ac_link"
17158 case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_link") 2>conftest.er1
17165 grep -v '^ *+' conftest.er1 >conftest.err
17167 cat conftest.err >&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } && {
17170 test -z "$ac_c_werror_flag" ||
17171 test ! -s conftest.err
17172 } && test -s conftest$ac_exeext &&
17173 $as_test_x conftest$ac_exeext; then
17175 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17177 # Check for a 64-bit object if we didn't find anything.
17178 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; }
17181 echo "$as_me: failed program was:" >&5
17182 sed 's/^/| /' conftest.$ac_ext >&5
17187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17188 conftest$ac_exeext conftest.$ac_ext
17189 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17191 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17192 # Warning - without using the other run time loading flags,
17193 # -berok will link without error, but may produce a broken library.
17194 no_undefined_flag_GCJ=' ${wl}-bernotok'
17195 allow_undefined_flag_GCJ=' ${wl}-berok'
17196 # Exported symbols can be pulled into shared objects from archives
17197 whole_archive_flag_spec_GCJ='$convenience'
17198 archive_cmds_need_lc_GCJ=yes
17199 # This is similar to how AIX traditionally builds its shared libraries.
17200 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'
17206 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)'
17207 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17208 hardcode_minus_L_GCJ=yes
17209 # see comment about different semantics on the GNU ld section
17214 export_dynamic_flag_spec_GCJ=-rdynamic
17217 cygwin* | mingw* | pw32*)
17218 # When not using gcc, we currently assume that we are using
17219 # Microsoft Visual C++.
17220 # hardcode_libdir_flag_spec is actually meaningless, as there is
17221 # no search path for DLLs.
17222 hardcode_libdir_flag_spec_GCJ=' '
17223 allow_undefined_flag_GCJ=unsupported
17224 # Tell ltmain to make .lib files, not .a files.
17226 # Tell ltmain to make .dll files, not .so files.
17228 # FIXME: Setting linknames here is a bad hack.
17229 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17230 # The linker will automatically build a .lib file if we build a DLL.
17231 old_archive_From_new_cmds_GCJ='true'
17232 # FIXME: Should let the user specify the lib program.
17233 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17234 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17235 enable_shared_with_static_runtimes_GCJ=yes
17238 darwin* | rhapsody*)
17240 rhapsody* | darwin1.[012])
17241 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17244 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17245 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17247 case ${MACOSX_DEPLOYMENT_TARGET} in
17249 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17252 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17258 archive_cmds_need_lc_GCJ=no
17259 hardcode_direct_GCJ=no
17260 hardcode_automatic_GCJ=yes
17261 hardcode_shlibpath_var_GCJ=unsupported
17262 whole_archive_flag_spec_GCJ=''
17263 link_all_deplibs_GCJ=yes
17264 if test "$GCC" = yes ; then
17265 output_verbose_link_cmd='echo'
17266 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17267 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17269 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17270 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17272 case $cc_basename in
17274 output_verbose_link_cmd='echo'
17275 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17276 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17277 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17278 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}'
17279 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}'
17289 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17290 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17291 hardcode_shlibpath_var_GCJ=no
17298 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17299 # support. Future versions do this automatically, but an explicit c++rt0.o
17300 # does not break anything, and helps significantly (at the cost of a little
17303 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17304 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17305 hardcode_direct_GCJ=yes
17306 hardcode_shlibpath_var_GCJ=no
17309 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17311 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17312 hardcode_direct_GCJ=yes
17313 hardcode_minus_L_GCJ=yes
17314 hardcode_shlibpath_var_GCJ=no
17317 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17318 freebsd* | dragonfly*)
17319 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17320 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17321 hardcode_direct_GCJ=yes
17322 hardcode_shlibpath_var_GCJ=no
17326 if test "$GCC" = yes; then
17327 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'
17329 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'
17331 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17332 hardcode_libdir_separator_GCJ=:
17333 hardcode_direct_GCJ=yes
17335 # hardcode_minus_L: Not really in the search PATH,
17336 # but as the default location of the library.
17337 hardcode_minus_L_GCJ=yes
17338 export_dynamic_flag_spec_GCJ='${wl}-E'
17342 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17343 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17345 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17347 if test "$with_gnu_ld" = no; then
17348 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17349 hardcode_libdir_separator_GCJ=:
17351 hardcode_direct_GCJ=yes
17352 export_dynamic_flag_spec_GCJ='${wl}-E'
17354 # hardcode_minus_L: Not really in the search PATH,
17355 # but as the default location of the library.
17356 hardcode_minus_L_GCJ=yes
17361 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17364 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17367 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17370 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17376 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17379 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17382 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17386 if test "$with_gnu_ld" = no; then
17387 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17388 hardcode_libdir_separator_GCJ=:
17392 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17393 hardcode_direct_GCJ=no
17394 hardcode_shlibpath_var_GCJ=no
17397 hardcode_direct_GCJ=yes
17398 export_dynamic_flag_spec_GCJ='${wl}-E'
17400 # hardcode_minus_L: Not really in the search PATH,
17401 # but as the default location of the library.
17402 hardcode_minus_L_GCJ=yes
17408 irix5* | irix6* | nonstopux*)
17409 if test "$GCC" = yes; then
17410 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'
17412 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'
17413 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17415 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17416 hardcode_libdir_separator_GCJ=:
17417 link_all_deplibs_GCJ=yes
17420 netbsd* | netbsdelf*-gnu)
17421 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17422 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17424 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17426 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17427 hardcode_direct_GCJ=yes
17428 hardcode_shlibpath_var_GCJ=no
17432 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17433 hardcode_direct_GCJ=yes
17434 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17435 hardcode_libdir_separator_GCJ=:
17436 hardcode_shlibpath_var_GCJ=no
17440 hardcode_direct_GCJ=yes
17441 hardcode_shlibpath_var_GCJ=no
17442 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17443 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17444 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17445 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17446 export_dynamic_flag_spec_GCJ='${wl}-E'
17449 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17450 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17451 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17454 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17455 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17462 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17463 hardcode_minus_L_GCJ=yes
17464 allow_undefined_flag_GCJ=unsupported
17465 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'
17466 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17470 if test "$GCC" = yes; then
17471 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17472 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'
17474 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17475 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'
17477 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17478 hardcode_libdir_separator_GCJ=:
17481 osf4* | osf5*) # as osf3* with the addition of -msym flag
17482 if test "$GCC" = yes; then
17483 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17484 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'
17485 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17487 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17488 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'
17489 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~
17490 $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'
17492 # Both c and cxx compiler support -rpath directly
17493 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17495 hardcode_libdir_separator_GCJ=:
17499 no_undefined_flag_GCJ=' -z text'
17500 if test "$GCC" = yes; then
17502 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17503 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17504 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17507 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17508 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17509 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17511 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17512 hardcode_shlibpath_var_GCJ=no
17514 solaris2.[0-5] | solaris2.[0-5].*) ;;
17516 # The compiler driver will combine linker options so we
17517 # cannot just pass the convience library names through
17518 # without $wl, iff we do not link with $LD.
17519 # Luckily, gcc supports the same syntax we need for Sun Studio.
17520 # Supported since Solaris 2.6 (maybe 2.5.1?)
17523 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17525 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' ;;
17528 link_all_deplibs_GCJ=yes
17532 if test "x$host_vendor" = xsequent; then
17533 # Use $CC to link under sequent, because it throws in some extra .o
17534 # files that make .init and .fini sections work.
17535 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17537 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17539 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17540 hardcode_direct_GCJ=yes
17541 hardcode_minus_L_GCJ=yes
17542 hardcode_shlibpath_var_GCJ=no
17546 case $host_vendor in
17548 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17549 hardcode_direct_GCJ=yes # is this really true???
17552 ## LD is ld it makes a PLAMLIB
17553 ## CC just makes a GrossModule.
17554 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17555 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17556 hardcode_direct_GCJ=no
17559 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17560 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17563 runpath_var='LD_RUN_PATH'
17564 hardcode_shlibpath_var_GCJ=no
17568 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17569 hardcode_shlibpath_var_GCJ=no
17570 export_dynamic_flag_spec_GCJ='-Bexport'
17574 if test -d /usr/nec; then
17575 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17576 hardcode_shlibpath_var_GCJ=no
17577 runpath_var=LD_RUN_PATH
17578 hardcode_runpath_var=yes
17583 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17584 no_undefined_flag_GCJ='${wl}-z,text'
17585 archive_cmds_need_lc_GCJ=no
17586 hardcode_shlibpath_var_GCJ=no
17587 runpath_var='LD_RUN_PATH'
17589 if test "$GCC" = yes; then
17590 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17591 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17593 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17594 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17598 sysv5* | sco3.2v5* | sco5v6*)
17599 # Note: We can NOT use -z defs as we might desire, because we do not
17600 # link with -lc, and that would cause any symbols used from libc to
17601 # always be unresolved, which means just about no library would
17602 # ever link correctly. If we're not using GNU ld we use -z text
17603 # though, which does catch some bad symbols but isn't as heavy-handed
17605 no_undefined_flag_GCJ='${wl}-z,text'
17606 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17607 archive_cmds_need_lc_GCJ=no
17608 hardcode_shlibpath_var_GCJ=no
17609 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17610 hardcode_libdir_separator_GCJ=':'
17611 link_all_deplibs_GCJ=yes
17612 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17613 runpath_var='LD_RUN_PATH'
17615 if test "$GCC" = yes; then
17616 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17617 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17619 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17620 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17626 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17627 hardcode_shlibpath_var_GCJ=no
17636 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17637 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17638 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17641 # Do we need to explicitly link libc?
17643 case "x$archive_cmds_need_lc_GCJ" in
17645 # Assume -lc should be added
17646 archive_cmds_need_lc_GCJ=yes
17648 if test "$enable_shared" = yes && test "$GCC" = yes; then
17649 case $archive_cmds_GCJ in
17651 # FIXME: we may have to deal with multi-command sequences.
17654 # Test whether the compiler implicitly links with -lc since on some
17655 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17656 # to ld, don't add -lc before -lgcc.
17657 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17658 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17660 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17663 (eval $ac_compile) 2>&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); } 2>conftest.err; then
17669 libobjs=conftest.$ac_objext
17671 wl=$lt_prog_compiler_wl_GCJ
17672 pic_flag=$lt_prog_compiler_pic_GCJ
17678 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17679 allow_undefined_flag_GCJ=
17680 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17681 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17684 (exit $ac_status); }
17686 archive_cmds_need_lc_GCJ=no
17688 archive_cmds_need_lc_GCJ=yes
17690 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17692 cat conftest.err 1>&5
17695 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17696 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17703 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17704 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17705 library_names_spec=
17706 libname_spec='lib$name'
17710 postuninstall_cmds=
17714 shlibpath_overrides_runpath=unknown
17716 dynamic_linker="$host_os ld.so"
17717 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17718 if test "$GCC" = yes; then
17719 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17720 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17721 # if the path contains ";" then we assume it to be the separator
17722 # otherwise default to the standard path separator (i.e. ":") - it is
17723 # assumed that no part of a normal pathname contains ";" but that should
17724 # okay in the real world where ";" in dirpaths is itself problematic.
17725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17727 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17730 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17732 need_lib_prefix=unknown
17733 hardcode_into_libs=no
17735 # when you set need_version to no, make sure it does not cause -set_version
17736 # flags to be left without arguments
17737 need_version=unknown
17742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17743 shlibpath_var=LIBPATH
17745 # AIX 3 has no versioning support, so we append a major version to the name.
17746 soname_spec='${libname}${release}${shared_ext}$major'
17753 hardcode_into_libs=yes
17754 if test "$host_cpu" = ia64; then
17755 # AIX 5 supports IA64
17756 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17757 shlibpath_var=LD_LIBRARY_PATH
17759 # With GCC up to 2.95.x, collect2 would create an import file
17760 # for dependence libraries. The import file would start with
17761 # the line `#! .'. This would cause the generated library to
17762 # depend on `.', always an invalid library. This was fixed in
17763 # development snapshots of GCC prior to 3.0.
17765 aix4 | aix4.[01] | aix4.[01].*)
17766 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17768 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17771 can_build_shared=no
17775 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17776 # soname into executable. Probably we can add versioning support to
17777 # collect2, so additional links can be useful in future.
17778 if test "$aix_use_runtimelinking" = yes; then
17779 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17780 # instead of lib<name>.a to let people know that these are not
17781 # typical AIX shared libraries.
17782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17784 # We preserve .a as extension for shared libraries through AIX4.2
17785 # and later when we are not doing run time linking.
17786 library_names_spec='${libname}${release}.a $libname.a'
17787 soname_spec='${libname}${release}${shared_ext}$major'
17789 shlibpath_var=LIBPATH
17794 library_names_spec='$libname.ixlibrary $libname.a'
17795 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17796 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'
17800 library_names_spec='${libname}${shared_ext}'
17801 dynamic_linker="$host_os ld.so"
17802 shlibpath_var=LIBRARY_PATH
17808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17809 soname_spec='${libname}${release}${shared_ext}$major'
17810 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17811 shlibpath_var=LD_LIBRARY_PATH
17812 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17813 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17814 # the default ld.so.conf also contains /usr/contrib/lib and
17815 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17816 # libtool to hard-code these into programs
17819 cygwin* | mingw* | pw32*)
17820 version_type=windows
17825 case $GCC,$host_os in
17826 yes,cygwin* | yes,mingw* | yes,pw32*)
17827 library_names_spec='$libname.dll.a'
17828 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17829 postinstall_cmds='base_file=`basename \${file}`~
17830 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17831 dldir=$destdir/`dirname \$dlpath`~
17832 test -d \$dldir || mkdir -p \$dldir~
17833 $install_prog $dir/$dlname \$dldir/$dlname~
17834 chmod a+x \$dldir/$dlname'
17835 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17836 dlpath=$dir/\$dldll~
17838 shlibpath_overrides_runpath=yes
17842 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17843 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17844 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17847 # MinGW DLLs use traditional 'lib' prefix
17848 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17849 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17850 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17851 # It is most probably a Windows format PATH printed by
17852 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17853 # path with ; separators, and with drive letters. We can handle the
17854 # drive letters (cygwin fileutils understands them), so leave them,
17855 # especially as we might pass files found there to a mingw objdump,
17856 # which wouldn't understand a cygwinified path. Ahh.
17857 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17859 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17863 # pw32 DLLs use 'pw' prefix rather than 'lib'
17864 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17870 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17873 dynamic_linker='Win32 ld.exe'
17874 # FIXME: first we should search . and the directory the executable is in
17878 darwin* | rhapsody*)
17879 dynamic_linker="$host_os dyld"
17880 version_type=darwin
17883 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17884 soname_spec='${libname}${release}${major}$shared_ext'
17885 shlibpath_overrides_runpath=yes
17886 shlibpath_var=DYLD_LIBRARY_PATH
17887 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17888 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17889 if test "$GCC" = yes; then
17890 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"`
17892 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17894 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17902 soname_spec='${libname}${release}${shared_ext}$major'
17903 shlibpath_var=LD_LIBRARY_PATH
17910 freebsd* | dragonfly*)
17911 # DragonFly does not have aout. When/if they implement a new
17912 # versioning mechanism, adjust this.
17913 if test -x /usr/bin/objformat; then
17914 objformat=`/usr/bin/objformat`
17917 freebsd[123]*) objformat=aout ;;
17918 *) objformat=elf ;;
17921 version_type=freebsd-$objformat
17922 case $version_type in
17924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17933 shlibpath_var=LD_LIBRARY_PATH
17936 shlibpath_overrides_runpath=yes
17938 freebsd3.[01]* | freebsdelf3.[01]*)
17939 shlibpath_overrides_runpath=yes
17940 hardcode_into_libs=yes
17942 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17943 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17944 shlibpath_overrides_runpath=no
17945 hardcode_into_libs=yes
17947 freebsd*) # from 4.6 on
17948 shlibpath_overrides_runpath=yes
17949 hardcode_into_libs=yes
17958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17959 soname_spec='${libname}${release}${shared_ext}$major'
17960 shlibpath_var=LD_LIBRARY_PATH
17961 hardcode_into_libs=yes
17964 hpux9* | hpux10* | hpux11*)
17965 # Give a soname corresponding to the major version so that dld.sl refuses to
17966 # link against other versions.
17973 hardcode_into_libs=yes
17974 dynamic_linker="$host_os dld.so"
17975 shlibpath_var=LD_LIBRARY_PATH
17976 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17978 soname_spec='${libname}${release}${shared_ext}$major'
17979 if test "X$HPUX_IA64_MODE" = X32; then
17980 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17982 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17988 hardcode_into_libs=yes
17989 dynamic_linker="$host_os dld.sl"
17990 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17991 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17993 soname_spec='${libname}${release}${shared_ext}$major'
17994 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17995 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17999 dynamic_linker="$host_os dld.sl"
18000 shlibpath_var=SHLIB_PATH
18001 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18003 soname_spec='${libname}${release}${shared_ext}$major'
18006 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18007 postinstall_cmds='chmod 555 $lib'
18014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18015 soname_spec='${libname}${release}${shared_ext}$major'
18016 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18017 shlibpath_var=LD_LIBRARY_PATH
18018 shlibpath_overrides_runpath=no
18019 hardcode_into_libs=yes
18022 irix5* | irix6* | nonstopux*)
18024 nonstopux*) version_type=nonstopux ;;
18026 if test "$lt_cv_prog_gnu_ld" = yes; then
18034 soname_spec='${libname}${release}${shared_ext}$major'
18035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18037 irix5* | nonstopux*)
18038 libsuff= shlibsuff=
18041 case $LD in # libtool.m4 will add one of these switches to LD
18042 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18043 libsuff= shlibsuff= libmagic=32-bit;;
18044 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18045 libsuff=32 shlibsuff=N32 libmagic=N32;;
18046 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18047 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18048 *) libsuff= shlibsuff= libmagic=never-match;;
18052 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18053 shlibpath_overrides_runpath=no
18054 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18055 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18056 hardcode_into_libs=yes
18059 # No shared lib support for Linux oldld, aout, or coff.
18060 linux*oldld* | linux*aout* | linux*coff*)
18064 # This must be Linux ELF.
18065 linux* | k*bsd*-gnu)
18069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18070 soname_spec='${libname}${release}${shared_ext}$major'
18071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18072 shlibpath_var=LD_LIBRARY_PATH
18073 shlibpath_overrides_runpath=no
18074 # This implies no fast_install, which is unacceptable.
18075 # Some rework will be needed to allow for fast_install
18076 # before this can be enabled.
18077 hardcode_into_libs=yes
18079 # Append ld.so.conf contents to the search path
18080 if test -f /etc/ld.so.conf; then
18081 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' ' '`
18082 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18085 # We used to test for /lib/ld.so.1 and disable shared libraries on
18086 # powerpc, because MkLinux only supported shared libraries with the
18087 # GNU dynamic linker. Since this was broken with cross compilers,
18088 # most powerpc-linux boxes support dynamic linking these days and
18089 # people can always --disable-shared, the test was removed, and we
18090 # assume the GNU/Linux dynamic linker is in use.
18091 dynamic_linker='GNU/Linux ld.so'
18098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18099 soname_spec='${libname}${release}${shared_ext}$major'
18100 shlibpath_var=LD_LIBRARY_PATH
18101 shlibpath_overrides_runpath=no
18102 hardcode_into_libs=yes
18103 dynamic_linker='NetBSD ld.elf_so'
18110 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18112 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18113 dynamic_linker='NetBSD (a.out) ld.so'
18115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18116 soname_spec='${libname}${release}${shared_ext}$major'
18117 dynamic_linker='NetBSD ld.elf_so'
18119 shlibpath_var=LD_LIBRARY_PATH
18120 shlibpath_overrides_runpath=yes
18121 hardcode_into_libs=yes
18126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18127 shlibpath_var=LD_LIBRARY_PATH
18128 shlibpath_overrides_runpath=yes
18135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18136 soname_spec='${libname}${release}${shared_ext}$major'
18137 shlibpath_var=LD_LIBRARY_PATH
18138 shlibpath_overrides_runpath=yes
18143 sys_lib_dlsearch_path_spec="/usr/lib"
18145 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18147 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18148 *) need_version=no ;;
18150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18151 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18152 shlibpath_var=LD_LIBRARY_PATH
18153 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18155 openbsd2.[89] | openbsd2.[89].*)
18156 shlibpath_overrides_runpath=no
18159 shlibpath_overrides_runpath=yes
18163 shlibpath_overrides_runpath=yes
18168 libname_spec='$name'
18171 library_names_spec='$libname${shared_ext} $libname.a'
18172 dynamic_linker='OS/2 ld.exe'
18173 shlibpath_var=LIBPATH
18176 osf3* | osf4* | osf5*)
18180 soname_spec='${libname}${release}${shared_ext}$major'
18181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182 shlibpath_var=LD_LIBRARY_PATH
18183 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18184 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18192 soname_spec='${libname}${release}${shared_ext}$major'
18193 shlibpath_var=LD_LIBRARY_PATH
18194 shlibpath_overrides_runpath=yes
18195 hardcode_into_libs=yes
18196 # ldd complains unless libraries are executable
18197 postinstall_cmds='chmod +x $lib'
18202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18203 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18204 shlibpath_var=LD_LIBRARY_PATH
18205 shlibpath_overrides_runpath=yes
18206 if test "$with_gnu_ld" = yes; then
18214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18215 soname_spec='${libname}${release}${shared_ext}$major'
18216 shlibpath_var=LD_LIBRARY_PATH
18217 case $host_vendor in
18219 shlibpath_overrides_runpath=no
18221 export_dynamic_flag_spec='${wl}-Blargedynsym'
18222 runpath_var=LD_RUN_PATH
18230 shlibpath_overrides_runpath=no
18231 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18237 if test -d /usr/nec ;then
18239 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18240 soname_spec='$libname${shared_ext}.$major'
18241 shlibpath_var=LD_LIBRARY_PATH
18245 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18246 version_type=freebsd-elf
18249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18250 soname_spec='${libname}${release}${shared_ext}$major'
18251 shlibpath_var=LD_LIBRARY_PATH
18252 hardcode_into_libs=yes
18253 if test "$with_gnu_ld" = yes; then
18254 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18255 shlibpath_overrides_runpath=no
18257 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18258 shlibpath_overrides_runpath=yes
18261 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18265 sys_lib_dlsearch_path_spec='/usr/lib'
18270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18271 soname_spec='${libname}${release}${shared_ext}$major'
18272 shlibpath_var=LD_LIBRARY_PATH
18279 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18280 echo "${ECHO_T}$dynamic_linker" >&6; }
18281 test "$dynamic_linker" = no && can_build_shared=no
18283 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18284 if test "$GCC" = yes; then
18285 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18288 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18289 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18290 hardcode_action_GCJ=
18291 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18292 test -n "$runpath_var_GCJ" || \
18293 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18295 # We can hardcode non-existant directories.
18296 if test "$hardcode_direct_GCJ" != no &&
18297 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18298 # have to relink, otherwise we might link with an installed library
18299 # when we should be linking with a yet-to-be-installed one
18300 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18301 test "$hardcode_minus_L_GCJ" != no; then
18302 # Linking always hardcodes the temporary library directory.
18303 hardcode_action_GCJ=relink
18305 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18306 hardcode_action_GCJ=immediate
18309 # We cannot hardcode anything, or else we can only hardcode existing
18311 hardcode_action_GCJ=unsupported
18313 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18314 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18316 if test "$hardcode_action_GCJ" = relink; then
18317 # Fast installation is not supported
18318 enable_fast_install=no
18319 elif test "$shlibpath_overrides_runpath" = yes ||
18320 test "$enable_shared" = no; then
18321 # Fast installation is not necessary
18322 enable_fast_install=needless
18326 # The else clause should only fire when bootstrapping the
18327 # libtool distribution, otherwise you forgot to ship ltmain.sh
18328 # with your package, and you will get complaints that there are
18329 # no rules to generate ltmain.sh.
18330 if test -f "$ltmain"; then
18331 # See if we are running on zsh, and set the options which allow our commands through
18332 # without removal of \ escapes.
18333 if test -n "${ZSH_VERSION+set}" ; then
18334 setopt NO_GLOB_SUBST
18336 # Now quote all the things that may contain metacharacters while being
18337 # careful not to overquote the AC_SUBSTed values. We take copies of the
18338 # variables and quote the copies for generation of the libtool script.
18339 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18341 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18342 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18343 deplibs_check_method reload_flag reload_cmds need_locks \
18344 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18345 lt_cv_sys_global_symbol_to_c_name_address \
18346 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18347 old_postinstall_cmds old_postuninstall_cmds \
18351 lt_prog_compiler_wl_GCJ \
18352 lt_prog_compiler_pic_GCJ \
18353 lt_prog_compiler_static_GCJ \
18354 lt_prog_compiler_no_builtin_flag_GCJ \
18355 export_dynamic_flag_spec_GCJ \
18356 thread_safe_flag_spec_GCJ \
18357 whole_archive_flag_spec_GCJ \
18358 enable_shared_with_static_runtimes_GCJ \
18359 old_archive_cmds_GCJ \
18360 old_archive_from_new_cmds_GCJ \
18361 predep_objects_GCJ \
18362 postdep_objects_GCJ \
18365 compiler_lib_search_path_GCJ \
18367 archive_expsym_cmds_GCJ \
18368 postinstall_cmds_GCJ \
18369 postuninstall_cmds_GCJ \
18370 old_archive_from_expsyms_cmds_GCJ \
18371 allow_undefined_flag_GCJ \
18372 no_undefined_flag_GCJ \
18373 export_symbols_cmds_GCJ \
18374 hardcode_libdir_flag_spec_GCJ \
18375 hardcode_libdir_flag_spec_ld_GCJ \
18376 hardcode_libdir_separator_GCJ \
18377 hardcode_automatic_GCJ \
18379 module_expsym_cmds_GCJ \
18380 lt_cv_prog_compiler_c_o_GCJ \
18381 exclude_expsyms_GCJ \
18382 include_expsyms_GCJ; do
18385 old_archive_cmds_GCJ | \
18386 old_archive_from_new_cmds_GCJ | \
18387 archive_cmds_GCJ | \
18388 archive_expsym_cmds_GCJ | \
18389 module_cmds_GCJ | \
18390 module_expsym_cmds_GCJ | \
18391 old_archive_from_expsyms_cmds_GCJ | \
18392 export_symbols_cmds_GCJ | \
18393 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18394 postinstall_cmds | postuninstall_cmds | \
18395 old_postinstall_cmds | old_postuninstall_cmds | \
18396 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18397 # Double-quote double-evaled strings.
18398 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18401 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18407 *'\$0 --fallback-echo"')
18408 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18414 cat <<__EOF__ >> "$cfgfile"
18415 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18417 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18419 # Shell to use when invoking shell scripts.
18422 # Whether or not to build shared libraries.
18423 build_libtool_libs=$enable_shared
18425 # Whether or not to build static libraries.
18426 build_old_libs=$enable_static
18428 # Whether or not to add -lc for building shared libraries.
18429 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18431 # Whether or not to disallow shared libs when runtime libs are static
18432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18434 # Whether or not to optimize for fast installation.
18435 fast_install=$enable_fast_install
18438 host_alias=$host_alias
18442 # The build system.
18443 build_alias=$build_alias
18447 # An echo program that does not interpret backslashes.
18452 AR_FLAGS=$lt_AR_FLAGS
18457 # LTCC compiler flags.
18458 LTCFLAGS=$lt_LTCFLAGS
18460 # A language-specific compiler.
18461 CC=$lt_compiler_GCJ
18463 # Is the compiler the GNU C compiler?
18469 # The linker used to build libraries.
18472 # Whether we need hard or soft links.
18475 # A BSD-compatible nm program.
18478 # A symbol stripping program
18481 # Used to examine libraries when file_magic_cmd begins "file"
18482 MAGIC_CMD=$MAGIC_CMD
18484 # Used on cygwin: DLL creation program.
18487 # Used on cygwin: object dumper.
18490 # Used on cygwin: assembler.
18493 # The name of the directory that contains temporary libtool files.
18496 # How to create reloadable object files.
18497 reload_flag=$lt_reload_flag
18498 reload_cmds=$lt_reload_cmds
18500 # How to pass a linker flag through the compiler.
18501 wl=$lt_lt_prog_compiler_wl_GCJ
18503 # Object file suffix (normally "o").
18504 objext="$ac_objext"
18506 # Old archive suffix (normally "a").
18509 # Shared library suffix (normally ".so").
18510 shrext_cmds='$shrext_cmds'
18512 # Executable file suffix (normally "").
18515 # Additional compiler flags for building library objects.
18516 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18519 # What is the maximum length of a command?
18520 max_cmd_len=$lt_cv_sys_max_cmd_len
18522 # Does compiler simultaneously support -c and -o options?
18523 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18525 # Must we lock files when doing compilation?
18526 need_locks=$lt_need_locks
18528 # Do we need the lib prefix for modules?
18529 need_lib_prefix=$need_lib_prefix
18531 # Do we need a version for libraries?
18532 need_version=$need_version
18534 # Whether dlopen is supported.
18535 dlopen_support=$enable_dlopen
18537 # Whether dlopen of programs is supported.
18538 dlopen_self=$enable_dlopen_self
18540 # Whether dlopen of statically linked programs is supported.
18541 dlopen_self_static=$enable_dlopen_self_static
18543 # Compiler flag to prevent dynamic linking.
18544 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18546 # Compiler flag to turn off builtin functions.
18547 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18549 # Compiler flag to allow reflexive dlopens.
18550 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18552 # Compiler flag to generate shared objects directly from archives.
18553 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18555 # Compiler flag to generate thread-safe objects.
18556 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18558 # Library versioning type.
18559 version_type=$version_type
18561 # Format of library name prefix.
18562 libname_spec=$lt_libname_spec
18564 # List of archive names. First name is the real one, the rest are links.
18565 # The last name is the one that the linker finds with -lNAME.
18566 library_names_spec=$lt_library_names_spec
18568 # The coded name of the library, if different from the real name.
18569 soname_spec=$lt_soname_spec
18571 # Commands used to build and install an old-style archive.
18573 old_archive_cmds=$lt_old_archive_cmds_GCJ
18574 old_postinstall_cmds=$lt_old_postinstall_cmds
18575 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18577 # Create an old-style archive from a shared archive.
18578 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18580 # Create a temporary old-style archive to link instead of a shared archive.
18581 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18583 # Commands used to build and install a shared archive.
18584 archive_cmds=$lt_archive_cmds_GCJ
18585 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18586 postinstall_cmds=$lt_postinstall_cmds
18587 postuninstall_cmds=$lt_postuninstall_cmds
18589 # Commands used to build a loadable module (assumed same as above if empty)
18590 module_cmds=$lt_module_cmds_GCJ
18591 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18593 # Commands to strip libraries.
18594 old_striplib=$lt_old_striplib
18595 striplib=$lt_striplib
18597 # Dependencies to place before the objects being linked to create a
18599 predep_objects=$lt_predep_objects_GCJ
18601 # Dependencies to place after the objects being linked to create a
18603 postdep_objects=$lt_postdep_objects_GCJ
18605 # Dependencies to place before the objects being linked to create a
18607 predeps=$lt_predeps_GCJ
18609 # Dependencies to place after the objects being linked to create a
18611 postdeps=$lt_postdeps_GCJ
18613 # The library search path used internally by the compiler when linking
18614 # a shared library.
18615 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18617 # Method to check whether dependent libraries are shared objects.
18618 deplibs_check_method=$lt_deplibs_check_method
18620 # Command to use when deplibs_check_method == file_magic.
18621 file_magic_cmd=$lt_file_magic_cmd
18623 # Flag that allows shared libraries with undefined symbols to be built.
18624 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18626 # Flag that forces no undefined symbols.
18627 no_undefined_flag=$lt_no_undefined_flag_GCJ
18629 # Commands used to finish a libtool library installation in a directory.
18630 finish_cmds=$lt_finish_cmds
18632 # Same as above, but a single script fragment to be evaled but not shown.
18633 finish_eval=$lt_finish_eval
18635 # Take the output of nm and produce a listing of raw symbols and C names.
18636 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18638 # Transform the output of nm in a proper C declaration
18639 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18641 # Transform the output of nm in a C name address pair
18642 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18644 # This is the shared library runtime path variable.
18645 runpath_var=$runpath_var
18647 # This is the shared library path variable.
18648 shlibpath_var=$shlibpath_var
18650 # Is shlibpath searched before the hard-coded library search path?
18651 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18653 # How to hardcode a shared library path into an executable.
18654 hardcode_action=$hardcode_action_GCJ
18656 # Whether we should hardcode library paths into libraries.
18657 hardcode_into_libs=$hardcode_into_libs
18659 # Flag to hardcode \$libdir into a binary during linking.
18660 # This must work even if \$libdir does not exist.
18661 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18663 # If ld is used when linking, flag to hardcode \$libdir into
18664 # a binary during linking. This must work even if \$libdir does
18666 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18668 # Whether we need a single -rpath flag with a separated argument.
18669 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18671 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18672 # resulting binary.
18673 hardcode_direct=$hardcode_direct_GCJ
18675 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18676 # resulting binary.
18677 hardcode_minus_L=$hardcode_minus_L_GCJ
18679 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18680 # the resulting binary.
18681 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18683 # Set to yes if building a shared library automatically hardcodes DIR into the library
18684 # and all subsequent libraries and executables linked against it.
18685 hardcode_automatic=$hardcode_automatic_GCJ
18687 # Variables whose values should be saved in libtool wrapper scripts and
18688 # restored at relink time.
18689 variables_saved_for_relink="$variables_saved_for_relink"
18691 # Whether libtool must link a program against all its dependency libraries.
18692 link_all_deplibs=$link_all_deplibs_GCJ
18694 # Compile-time system search path for libraries
18695 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18697 # Run-time system search path for libraries
18698 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18700 # Fix the shell variable \$srcfile for the compiler.
18701 fix_srcfile_path="$fix_srcfile_path_GCJ"
18703 # Set to yes if exported symbols are required.
18704 always_export_symbols=$always_export_symbols_GCJ
18706 # The commands to list exported symbols.
18707 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18709 # The commands to extract the exported symbol list from a shared archive.
18710 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18712 # Symbols that should not be listed in the preloaded symbols.
18713 exclude_expsyms=$lt_exclude_expsyms_GCJ
18715 # Symbols that must always be exported.
18716 include_expsyms=$lt_include_expsyms_GCJ
18718 # ### END LIBTOOL TAG CONFIG: $tagname
18724 # If there is no Makefile yet, we rely on a make rule to execute
18725 # `config.status --recheck' to rerun these tests and create the
18726 # libtool script then.
18727 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18728 if test -f "$ltmain_in"; then
18729 test -f Makefile && make "$ltmain"
18735 ac_cpp='$CPP $CPPFLAGS'
18736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18750 # Source file extension for RC test sources.
18753 # Object file extension for compiled RC test sources.
18757 # Code to be used in simple compile tests
18758 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18760 # Code to be used in simple link tests
18761 lt_simple_link_test_code="$lt_simple_compile_test_code"
18763 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18765 # If no C compiler was specified, use CC.
18768 # If no C compiler flags were specified, use CFLAGS.
18769 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18771 # Allow CC to be a program name with arguments.
18775 # save warnings/boilerplate of simple test code
18776 ac_outfile=conftest.$ac_objext
18777 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18778 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18779 _lt_compiler_boilerplate=`cat conftest.err`
18782 ac_outfile=conftest.$ac_objext
18783 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18784 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18785 _lt_linker_boilerplate=`cat conftest.err`
18789 # Allow CC to be a program name with arguments.
18794 for cc_temp in $compiler""; do
18796 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18797 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18802 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18804 lt_cv_prog_compiler_c_o_RC=yes
18806 # The else clause should only fire when bootstrapping the
18807 # libtool distribution, otherwise you forgot to ship ltmain.sh
18808 # with your package, and you will get complaints that there are
18809 # no rules to generate ltmain.sh.
18810 if test -f "$ltmain"; then
18811 # See if we are running on zsh, and set the options which allow our commands through
18812 # without removal of \ escapes.
18813 if test -n "${ZSH_VERSION+set}" ; then
18814 setopt NO_GLOB_SUBST
18816 # Now quote all the things that may contain metacharacters while being
18817 # careful not to overquote the AC_SUBSTed values. We take copies of the
18818 # variables and quote the copies for generation of the libtool script.
18819 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18821 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18822 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18823 deplibs_check_method reload_flag reload_cmds need_locks \
18824 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18825 lt_cv_sys_global_symbol_to_c_name_address \
18826 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18827 old_postinstall_cmds old_postuninstall_cmds \
18831 lt_prog_compiler_wl_RC \
18832 lt_prog_compiler_pic_RC \
18833 lt_prog_compiler_static_RC \
18834 lt_prog_compiler_no_builtin_flag_RC \
18835 export_dynamic_flag_spec_RC \
18836 thread_safe_flag_spec_RC \
18837 whole_archive_flag_spec_RC \
18838 enable_shared_with_static_runtimes_RC \
18839 old_archive_cmds_RC \
18840 old_archive_from_new_cmds_RC \
18841 predep_objects_RC \
18842 postdep_objects_RC \
18845 compiler_lib_search_path_RC \
18847 archive_expsym_cmds_RC \
18848 postinstall_cmds_RC \
18849 postuninstall_cmds_RC \
18850 old_archive_from_expsyms_cmds_RC \
18851 allow_undefined_flag_RC \
18852 no_undefined_flag_RC \
18853 export_symbols_cmds_RC \
18854 hardcode_libdir_flag_spec_RC \
18855 hardcode_libdir_flag_spec_ld_RC \
18856 hardcode_libdir_separator_RC \
18857 hardcode_automatic_RC \
18859 module_expsym_cmds_RC \
18860 lt_cv_prog_compiler_c_o_RC \
18861 exclude_expsyms_RC \
18862 include_expsyms_RC; do
18865 old_archive_cmds_RC | \
18866 old_archive_from_new_cmds_RC | \
18867 archive_cmds_RC | \
18868 archive_expsym_cmds_RC | \
18870 module_expsym_cmds_RC | \
18871 old_archive_from_expsyms_cmds_RC | \
18872 export_symbols_cmds_RC | \
18873 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18874 postinstall_cmds | postuninstall_cmds | \
18875 old_postinstall_cmds | old_postuninstall_cmds | \
18876 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18877 # Double-quote double-evaled strings.
18878 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18881 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18887 *'\$0 --fallback-echo"')
18888 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18894 cat <<__EOF__ >> "$cfgfile"
18895 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18897 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18899 # Shell to use when invoking shell scripts.
18902 # Whether or not to build shared libraries.
18903 build_libtool_libs=$enable_shared
18905 # Whether or not to build static libraries.
18906 build_old_libs=$enable_static
18908 # Whether or not to add -lc for building shared libraries.
18909 build_libtool_need_lc=$archive_cmds_need_lc_RC
18911 # Whether or not to disallow shared libs when runtime libs are static
18912 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18914 # Whether or not to optimize for fast installation.
18915 fast_install=$enable_fast_install
18918 host_alias=$host_alias
18922 # The build system.
18923 build_alias=$build_alias
18927 # An echo program that does not interpret backslashes.
18932 AR_FLAGS=$lt_AR_FLAGS
18937 # LTCC compiler flags.
18938 LTCFLAGS=$lt_LTCFLAGS
18940 # A language-specific compiler.
18943 # Is the compiler the GNU C compiler?
18949 # The linker used to build libraries.
18952 # Whether we need hard or soft links.
18955 # A BSD-compatible nm program.
18958 # A symbol stripping program
18961 # Used to examine libraries when file_magic_cmd begins "file"
18962 MAGIC_CMD=$MAGIC_CMD
18964 # Used on cygwin: DLL creation program.
18967 # Used on cygwin: object dumper.
18970 # Used on cygwin: assembler.
18973 # The name of the directory that contains temporary libtool files.
18976 # How to create reloadable object files.
18977 reload_flag=$lt_reload_flag
18978 reload_cmds=$lt_reload_cmds
18980 # How to pass a linker flag through the compiler.
18981 wl=$lt_lt_prog_compiler_wl_RC
18983 # Object file suffix (normally "o").
18984 objext="$ac_objext"
18986 # Old archive suffix (normally "a").
18989 # Shared library suffix (normally ".so").
18990 shrext_cmds='$shrext_cmds'
18992 # Executable file suffix (normally "").
18995 # Additional compiler flags for building library objects.
18996 pic_flag=$lt_lt_prog_compiler_pic_RC
18999 # What is the maximum length of a command?
19000 max_cmd_len=$lt_cv_sys_max_cmd_len
19002 # Does compiler simultaneously support -c and -o options?
19003 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19005 # Must we lock files when doing compilation?
19006 need_locks=$lt_need_locks
19008 # Do we need the lib prefix for modules?
19009 need_lib_prefix=$need_lib_prefix
19011 # Do we need a version for libraries?
19012 need_version=$need_version
19014 # Whether dlopen is supported.
19015 dlopen_support=$enable_dlopen
19017 # Whether dlopen of programs is supported.
19018 dlopen_self=$enable_dlopen_self
19020 # Whether dlopen of statically linked programs is supported.
19021 dlopen_self_static=$enable_dlopen_self_static
19023 # Compiler flag to prevent dynamic linking.
19024 link_static_flag=$lt_lt_prog_compiler_static_RC
19026 # Compiler flag to turn off builtin functions.
19027 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19029 # Compiler flag to allow reflexive dlopens.
19030 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19032 # Compiler flag to generate shared objects directly from archives.
19033 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19035 # Compiler flag to generate thread-safe objects.
19036 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19038 # Library versioning type.
19039 version_type=$version_type
19041 # Format of library name prefix.
19042 libname_spec=$lt_libname_spec
19044 # List of archive names. First name is the real one, the rest are links.
19045 # The last name is the one that the linker finds with -lNAME.
19046 library_names_spec=$lt_library_names_spec
19048 # The coded name of the library, if different from the real name.
19049 soname_spec=$lt_soname_spec
19051 # Commands used to build and install an old-style archive.
19053 old_archive_cmds=$lt_old_archive_cmds_RC
19054 old_postinstall_cmds=$lt_old_postinstall_cmds
19055 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19057 # Create an old-style archive from a shared archive.
19058 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19060 # Create a temporary old-style archive to link instead of a shared archive.
19061 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19063 # Commands used to build and install a shared archive.
19064 archive_cmds=$lt_archive_cmds_RC
19065 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19066 postinstall_cmds=$lt_postinstall_cmds
19067 postuninstall_cmds=$lt_postuninstall_cmds
19069 # Commands used to build a loadable module (assumed same as above if empty)
19070 module_cmds=$lt_module_cmds_RC
19071 module_expsym_cmds=$lt_module_expsym_cmds_RC
19073 # Commands to strip libraries.
19074 old_striplib=$lt_old_striplib
19075 striplib=$lt_striplib
19077 # Dependencies to place before the objects being linked to create a
19079 predep_objects=$lt_predep_objects_RC
19081 # Dependencies to place after the objects being linked to create a
19083 postdep_objects=$lt_postdep_objects_RC
19085 # Dependencies to place before the objects being linked to create a
19087 predeps=$lt_predeps_RC
19089 # Dependencies to place after the objects being linked to create a
19091 postdeps=$lt_postdeps_RC
19093 # The library search path used internally by the compiler when linking
19094 # a shared library.
19095 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19097 # Method to check whether dependent libraries are shared objects.
19098 deplibs_check_method=$lt_deplibs_check_method
19100 # Command to use when deplibs_check_method == file_magic.
19101 file_magic_cmd=$lt_file_magic_cmd
19103 # Flag that allows shared libraries with undefined symbols to be built.
19104 allow_undefined_flag=$lt_allow_undefined_flag_RC
19106 # Flag that forces no undefined symbols.
19107 no_undefined_flag=$lt_no_undefined_flag_RC
19109 # Commands used to finish a libtool library installation in a directory.
19110 finish_cmds=$lt_finish_cmds
19112 # Same as above, but a single script fragment to be evaled but not shown.
19113 finish_eval=$lt_finish_eval
19115 # Take the output of nm and produce a listing of raw symbols and C names.
19116 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19118 # Transform the output of nm in a proper C declaration
19119 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19121 # Transform the output of nm in a C name address pair
19122 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19124 # This is the shared library runtime path variable.
19125 runpath_var=$runpath_var
19127 # This is the shared library path variable.
19128 shlibpath_var=$shlibpath_var
19130 # Is shlibpath searched before the hard-coded library search path?
19131 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19133 # How to hardcode a shared library path into an executable.
19134 hardcode_action=$hardcode_action_RC
19136 # Whether we should hardcode library paths into libraries.
19137 hardcode_into_libs=$hardcode_into_libs
19139 # Flag to hardcode \$libdir into a binary during linking.
19140 # This must work even if \$libdir does not exist.
19141 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19143 # If ld is used when linking, flag to hardcode \$libdir into
19144 # a binary during linking. This must work even if \$libdir does
19146 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19148 # Whether we need a single -rpath flag with a separated argument.
19149 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19151 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19152 # resulting binary.
19153 hardcode_direct=$hardcode_direct_RC
19155 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19156 # resulting binary.
19157 hardcode_minus_L=$hardcode_minus_L_RC
19159 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19160 # the resulting binary.
19161 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19163 # Set to yes if building a shared library automatically hardcodes DIR into the library
19164 # and all subsequent libraries and executables linked against it.
19165 hardcode_automatic=$hardcode_automatic_RC
19167 # Variables whose values should be saved in libtool wrapper scripts and
19168 # restored at relink time.
19169 variables_saved_for_relink="$variables_saved_for_relink"
19171 # Whether libtool must link a program against all its dependency libraries.
19172 link_all_deplibs=$link_all_deplibs_RC
19174 # Compile-time system search path for libraries
19175 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19177 # Run-time system search path for libraries
19178 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19180 # Fix the shell variable \$srcfile for the compiler.
19181 fix_srcfile_path="$fix_srcfile_path_RC"
19183 # Set to yes if exported symbols are required.
19184 always_export_symbols=$always_export_symbols_RC
19186 # The commands to list exported symbols.
19187 export_symbols_cmds=$lt_export_symbols_cmds_RC
19189 # The commands to extract the exported symbol list from a shared archive.
19190 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19192 # Symbols that should not be listed in the preloaded symbols.
19193 exclude_expsyms=$lt_exclude_expsyms_RC
19195 # Symbols that must always be exported.
19196 include_expsyms=$lt_include_expsyms_RC
19198 # ### END LIBTOOL TAG CONFIG: $tagname
19204 # If there is no Makefile yet, we rely on a make rule to execute
19205 # `config.status --recheck' to rerun these tests and create the
19206 # libtool script then.
19207 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19208 if test -f "$ltmain_in"; then
19209 test -f Makefile && make "$ltmain"
19215 ac_cpp='$CPP $CPPFLAGS'
19216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19225 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19226 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19227 { (exit 1); exit 1; }; }
19231 # Append the new tag name to the list of available tags.
19232 if test -n "$tagname" ; then
19233 available_tags="$available_tags $tagname"
19239 # Now substitute the updated list of available tags.
19240 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19241 mv "${ofile}T" "$ofile"
19245 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19246 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19247 { (exit 1); exit 1; }; }
19253 # This can be used to rebuild libtool when needed
19254 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19256 # Always use our own libtool.
19257 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19259 # Prevent multiple expansion
19283 # Checks for libraries.
19285 { echo "$as_me:$LINENO: checking for main in -lapr-1" >&5
19286 echo $ECHO_N "checking for main in -lapr-1... $ECHO_C" >&6; }
19287 if test "${ac_cv_lib_apr_1_main+set}" = set; then
19288 echo $ECHO_N "(cached) $ECHO_C" >&6
19290 ac_check_lib_save_LIBS=$LIBS
19291 LIBS="-lapr-1 $LIBS"
19292 cat >conftest.$ac_ext <<_ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19308 rm -f conftest.$ac_objext conftest$ac_exeext
19309 if { (ac_try="$ac_link"
19310 case "(($ac_try" in
19311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19312 *) ac_try_echo=$ac_try;;
19314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19315 (eval "$ac_link") 2>conftest.er1
19317 grep -v '^ *+' conftest.er1 >conftest.err
19319 cat conftest.err >&5
19320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321 (exit $ac_status); } && {
19322 test -z "$ac_c_werror_flag" ||
19323 test ! -s conftest.err
19324 } && test -s conftest$ac_exeext &&
19325 $as_test_x conftest$ac_exeext; then
19326 ac_cv_lib_apr_1_main=yes
19328 echo "$as_me: failed program was:" >&5
19329 sed 's/^/| /' conftest.$ac_ext >&5
19331 ac_cv_lib_apr_1_main=no
19334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19335 conftest$ac_exeext conftest.$ac_ext
19336 LIBS=$ac_check_lib_save_LIBS
19338 { echo "$as_me:$LINENO: result: $ac_cv_lib_apr_1_main" >&5
19339 echo "${ECHO_T}$ac_cv_lib_apr_1_main" >&6; }
19340 if test $ac_cv_lib_apr_1_main = yes; then
19341 cat >>confdefs.h <<_ACEOF
19342 #define HAVE_LIBAPR_1 1
19345 LIBS="-lapr-1 $LIBS"
19351 # Check whether --with-apache-header was given.
19352 if test "${with_apache_header+set}" = set; then
19353 withval=$with_apache_header;
19356 if test "x$with_apache_header" = "xyes"; then
19357 { { echo "$as_me:$LINENO: error:
19358 Please specify the --with-apache-header option. And, please specify the place of the header file.
19361 echo "$as_me: error:
19362 Please specify the --with-apache-header option. And, please specify the place of the header file.
19365 { (exit 1); exit 1; }; }
19369 # Check whether --with-apxs was given.
19370 if test "${with_apxs+set}" = set; then
19371 withval=$with_apxs;
19374 if test "x$with_apxs" = "x" ; then
19377 if test "x$with_apxs" = "xyes" ; then
19378 { { echo "$as_me:$LINENO: error:
19379 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19381 echo "$as_me: error:
19382 Please specify the --with-apxs option. And, please specify the place of the apxs program.
19384 { (exit 1); exit 1; }; }
19388 # Check whether --with-apr-config was given.
19389 if test "${with_apr_config+set}" = set; then
19390 withval=$with_apr_config;
19393 if test "x$with_apr_config" = "xyes" ; then
19394 { { echo "$as_me:$LINENO: error:
19395 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19397 echo "$as_me: error:
19398 Please specify the --with-apr-config option. And, please specify the place of the apr-config program.
19400 { (exit 1); exit 1; }; }
19404 # Check whether --with-apu-config was given.
19405 if test "${with_apu_config+set}" = set; then
19406 withval=$with_apu_config;
19409 if test "x$with_apu_config" = "xyes" ; then
19410 { { echo "$as_me:$LINENO: error:
19411 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19413 echo "$as_me: error:
19414 Please specify the --with-apu-config option. And, please specify the place of the apu-config program.
19416 { (exit 1); exit 1; }; }
19420 # Check whether --with-pcre-config was given.
19421 if test "${with_pcre_config+set}" = set; then
19422 withval=$with_pcre_config;
19425 if test "x$with_pcre_config" = "xyes" ; then
19426 { { echo "$as_me:$LINENO: error:
19427 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19429 echo "$as_me: error:
19430 Please specify the --with-pcre-config option. And, please specify the place of the pcre-config program.
19432 { (exit 1); exit 1; }; }
19435 # Check whether --enable-img-conv-f was given.
19436 if test "${enable_img_conv_f+set}" = set; then
19437 enableval=$enable_img_conv_f;
19440 if test "x$enable_img_conv_f" = "xyes"; then
19443 QDEFS="-DIMG_NOT_CONVERT_FILENAME"
19447 # Check whether --enable-memcache-cookie was given.
19448 if test "${enable_memcache_cookie+set}" = set; then
19449 enableval=$enable_memcache_cookie;
19452 # Check whether --enable-memcached-static was given.
19453 if test "${enable_memcached_static+set}" = set; then
19454 enableval=$enable_memcached_static;
19458 # Check whether --with-memcached-header was given.
19459 if test "${with_memcached_header+set}" = set; then
19460 withval=$with_memcached_header;
19464 # Check whether --with-memcached-lib-dir was given.
19465 if test "${with_memcached_lib_dir+set}" = set; then
19466 withval=$with_memcached_lib_dir;
19469 if test "x$enable_memcache_cookie" = "xyes" ; then
19470 if test "x${with_memcached_header}" = "x" -o "x${with_memcached_header}" = "xyes" ; then
19471 { { echo "$as_me:$LINENO: error:
19472 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
19474 echo "$as_me: error:
19475 Please specify the --with-memcached-header And, please specify the place of the \"memcached.h\" header file directory.
19477 { (exit 1); exit 1; }; }
19479 if test "x${with_memcached_lib_dir}" = "x" -o "x${with_memcached_lib_dir}" = "xyes" ; then
19480 { { echo "$as_me:$LINENO: error:
19481 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
19483 echo "$as_me: error:
19484 Please specify the --with-memcached-lib-dir And, please specify the place of libmemcached library directory.
19486 { (exit 1); exit 1; }; }
19488 if test "x$enable_memcached_static" = "xyes" ; then
19489 MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
19490 MEMCACHE_COOKIE_LIBS=" ${with_memcached_lib_dir}/libmemcached.a "
19492 MEMCACHE_COOKIE_DEFS="-DUSE_MEMCACHE_COOKIE -I${with_memcached_header} "
19493 MEMCACHE_COOKIE_LIBS="-L${with_memcached_lib_dir} -lmemcached "
19496 MEMCACHE_COOKIE_DEFS=""
19497 MEMCACHE_COOKIE_LIBS=""
19499 # Check whether --enable-mysql-cookie was given.
19500 if test "${enable_mysql_cookie+set}" = set; then
19501 enableval=$enable_mysql_cookie;
19505 # Check whether --with-mysql-header was given.
19506 if test "${with_mysql_header+set}" = set; then
19507 withval=$with_mysql_header;
19511 # Check whether --with-mysql-lib-dir was given.
19512 if test "${with_mysql_lib_dir+set}" = set; then
19513 withval=$with_mysql_lib_dir;
19516 if test "x$enable_mysql_cookie" = "xyes"; then
19517 if test "x$with_mysql_header" = "x" -o "x$with_mysql_header" = "xyes" ; then
19518 { { echo "$as_me:$LINENO: error:
19519 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19521 echo "$as_me: error:
19522 Please specify the --with-mysql-header And, please specify the place of the \"mysql.h\" header file.
19524 { (exit 1); exit 1; }; }
19526 if test "x$with_mysql_lib_dir" = "x" -o "x$with_mysql_lib_dir" = "xyes" ; then
19527 { { echo "$as_me:$LINENO: error:
19528 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19530 echo "$as_me: error:
19531 Please specify the --with-mysql-lib-dir And, please specify the place of mysql library directory.
19533 { (exit 1); exit 1; }; }
19535 MYSQL_COOKIE_DEFS="-DUSE_MYSQL_COOKIE -I${with_mysql_header}"
19536 MYSQL_COOKIE_LIBS="-L${with_mysql_lib_dir} -lmysqlclient_r"
19538 MYSQL_COOKIE_DEFS=""
19539 MYSQL_COOKIE_LIBS=""
19542 # Check whether --enable-dump-log was given.
19543 if test "${enable_dump_log+set}" = set; then
19544 enableval=$enable_dump_log;
19547 if test "x$enable_dump_log" = "xyes"; then
19548 DDEFS="-DDUMP_LOG=\\\"/tmp/dump.log\\\""
19550 if test "x$enable_dump_log" != "x" ; then
19551 DDEFS="-DDUMP_LOG=\\\"${enable_dump_log}\\\""
19556 if test "x$with_apxs" = "x" ; then
19557 # Extract the first word of "apxs2", so it can be a program name with args.
19558 set dummy apxs2; ac_word=$2
19559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19561 if test "${ac_cv_path_APXS2+set}" = set; then
19562 echo $ECHO_N "(cached) $ECHO_C" >&6
19566 ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
19569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19570 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19571 for as_dir in $as_dummy
19574 test -z "$as_dir" && as_dir=.
19575 for ac_exec_ext in '' $ac_executable_extensions; do
19576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19577 ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
19578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19585 test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
19589 APXS2=$ac_cv_path_APXS2
19590 if test -n "$APXS2"; then
19591 { echo "$as_me:$LINENO: result: $APXS2" >&5
19592 echo "${ECHO_T}$APXS2" >&6; }
19594 { echo "$as_me:$LINENO: result: no" >&5
19595 echo "${ECHO_T}no" >&6; }
19599 if test "x$APXS2" = "xno"; then
19600 # Extract the first word of "apxs", so it can be a program name with args.
19601 set dummy apxs; ac_word=$2
19602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19604 if test "${ac_cv_path_APXS+set}" = set; then
19605 echo $ECHO_N "(cached) $ECHO_C" >&6
19609 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
19612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19613 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/local/apache/bin"
19614 for as_dir in $as_dummy
19617 test -z "$as_dir" && as_dir=.
19618 for ac_exec_ext in '' $ac_executable_extensions; do
19619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19620 ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
19621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19628 test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
19632 APXS=$ac_cv_path_APXS
19633 if test -n "$APXS"; then
19634 { echo "$as_me:$LINENO: result: $APXS" >&5
19635 echo "${ECHO_T}$APXS" >&6; }
19637 { echo "$as_me:$LINENO: result: no" >&5
19638 echo "${ECHO_T}no" >&6; }
19642 if test "x$APXS" = "xno" ; then
19643 { { echo "$as_me:$LINENO: error: apxs not found." >&5
19644 echo "$as_me: error: apxs not found." >&2;}
19645 { (exit 1); exit 1; }; }
19651 if test "x$with_apxs" != "x" ; then
19655 # Extract the first word of "libtool", so it can be a program name with args.
19656 set dummy libtool; ac_word=$2
19657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19659 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19660 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19668 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19669 for as_dir in $as_dummy
19672 test -z "$as_dir" && as_dir=.
19673 for ac_exec_ext in '' $ac_executable_extensions; do
19674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19675 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19683 test -z "$ac_cv_path_LIBTOOL" && ac_cv_path_LIBTOOL="no"
19687 LIBTOOL=$ac_cv_path_LIBTOOL
19688 if test -n "$LIBTOOL"; then
19689 { echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19690 echo "${ECHO_T}$LIBTOOL" >&6; }
19692 { echo "$as_me:$LINENO: result: no" >&5
19693 echo "${ECHO_T}no" >&6; }
19697 if test "x$LIBTOOL" = "xno"; then
19698 { { echo "$as_me:$LINENO: error: libtool not found." >&5
19699 echo "$as_me: error: libtool not found." >&2;}
19700 { (exit 1); exit 1; }; }
19704 # Extract the first word of "Wand-config", so it can be a program name with args.
19705 set dummy Wand-config; ac_word=$2
19706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19708 if test "${ac_cv_path_WAND_CONFIG+set}" = set; then
19709 echo $ECHO_N "(cached) $ECHO_C" >&6
19711 case $WAND_CONFIG in
19713 ac_cv_path_WAND_CONFIG="$WAND_CONFIG" # Let the user override the test with a path.
19716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19717 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19718 for as_dir in $as_dummy
19721 test -z "$as_dir" && as_dir=.
19722 for ac_exec_ext in '' $ac_executable_extensions; do
19723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19724 ac_cv_path_WAND_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19732 test -z "$ac_cv_path_WAND_CONFIG" && ac_cv_path_WAND_CONFIG="no"
19736 WAND_CONFIG=$ac_cv_path_WAND_CONFIG
19737 if test -n "$WAND_CONFIG"; then
19738 { echo "$as_me:$LINENO: result: $WAND_CONFIG" >&5
19739 echo "${ECHO_T}$WAND_CONFIG" >&6; }
19741 { echo "$as_me:$LINENO: result: no" >&5
19742 echo "${ECHO_T}no" >&6; }
19746 if test "x$WAND_CONFIG" = "xno" ; then
19747 { { echo "$as_me:$LINENO: error: wand-config not found." >&5
19748 echo "$as_me: error: wand-config not found." >&2;}
19749 { (exit 1); exit 1; }; }
19752 if test "x$with_apr_config" = "x" ; then
19753 # Extract the first word of "apr-config", so it can be a program name with args.
19754 set dummy apr-config; ac_word=$2
19755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19757 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19760 case $APR_CONFIG in
19762 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
19765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19766 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19767 for as_dir in $as_dummy
19770 test -z "$as_dir" && as_dir=.
19771 for ac_exec_ext in '' $ac_executable_extensions; do
19772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19773 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19781 test -z "$ac_cv_path_APR_CONFIG" && ac_cv_path_APR_CONFIG="no"
19785 APR_CONFIG=$ac_cv_path_APR_CONFIG
19786 if test -n "$APR_CONFIG"; then
19787 { echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
19788 echo "${ECHO_T}$APR_CONFIG" >&6; }
19790 { echo "$as_me:$LINENO: result: no" >&5
19791 echo "${ECHO_T}no" >&6; }
19795 if test "x$APR_CONFIG" = "xno" ; then
19796 # Extract the first word of "apr-1-config", so it can be a program name with args.
19797 set dummy apr-1-config; ac_word=$2
19798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19800 if test "${ac_cv_path_APR_1_CONFIG+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 case $APR_1_CONFIG in
19805 ac_cv_path_APR_1_CONFIG="$APR_1_CONFIG" # Let the user override the test with a path.
19808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19809 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19810 for as_dir in $as_dummy
19813 test -z "$as_dir" && as_dir=.
19814 for ac_exec_ext in '' $ac_executable_extensions; do
19815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19816 ac_cv_path_APR_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19824 test -z "$ac_cv_path_APR_1_CONFIG" && ac_cv_path_APR_1_CONFIG="no"
19828 APR_1_CONFIG=$ac_cv_path_APR_1_CONFIG
19829 if test -n "$APR_1_CONFIG"; then
19830 { echo "$as_me:$LINENO: result: $APR_1_CONFIG" >&5
19831 echo "${ECHO_T}$APR_1_CONFIG" >&6; }
19833 { echo "$as_me:$LINENO: result: no" >&5
19834 echo "${ECHO_T}no" >&6; }
19838 if test "x$APR_1_CONFIG" = "xno" ; then
19839 { { echo "$as_me:$LINENO: error: apr-config and apr-1-config not found." >&5
19840 echo "$as_me: error: apr-config and apr-1-config not found." >&2;}
19841 { (exit 1); exit 1; }; }
19843 APR_CONFIG="$APR_1_CONFIG"
19847 if test "x$with_apr_config" != "x" ; then
19848 APR_CONFIG=$with_apr_config
19850 if test "x$with_apu_config" = "x" ; then
19851 # Extract the first word of "apu-config", so it can be a program name with args.
19852 set dummy apu-config; ac_word=$2
19853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19855 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
19856 echo $ECHO_N "(cached) $ECHO_C" >&6
19858 case $APU_CONFIG in
19860 ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
19863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19864 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19865 for as_dir in $as_dummy
19868 test -z "$as_dir" && as_dir=.
19869 for ac_exec_ext in '' $ac_executable_extensions; do
19870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19871 ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19879 test -z "$ac_cv_path_APU_CONFIG" && ac_cv_path_APU_CONFIG="no"
19883 APU_CONFIG=$ac_cv_path_APU_CONFIG
19884 if test -n "$APU_CONFIG"; then
19885 { echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
19886 echo "${ECHO_T}$APU_CONFIG" >&6; }
19888 { echo "$as_me:$LINENO: result: no" >&5
19889 echo "${ECHO_T}no" >&6; }
19893 if test "x$APU_CONFIG" = "xno" ; then
19894 # Extract the first word of "apu-1-config", so it can be a program name with args.
19895 set dummy apu-1-config; ac_word=$2
19896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19898 if test "${ac_cv_path_APU_1_CONFIG+set}" = set; then
19899 echo $ECHO_N "(cached) $ECHO_C" >&6
19901 case $APU_1_CONFIG in
19903 ac_cv_path_APU_1_CONFIG="$APU_1_CONFIG" # Let the user override the test with a path.
19906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19907 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
19908 for as_dir in $as_dummy
19911 test -z "$as_dir" && as_dir=.
19912 for ac_exec_ext in '' $ac_executable_extensions; do
19913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19914 ac_cv_path_APU_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19922 test -z "$ac_cv_path_APU_1_CONFIG" && ac_cv_path_APU_1_CONFIG="no"
19926 APU_1_CONFIG=$ac_cv_path_APU_1_CONFIG
19927 if test -n "$APU_1_CONFIG"; then
19928 { echo "$as_me:$LINENO: result: $APU_1_CONFIG" >&5
19929 echo "${ECHO_T}$APU_1_CONFIG" >&6; }
19931 { echo "$as_me:$LINENO: result: no" >&5
19932 echo "${ECHO_T}no" >&6; }
19936 if test "x$APU_1_CONFIG" = "xno" ; then
19937 { { echo "$as_me:$LINENO: error: apu-config and apu-1-config not found." >&5
19938 echo "$as_me: error: apu-config and apu-1-config not found." >&2;}
19939 { (exit 1); exit 1; }; }
19941 APU_CONFIG="$APU_1_CONFIG"
19945 if test "x$with_apu_config" != "x" ; then
19946 APU_CONFIG=$with_apu_config
19952 CFLAGS="${CFLAGS} -I/usr/local/include "
19956 if test "x${with_apache_header}" = "x" ; then
19957 with_apache_header=`${APXS} -q includedir`
19960 LIBS="${LIBS} `${WAND_CONFIG} --ldflags` `${WAND_CONFIG} --libs | sed -e s/-ldpstk//` "
19961 LIBS="${LIBS} `${APR_CONFIG} --ldflags` `${APR_CONFIG} --libs` "
19962 LIBS="${LIBS} `${APU_CONFIG} --ldflags` `${APU_CONFIG} --libs` "
19963 LIBS="${LIBS} ${MYSQL_COOKIE_LIBS}"
19964 LIBS="${LIBS} ${MEMCACHE_COOKIE_LIBS} "
19965 CFLAGS="${CFLAGS} `${WAND_CONFIG} --cppflags` `${WAND_CONFIG} --cflags`"
19966 CFLAGS="${CFLAGS} `${APR_CONFIG} --includes` `${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags`"
19967 CFLAGS="${CFLAGS} `${APU_CONFIG} --includes`"
19968 CFLAGS="${CFLAGS} ${MYSQL_COOKIE_DEFS}"
19969 CFLAGS="${CFLAGS} ${MEMCACHE_COOKIE_DEFS}"
19970 CPPFLAGS="${CPPFLAGS} `${APR_CONFIG} --includes` -I${with_apache_header}"
19971 CPPFLAGS="${CPPFLAGS} ${MYSQL_COOKIE_DEFS}"
19972 CPPFLAGS="${CPPFLAGS} ${MEMCACHE_COOKIE_DEFS}"
19974 # Checks for header files.
19975 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19976 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
19977 if test "${ac_cv_header_stdc+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19980 cat >conftest.$ac_ext <<_ACEOF
19983 cat confdefs.h >>conftest.$ac_ext
19984 cat >>conftest.$ac_ext <<_ACEOF
19985 /* end confdefs.h. */
19986 #include <stdlib.h>
19987 #include <stdarg.h>
19988 #include <string.h>
19999 rm -f conftest.$ac_objext
20000 if { (ac_try="$ac_compile"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_compile") 2>conftest.er1
20008 grep -v '^ *+' conftest.er1 >conftest.err
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); } && {
20013 test -z "$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20015 } && test -s conftest.$ac_objext; then
20016 ac_cv_header_stdc=yes
20018 echo "$as_me: failed program was:" >&5
20019 sed 's/^/| /' conftest.$ac_ext >&5
20021 ac_cv_header_stdc=no
20024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20026 if test $ac_cv_header_stdc = yes; then
20027 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20028 cat >conftest.$ac_ext <<_ACEOF
20031 cat confdefs.h >>conftest.$ac_ext
20032 cat >>conftest.$ac_ext <<_ACEOF
20033 /* end confdefs.h. */
20034 #include <string.h>
20037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20038 $EGREP "memchr" >/dev/null 2>&1; then
20041 ac_cv_header_stdc=no
20047 if test $ac_cv_header_stdc = yes; then
20048 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20049 cat >conftest.$ac_ext <<_ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h. */
20055 #include <stdlib.h>
20058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20059 $EGREP "free" >/dev/null 2>&1; then
20062 ac_cv_header_stdc=no
20068 if test $ac_cv_header_stdc = yes; then
20069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20070 if test "$cross_compiling" = yes; then
20073 cat >conftest.$ac_ext <<_ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20080 #include <stdlib.h>
20081 #if ((' ' & 0x0FF) == 0x020)
20082 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20083 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20085 # define ISLOWER(c) \
20086 (('a' <= (c) && (c) <= 'i') \
20087 || ('j' <= (c) && (c) <= 'r') \
20088 || ('s' <= (c) && (c) <= 'z'))
20089 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20092 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20097 for (i = 0; i < 256; i++)
20098 if (XOR (islower (i), ISLOWER (i))
20099 || toupper (i) != TOUPPER (i))
20104 rm -f conftest$ac_exeext
20105 if { (ac_try="$ac_link"
20106 case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111 (eval "$ac_link") 2>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20115 { (case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_try") 2>&5
20122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20123 (exit $ac_status); }; }; then
20126 echo "$as_me: program exited with status $ac_status" >&5
20127 echo "$as_me: failed program was:" >&5
20128 sed 's/^/| /' conftest.$ac_ext >&5
20130 ( exit $ac_status )
20131 ac_cv_header_stdc=no
20133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20139 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20140 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
20141 if test $ac_cv_header_stdc = yes; then
20143 cat >>confdefs.h <<\_ACEOF
20144 #define STDC_HEADERS 1
20157 for ac_header in string.h strings.h unistd.h fcntl.h sys/types.h sys/stat.h sys/mman.h libgen.h
20159 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20164 echo $ECHO_N "(cached) $ECHO_C" >&6
20166 ac_res=`eval echo '${'$as_ac_Header'}'`
20167 { echo "$as_me:$LINENO: result: $ac_res" >&5
20168 echo "${ECHO_T}$ac_res" >&6; }
20170 # Is the header compilable?
20171 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20172 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20173 cat >conftest.$ac_ext <<_ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179 $ac_includes_default
20180 #include <$ac_header>
20182 rm -f conftest.$ac_objext
20183 if { (ac_try="$ac_compile"
20184 case "(($ac_try" in
20185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20186 *) ac_try_echo=$ac_try;;
20188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20189 (eval "$ac_compile") 2>conftest.er1
20191 grep -v '^ *+' conftest.er1 >conftest.err
20193 cat conftest.err >&5
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); } && {
20196 test -z "$ac_c_werror_flag" ||
20197 test ! -s conftest.err
20198 } && test -s conftest.$ac_objext; then
20199 ac_header_compiler=yes
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20204 ac_header_compiler=no
20207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20209 echo "${ECHO_T}$ac_header_compiler" >&6; }
20211 # Is the header present?
20212 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20213 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20214 cat >conftest.$ac_ext <<_ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20220 #include <$ac_header>
20222 if { (ac_try="$ac_cpp conftest.$ac_ext"
20223 case "(($ac_try" in
20224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20225 *) ac_try_echo=$ac_try;;
20227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20230 grep -v '^ *+' conftest.er1 >conftest.err
20232 cat conftest.err >&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); } >/dev/null && {
20235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20236 test ! -s conftest.err
20238 ac_header_preproc=yes
20240 echo "$as_me: failed program was:" >&5
20241 sed 's/^/| /' conftest.$ac_ext >&5
20243 ac_header_preproc=no
20246 rm -f conftest.err conftest.$ac_ext
20247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20248 echo "${ECHO_T}$ac_header_preproc" >&6; }
20250 # So? What about this header?
20251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20253 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20254 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20255 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20256 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20257 ac_header_preproc=yes
20260 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20261 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20262 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20263 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20264 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20265 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20266 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20267 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20269 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20270 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20271 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20273 ## ---------------------------------------- ##
20274 ## Report this to konn@users.sourceforge.jp ##
20275 ## ---------------------------------------- ##
20277 ) | sed "s/^/$as_me: WARNING: /" >&2
20280 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20281 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20282 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20283 echo $ECHO_N "(cached) $ECHO_C" >&6
20285 eval "$as_ac_Header=\$ac_header_preproc"
20287 ac_res=`eval echo '${'$as_ac_Header'}'`
20288 { echo "$as_me:$LINENO: result: $ac_res" >&5
20289 echo "${ECHO_T}$ac_res" >&6; }
20292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20293 cat >>confdefs.h <<_ACEOF
20294 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20301 APR_HEADER_DIR="`${APR_CONFIG} --includes | sed -e 's/-I//g' | sed -e 's/ //g'`"
20304 for ac_header in apr_shm.h apr_global_mutex.h
20306 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20311 echo $ECHO_N "(cached) $ECHO_C" >&6
20313 ac_res=`eval echo '${'$as_ac_Header'}'`
20314 { echo "$as_me:$LINENO: result: $ac_res" >&5
20315 echo "${ECHO_T}$ac_res" >&6; }
20317 # Is the header compilable?
20318 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20319 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20320 cat >conftest.$ac_ext <<_ACEOF
20323 cat confdefs.h >>conftest.$ac_ext
20324 cat >>conftest.$ac_ext <<_ACEOF
20325 /* end confdefs.h. */
20326 $ac_includes_default
20327 #include <$ac_header>
20329 rm -f conftest.$ac_objext
20330 if { (ac_try="$ac_compile"
20331 case "(($ac_try" in
20332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20333 *) ac_try_echo=$ac_try;;
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_compile") 2>conftest.er1
20338 grep -v '^ *+' conftest.er1 >conftest.err
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } && {
20343 test -z "$ac_c_werror_flag" ||
20344 test ! -s conftest.err
20345 } && test -s conftest.$ac_objext; then
20346 ac_header_compiler=yes
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 ac_header_compiler=no
20354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20355 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20356 echo "${ECHO_T}$ac_header_compiler" >&6; }
20358 # Is the header present?
20359 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20360 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20361 cat >conftest.$ac_ext <<_ACEOF
20364 cat confdefs.h >>conftest.$ac_ext
20365 cat >>conftest.$ac_ext <<_ACEOF
20366 /* end confdefs.h. */
20367 #include <$ac_header>
20369 if { (ac_try="$ac_cpp conftest.$ac_ext"
20370 case "(($ac_try" in
20371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20372 *) ac_try_echo=$ac_try;;
20374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20377 grep -v '^ *+' conftest.er1 >conftest.err
20379 cat conftest.err >&5
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); } >/dev/null && {
20382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20383 test ! -s conftest.err
20385 ac_header_preproc=yes
20387 echo "$as_me: failed program was:" >&5
20388 sed 's/^/| /' conftest.$ac_ext >&5
20390 ac_header_preproc=no
20393 rm -f conftest.err conftest.$ac_ext
20394 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20395 echo "${ECHO_T}$ac_header_preproc" >&6; }
20397 # So? What about this header?
20398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20401 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20404 ac_header_preproc=yes
20407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20408 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20410 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20412 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20414 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20418 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20420 ## ---------------------------------------- ##
20421 ## Report this to konn@users.sourceforge.jp ##
20422 ## ---------------------------------------- ##
20424 ) | sed "s/^/$as_me: WARNING: /" >&2
20427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20430 echo $ECHO_N "(cached) $ECHO_C" >&6
20432 eval "$as_ac_Header=\$ac_header_preproc"
20434 ac_res=`eval echo '${'$as_ac_Header'}'`
20435 { echo "$as_me:$LINENO: result: $ac_res" >&5
20436 echo "${ECHO_T}$ac_res" >&6; }
20439 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20440 cat >>confdefs.h <<_ACEOF
20441 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20449 for ac_header in apr.h
20451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20456 echo $ECHO_N "(cached) $ECHO_C" >&6
20458 ac_res=`eval echo '${'$as_ac_Header'}'`
20459 { echo "$as_me:$LINENO: result: $ac_res" >&5
20460 echo "${ECHO_T}$ac_res" >&6; }
20462 # Is the header compilable?
20463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20465 cat >conftest.$ac_ext <<_ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20471 $ac_includes_default
20472 #include <$ac_header>
20474 rm -f conftest.$ac_objext
20475 if { (ac_try="$ac_compile"
20476 case "(($ac_try" in
20477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20478 *) ac_try_echo=$ac_try;;
20480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20481 (eval "$ac_compile") 2>conftest.er1
20483 grep -v '^ *+' conftest.er1 >conftest.err
20485 cat conftest.err >&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); } && {
20488 test -z "$ac_c_werror_flag" ||
20489 test ! -s conftest.err
20490 } && test -s conftest.$ac_objext; then
20491 ac_header_compiler=yes
20493 echo "$as_me: failed program was:" >&5
20494 sed 's/^/| /' conftest.$ac_ext >&5
20496 ac_header_compiler=no
20499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20500 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20501 echo "${ECHO_T}$ac_header_compiler" >&6; }
20503 # Is the header present?
20504 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20505 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20506 cat >conftest.$ac_ext <<_ACEOF
20509 cat confdefs.h >>conftest.$ac_ext
20510 cat >>conftest.$ac_ext <<_ACEOF
20511 /* end confdefs.h. */
20512 #include <$ac_header>
20514 if { (ac_try="$ac_cpp conftest.$ac_ext"
20515 case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20522 grep -v '^ *+' conftest.er1 >conftest.err
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } >/dev/null && {
20527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20528 test ! -s conftest.err
20530 ac_header_preproc=yes
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20535 ac_header_preproc=no
20538 rm -f conftest.err conftest.$ac_ext
20539 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20540 echo "${ECHO_T}$ac_header_preproc" >&6; }
20542 # So? What about this header?
20543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20545 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20546 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20547 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20549 ac_header_preproc=yes
20552 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20553 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20554 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20555 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20556 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20557 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20558 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20559 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20560 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20562 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20563 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20565 ## ---------------------------------------- ##
20566 ## Report this to konn@users.sourceforge.jp ##
20567 ## ---------------------------------------- ##
20569 ) | sed "s/^/$as_me: WARNING: /" >&2
20572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20575 echo $ECHO_N "(cached) $ECHO_C" >&6
20577 eval "$as_ac_Header=\$ac_header_preproc"
20579 ac_res=`eval echo '${'$as_ac_Header'}'`
20580 { echo "$as_me:$LINENO: result: $ac_res" >&5
20581 echo "${ECHO_T}$ac_res" >&6; }
20584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20585 cat >>confdefs.h <<_ACEOF
20586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20594 for ac_header in ap_config.h
20596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20601 echo $ECHO_N "(cached) $ECHO_C" >&6
20603 ac_res=`eval echo '${'$as_ac_Header'}'`
20604 { echo "$as_me:$LINENO: result: $ac_res" >&5
20605 echo "${ECHO_T}$ac_res" >&6; }
20607 # Is the header compilable?
20608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20610 cat >conftest.$ac_ext <<_ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20616 $ac_includes_default
20617 #include <$ac_header>
20619 rm -f conftest.$ac_objext
20620 if { (ac_try="$ac_compile"
20621 case "(($ac_try" in
20622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20623 *) ac_try_echo=$ac_try;;
20625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20626 (eval "$ac_compile") 2>conftest.er1
20628 grep -v '^ *+' conftest.er1 >conftest.err
20630 cat conftest.err >&5
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); } && {
20633 test -z "$ac_c_werror_flag" ||
20634 test ! -s conftest.err
20635 } && test -s conftest.$ac_objext; then
20636 ac_header_compiler=yes
20638 echo "$as_me: failed program was:" >&5
20639 sed 's/^/| /' conftest.$ac_ext >&5
20641 ac_header_compiler=no
20644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20646 echo "${ECHO_T}$ac_header_compiler" >&6; }
20648 # Is the header present?
20649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20651 cat >conftest.$ac_ext <<_ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20657 #include <$ac_header>
20659 if { (ac_try="$ac_cpp conftest.$ac_ext"
20660 case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20667 grep -v '^ *+' conftest.er1 >conftest.err
20669 cat conftest.err >&5
20670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20671 (exit $ac_status); } >/dev/null && {
20672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20673 test ! -s conftest.err
20675 ac_header_preproc=yes
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_header_preproc=no
20683 rm -f conftest.err conftest.$ac_ext
20684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20685 echo "${ECHO_T}$ac_header_preproc" >&6; }
20687 # So? What about this header?
20688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20694 ac_header_preproc=yes
20697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20710 ## ---------------------------------------- ##
20711 ## Report this to konn@users.sourceforge.jp ##
20712 ## ---------------------------------------- ##
20714 ) | sed "s/^/$as_me: WARNING: /" >&2
20717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20719 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20720 echo $ECHO_N "(cached) $ECHO_C" >&6
20722 eval "$as_ac_Header=\$ac_header_preproc"
20724 ac_res=`eval echo '${'$as_ac_Header'}'`
20725 { echo "$as_me:$LINENO: result: $ac_res" >&5
20726 echo "${ECHO_T}$ac_res" >&6; }
20729 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20730 cat >>confdefs.h <<_ACEOF
20731 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20738 #AC_CHECK_HEADERS([ap_regex.h],
20739 # AC_DEFINE([HAVE_AP_REGEX_H], [], [Define to 1 if you have the <ap_regex.h> header file.]),[],
20744 ##ifdef HAVE_AP_CONFIG_H
20745 ##include "ap_config.h"
20749 for ac_header in ap_regex.h
20751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20756 echo $ECHO_N "(cached) $ECHO_C" >&6
20758 ac_res=`eval echo '${'$as_ac_Header'}'`
20759 { echo "$as_me:$LINENO: result: $ac_res" >&5
20760 echo "${ECHO_T}$ac_res" >&6; }
20762 # Is the header compilable?
20763 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20765 cat >conftest.$ac_ext <<_ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h. */
20771 $ac_includes_default
20772 #include <$ac_header>
20774 rm -f conftest.$ac_objext
20775 if { (ac_try="$ac_compile"
20776 case "(($ac_try" in
20777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20778 *) ac_try_echo=$ac_try;;
20780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20781 (eval "$ac_compile") 2>conftest.er1
20783 grep -v '^ *+' conftest.er1 >conftest.err
20785 cat conftest.err >&5
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); } && {
20788 test -z "$ac_c_werror_flag" ||
20789 test ! -s conftest.err
20790 } && test -s conftest.$ac_objext; then
20791 ac_header_compiler=yes
20793 echo "$as_me: failed program was:" >&5
20794 sed 's/^/| /' conftest.$ac_ext >&5
20796 ac_header_compiler=no
20799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20801 echo "${ECHO_T}$ac_header_compiler" >&6; }
20803 # Is the header present?
20804 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20805 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20806 cat >conftest.$ac_ext <<_ACEOF
20809 cat confdefs.h >>conftest.$ac_ext
20810 cat >>conftest.$ac_ext <<_ACEOF
20811 /* end confdefs.h. */
20812 #include <$ac_header>
20814 if { (ac_try="$ac_cpp conftest.$ac_ext"
20815 case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20822 grep -v '^ *+' conftest.er1 >conftest.err
20824 cat conftest.err >&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); } >/dev/null && {
20827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20828 test ! -s conftest.err
20830 ac_header_preproc=yes
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835 ac_header_preproc=no
20838 rm -f conftest.err conftest.$ac_ext
20839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20840 echo "${ECHO_T}$ac_header_preproc" >&6; }
20842 # So? What about this header?
20843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20845 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20846 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20847 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20848 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20849 ac_header_preproc=yes
20852 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20853 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20854 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20855 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20856 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20857 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20858 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20859 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20861 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20862 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20863 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20865 ## ---------------------------------------- ##
20866 ## Report this to konn@users.sourceforge.jp ##
20867 ## ---------------------------------------- ##
20869 ) | sed "s/^/$as_me: WARNING: /" >&2
20872 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20875 echo $ECHO_N "(cached) $ECHO_C" >&6
20877 eval "$as_ac_Header=\$ac_header_preproc"
20879 ac_res=`eval echo '${'$as_ac_Header'}'`
20880 { echo "$as_me:$LINENO: result: $ac_res" >&5
20881 echo "${ECHO_T}$ac_res" >&6; }
20884 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20885 cat >>confdefs.h <<_ACEOF
20886 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20890 use_pcre_flag="yes"
20895 if test "x$use_pcre_flag" = "xyes" ; then
20896 if test "x$with_pcre_config" = "x" ; then
20897 # Extract the first word of "pcre-config", so it can be a program name with args.
20898 set dummy pcre-config; ac_word=$2
20899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20901 if test "${ac_cv_path_PCRE_CONFIG+set}" = set; then
20902 echo $ECHO_N "(cached) $ECHO_C" >&6
20904 case $PCRE_CONFIG in
20906 ac_cv_path_PCRE_CONFIG="$PCRE_CONFIG" # Let the user override the test with a path.
20909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20910 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20911 for as_dir in $as_dummy
20914 test -z "$as_dir" && as_dir=.
20915 for ac_exec_ext in '' $ac_executable_extensions; do
20916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20917 ac_cv_path_PCRE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20925 test -z "$ac_cv_path_PCRE_CONFIG" && ac_cv_path_PCRE_CONFIG="no"
20929 PCRE_CONFIG=$ac_cv_path_PCRE_CONFIG
20930 if test -n "$PCRE_CONFIG"; then
20931 { echo "$as_me:$LINENO: result: $PCRE_CONFIG" >&5
20932 echo "${ECHO_T}$PCRE_CONFIG" >&6; }
20934 { echo "$as_me:$LINENO: result: no" >&5
20935 echo "${ECHO_T}no" >&6; }
20939 if test "x$PCRE_CONFIG" = "xno" ; then
20940 # Extract the first word of "pcre-1-config", so it can be a program name with args.
20941 set dummy pcre-1-config; ac_word=$2
20942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20944 if test "${ac_cv_path_PCRE_1_CONFIG+set}" = set; then
20945 echo $ECHO_N "(cached) $ECHO_C" >&6
20947 case $PCRE_1_CONFIG in
20949 ac_cv_path_PCRE_1_CONFIG="$PCRE_1_CONFIG" # Let the user override the test with a path.
20952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20953 as_dummy="/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin"
20954 for as_dir in $as_dummy
20957 test -z "$as_dir" && as_dir=.
20958 for ac_exec_ext in '' $ac_executable_extensions; do
20959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20960 ac_cv_path_PCRE_1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20968 test -z "$ac_cv_path_PCRE_1_CONFIG" && ac_cv_path_PCRE_1_CONFIG="no"
20972 PCRE_1_CONFIG=$ac_cv_path_PCRE_1_CONFIG
20973 if test -n "$PCRE_1_CONFIG"; then
20974 { echo "$as_me:$LINENO: result: $PCRE_1_CONFIG" >&5
20975 echo "${ECHO_T}$PCRE_1_CONFIG" >&6; }
20977 { echo "$as_me:$LINENO: result: no" >&5
20978 echo "${ECHO_T}no" >&6; }
20982 if test "x$PCRE_1_CONFIG" = "xno" ; then
20983 { { echo "$as_me:$LINENO: error: pcre-config and pcre-1-config not found." >&5
20984 echo "$as_me: error: pcre-config and pcre-1-config not found." >&2;}
20985 { (exit 1); exit 1; }; }
20987 PCRE_CONFIG="$PCRE_1_CONFIG"
20991 if test "x$with_pcre_config" != "x" ; then
20992 PCRE_CONFIG=$with_pcre_config
20994 CFLAGS="${CFLAGS} `${PCRE_CONFIG} --cflags`"
20997 cat >>confdefs.h <<\_ACEOF
20998 #define HAVE_AP_REGEX_H 1
21003 # Checks for typedefs, structures, and compiler characteristics.
21004 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21005 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21006 if test "${ac_cv_c_const+set}" = set; then
21007 echo $ECHO_N "(cached) $ECHO_C" >&6
21009 cat >conftest.$ac_ext <<_ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21019 /* FIXME: Include the comments suggested by Paul. */
21020 #ifndef __cplusplus
21021 /* Ultrix mips cc rejects this. */
21022 typedef int charset[2];
21024 /* SunOS 4.1.1 cc rejects this. */
21025 char const *const *pcpcc;
21027 /* NEC SVR4.0.2 mips cc rejects this. */
21028 struct point {int x, y;};
21029 static struct point const zero = {0,0};
21030 /* AIX XL C 1.02.0.0 rejects this.
21031 It does not let you subtract one const X* pointer from another in
21032 an arm of an if-expression whose if-part is not a constant
21034 const char *g = "string";
21035 pcpcc = &g + (g ? g-g : 0);
21036 /* HPUX 7.0 cc rejects these. */
21038 ppc = (char**) pcpcc;
21039 pcpcc = (char const *const *) ppc;
21040 { /* SCO 3.2v4 cc rejects this. */
21042 char const *s = 0 ? (char *) 0 : (char const *) 0;
21047 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21048 int x[] = {25, 17};
21049 const int *foo = &x[0];
21052 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21053 typedef const int *iptr;
21057 { /* AIX XL C 1.02.0.0 rejects this saying
21058 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21059 struct s { int j; const int *ap[3]; };
21060 struct s *b; b->j = 5;
21062 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21063 const int foo = 10;
21064 if (!foo) return 0;
21066 return !cs[0] && !zero.x;
21073 rm -f conftest.$ac_objext
21074 if { (ac_try="$ac_compile"
21075 case "(($ac_try" in
21076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077 *) ac_try_echo=$ac_try;;
21079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21080 (eval "$ac_compile") 2>conftest.er1
21082 grep -v '^ *+' conftest.er1 >conftest.err
21084 cat conftest.err >&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } && {
21087 test -z "$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 } && test -s conftest.$ac_objext; then
21092 echo "$as_me: failed program was:" >&5
21093 sed 's/^/| /' conftest.$ac_ext >&5
21098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21100 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21101 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21102 if test $ac_cv_c_const = no; then
21104 cat >>confdefs.h <<\_ACEOF
21111 # Checks for library functions.
21113 for ac_header in stdlib.h
21115 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21117 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21118 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21119 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21120 echo $ECHO_N "(cached) $ECHO_C" >&6
21122 ac_res=`eval echo '${'$as_ac_Header'}'`
21123 { echo "$as_me:$LINENO: result: $ac_res" >&5
21124 echo "${ECHO_T}$ac_res" >&6; }
21126 # Is the header compilable?
21127 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21128 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21129 cat >conftest.$ac_ext <<_ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h. */
21135 $ac_includes_default
21136 #include <$ac_header>
21138 rm -f conftest.$ac_objext
21139 if { (ac_try="$ac_compile"
21140 case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_compile") 2>conftest.er1
21147 grep -v '^ *+' conftest.er1 >conftest.err
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } && {
21152 test -z "$ac_c_werror_flag" ||
21153 test ! -s conftest.err
21154 } && test -s conftest.$ac_objext; then
21155 ac_header_compiler=yes
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21160 ac_header_compiler=no
21163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21164 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21165 echo "${ECHO_T}$ac_header_compiler" >&6; }
21167 # Is the header present?
21168 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21169 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21170 cat >conftest.$ac_ext <<_ACEOF
21173 cat confdefs.h >>conftest.$ac_ext
21174 cat >>conftest.$ac_ext <<_ACEOF
21175 /* end confdefs.h. */
21176 #include <$ac_header>
21178 if { (ac_try="$ac_cpp conftest.$ac_ext"
21179 case "(($ac_try" in
21180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21181 *) ac_try_echo=$ac_try;;
21183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21184 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21186 grep -v '^ *+' conftest.er1 >conftest.err
21188 cat conftest.err >&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); } >/dev/null && {
21191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21192 test ! -s conftest.err
21194 ac_header_preproc=yes
21196 echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21199 ac_header_preproc=no
21202 rm -f conftest.err conftest.$ac_ext
21203 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21204 echo "${ECHO_T}$ac_header_preproc" >&6; }
21206 # So? What about this header?
21207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21209 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21210 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21211 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21213 ac_header_preproc=yes
21216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21220 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21221 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21223 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21226 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21227 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21229 ## ---------------------------------------- ##
21230 ## Report this to konn@users.sourceforge.jp ##
21231 ## ---------------------------------------- ##
21233 ) | sed "s/^/$as_me: WARNING: /" >&2
21236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21239 echo $ECHO_N "(cached) $ECHO_C" >&6
21241 eval "$as_ac_Header=\$ac_header_preproc"
21243 ac_res=`eval echo '${'$as_ac_Header'}'`
21244 { echo "$as_me:$LINENO: result: $ac_res" >&5
21245 echo "${ECHO_T}$ac_res" >&6; }
21248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21249 cat >>confdefs.h <<_ACEOF
21250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21257 { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21258 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
21259 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21260 echo $ECHO_N "(cached) $ECHO_C" >&6
21262 if test "$cross_compiling" = yes; then
21263 ac_cv_func_malloc_0_nonnull=no
21265 cat >conftest.$ac_ext <<_ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
21272 # include <stdlib.h>
21280 return ! malloc (0);
21285 rm -f conftest$ac_exeext
21286 if { (ac_try="$ac_link"
21287 case "(($ac_try" in
21288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289 *) ac_try_echo=$ac_try;;
21291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21292 (eval "$ac_link") 2>&5
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21296 { (case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_try") 2>&5
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; }; then
21305 ac_cv_func_malloc_0_nonnull=yes
21307 echo "$as_me: program exited with status $ac_status" >&5
21308 echo "$as_me: failed program was:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ( exit $ac_status )
21312 ac_cv_func_malloc_0_nonnull=no
21314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21319 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21320 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
21321 if test $ac_cv_func_malloc_0_nonnull = yes; then
21323 cat >>confdefs.h <<\_ACEOF
21324 #define HAVE_MALLOC 1
21328 cat >>confdefs.h <<\_ACEOF
21329 #define HAVE_MALLOC 0
21332 case " $LIBOBJS " in
21333 *" malloc.$ac_objext "* ) ;;
21334 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
21339 cat >>confdefs.h <<\_ACEOF
21340 #define malloc rpl_malloc
21355 for ac_func in open mmap close memset memcpy strcasecmp strncasecmp strstr
21357 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21358 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21359 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21360 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21361 echo $ECHO_N "(cached) $ECHO_C" >&6
21363 cat >conftest.$ac_ext <<_ACEOF
21366 cat confdefs.h >>conftest.$ac_ext
21367 cat >>conftest.$ac_ext <<_ACEOF
21368 /* end confdefs.h. */
21369 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21370 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21371 #define $ac_func innocuous_$ac_func
21373 /* System header to define __stub macros and hopefully few prototypes,
21374 which can conflict with char $ac_func (); below.
21375 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21376 <limits.h> exists even on freestanding compilers. */
21379 # include <limits.h>
21381 # include <assert.h>
21386 /* Override any GCC internal prototype to avoid an error.
21387 Use char because int might match the return type of a GCC
21388 builtin and then its argument prototype would still apply. */
21393 /* The GNU C library defines this for functions which it implements
21394 to always fail with ENOSYS. Some functions are actually named
21395 something starting with __ and the normal name is an alias. */
21396 #if defined __stub_$ac_func || defined __stub___$ac_func
21403 return $ac_func ();
21408 rm -f conftest.$ac_objext conftest$ac_exeext
21409 if { (ac_try="$ac_link"
21410 case "(($ac_try" in
21411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412 *) ac_try_echo=$ac_try;;
21414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21415 (eval "$ac_link") 2>conftest.er1
21417 grep -v '^ *+' conftest.er1 >conftest.err
21419 cat conftest.err >&5
21420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21421 (exit $ac_status); } && {
21422 test -z "$ac_c_werror_flag" ||
21423 test ! -s conftest.err
21424 } && test -s conftest$ac_exeext &&
21425 $as_test_x conftest$ac_exeext; then
21426 eval "$as_ac_var=yes"
21428 echo "$as_me: failed program was:" >&5
21429 sed 's/^/| /' conftest.$ac_ext >&5
21431 eval "$as_ac_var=no"
21434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21435 conftest$ac_exeext conftest.$ac_ext
21437 ac_res=`eval echo '${'$as_ac_var'}'`
21438 { echo "$as_me:$LINENO: result: $ac_res" >&5
21439 echo "${ECHO_T}$ac_res" >&6; }
21440 if test `eval echo '${'$as_ac_var'}'` = yes; then
21441 cat >>confdefs.h <<_ACEOF
21442 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21457 ac_config_files="$ac_config_files Makefile src/Makefile support/centos/mod-chxj.spec"
21459 cat >confcache <<\_ACEOF
21460 # This file is a shell script that caches the results of configure
21461 # tests run on this system so they can be shared between configure
21462 # scripts and configure runs, see configure's option --config-cache.
21463 # It is not useful on other systems. If it contains results you don't
21464 # want to keep, you may remove or edit it.
21466 # config.status only pays attention to the cache file if you give it
21467 # the --recheck option to rerun configure.
21469 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21470 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21471 # following values.
21475 # The following way of writing the cache mishandles newlines in values,
21476 # but we know of no workaround that is simple, portable, and efficient.
21477 # So, we kill variables containing newlines.
21478 # Ultrix sh set writes to stderr and can't be redirected directly,
21479 # and sets the high bit in the cache file unless we assign to the vars.
21481 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21482 eval ac_val=\$$ac_var
21486 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21487 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21490 _ | IFS | as_nl) ;; #(
21491 *) $as_unset $ac_var ;;
21497 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21498 *${as_nl}ac_space=\ *)
21499 # `set' does not quote correctly, so add quotes (double-quote
21500 # substitution turns \\\\ into \\, and sed turns \\ into \).
21503 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21506 # `set' quotes correctly as required by POSIX, so do not add quotes.
21507 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21516 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21518 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21520 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21521 if test -w "$cache_file"; then
21522 test "x$cache_file" != "x/dev/null" &&
21523 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21524 echo "$as_me: updating cache $cache_file" >&6;}
21525 cat confcache >$cache_file
21527 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21528 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21533 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21534 # Let make expand exec_prefix.
21535 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21537 DEFS=-DHAVE_CONFIG_H
21541 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21542 # 1. Remove the extension, and $U if already installed.
21543 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21544 ac_i=`echo "$ac_i" | sed "$ac_script"`
21545 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21546 # will be set to the directory where LIBOBJS objects are built.
21547 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21548 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21550 LIBOBJS=$ac_libobjs
21552 LTLIBOBJS=$ac_ltlibobjs
21555 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21556 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
21557 Usually this means the macro was only invoked conditionally." >&5
21558 echo "$as_me: error: conditional \"AMDEP\" was never defined.
21559 Usually this means the macro was only invoked conditionally." >&2;}
21560 { (exit 1); exit 1; }; }
21562 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21563 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
21564 Usually this means the macro was only invoked conditionally." >&5
21565 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
21566 Usually this means the macro was only invoked conditionally." >&2;}
21567 { (exit 1); exit 1; }; }
21569 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21570 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
21571 Usually this means the macro was only invoked conditionally." >&5
21572 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
21573 Usually this means the macro was only invoked conditionally." >&2;}
21574 { (exit 1); exit 1; }; }
21577 : ${CONFIG_STATUS=./config.status}
21578 ac_clean_files_save=$ac_clean_files
21579 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21580 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21581 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21582 cat >$CONFIG_STATUS <<_ACEOF
21584 # Generated by $as_me.
21585 # Run this file to recreate the current configuration.
21586 # Compiler output produced by configure, useful for debugging
21587 # configure, is in config.log if it exists.
21590 ac_cs_recheck=false
21592 SHELL=\${CONFIG_SHELL-$SHELL}
21595 cat >>$CONFIG_STATUS <<\_ACEOF
21596 ## --------------------- ##
21597 ## M4sh Initialization. ##
21598 ## --------------------- ##
21600 # Be more Bourne compatible
21601 DUALCASE=1; export DUALCASE # for MKS sh
21602 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21605 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21606 # is contrary to our usage. Disable this feature.
21607 alias -g '${1+"$@"}'='"$@"'
21608 setopt NO_GLOB_SUBST
21610 case `(set -o) 2>/dev/null` in
21611 *posix*) set -o posix ;;
21620 # Avoid depending upon Character Ranges.
21621 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21622 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21623 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21624 as_cr_digits='0123456789'
21625 as_cr_alnum=$as_cr_Letters$as_cr_digits
21627 # The user is always right.
21628 if test "${PATH_SEPARATOR+set}" != set; then
21629 echo "#! /bin/sh" >conf$$.sh
21630 echo "exit 0" >>conf$$.sh
21632 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21640 # Support unset when possible.
21641 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21649 # We need space, tab and new line, in precisely that order. Quoting is
21650 # there to prevent editors from complaining about space-tab.
21651 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21652 # splitting by setting IFS to empty value.)
21657 # Find who we are. Look in the path if we contain no directory separator.
21659 *[\\/]* ) as_myself=$0 ;;
21660 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21661 for as_dir in $PATH
21664 test -z "$as_dir" && as_dir=.
21665 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21671 # We did not find ourselves, most probably we were run as `sh COMMAND'
21672 # in which case we are not to be found in the path.
21673 if test "x$as_myself" = x; then
21676 if test ! -f "$as_myself"; then
21677 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21678 { (exit 1); exit 1; }
21681 # Work around bugs in pre-3.0 UWIN ksh.
21682 for as_var in ENV MAIL MAILPATH
21683 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21691 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21692 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21693 LC_TELEPHONE LC_TIME
21695 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21696 eval $as_var=C; export $as_var
21698 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21702 # Required to use basename.
21703 if expr a : '\(a\)' >/dev/null 2>&1 &&
21704 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21710 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21711 as_basename=basename
21717 # Name of the executable.
21718 as_me=`$as_basename -- "$0" ||
21719 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21720 X"$0" : 'X\(//\)$' \| \
21721 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21723 sed '/^.*\/\([^/][^/]*\)\/*$/{
21742 as_lineno_1=$LINENO
21743 as_lineno_2=$LINENO
21744 test "x$as_lineno_1" != "x$as_lineno_2" &&
21745 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21747 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21748 # uniformly replaced by the line number. The first 'sed' inserts a
21749 # line-number line after each line using $LINENO; the second 'sed'
21750 # does the real work. The second script uses 'N' to pair each
21751 # line-number line with the line containing $LINENO, and appends
21752 # trailing '-' during substitution so that $LINENO is not a special
21753 # case at line end.
21754 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21755 # scripts with optimization help from Paolo Bonzini. Blame Lee
21756 # E. McMahon (1931-1989) for sed's syntax. :-)
21768 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21771 ' >$as_me.lineno &&
21772 chmod +x "$as_me.lineno" ||
21773 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21774 { (exit 1); exit 1; }; }
21776 # Don't try to exec as it changes $[0], causing all sort of problems
21777 # (the dirname of $[0] is not the place where we might find the
21778 # original and so on. Autoconf is especially sensitive to this).
21779 . "./$as_me.lineno"
21780 # Exit status is that of the last command.
21785 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21791 ECHO_C= ECHO_N= ECHO_T=
21792 case `echo -n x` in
21794 case `echo 'x\c'` in
21795 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21802 if expr a : '\(a\)' >/dev/null 2>&1 &&
21803 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21809 rm -f conf$$ conf$$.exe conf$$.file
21810 if test -d conf$$.dir; then
21811 rm -f conf$$.dir/conf$$.file
21817 if ln -s conf$$.file conf$$ 2>/dev/null; then
21819 # ... but there are two gotchas:
21820 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21821 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21822 # In both cases, we have to default to `cp -p'.
21823 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21825 elif ln conf$$.file conf$$ 2>/dev/null; then
21830 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21831 rmdir conf$$.dir 2>/dev/null
21833 if mkdir -p . 2>/dev/null; then
21836 test -d ./-p && rmdir ./-p
21840 if test -x / >/dev/null 2>&1; then
21841 as_test_x='test -x'
21843 if ls -dL / >/dev/null 2>&1; then
21850 if test -d "$1"; then
21856 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21857 ???[sx]*):;;*)false;;esac;fi
21861 as_executable_p=$as_test_x
21863 # Sed expression to map a string onto a valid CPP name.
21864 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21866 # Sed expression to map a string onto a valid variable name.
21867 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21872 # Save the log message, to keep $[0] and so on meaningful, and to
21873 # report actual input values of CONFIG_FILES etc. instead of their
21874 # values after options handling.
21876 This file was extended by mod_chxj $as_me 0.12.27, which was
21877 generated by GNU Autoconf 2.61. Invocation command line was
21879 CONFIG_FILES = $CONFIG_FILES
21880 CONFIG_HEADERS = $CONFIG_HEADERS
21881 CONFIG_LINKS = $CONFIG_LINKS
21882 CONFIG_COMMANDS = $CONFIG_COMMANDS
21885 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21890 cat >>$CONFIG_STATUS <<_ACEOF
21891 # Files that config.status was made for.
21892 config_files="$ac_config_files"
21893 config_headers="$ac_config_headers"
21894 config_commands="$ac_config_commands"
21898 cat >>$CONFIG_STATUS <<\_ACEOF
21900 \`$as_me' instantiates files from templates according to the
21901 current configuration.
21903 Usage: $0 [OPTIONS] [FILE]...
21905 -h, --help print this help, then exit
21906 -V, --version print version number and configuration settings, then exit
21907 -q, --quiet do not print progress messages
21908 -d, --debug don't remove temporary files
21909 --recheck update $as_me by reconfiguring in the same conditions
21910 --file=FILE[:TEMPLATE]
21911 instantiate the configuration file FILE
21912 --header=FILE[:TEMPLATE]
21913 instantiate the configuration header FILE
21915 Configuration files:
21918 Configuration headers:
21921 Configuration commands:
21924 Report bugs to <bug-autoconf@gnu.org>."
21927 cat >>$CONFIG_STATUS <<_ACEOF
21929 mod_chxj config.status 0.12.27
21930 configured by $0, generated by GNU Autoconf 2.61,
21931 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21933 Copyright (C) 2006 Free Software Foundation, Inc.
21934 This config.status script is free software; the Free Software Foundation
21935 gives unlimited permission to copy, distribute and modify it."
21943 cat >>$CONFIG_STATUS <<\_ACEOF
21944 # If no file are specified by the user, then we need to provide default
21945 # value. By we need to know if files were specified by the user.
21951 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21952 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21963 # Handling of the options.
21964 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21966 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21967 echo "$ac_cs_version"; exit ;;
21968 --debug | --debu | --deb | --de | --d | -d )
21970 --file | --fil | --fi | --f )
21972 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21973 ac_need_defaults=false;;
21974 --header | --heade | --head | --hea )
21976 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21977 ac_need_defaults=false;;
21979 # Conflict between --help and --header
21980 { echo "$as_me: error: ambiguous option: $1
21981 Try \`$0 --help' for more information." >&2
21982 { (exit 1); exit 1; }; };;
21983 --help | --hel | -h )
21984 echo "$ac_cs_usage"; exit ;;
21985 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21986 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21989 # This is an error.
21990 -*) { echo "$as_me: error: unrecognized option: $1
21991 Try \`$0 --help' for more information." >&2
21992 { (exit 1); exit 1; }; } ;;
21994 *) ac_config_targets="$ac_config_targets $1"
21995 ac_need_defaults=false ;;
22001 ac_configure_extra_args=
22003 if $ac_cs_silent; then
22005 ac_configure_extra_args="$ac_configure_extra_args --silent"
22009 cat >>$CONFIG_STATUS <<_ACEOF
22010 if \$ac_cs_recheck; then
22011 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22012 CONFIG_SHELL=$SHELL
22013 export CONFIG_SHELL
22014 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22018 cat >>$CONFIG_STATUS <<\_ACEOF
22022 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22023 ## Running $as_me. ##
22029 cat >>$CONFIG_STATUS <<_ACEOF
22033 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22037 cat >>$CONFIG_STATUS <<\_ACEOF
22039 # Handling of arguments.
22040 for ac_config_target in $ac_config_targets
22042 case $ac_config_target in
22043 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
22044 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22045 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22046 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22047 "support/centos/mod-chxj.spec") CONFIG_FILES="$CONFIG_FILES support/centos/mod-chxj.spec" ;;
22049 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22050 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22051 { (exit 1); exit 1; }; };;
22056 # If the user did not use the arguments to specify the items to instantiate,
22057 # then the envvar interface is used. Set only those that are not.
22058 # We use the long form for the default assignment because of an extremely
22059 # bizarre bug on SunOS 4.1.3.
22060 if $ac_need_defaults; then
22061 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22062 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22063 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22066 # Have a temporary directory for convenience. Make it in the build tree
22067 # simply because there is no reason against having it here, and in addition,
22068 # creating and moving files from /tmp can sometimes cause problems.
22069 # Hook for its removal unless debugging.
22070 # Note that there is a small window in which the directory will not be cleaned:
22071 # after its creation but before its name has been assigned to `$tmp'.
22075 trap 'exit_status=$?
22076 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22078 trap '{ (exit 1); exit 1; }' 1 2 13 15
22080 # Create a (secure) tmp directory for tmp files.
22083 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22084 test -n "$tmp" && test -d "$tmp"
22087 tmp=./conf$$-$RANDOM
22088 (umask 077 && mkdir "$tmp")
22091 echo "$me: cannot create a temporary directory in ." >&2
22092 { (exit 1); exit 1; }
22096 # Set up the sed scripts for CONFIG_FILES section.
22099 # No need to generate the scripts if there are no CONFIG_FILES.
22100 # This happens for instance when ./config.status config.h
22101 if test -n "$CONFIG_FILES"; then
22108 for ac_last_try in false false false false false :; do
22109 cat >conf$$subs.sed <<_ACEOF
22110 SHELL!$SHELL$ac_delim
22111 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22112 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22113 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22114 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22115 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22116 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22117 exec_prefix!$exec_prefix$ac_delim
22118 prefix!$prefix$ac_delim
22119 program_transform_name!$program_transform_name$ac_delim
22120 bindir!$bindir$ac_delim
22121 sbindir!$sbindir$ac_delim
22122 libexecdir!$libexecdir$ac_delim
22123 datarootdir!$datarootdir$ac_delim
22124 datadir!$datadir$ac_delim
22125 sysconfdir!$sysconfdir$ac_delim
22126 sharedstatedir!$sharedstatedir$ac_delim
22127 localstatedir!$localstatedir$ac_delim
22128 includedir!$includedir$ac_delim
22129 oldincludedir!$oldincludedir$ac_delim
22130 docdir!$docdir$ac_delim
22131 infodir!$infodir$ac_delim
22132 htmldir!$htmldir$ac_delim
22133 dvidir!$dvidir$ac_delim
22134 pdfdir!$pdfdir$ac_delim
22135 psdir!$psdir$ac_delim
22136 libdir!$libdir$ac_delim
22137 localedir!$localedir$ac_delim
22138 mandir!$mandir$ac_delim
22139 DEFS!$DEFS$ac_delim
22140 ECHO_C!$ECHO_C$ac_delim
22141 ECHO_N!$ECHO_N$ac_delim
22142 ECHO_T!$ECHO_T$ac_delim
22143 LIBS!$LIBS$ac_delim
22144 build_alias!$build_alias$ac_delim
22145 host_alias!$host_alias$ac_delim
22146 target_alias!$target_alias$ac_delim
22147 build!$build$ac_delim
22148 build_cpu!$build_cpu$ac_delim
22149 build_vendor!$build_vendor$ac_delim
22150 build_os!$build_os$ac_delim
22151 host!$host$ac_delim
22152 host_cpu!$host_cpu$ac_delim
22153 host_vendor!$host_vendor$ac_delim
22154 host_os!$host_os$ac_delim
22155 target!$target$ac_delim
22156 target_cpu!$target_cpu$ac_delim
22157 target_vendor!$target_vendor$ac_delim
22158 target_os!$target_os$ac_delim
22159 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22160 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22161 INSTALL_DATA!$INSTALL_DATA$ac_delim
22162 am__isrc!$am__isrc$ac_delim
22163 CYGPATH_W!$CYGPATH_W$ac_delim
22164 PACKAGE!$PACKAGE$ac_delim
22165 VERSION!$VERSION$ac_delim
22166 ACLOCAL!$ACLOCAL$ac_delim
22167 AUTOCONF!$AUTOCONF$ac_delim
22168 AUTOMAKE!$AUTOMAKE$ac_delim
22169 AUTOHEADER!$AUTOHEADER$ac_delim
22170 MAKEINFO!$MAKEINFO$ac_delim
22171 install_sh!$install_sh$ac_delim
22172 STRIP!$STRIP$ac_delim
22173 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
22174 mkdir_p!$mkdir_p$ac_delim
22176 SET_MAKE!$SET_MAKE$ac_delim
22177 am__leading_dot!$am__leading_dot$ac_delim
22178 AMTAR!$AMTAR$ac_delim
22179 am__tar!$am__tar$ac_delim
22180 am__untar!$am__untar$ac_delim
22182 CFLAGS!$CFLAGS$ac_delim
22183 LDFLAGS!$LDFLAGS$ac_delim
22184 CPPFLAGS!$CPPFLAGS$ac_delim
22185 ac_ct_CC!$ac_ct_CC$ac_delim
22186 EXEEXT!$EXEEXT$ac_delim
22187 OBJEXT!$OBJEXT$ac_delim
22188 DEPDIR!$DEPDIR$ac_delim
22189 am__include!$am__include$ac_delim
22190 am__quote!$am__quote$ac_delim
22191 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
22192 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
22193 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
22194 CCDEPMODE!$CCDEPMODE$ac_delim
22195 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
22196 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
22197 GREP!$GREP$ac_delim
22198 EGREP!$EGREP$ac_delim
22199 LN_S!$LN_S$ac_delim
22200 ECHO!$ECHO$ac_delim
22202 RANLIB!$RANLIB$ac_delim
22205 CXXFLAGS!$CXXFLAGS$ac_delim
22206 ac_ct_CXX!$ac_ct_CXX$ac_delim
22209 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22211 elif $ac_last_try; then
22212 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22213 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22214 { (exit 1); exit 1; }; }
22216 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22220 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22221 if test -n "$ac_eof"; then
22222 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22223 ac_eof=`expr $ac_eof + 1`
22226 cat >>$CONFIG_STATUS <<_ACEOF
22227 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22228 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22231 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22232 s/^/s,@/; s/!/@,|#_!!_#|/
22235 s/'"$ac_delim"'$/,g/; t
22237 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22238 ' >>$CONFIG_STATUS <conf$$subs.sed
22239 rm -f conf$$subs.sed
22240 cat >>$CONFIG_STATUS <<_ACEOF
22246 for ac_last_try in false false false false false :; do
22247 cat >conf$$subs.sed <<_ACEOF
22248 CXXDEPMODE!$CXXDEPMODE$ac_delim
22249 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
22250 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
22251 CXXCPP!$CXXCPP$ac_delim
22253 FFLAGS!$FFLAGS$ac_delim
22254 ac_ct_F77!$ac_ct_F77$ac_delim
22255 LIBTOOL!$LIBTOOL$ac_delim
22256 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
22257 APXS2!$APXS2$ac_delim
22258 APXS!$APXS$ac_delim
22259 WAND_CONFIG!$WAND_CONFIG$ac_delim
22260 APR_CONFIG!$APR_CONFIG$ac_delim
22261 APR_1_CONFIG!$APR_1_CONFIG$ac_delim
22262 APU_CONFIG!$APU_CONFIG$ac_delim
22263 APU_1_CONFIG!$APU_1_CONFIG$ac_delim
22264 PCRE_CONFIG!$PCRE_CONFIG$ac_delim
22265 PCRE_1_CONFIG!$PCRE_1_CONFIG$ac_delim
22266 LIBOBJS!$LIBOBJS$ac_delim
22267 with_apache_header!$with_apache_header$ac_delim
22268 QDEFS!$QDEFS$ac_delim
22269 DDEFS!$DDEFS$ac_delim
22270 LTLIBOBJS!$LTLIBOBJS$ac_delim
22273 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
22275 elif $ac_last_try; then
22276 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22277 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22278 { (exit 1); exit 1; }; }
22280 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22284 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22285 if test -n "$ac_eof"; then
22286 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22287 ac_eof=`expr $ac_eof + 1`
22290 cat >>$CONFIG_STATUS <<_ACEOF
22291 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22292 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22295 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22296 s/^/s,@/; s/!/@,|#_!!_#|/
22299 s/'"$ac_delim"'$/,g/; t
22301 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22302 ' >>$CONFIG_STATUS <conf$$subs.sed
22303 rm -f conf$$subs.sed
22304 cat >>$CONFIG_STATUS <<_ACEOF
22311 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22312 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22313 # trailing colons and then remove the whole line if VPATH becomes empty
22314 # (actually we leave an empty line to preserve line numbers).
22315 if test "x$srcdir" = x.; then
22316 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22317 s/:*\$(srcdir):*/:/
22318 s/:*\${srcdir}:*/:/
22320 s/^\([^=]*=[ ]*\):*/\1/
22326 cat >>$CONFIG_STATUS <<\_ACEOF
22327 fi # test -n "$CONFIG_FILES"
22330 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22333 :[FHLC]) ac_mode=$ac_tag; continue;;
22335 case $ac_mode$ac_tag in
22337 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22338 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22339 { (exit 1); exit 1; }; };;
22340 :[FH]-) ac_tag=-:-;;
22341 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22358 -) ac_f="$tmp/stdin";;
22359 *) # Look for the file first in the build tree, then in the source tree
22360 # (if the path is not absolute). The absolute path cannot be DOS-style,
22361 # because $ac_f cannot contain `:'.
22365 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22367 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22368 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22369 { (exit 1); exit 1; }; };;
22371 ac_file_inputs="$ac_file_inputs $ac_f"
22374 # Let's still pretend it is `configure' which instantiates (i.e., don't
22375 # use $as_me), people would be surprised to read:
22376 # /* config.h. Generated by config.status. */
22377 configure_input="Generated from "`IFS=:
22378 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22379 if test x"$ac_file" != x-; then
22380 configure_input="$ac_file. $configure_input"
22381 { echo "$as_me:$LINENO: creating $ac_file" >&5
22382 echo "$as_me: creating $ac_file" >&6;}
22386 *:-:* | *:-) cat >"$tmp/stdin";;
22391 ac_dir=`$as_dirname -- "$ac_file" ||
22392 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22393 X"$ac_file" : 'X\(//\)[^/]' \| \
22394 X"$ac_file" : 'X\(//\)$' \| \
22395 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22397 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22401 /^X\(\/\/\)[^/].*/{
22416 -*) as_dir=./$as_dir;;
22418 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22422 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22423 *) as_qdir=$as_dir;;
22425 as_dirs="'$as_qdir' $as_dirs"
22426 as_dir=`$as_dirname -- "$as_dir" ||
22427 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22428 X"$as_dir" : 'X\(//\)[^/]' \| \
22429 X"$as_dir" : 'X\(//\)$' \| \
22430 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22432 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22436 /^X\(\/\/\)[^/].*/{
22449 test -d "$as_dir" && break
22451 test -z "$as_dirs" || eval "mkdir $as_dirs"
22452 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22453 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22454 { (exit 1); exit 1; }; }; }
22458 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22460 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22461 # A ".." for each directory in $ac_dir_suffix.
22462 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22463 case $ac_top_builddir_sub in
22464 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22465 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22468 ac_abs_top_builddir=$ac_pwd
22469 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22470 # for backward compatibility:
22471 ac_top_builddir=$ac_top_build_prefix
22474 .) # We are building in place.
22476 ac_top_srcdir=$ac_top_builddir_sub
22477 ac_abs_top_srcdir=$ac_pwd ;;
22478 [\\/]* | ?:[\\/]* ) # Absolute name.
22479 ac_srcdir=$srcdir$ac_dir_suffix;
22480 ac_top_srcdir=$srcdir
22481 ac_abs_top_srcdir=$srcdir ;;
22482 *) # Relative name.
22483 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22484 ac_top_srcdir=$ac_top_build_prefix$srcdir
22485 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22487 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22497 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22498 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22500 ac_MKDIR_P=$MKDIR_P
22502 [\\/$]* | ?:[\\/]* ) ;;
22503 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22507 cat >>$CONFIG_STATUS <<\_ACEOF
22508 # If the template does not know about datarootdir, expand it.
22509 # FIXME: This hack should be removed a few years after 2.60.
22510 ac_datarootdir_hack=; ac_datarootdir_seen=
22512 case `sed -n '/datarootdir/ {
22521 ' $ac_file_inputs` in
22522 *datarootdir*) ac_datarootdir_seen=yes;;
22523 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22524 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22525 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22527 cat >>$CONFIG_STATUS <<_ACEOF
22528 ac_datarootdir_hack='
22529 s&@datadir@&$datadir&g
22530 s&@docdir@&$docdir&g
22531 s&@infodir@&$infodir&g
22532 s&@localedir@&$localedir&g
22533 s&@mandir@&$mandir&g
22534 s&\\\${datarootdir}&$datarootdir&g' ;;
22538 # Neutralize VPATH when `$srcdir' = `.'.
22539 # Shell code in configure.ac might set extrasub.
22540 # FIXME: do we really want to maintain this feature?
22541 cat >>$CONFIG_STATUS <<_ACEOF
22545 cat >>$CONFIG_STATUS <<\_ACEOF
22547 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22548 s&@configure_input@&$configure_input&;t t
22549 s&@top_builddir@&$ac_top_builddir_sub&;t t
22550 s&@srcdir@&$ac_srcdir&;t t
22551 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22552 s&@top_srcdir@&$ac_top_srcdir&;t t
22553 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22554 s&@builddir@&$ac_builddir&;t t
22555 s&@abs_builddir@&$ac_abs_builddir&;t t
22556 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22557 s&@INSTALL@&$ac_INSTALL&;t t
22558 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22559 $ac_datarootdir_hack
22560 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22562 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22563 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22564 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22565 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22566 which seems to be undefined. Please make sure it is defined." >&5
22567 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22568 which seems to be undefined. Please make sure it is defined." >&2;}
22572 -) cat "$tmp/out"; rm -f "$tmp/out";;
22573 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22582 # Transform confdefs.h into a sed script `conftest.defines', that
22583 # substitutes the proper values into config.h.in to produce config.h.
22584 rm -f conftest.defines conftest.tail
22585 # First, append a space to every undef/define line, to ease matching.
22586 echo 's/$/ /' >conftest.defines
22587 # Then, protect against being on the right side of a sed subst, or in
22588 # an unquoted here document, in config.status. If some macros were
22589 # called several times there might be several #defines for the same
22590 # symbol, which is useless. But do not sort them, since the last
22591 # AC_DEFINE must be honored.
22592 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22593 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22594 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22595 # PARAMS is the parameter list in the macro definition--in most cases, it's
22596 # just an empty string.
22597 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22598 ac_dB='\\)[ (].*,\\1define\\2'
22606 s/^[ ]*#[ ]*define[ ][ ]*//
22611 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22612 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22613 ' >>conftest.defines
22615 # Remove the space that was appended to ease matching.
22616 # Then replace #undef with comments. This is necessary, for
22617 # example, in the case of _POSIX_SOURCE, which is predefined and required
22618 # on some systems where configure will not decide to define it.
22619 # (The regexp can be short, since the line contains either #define or #undef.)
22621 s,^[ #]*u.*,/* & */,' >>conftest.defines
22623 # Break up conftest.defines:
22624 ac_max_sed_lines=50
22626 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22627 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22628 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22630 ac_in='$ac_file_inputs'
22631 ac_out='"$tmp/out1"'
22632 ac_nxt='"$tmp/out2"'
22636 # Write a here document:
22637 cat >>$CONFIG_STATUS <<_ACEOF
22638 # First, check the format of the line:
22639 cat >"\$tmp/defines.sed" <<\\CEOF
22640 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22641 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22645 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22647 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22648 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22649 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22650 grep . conftest.tail >/dev/null || break
22651 rm -f conftest.defines
22652 mv conftest.tail conftest.defines
22654 rm -f conftest.defines conftest.tail
22656 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22657 cat >>$CONFIG_STATUS <<\_ACEOF
22658 if test x"$ac_file" != x-; then
22659 echo "/* $configure_input */" >"$tmp/config.h"
22660 cat "$ac_result" >>"$tmp/config.h"
22661 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22662 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22663 echo "$as_me: $ac_file is unchanged" >&6;}
22666 mv "$tmp/config.h" $ac_file
22669 echo "/* $configure_input */"
22673 # Compute $ac_file's index in $config_headers.
22675 for _am_header in $config_headers :; do
22676 case $_am_header in
22677 $ac_file | $ac_file:* )
22680 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22683 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
22684 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22685 X$ac_file : 'X\(//\)[^/]' \| \
22686 X$ac_file : 'X\(//\)$' \| \
22687 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
22689 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22693 /^X\(\/\/\)[^/].*/{
22705 s/.*/./; q'`/stamp-h$_am_stamp_count
22708 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22709 echo "$as_me: executing $ac_file commands" >&6;}
22714 case $ac_file$ac_mode in
22715 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22716 # Strip MF so we end up with the name of the file.
22717 mf=`echo "$mf" | sed -e 's/:.*$//'`
22718 # Check whether this is an Automake generated Makefile or not.
22719 # We used to match only the files named `Makefile.in', but
22720 # some people rename them; so instead we look at the file content.
22721 # Grep'ing the first line is not enough: some people post-process
22722 # each Makefile.in and add a new line on top of each file to say so.
22723 # Grep'ing the whole file is not good either: AIX grep has a line
22724 # limit of 2048, but all sed's we know have understand at least 4000.
22725 if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
22726 dirpart=`$as_dirname -- "$mf" ||
22727 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22728 X"$mf" : 'X\(//\)[^/]' \| \
22729 X"$mf" : 'X\(//\)$' \| \
22730 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22732 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22736 /^X\(\/\/\)[^/].*/{
22752 # Extract the definition of DEPDIR, am__include, and am__quote
22753 # from the Makefile without running `make'.
22754 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22755 test -z "$DEPDIR" && continue
22756 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22757 test -z "am__include" && continue
22758 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22759 # When using ansi2knr, U may be empty or an underscore; expand it
22760 U=`sed -n 's/^U = //p' < "$mf"`
22761 # Find all dependency output files, they are included files with
22762 # $(DEPDIR) in their names. We invoke sed twice because it is the
22763 # simplest approach to changing $(DEPDIR) to its actual value in the
22765 for file in `sed -n "
22766 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22767 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22768 # Make sure the directory exists.
22769 test -f "$dirpart/$file" && continue
22770 fdir=`$as_dirname -- "$file" ||
22771 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22772 X"$file" : 'X\(//\)[^/]' \| \
22773 X"$file" : 'X\(//\)$' \| \
22774 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22780 /^X\(\/\/\)[^/].*/{
22793 { as_dir=$dirpart/$fdir
22795 -*) as_dir=./$as_dir;;
22797 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22801 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22802 *) as_qdir=$as_dir;;
22804 as_dirs="'$as_qdir' $as_dirs"
22805 as_dir=`$as_dirname -- "$as_dir" ||
22806 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22807 X"$as_dir" : 'X\(//\)[^/]' \| \
22808 X"$as_dir" : 'X\(//\)$' \| \
22809 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22815 /^X\(\/\/\)[^/].*/{
22828 test -d "$as_dir" && break
22830 test -z "$as_dirs" || eval "mkdir $as_dirs"
22831 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22832 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22833 { (exit 1); exit 1; }; }; }
22834 # echo "creating $dirpart/$file"
22835 echo '# dummy' > "$dirpart/$file"
22844 { (exit 0); exit 0; }
22846 chmod +x $CONFIG_STATUS
22847 ac_clean_files=$ac_clean_files_save
22850 # configure is writing to config.log, and then calls config.status.
22851 # config.status does its own redirection, appending to config.log.
22852 # Unfortunately, on DOS this fails, as config.log is still kept open
22853 # by configure, so config.status won't be able to write to it; its
22854 # output is simply discarded. So we exec the FD to /dev/null,
22855 # effectively closing config.log, so it can be properly (re)opened and
22856 # appended to by config.status. When coming back to configure, we
22857 # need to make the FD available again.
22858 if test "$no_create" != yes; then
22860 ac_config_status_args=
22861 test "$silent" = yes &&
22862 ac_config_status_args="$ac_config_status_args --quiet"
22864 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22866 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22867 # would make configure fail if this is the last instruction.
22868 $ac_cs_success || { (exit 1); exit 1; }